csync internal API

Collaboration diagram for csync internal API:


Modules

 csync file lockling internals
 csync logging internals
 csync statedb internals

Data Structures

struct  csync_file_stat_s
struct  csync_s
 csync public structure More...

Defines

#define CSYNC_STATUS_DONE
#define CSYNC_STATUS_INIT   1 << 0
#define CSYNC_STATUS_PROPAGATE   1 << 3
#define CSYNC_STATUS_RECONCILE   1 << 2
#define CSYNC_STATUS_UPDATE   1 << 1
#define MAX_DEPTH   50
#define MAX_TIME_DIFFERENCE   10
#define MAX_XFER_BUF_SIZE   (16 * 1024)

Typedefs

typedef struct csync_file_stat_s csync_file_stat_t

Enumerations

enum  csync_ftw_type_e { CSYNC_FTW_TYPE_FILE, CSYNC_FTW_TYPE_SLINK, CSYNC_FTW_TYPE_DIR }
enum  csync_instructions_e {
  CSYNC_INSTRUCTION_NONE, CSYNC_INSTRUCTION_EVAL, CSYNC_INSTRUCTION_REMOVE, CSYNC_INSTRUCTION_RENAME,
  CSYNC_INSTRUCTION_NEW, CSYNC_INSTRUCTION_CONFLICT, CSYNC_INSTRUCTION_IGNORE, CSYNC_INSTRUCTION_SYNC,
  CSYNC_INSTRUCTION_STAT_ERROR, CSYNC_INSTRUCTION_ERROR, CSYNC_INSTRUCTION_DELETED, CSYNC_INSTRUCTION_UPDATED
}
enum  csync_replica_e { LOCAL_REPLICA, REMOTE_REPLCIA }

Variables

char *   csync_s::config_dir
enum csync_replica_e csync_s::current
sqlite3 *   csync_s::db
int   csync_s::disabled
uid_t   csync_s::euid
c_strlist_tcsync_s::excludes
int   csync_s::exists
csync_vio_method_finish_fn   csync_s::finish_fn
gid_t csync_file_stat_s::gid
enum csync_instructions_e csync_file_stat_s::instruction
c_list_t *   csync_s::list
c_list_t *   csync_s::list
struct {
   c_list_t *   csync_s::list
   c_rbtree_t *   csync_s::tree
   enum csync_replica_e   csync_s::type
   char *   uri
csync_s::local
int   csync_s::max_time_difference
csync_vio_method_t *   csync_s::method
mode_t csync_file_stat_s::mode
time_t csync_file_stat_s::modtime
struct {
   csync_vio_method_finish_fn   csync_s::finish_fn
   void *   handle
   csync_vio_method_t *   csync_s::method
csync_s::module
int csync_file_stat_s::nlink
struct {
   char *   csync_s::config_dir
   int   max_depth
   int   csync_s::max_time_difference
   int   csync_s::sync_symbolic_links
   int   csync_s::unix_extensions
csync_s::options
char csync_file_stat_s::path [1]
size_t csync_file_stat_s::pathlen
uint64_t csync_file_stat_s::phash
struct {
   uid_t   csync_s::euid
   uid_t   uid
csync_s::pwd
struct {
   c_list_t *   csync_s::list
   c_rbtree_t *   csync_s::tree
   enum csync_replica_e   csync_s::type
   char *   uri
csync_s::remote
enum csync_replica_e csync_s::replica
off_t csync_file_stat_s::size
struct {
   sqlite3 *   csync_s::db
   int   csync_s::disabled
   int   csync_s::exists
   char *   file
csync_s::statedb
int csync_s::status
int   csync_s::sync_symbolic_links
c_rbtree_t *   csync_s::tree
c_rbtree_t *   csync_s::tree
int csync_file_stat_s::type
enum csync_replica_e   csync_s::type
enum csync_replica_e   csync_s::type
uid_t csync_file_stat_s::uid
int   csync_s::unix_extensions
void * csync_s::userdata


Define Documentation

#define CSYNC_STATUS_DONE

#define CSYNC_STATUS_INIT   1 << 0

Definition at line 63 of file csync_private.h.

#define CSYNC_STATUS_PROPAGATE   1 << 3

Definition at line 66 of file csync_private.h.

#define CSYNC_STATUS_RECONCILE   1 << 2

Definition at line 65 of file csync_private.h.

#define CSYNC_STATUS_UPDATE   1 << 1

Definition at line 64 of file csync_private.h.

#define MAX_DEPTH   50

How deep to scan directories.

Definition at line 49 of file csync_private.h.

#define MAX_TIME_DIFFERENCE   10

Maximum time difference between two replicas in seconds.

Definition at line 54 of file csync_private.h.

#define MAX_XFER_BUF_SIZE   (16 * 1024)

Maximum size of a buffer for transfer.

Definition at line 60 of file csync_private.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
CSYNC_FTW_TYPE_FILE 
CSYNC_FTW_TYPE_SLINK 
CSYNC_FTW_TYPE_DIR 

Definition at line 135 of file csync_private.h.

Enumerator:
CSYNC_INSTRUCTION_NONE 
CSYNC_INSTRUCTION_EVAL 
CSYNC_INSTRUCTION_REMOVE 
CSYNC_INSTRUCTION_RENAME 
CSYNC_INSTRUCTION_NEW 
CSYNC_INSTRUCTION_CONFLICT 
CSYNC_INSTRUCTION_IGNORE 
CSYNC_INSTRUCTION_SYNC 
CSYNC_INSTRUCTION_STAT_ERROR 
CSYNC_INSTRUCTION_ERROR 
CSYNC_INSTRUCTION_DELETED 
CSYNC_INSTRUCTION_UPDATED 

Definition at line 141 of file csync_private.h.

Enumerator:
LOCAL_REPLICA 
REMOTE_REPLCIA 

Definition at line 73 of file csync_private.h.


Variable Documentation

char* { ... } ::config_dir [inherited]

Definition at line 118 of file csync_private.h.

char* csync_s::config_dir [inherited]

Definition at line 118 of file csync_private.h.

Definition at line 127 of file csync_private.h.

sqlite3* { ... } ::db [inherited]

Definition at line 88 of file csync_private.h.

sqlite3* csync_s::db [inherited]

Definition at line 88 of file csync_private.h.

int { ... } ::disabled [inherited]

Definition at line 90 of file csync_private.h.

int csync_s::disabled [inherited]

Definition at line 90 of file csync_private.h.

uid_t { ... } ::euid [inherited]

Definition at line 123 of file csync_private.h.

uid_t csync_s::euid [inherited]

Definition at line 123 of file csync_private.h.

Definition at line 84 of file csync_private.h.

int { ... } ::exists [inherited]

Definition at line 89 of file csync_private.h.

int csync_s::exists [inherited]

Definition at line 89 of file csync_private.h.

char* { ... } ::file [inherited]

Definition at line 87 of file csync_private.h.

csync_vio_method_finish_fn { ... } ::finish_fn [inherited]

Definition at line 110 of file csync_private.h.

Definition at line 110 of file csync_private.h.

gid_t csync_file_stat_s::gid [inherited]

Definition at line 160 of file csync_private.h.

void* { ... } ::handle [inherited]

Definition at line 108 of file csync_private.h.

Definition at line 166 of file csync_private.h.

c_list_t* { ... } ::list [inherited]

Definition at line 103 of file csync_private.h.

c_list_t* { ... } ::list [inherited]

Definition at line 96 of file csync_private.h.

c_list_t* csync_s::list [inherited]

Definition at line 96 of file csync_private.h.

struct { ... } csync_s::local [inherited]

int { ... } ::max_depth [inherited]

Definition at line 114 of file csync_private.h.

int { ... } ::max_time_difference [inherited]

Definition at line 115 of file csync_private.h.

Definition at line 115 of file csync_private.h.

csync_vio_method_t* { ... } ::method [inherited]

Definition at line 109 of file csync_private.h.

Definition at line 109 of file csync_private.h.

mode_t csync_file_stat_s::mode [inherited]

Definition at line 161 of file csync_private.h.

time_t csync_file_stat_s::modtime [inherited]

Definition at line 164 of file csync_private.h.

struct { ... } csync_s::module [inherited]

int csync_file_stat_s::nlink [inherited]

Definition at line 163 of file csync_private.h.

struct { ... } csync_s::options [inherited]

char csync_file_stat_s::path[1] [inherited]

Definition at line 169 of file csync_private.h.

size_t csync_file_stat_s::pathlen [inherited]

Definition at line 168 of file csync_private.h.

uint64_t csync_file_stat_s::phash [inherited]

Definition at line 167 of file csync_private.h.

struct { ... } csync_s::pwd [inherited]

struct { ... } csync_s::remote [inherited]

Definition at line 130 of file csync_private.h.

off_t csync_file_stat_s::size [inherited]

Definition at line 162 of file csync_private.h.

struct { ... } csync_s::statedb [inherited]

int csync_s::status [inherited]

Definition at line 132 of file csync_private.h.

int { ... } ::sync_symbolic_links [inherited]

Definition at line 116 of file csync_private.h.

Definition at line 116 of file csync_private.h.

c_rbtree_t* { ... } ::tree [inherited]

Definition at line 102 of file csync_private.h.

c_rbtree_t* { ... } ::tree [inherited]

Definition at line 95 of file csync_private.h.

c_rbtree_t* csync_s::tree [inherited]

Definition at line 95 of file csync_private.h.

int csync_file_stat_s::type [inherited]

Definition at line 165 of file csync_private.h.

enum { ... } ::type [inherited]

Definition at line 104 of file csync_private.h.

enum { ... } ::type [inherited]

Definition at line 97 of file csync_private.h.

enum csync_replica_e csync_s::type [inherited]

Definition at line 97 of file csync_private.h.

uid_t csync_file_stat_s::uid [inherited]

Definition at line 159 of file csync_private.h.

uid_t { ... } ::uid [inherited]

Definition at line 122 of file csync_private.h.

int { ... } ::unix_extensions [inherited]

Definition at line 117 of file csync_private.h.

int csync_s::unix_extensions [inherited]

Definition at line 117 of file csync_private.h.

char* { ... } ::uri [inherited]

Definition at line 101 of file csync_private.h.

char* { ... } ::uri [inherited]

Definition at line 94 of file csync_private.h.

void* csync_s::userdata [inherited]

Definition at line 83 of file csync_private.h.


Generated on Mon May 4 17:43:40 2009 for doc by  doxygen 1.5.6