From 97e14c73be6684259e235a92cc575ea39a04fc7e Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 16 Nov 2018 00:04:51 +0200 Subject: [ckdb] simplify open_DB and make_DB --- src/dblayer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dblayer.h') 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 */ -- cgit v1.2.3