|
doc
|
Functions | |
| int | csync_get_statedb_exists (CSYNC *ctx) |
| void | csync_set_statedb_exists (CSYNC *ctx, int val) |
| int | csync_statedb_close (const char *statedb, sqlite3 *db, int jwritten) |
| int | csync_statedb_create_tables (sqlite3 *db) |
| int | csync_statedb_drop_tables (sqlite3 *db) |
| csync_file_stat_t * | csync_statedb_get_stat_by_hash (sqlite3 *db, uint64_t phash) |
| csync_file_stat_t * | csync_statedb_get_stat_by_inode (sqlite3 *db, ino_t inode) |
| int | csync_statedb_insert (sqlite3 *db, const char *statement) |
| int | csync_statedb_insert_metadata (CSYNC *ctx, sqlite3 *db) |
| int | csync_statedb_load (CSYNC *ctx, const char *statedb, sqlite3 **pdb) |
| c_strlist_t * | csync_statedb_query (sqlite3 *db, const char *statement) |
| int | csync_statedb_write (CSYNC *ctx, sqlite3 *db) |
| int csync_get_statedb_exists | ( | CSYNC * | ctx | ) |
References csync_get_statedb_exists().
Referenced by csync_get_statedb_exists().
| void csync_set_statedb_exists | ( | CSYNC * | ctx, |
| int | val ) |
References csync_set_statedb_exists().
Referenced by csync_set_statedb_exists().
| int csync_statedb_close | ( | const char * | statedb, |
| sqlite3 * | db, | ||
| int | jwritten ) |
References csync_statedb_close().
Referenced by csync_statedb_close().
| int csync_statedb_create_tables | ( | sqlite3 * | db | ) |
References csync_statedb_create_tables().
Referenced by csync_statedb_create_tables().
| int csync_statedb_drop_tables | ( | sqlite3 * | db | ) |
References csync_statedb_drop_tables().
Referenced by csync_statedb_drop_tables().
| csync_file_stat_t * csync_statedb_get_stat_by_hash | ( | sqlite3 * | db, |
| uint64_t | phash ) |
References csync_statedb_get_stat_by_hash(), and phash.
Referenced by csync_statedb_get_stat_by_hash().
| csync_file_stat_t * csync_statedb_get_stat_by_inode | ( | sqlite3 * | db, |
| ino_t | inode ) |
References csync_statedb_get_stat_by_inode(), and inode.
Referenced by csync_statedb_get_stat_by_inode().
| int csync_statedb_insert | ( | sqlite3 * | db, |
| const char * | statement ) |
Insert function for the statedb.
| ctx | The csync context. |
| statement | The SQL statement to insert into the statedb. |
References csync_statedb_insert().
Referenced by csync_statedb_insert().
| int csync_statedb_insert_metadata | ( | CSYNC * | ctx, |
| sqlite3 * | db ) |
References csync_statedb_insert_metadata().
Referenced by csync_statedb_insert_metadata().
| int csync_statedb_load | ( | CSYNC * | ctx, |
| const char * | statedb, | ||
| sqlite3 ** | pdb ) |
Load the statedb.
This function tries to load the statedb. If it doesn't exists it creates the sqlite3 database, but doesn't create the tables. This will be done when csync gets destroyed.
| ctx | The csync context. |
| statedb | Path to the statedb file (sqlite3 db). |
References csync_statedb_load().
Referenced by csync_statedb_load().
| c_strlist_t * csync_statedb_query | ( | sqlite3 * | db, |
| const char * | statement ) |
A generic statedb query.
| ctx | The csync context. |
| statement | The SQL statement to execute |
References csync_statedb_query().
Referenced by csync_statedb_query().
| int csync_statedb_write | ( | CSYNC * | ctx, |
| sqlite3 * | db ) |
References csync_statedb_write().
Referenced by csync_statedb_write().