diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-16 00:04:51 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-16 00:04:51 +0200 |
commit | 97e14c73be6684259e235a92cc575ea39a04fc7e (patch) | |
tree | 6aa652453a118b9863687ba80b5c3c3c425ed1cd /src/dblayer.h | |
parent | 967ad7898243e083f485a03414fce0018bfce881 (diff) | |
download | ck-97e14c73be6684259e235a92cc575ea39a04fc7e.tar.gz ck-97e14c73be6684259e235a92cc575ea39a04fc7e.tar.bz2 ck-97e14c73be6684259e235a92cc575ea39a04fc7e.zip |
[ckdb] simplify open_DB and make_DB
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 */ |