From 225600aadffc6fdb188fef230cdab67e1242e3a3 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 22 Apr 2018 18:07:50 +0300 Subject: Add almost done, opt parsing remains --- src/dblayer.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/dblayer.h') 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 */ -- cgit v1.2.3