diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-22 18:07:50 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-22 18:07:50 +0300 |
commit | 225600aadffc6fdb188fef230cdab67e1242e3a3 (patch) | |
tree | 026d4017b40906a0aa3b2044cf6b52049a053a1c /src/dblayer.h | |
parent | eeca7f0151d85d563d1db229e3b7ca936323ffa2 (diff) | |
download | ck-225600aadffc6fdb188fef230cdab67e1242e3a3.tar.gz ck-225600aadffc6fdb188fef230cdab67e1242e3a3.tar.bz2 ck-225600aadffc6fdb188fef230cdab67e1242e3a3.zip |
Add almost done, opt parsing remains
Diffstat (limited to 'src/dblayer.h')
-rw-r--r-- | src/dblayer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dblayer.h b/src/dblayer.h index de73aac..abeef83 100644 --- a/src/dblayer.h +++ b/src/dblayer.h @@ -24,7 +24,8 @@ enum SqlErrors { SQL_NO_ERR = 0, SQL_ERR_NO_DB_FILE, SQL_ERR_NO_TABLES, - SQL_ERR_SQLITE + SQL_ERR_SQLITE, + SQL_CONFIG_PATH_EXISTS }; typedef struct DBstruct DB; @@ -53,5 +54,9 @@ extern DB init_make_DB(const UserOpt *opt); /* add */ /*******/ +extern int add_transaction_begin(DB *db, const char *progName, + const char* confPath, const int secret, + const int prime); extern int add_insert_program_to_db(DB *db, const char * name); -#endif /* DBLAEYR_H */ +extern int add_insert_config_to_db(DB *db, const int pid, const char *path, const int secret, const int prime); +#endif /* DBLAYER_H */ |