doc
Data Structures | Macros | Typedefs
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
 

Macros

#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 int(* csync_method_commit_fn) ()
 
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 int(* csync_method_get_fn) (csync_vio_method_handle_t *flocal, csync_vio_method_handle_t *fremote, csync_vio_file_stat_t *st)
 
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 int(* csync_method_put_fn) (csync_vio_method_handle_t *flocal, csync_vio_method_handle_t *fremote, csync_vio_file_stat_t *st)
 
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_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
 

Macro Definition Documentation

◆ VIO_METHOD_HAS_FUNC

#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 30 of file csync_vio_method.h.

Typedef Documentation

◆ csync_method_chmod_fn

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

Definition at line 68 of file csync_vio_method.h.

◆ csync_method_chown_fn

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

Definition at line 69 of file csync_vio_method.h.

◆ csync_method_close_fn

typedef int(* csync_method_close_fn) (csync_vio_method_handle_t *fhandle)

Definition at line 52 of file csync_vio_method.h.

◆ csync_method_closedir_fn

typedef int(* csync_method_closedir_fn) (csync_vio_method_handle_t *dhandle)

Definition at line 58 of file csync_vio_method.h.

◆ csync_method_commit_fn

typedef int(* csync_method_commit_fn) ()

Definition at line 77 of file csync_vio_method.h.

◆ csync_method_creat_fn

typedef csync_vio_method_handle_t*(* csync_method_creat_fn) (const char *durl, mode_t mode)

Definition at line 51 of file csync_vio_method.h.

◆ csync_method_get_capabilities_fn

typedef csync_vio_capabilities_t*(* csync_method_get_capabilities_fn) (void)

Definition at line 48 of file csync_vio_method.h.

◆ csync_method_get_error_string_fn

typedef char*(* csync_method_get_error_string_fn) ()

Definition at line 75 of file csync_vio_method.h.

◆ csync_method_get_fn

typedef int(* csync_method_get_fn) (csync_vio_method_handle_t *flocal, csync_vio_method_handle_t *fremote, csync_vio_file_stat_t *st)

Definition at line 79 of file csync_vio_method.h.

◆ csync_method_lseek_fn

typedef off_t(* csync_method_lseek_fn) (csync_vio_method_handle_t *fhandle, off_t offset, int whence)

Definition at line 55 of file csync_vio_method.h.

◆ csync_method_mkdir_fn

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

Definition at line 61 of file csync_vio_method.h.

◆ csync_method_open_fn

typedef csync_vio_method_handle_t*(* csync_method_open_fn) (const char *durl, int flags, mode_t mode)

Definition at line 50 of file csync_vio_method.h.

◆ csync_method_opendir_fn

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

Definition at line 57 of file csync_vio_method.h.

◆ csync_method_put_fn

typedef int(* csync_method_put_fn) (csync_vio_method_handle_t *flocal, csync_vio_method_handle_t *fremote, csync_vio_file_stat_t *st)

Definition at line 82 of file csync_vio_method.h.

◆ csync_method_read_fn

typedef ssize_t(* csync_method_read_fn) (csync_vio_method_handle_t *fhandle, void *buf, size_t count)

Definition at line 53 of file csync_vio_method.h.

◆ csync_method_readdir_fn

typedef csync_vio_file_stat_t*(* csync_method_readdir_fn) (csync_vio_method_handle_t *dhandle)

Definition at line 59 of file csync_vio_method.h.

◆ csync_method_rename_fn

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

Definition at line 65 of file csync_vio_method.h.

◆ csync_method_rmdir_fn

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

Definition at line 62 of file csync_vio_method.h.

◆ csync_method_set_property_fn

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

Definition at line 73 of file csync_vio_method.h.

◆ csync_method_stat_fn

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

Definition at line 64 of file csync_vio_method.h.

◆ csync_method_unlink_fn

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

Definition at line 66 of file csync_vio_method.h.

◆ csync_method_utimes_fn

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

Definition at line 71 of file csync_vio_method.h.

◆ csync_method_write_fn

typedef ssize_t(* csync_method_write_fn) (csync_vio_method_handle_t *fhandle, const void *buf, size_t count)

Definition at line 54 of file csync_vio_method.h.

◆ csync_vio_capabilities_t

Definition at line 42 of file csync_vio_method.h.

◆ csync_vio_method_finish_fn

typedef void(* csync_vio_method_finish_fn) (csync_vio_method_t *method)

Definition at line 46 of file csync_vio_method.h.

◆ csync_vio_method_init_fn

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 44 of file csync_vio_method.h.

◆ csync_vio_method_t

Definition at line 34 of file csync_vio_method.h.