diff options
Diffstat (limited to 'src/dblayer.h')
-rw-r--r-- | src/dblayer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dblayer.h b/src/dblayer.h index 0d012bb..2e42ad0 100644 --- a/src/dblayer.h +++ b/src/dblayer.h @@ -37,9 +37,9 @@ struct DBstruct { int db_exists(const UserOpt *opt); -/* Open the db file. On fail return null pointer to db +/* Open the db file. On fail return null pointer to db->ptr * and the corresponding SQL error (NO_DB_FILE | NO_TABLES)*/ -DB open_DB(const UserOpt *opt); +int open_DB(DB *db, const UserOpt *opt); void close_DB(DB *db); int program_exists(DB *db, const char *pName); @@ -51,7 +51,7 @@ int get_program_paths(DB *db, cklist *ckl, const char* pName, int bName, int att /* Create the tables required for the ckdb */ void init_make_tables(DB *db); -DB init_make_DB(const UserOpt *opt); +int init_make_DB(DB *db, const UserOpt *opt); /*******/ /* add */ |