#include <sys/time.h>
#include "csync.h"
#include "vio/csync_vio_file_stat.h"
#include "vio/csync_vio_handle.h"
Go to the source code of this file.
Data Structures | |
struct | csync_vio_method_s |
Defines | |
#define | VIO_METHOD_HAS_FUNC(method, func) |
Typedefs | |
typedef int(* | csync_method_chmod_fn )(const char *uri, mode_t mode) |
typedef int(* | csync_method_chown_fn )(const char *uri, uid_t owner, gid_t group) |
typedef int(* | csync_method_close_fn )(csync_vio_method_handle_t *fhandle) |
typedef int(* | csync_method_closedir_fn )(csync_vio_method_handle_t *dhandle) |
typedef csync_vio_method_handle_t *(* | csync_method_creat_fn )(const char *durl, mode_t mode) |
typedef off_t(* | csync_method_lseek_fn )(csync_vio_method_handle_t *fhandle, off_t offset, int whence) |
typedef int(* | csync_method_mkdir_fn )(const char *uri, mode_t mode) |
typedef csync_vio_method_handle_t *(* | csync_method_open_fn )(const char *durl, int flags, mode_t mode) |
typedef csync_vio_method_handle_t *(* | csync_method_opendir_fn )(const char *name) |
typedef ssize_t(* | csync_method_read_fn )(csync_vio_method_handle_t *fhandle, void *buf, size_t count) |
typedef csync_vio_file_stat_t *(* | csync_method_readdir_fn )(csync_vio_method_handle_t *dhandle) |
typedef int(* | csync_method_rename_fn )(const char *olduri, const char *newuri) |
typedef int(* | csync_method_rmdir_fn )(const char *uri) |
typedef int(* | csync_method_stat_fn )(const char *uri, csync_vio_file_stat_t *buf) |
typedef int(* | csync_method_unlink_fn )(const char *uri) |
typedef int(* | csync_method_utimes_fn )(const char *uri, const struct timeval times[2]) |
typedef ssize_t(* | csync_method_write_fn )(csync_vio_method_handle_t *fhandle, const void *buf, size_t count) |
typedef void(* | csync_vio_method_finish_fn )(csync_vio_method_t *method) |
typedef csync_vio_method_t *(* | csync_vio_method_init_fn )(const char *method_name, const char *config_args, csync_auth_callback cb, void *userdata) |
typedef struct csync_vio_method_s | csync_vio_method_t |
#define VIO_METHOD_HAS_FUNC | ( | method, | |||
func | ) |
Value:
((((char *)&((method)->func)) - ((char *)(method)) < (method)->method_table_size) \ && method->func != NULL)
Definition at line 32 of file csync_vio_method.h.
typedef int(* csync_method_chmod_fn)(const char *uri, mode_t mode) |
Definition at line 60 of file csync_vio_method.h.
typedef int(* csync_method_chown_fn)(const char *uri, uid_t owner, gid_t group) |
Definition at line 61 of file csync_vio_method.h.
typedef int(* csync_method_close_fn)(csync_vio_method_handle_t *fhandle) |
Definition at line 44 of file csync_vio_method.h.
typedef int(* csync_method_closedir_fn)(csync_vio_method_handle_t *dhandle) |
Definition at line 50 of file csync_vio_method.h.
typedef csync_vio_method_handle_t*(* csync_method_creat_fn)(const char *durl, mode_t mode) |
Definition at line 43 of file csync_vio_method.h.
typedef off_t(* csync_method_lseek_fn)(csync_vio_method_handle_t *fhandle, off_t offset, int whence) |
Definition at line 47 of file csync_vio_method.h.
typedef int(* csync_method_mkdir_fn)(const char *uri, mode_t mode) |
Definition at line 53 of file csync_vio_method.h.
typedef csync_vio_method_handle_t*(* csync_method_open_fn)(const char *durl, int flags, mode_t mode) |
Definition at line 42 of file csync_vio_method.h.
typedef csync_vio_method_handle_t*(* csync_method_opendir_fn)(const char *name) |
Definition at line 49 of file csync_vio_method.h.
typedef ssize_t(* csync_method_read_fn)(csync_vio_method_handle_t *fhandle, void *buf, size_t count) |
Definition at line 45 of file csync_vio_method.h.
typedef csync_vio_file_stat_t*(* csync_method_readdir_fn)(csync_vio_method_handle_t *dhandle) |
Definition at line 51 of file csync_vio_method.h.
typedef int(* csync_method_rename_fn)(const char *olduri, const char *newuri) |
Definition at line 57 of file csync_vio_method.h.
typedef int(* csync_method_rmdir_fn)(const char *uri) |
Definition at line 54 of file csync_vio_method.h.
typedef int(* csync_method_stat_fn)(const char *uri, csync_vio_file_stat_t *buf) |
Definition at line 56 of file csync_vio_method.h.
typedef int(* csync_method_unlink_fn)(const char *uri) |
Definition at line 58 of file csync_vio_method.h.
typedef int(* csync_method_utimes_fn)(const char *uri, const struct timeval times[2]) |
Definition at line 63 of file csync_vio_method.h.
typedef ssize_t(* csync_method_write_fn)(csync_vio_method_handle_t *fhandle, const void *buf, size_t count) |
Definition at line 46 of file csync_vio_method.h.
typedef void(* csync_vio_method_finish_fn)(csync_vio_method_t *method) |
Definition at line 40 of file csync_vio_method.h.
typedef csync_vio_method_t*(* csync_vio_method_init_fn)(const char *method_name, const char *config_args, csync_auth_callback cb, void *userdata) |
Definition at line 38 of file csync_vio_method.h.
typedef struct csync_vio_method_s csync_vio_method_t |
Definition at line 36 of file csync_vio_method.h.