33 #ifndef _CSYNC_STATEDB_H 34 #define _CSYNC_STATEDB_H int csync_statedb_load(CSYNC *ctx, const char *statedb, sqlite3 **pdb)
Load the statedb.
csync_file_stat_t * csync_statedb_get_stat_by_inode(sqlite3 *db, ino_t inode)
c_strlist_t * csync_statedb_query(sqlite3 *db, const char *statement)
A generic statedb query.
Private interface of csync.
int csync_statedb_write(CSYNC *ctx, sqlite3 *db)
Structure for a stringlist.
csync_file_stat_t * csync_statedb_get_stat_by_hash(sqlite3 *db, uint64_t phash)
int csync_statedb_insert(sqlite3 *db, const char *statement)
Insert function for the statedb.
void csync_set_statedb_exists(CSYNC *ctx, int val)
int csync_statedb_insert_metadata(CSYNC *ctx, sqlite3 *db)
int csync_statedb_close(const char *statedb, sqlite3 *db, int jwritten)
int csync_statedb_create_tables(sqlite3 *db)
int csync_get_statedb_exists(CSYNC *ctx)
int csync_statedb_drop_tables(sqlite3 *db)