20 #ifndef __C_CREATEREPOLIB_SQLITE_H__
21 #define __C_CREATEREPOLIB_SQLITE_H__
34 #define CR_SQLITE_CACHE_DBVERSION 10
36 #define CR_DB_ERROR cr_db_error_quark()
37 GQuark cr_db_error_quark (
void);
39 typedef struct _DbPrimaryStatements * cr_DbPrimaryStatements;
40 typedef struct _DbFilelistsStatements * cr_DbFilelistsStatements;
41 typedef struct _DbOtherStatements * cr_DbOtherStatements;
62 #define cr_open_primary_db(PATH, ERR) cr_open_db(PATH, CR_DB_PRIMARY, ERR)
74 #define cr_open_filelists_db(PATH, ERR) cr_open_db(PATH, CR_DB_FILELISTS, ERR)
87 #define cr_open_other_db(PATH, ERR) cr_open_db(PATH, CR_DB_OTHER, ERR)
97 #define cr_close_primary_db(DB, ERR) cr_close_db(DB, CR_DB_PRIMARY, ERR)
107 #define cr_close_filelists_db(DB, ERR) cr_close_db(DB, CR_DB_FILELISTS, ERR)
117 #define cr_close_other_db(DB, ERR) cr_close_db(DB, CR_DB_OTHER, ERR)