doc
Data Structures | Modules | Defines | Typedefs | Enumerations | Enumerator | Functions | Variables

csync internal API

Data Structures

struct  _csync_treewalk_context_s
struct  csync_file_stat_s
struct  csync_s
 csync public structure More...

Modules

 csync statedb internals
 csync file lockling internals
 csync logging internals
 csync propagation internals
 csync reconciliation internals
 csync update detection internals

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_treewalk_context_s 
_csync_treewalk_context
typedef struct csync_file_stat_s csync_file_stat_t

Enumerations

enum  csync_replica_e { LOCAL_REPLICA, REMOTE_REPLICA }

Functions

struct csync_file_stat_s __attribute__ ((packed))
void csync_file_stat_free (csync_file_stat_t *st)

Variables

struct _csync_treewalk_context_s __attribute__
volatile int csync_s::abort
csync_vio_capabilities_t   csync_s::capabilities
int csync_file_stat_s::child_modified
int child_modified
char *   csync_s::config_dir
enum csync_replica_e csync_s::current
csync_file_stat_tcsync_s::current_fs
sqlite3 *   csync_s::db
char * csync_file_stat_s::destpath
char * destpath
int   csync_s::disabled
enum csync_error_codes_e csync_s::error_code
char * csync_s::error_string
const char * csync_file_stat_s::error_string
const char * error_string
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
gid_t gid
c_list_t *   csync_s::ignored_cleanup
c_list_t *   csync_s::ignored_cleanup
uint64_t inode
uint64_t csync_file_stat_s::inode
enum csync_instructions_e csync_file_stat_s::instruction
enum csync_instructions_e instruction
int _csync_treewalk_context_s::instruction_filter
c_list_t *   csync_s::list
c_list_t *   csync_s::list
struct {
   c_list_t *   csync_s::ignored_cleanup
   c_list_t *   csync_s::list
   c_rbtree_t *   csync_s::tree
   enum csync_replica_e   csync_s::type
   char *   uri
csync_s::local
bool   csync_s::local_only_mode
csync_log_callback   csync_s::log_function
int   csync_s::log_verbosity
int   csync_s::max_time_difference
const char * md5
const char * csync_file_stat_s::md5
csync_vio_method_t *   csync_s::method
mode_t csync_file_stat_s::mode
mode_t mode
time_t csync_file_stat_s::modtime
time_t modtime
struct {
   csync_vio_capabilities_t   csync_s::capabilities
   csync_vio_method_finish_fn   csync_s::finish_fn
   void *   handle
   csync_vio_method_t *   csync_s::method
csync_s::module
int nlink
int csync_file_stat_s::nlink
struct {
   char *   csync_s::config_dir
   bool   csync_s::local_only_mode
   int   csync_s::log_verbosity
   int   max_depth
   int   csync_s::max_time_difference
   bool   csync_s::remote_push_atomar
   int   csync_s::sync_symbolic_links
   int   csync_s::timeout
   int   csync_s::unix_extensions
   bool   csync_s::with_conflict_copys
csync_s::options
csync_overall_progress_t csync_s::overall_progress
char csync_file_stat_s::path [1]
char path [1]
size_t csync_file_stat_s::pathlen
size_t pathlen
csync_progress_callback   csync_s::progress_cb
struct csync_progressinfo_scsync_s::progress_info
struct {
   uid_t   csync_s::euid
   uid_t   uid
csync_s::pwd
int   csync_s::read_from_db
struct {
   c_list_t *   csync_s::ignored_cleanup
   c_list_t *   csync_s::list
   int   csync_s::read_from_db
   c_rbtree_t *   csync_s::tree
   enum csync_replica_e   csync_s::type
   char *   uri
csync_s::remote
bool   csync_s::remote_push_atomar
void * csync_s::rename_info
enum csync_replica_e csync_s::replica
int csync_file_stat_s::should_update_md5
int should_update_md5
int64_t size
int64_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
int   csync_s::timeout
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
int type
uid_t csync_file_stat_s::uid
uid_t uid
int   csync_s::unix_extensions
void *   csync_s::userdata
void * _csync_treewalk_context_s::userdata
bool   csync_s::with_conflict_copys

Define Documentation

#define CSYNC_STATUS_DONE
#define CSYNC_STATUS_INIT   1 << 0

Definition at line 68 of file csync_private.h.

#define CSYNC_STATUS_PROPAGATE   1 << 3

Definition at line 71 of file csync_private.h.

#define CSYNC_STATUS_RECONCILE   1 << 2

Definition at line 70 of file csync_private.h.

#define CSYNC_STATUS_UPDATE   1 << 1

Definition at line 69 of file csync_private.h.

#define MAX_DEPTH   50

How deep to scan directories.

Definition at line 54 of file csync_private.h.

#define MAX_TIME_DIFFERENCE   10

Maximum time difference between two replicas in seconds.

Definition at line 59 of file csync_private.h.

#define MAX_XFER_BUF_SIZE   (16 * 1024)

Maximum size of a buffer for transfer.

Definition at line 65 of file csync_private.h.


Typedef Documentation

Definition at line 216 of file csync_private.h.

Definition at line 83 of file csync_private.h.


Enumeration Type Documentation

Enumerator:
LOCAL_REPLICA 
REMOTE_REPLICA 

Definition at line 78 of file csync_private.h.


Function Documentation

struct csync_file_stat_s __attribute__ ( (packed)  )
void csync_file_stat_free ( csync_file_stat_t st)

Variable Documentation

struct _csync_treewalk_context_s __attribute__
volatile int csync_s::abort [inherited]

Definition at line 168 of file csync_private.h.

Definition at line 125 of file csync_private.h.

csync_vio_capabilities_t { ... } ::capabilities [inherited]

Definition at line 125 of file csync_private.h.

Definition at line 187 of file csync_private.h.

Definition at line 214 of file csync_private.h.

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

Definition at line 133 of file csync_private.h.

char* csync_s::config_dir [inherited]

Definition at line 133 of file csync_private.h.

Definition at line 154 of file csync_private.h.

Definition at line 161 of file csync_private.h.

sqlite3* csync_s::db [inherited]

Definition at line 99 of file csync_private.h.

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

Definition at line 99 of file csync_private.h.

char* csync_file_stat_s::destpath [inherited]

Definition at line 190 of file csync_private.h.

Referenced by csync_rename_s::renameop::operator<().

char* destpath

Definition at line 217 of file csync_private.h.

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

Definition at line 101 of file csync_private.h.

int csync_s::disabled [inherited]

Definition at line 101 of file csync_private.h.

Definition at line 164 of file csync_private.h.

char* csync_s::error_string [inherited]

Definition at line 165 of file csync_private.h.

const char* csync_file_stat_s::error_string [inherited]

Definition at line 192 of file csync_private.h.

const char* error_string

Definition at line 219 of file csync_private.h.

uid_t csync_s::euid [inherited]

Definition at line 146 of file csync_private.h.

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

Definition at line 146 of file csync_private.h.

Definition at line 95 of file csync_private.h.

int csync_s::exists [inherited]

Definition at line 100 of file csync_private.h.

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

Definition at line 100 of file csync_private.h.

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

Definition at line 98 of file csync_private.h.

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

Definition at line 124 of file csync_private.h.

Definition at line 124 of file csync_private.h.

gid_t csync_file_stat_s::gid [inherited]

Definition at line 183 of file csync_private.h.

gid_t gid

Definition at line 210 of file csync_private.h.

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

Definition at line 122 of file csync_private.h.

Definition at line 109 of file csync_private.h.

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

Definition at line 109 of file csync_private.h.

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

Definition at line 118 of file csync_private.h.

uint64_t csync_file_stat_s::inode [inherited]

Definition at line 181 of file csync_private.h.

uint64_t inode

Definition at line 208 of file csync_private.h.

Definition at line 194 of file csync_private.h.

Referenced by _csync_rename_record().

Definition at line 221 of file csync_private.h.

Definition at line 213 of file csync_private.h.

c_list_t* csync_s::list [inherited]

Definition at line 107 of file csync_private.h.

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

Definition at line 107 of file csync_private.h.

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

Definition at line 115 of file csync_private.h.

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

Definition at line 135 of file csync_private.h.

bool { ... } ::local_only_mode [inherited]

Definition at line 135 of file csync_private.h.

csync_log_callback { ... } ::log_function [inherited]

Definition at line 91 of file csync_private.h.

Definition at line 91 of file csync_private.h.

int csync_s::log_verbosity [inherited]

Definition at line 137 of file csync_private.h.

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

Definition at line 137 of file csync_private.h.

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

Definition at line 129 of file csync_private.h.

Definition at line 130 of file csync_private.h.

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

Definition at line 130 of file csync_private.h.

const char* csync_file_stat_s::md5 [inherited]

Definition at line 191 of file csync_private.h.

const char* md5

Definition at line 218 of file csync_private.h.

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

Definition at line 123 of file csync_private.h.

Definition at line 123 of file csync_private.h.

mode_t csync_file_stat_s::mode [inherited]

Definition at line 184 of file csync_private.h.

mode_t mode

Definition at line 211 of file csync_private.h.

time_t csync_file_stat_s::modtime [inherited]

Definition at line 178 of file csync_private.h.

time_t modtime

Definition at line 205 of file csync_private.h.

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

Definition at line 212 of file csync_private.h.

int csync_file_stat_s::nlink [inherited]

Definition at line 185 of file csync_private.h.

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

Definition at line 149 of file csync_private.h.

char path[1]

Definition at line 222 of file csync_private.h.

char csync_file_stat_s::path[1] [inherited]

Definition at line 195 of file csync_private.h.

size_t pathlen

Definition at line 207 of file csync_private.h.

size_t csync_file_stat_s::pathlen [inherited]

Definition at line 180 of file csync_private.h.

csync_progress_callback { ... } ::progress_cb [inherited]

Definition at line 92 of file csync_private.h.

Definition at line 92 of file csync_private.h.

Definition at line 151 of file csync_private.h.

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

Definition at line 117 of file csync_private.h.

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

Definition at line 117 of file csync_private.h.

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

Referenced by csync_propagate_renames().

bool csync_s::remote_push_atomar [inherited]

Definition at line 136 of file csync_private.h.

bool { ... } ::remote_push_atomar [inherited]

Definition at line 136 of file csync_private.h.

void* csync_s::rename_info [inherited]

Definition at line 169 of file csync_private.h.

Referenced by csync_rename_destroy().

Definition at line 157 of file csync_private.h.

Definition at line 215 of file csync_private.h.

Definition at line 188 of file csync_private.h.

int64_t size

Definition at line 206 of file csync_private.h.

int64_t csync_file_stat_s::size [inherited]

Definition at line 179 of file csync_private.h.

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

Definition at line 167 of file csync_private.h.

Definition at line 131 of file csync_private.h.

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

Definition at line 131 of file csync_private.h.

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

Definition at line 138 of file csync_private.h.

int csync_s::timeout [inherited]

Definition at line 138 of file csync_private.h.

c_rbtree_t* csync_s::tree [inherited]

Definition at line 106 of file csync_private.h.

Referenced by csync_propagate_renames().

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

Definition at line 114 of file csync_private.h.

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

Definition at line 106 of file csync_private.h.

int type

Definition at line 213 of file csync_private.h.

int csync_file_stat_s::type [inherited]

Definition at line 186 of file csync_private.h.

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

Definition at line 108 of file csync_private.h.

enum csync_replica_e csync_s::type [inherited]

Definition at line 108 of file csync_private.h.

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

Definition at line 116 of file csync_private.h.

uid_t uid

Definition at line 209 of file csync_private.h.

uid_t csync_file_stat_s::uid [inherited]

Definition at line 182 of file csync_private.h.

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

Definition at line 145 of file csync_private.h.

int csync_s::unix_extensions [inherited]

Definition at line 132 of file csync_private.h.

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

Definition at line 132 of file csync_private.h.

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

Definition at line 113 of file csync_private.h.

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

Definition at line 105 of file csync_private.h.

void* csync_s::userdata [inherited]

Definition at line 93 of file csync_private.h.

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

Definition at line 93 of file csync_private.h.

Definition at line 214 of file csync_private.h.

bool { ... } ::with_conflict_copys [inherited]

Definition at line 134 of file csync_private.h.

bool csync_s::with_conflict_copys [inherited]

Definition at line 134 of file csync_private.h.