doc
Functions
csync statedb internals
csync internal API

Functions

int csync_dbtree_closedir (CSYNC *ctx, csync_vio_method_handle_t *dhandle)
 
csync_vio_method_handle_tcsync_dbtree_opendir (CSYNC *ctx, const char *name)
 
csync_vio_file_stat_tcsync_dbtree_readdir (CSYNC *ctx, csync_vio_method_handle_t *dhandle)
 

Detailed Description

Function Documentation

int csync_dbtree_closedir ( CSYNC ctx,
csync_vio_method_handle_t dhandle 
)
csync_vio_method_handle_t* csync_dbtree_opendir ( CSYNC ctx,
const char *  name 
)

Open a directory based on the statedb.

This function reads the list of files within a directory from statedb and builds up a list in memory.

Parameters
ctxThe csync context.
nameThe directory name.
Returns
0 on success, less than 0 if an error occured with errno set.
csync_vio_file_stat_t* csync_dbtree_readdir ( CSYNC ctx,
csync_vio_method_handle_t dhandle 
)