doc
csync_vio_local.h
Go to the documentation of this file.
1 /*
2  * libcsync -- a library to sync a directory with another
3  *
4  * Copyright (c) 2008-2013 by Andreas Schneider <asn@cryptomilk.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef _CSYNC_VIO_LOCAL_H
22 #define _CSYNC_VIO_LOCAL_H
23 
24 #include "vio/csync_vio_method.h"
25 #include <sys/time.h>
26 
28 
29 csync_vio_method_handle_t *csync_vio_local_open(const char *durl, int flags, mode_t mode);
30 csync_vio_method_handle_t *csync_vio_local_creat(const char *durl, mode_t mode);
32 ssize_t csync_vio_local_read(csync_vio_method_handle_t *fhandle, void *buf, size_t count);
33 ssize_t csync_vio_local_write(csync_vio_method_handle_t *fhandle, const void *buf, size_t count);
34 off_t csync_vio_local_lseek(csync_vio_method_handle_t *fhandle, off_t offset, int whence);
35 
39 
40 int csync_vio_local_mkdir(const char *uri, mode_t mode);
41 int csync_vio_local_rmdir(const char *uri);
42 
43 int csync_vio_local_stat(const char *uri, csync_vio_file_stat_t *buf);
44 int csync_vio_local_rename(const char *olduri, const char *newuri);
45 int csync_vio_local_unlink(const char *uri);
46 
47 int csync_vio_local_chmod(const char *uri, mode_t mode);
48 int csync_vio_local_chown(const char *uri, uid_t owner, gid_t group);
49 
50 int csync_vio_local_utimes(const char *uri, const struct timeval *times);
51 
52 #endif /* _CSYNC_VIO_LOCAL_H */
int csync_vio_local_closedir(csync_vio_method_handle_t *dhandle)
csync_vio_method_handle_t * csync_vio_local_open(const char *durl, int flags, mode_t mode)
ssize_t csync_vio_local_write(csync_vio_method_handle_t *fhandle, const void *buf, size_t count)
csync_vio_method_handle_t * csync_vio_local_opendir(const char *name)
mode_t mode
Definition: csync_private.h:40
csync_vio_file_stat_t * csync_vio_local_readdir(csync_vio_method_handle_t *dhandle)
int csync_vio_local_unlink(const char *uri)
int csync_vio_local_utimes(const char *uri, const struct timeval *times)
int csync_vio_local_mkdir(const char *uri, mode_t mode)
int csync_vio_local_stat(const char *uri, csync_vio_file_stat_t *buf)
off_t csync_vio_local_lseek(csync_vio_method_handle_t *fhandle, off_t offset, int whence)
int csync_vio_local_chmod(const char *uri, mode_t mode)
int csync_vio_local_getfd(csync_vio_handle_t *hnd)
ssize_t csync_vio_local_read(csync_vio_method_handle_t *fhandle, void *buf, size_t count)
int csync_vio_local_close(csync_vio_method_handle_t *fhandle)
int csync_vio_local_rename(const char *olduri, const char *newuri)
csync_vio_method_handle_t * csync_vio_local_creat(const char *durl, mode_t mode)
int csync_vio_local_rmdir(const char *uri)
int csync_vio_local_chown(const char *uri, uid_t owner, gid_t group)
void csync_vio_method_handle_t