csync_vio_method.h File Reference

#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_capabilities_s
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
csync_vio_capabilities_t *(* 
csync_method_get_capabilities_fn )(void)
typedef char *(* csync_method_get_error_string_fn )()
typedef const char *(* csync_method_get_file_id_fn )(const char *path)
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_sendfile_fn )(csync_vio_method_handle_t *src, csync_vio_method_handle_t *dst)
typedef int(* csync_method_set_property_fn )(const char *key, void *data)
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 struct
csync_vio_capabilities_s 
csync_vio_capabilities_t
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 Documentation

#define VIO_METHOD_HAS_FUNC ( method,
func   ) 

Value:

(method != NULL && method->func != NULL \
   && ((size_t)(((char *)&((method)->func)) - ((char *)(method))) < (method)->method_table_size))

Definition at line 32 of file csync_vio_method.h.


Typedef Documentation

typedef int(* csync_method_chmod_fn)(const char *uri, mode_t mode)

Definition at line 76 of file csync_vio_method.h.

typedef int(* csync_method_chown_fn)(const char *uri, uid_t owner, gid_t group)

Definition at line 77 of file csync_vio_method.h.

Definition at line 59 of file csync_vio_method.h.

Definition at line 66 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 58 of file csync_vio_method.h.

Definition at line 55 of file csync_vio_method.h.

Definition at line 83 of file csync_vio_method.h.

typedef const char*(* csync_method_get_file_id_fn)(const char *path)

Definition at line 56 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 63 of file csync_vio_method.h.

typedef int(* csync_method_mkdir_fn)(const char *uri, mode_t mode)

Definition at line 69 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 57 of file csync_vio_method.h.

typedef csync_vio_method_handle_t*(* csync_method_opendir_fn)(const char *name)

Definition at line 65 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 60 of file csync_vio_method.h.

Definition at line 67 of file csync_vio_method.h.

typedef int(* csync_method_rename_fn)(const char *olduri, const char *newuri)

Definition at line 73 of file csync_vio_method.h.

typedef int(* csync_method_rmdir_fn)(const char *uri)

Definition at line 70 of file csync_vio_method.h.

Definition at line 62 of file csync_vio_method.h.

typedef int(* csync_method_set_property_fn)(const char *key, void *data)

Definition at line 81 of file csync_vio_method.h.

typedef int(* csync_method_stat_fn)(const char *uri, csync_vio_file_stat_t *buf)

Definition at line 72 of file csync_vio_method.h.

typedef int(* csync_method_unlink_fn)(const char *uri)

Definition at line 74 of file csync_vio_method.h.

typedef int(* csync_method_utimes_fn)(const char *uri, const struct timeval times[2])

Definition at line 79 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 61 of file csync_vio_method.h.

Definition at line 49 of file csync_vio_method.h.

Definition at line 53 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 51 of file csync_vio_method.h.

Definition at line 36 of file csync_vio_method.h.


Generated on Sat May 4 16:59:20 2013 for doc by  doxygen 1.5.6