32 #ifndef _CSYNC_STATEDB_H
33 #define _CSYNC_STATEDB_H
int csync_statedb_write_progressinfo(CSYNC *ctx, csync_progressinfo_t *pi)
int csync_statedb_create_tables(CSYNC *ctx)
char * csync_statedb_get_uniqId(CSYNC *ctx, uint64_t jHash, csync_vio_file_stat_t *buf)
csync_file_stat_t * csync_statedb_get_stat_by_inode(CSYNC *ctx, uint64_t inode)
Private interface of csync.
int csync_statedb_close(CSYNC *ctx, const char *statedb, int jwritten)
struct csync_progressinfo_s * next
csync_progressinfo_t * csync_statedb_get_progressinfo(CSYNC *ctx, uint64_t phash, uint64_t modtime, const char *md5)
int csync_statedb_load(CSYNC *ctx, const char *statedb)
Load the statedb.
Structure for a stringlist.
csync_file_stat_t * csync_statedb_get_stat_by_hash(CSYNC *ctx, uint64_t phash)
struct csync_progressinfo_s csync_progressinfo_t
int csync_statedb_insert(CSYNC *ctx, const char *statement)
Insert function for the statedb.
void csync_set_statedb_exists(CSYNC *ctx, int val)
int csync_statedb_drop_tables(CSYNC *ctx)
int csync_statedb_insert_metadata(CSYNC *ctx)
void csync_statedb_free_progressinfo(csync_progressinfo_t *pi)
c_strlist_t * csync_statedb_get_below_path(CSYNC *ctx, const char *path)
Query all files metadata inside and below a path.
int csync_statedb_write(CSYNC *ctx)
int csync_get_statedb_exists(CSYNC *ctx)
c_strlist_t * csync_statedb_query(CSYNC *ctx, const char *statement)
A generic statedb query.