doc
|
00001 /* 00002 * libcsync -- a library to sync a directory with another 00003 * 00004 * Copyright (c) 2008 by Andreas Schneider <mail@cynapses.org> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * vim: ft=c.doxygen ts=2 sw=2 et cindent 00021 */ 00022 00023 #ifndef _CSYNC_VIO_LOCAL_H 00024 #define _CSYNC_VIO_LOCAL_H 00025 00026 #include "vio/csync_vio_method.h" 00027 #include <sys/time.h> 00028 00029 csync_vio_method_handle_t *csync_vio_local_open(const char *durl, int flags, mode_t mode); 00030 csync_vio_method_handle_t *csync_vio_local_creat(const char *durl, mode_t mode); 00031 int csync_vio_local_close(csync_vio_method_handle_t *fhandle); 00032 ssize_t csync_vio_local_read(csync_vio_method_handle_t *fhandle, void *buf, size_t count); 00033 ssize_t csync_vio_local_write(csync_vio_method_handle_t *fhandle, const void *buf, size_t count); 00034 off_t csync_vio_local_lseek(csync_vio_method_handle_t *fhandle, off_t offset, int whence); 00035 00036 csync_vio_method_handle_t *csync_vio_local_opendir(const char *name); 00037 int csync_vio_local_closedir(csync_vio_method_handle_t *dhandle); 00038 csync_vio_file_stat_t *csync_vio_local_readdir(csync_vio_method_handle_t *dhandle); 00039 00040 int csync_vio_local_mkdir(const char *uri, mode_t mode); 00041 int csync_vio_local_rmdir(const char *uri); 00042 00043 int csync_vio_local_stat(const char *uri, csync_vio_file_stat_t *buf); 00044 int csync_vio_local_rename(const char *olduri, const char *newuri); 00045 int csync_vio_local_unlink(const char *uri); 00046 00047 int csync_vio_local_chmod(const char *uri, mode_t mode); 00048 int csync_vio_local_chown(const char *uri, uid_t owner, gid_t group); 00049 00050 int csync_vio_local_utimes(const char *uri, const struct timeval *times); 00051 00052 #endif /* _CSYNC_VIO_LOCAL_H */