diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-17 19:49:52 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-17 19:49:52 +0200 |
commit | 21c92f735ff52ff98b50f7f9d8e8ab9c46dad557 (patch) | |
tree | 3b244ec29c3b3ad96fc141461bff4d141a36227a /src/dblayer.h | |
parent | 8eb4df24eb30353bea82268440396e50ed8b1bbc (diff) | |
download | ck-21c92f735ff52ff98b50f7f9d8e8ab9c46dad557.tar.gz ck-21c92f735ff52ff98b50f7f9d8e8ab9c46dad557.tar.bz2 ck-21c92f735ff52ff98b50f7f9d8e8ab9c46dad557.zip |
Finish restructure and simplify include graph
Diffstat (limited to 'src/dblayer.h')
-rw-r--r-- | src/dblayer.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/dblayer.h b/src/dblayer.h index c830a94..08299f1 100644 --- a/src/dblayer.h +++ b/src/dblayer.h @@ -18,6 +18,7 @@ #include <sqlite3.h> #include "actions.h" +#include "queries.h" enum SqlErrors { SQL_NO_ERR = 0, @@ -62,27 +63,8 @@ int get_pid_from_cid(DB *db, int cid); void print_suggested_configs(DB *db, const char *pName); -/* init.c */ -void init_make_tables(DB *db); - -/* add.c */ -/* Returns 1 in error, 0 otherwise */ -int add_transaction_try(DB *db, const AddOpt * const opt, const char *home); - -/* edit.c */ -int edit_get_prime_config_from_program(DB *db, char *pName, char *ret, int *secret); -int edit_get_config(DB *db, const char *pName, char *ret, const char *cName, int *sec); - /* list.c */ int list_get_paths(DB *db, cklist *ckl, int bName, int attr, const char *home); int list_get_programs(DB *db, cklist *ckl); -int list_get_path_program_tree(DB *db, cklist *ckl, int bName, int attr, const char *home); - -/* delete.c */ -int del_transaction_try(DB *db, const char *pName, const char *cBaseName); - -/* restore.c */ -int restore_configs_exists(DB *db, Conf *conf, const char *pName, cklist *from, cklist *to); -int restore_all_exist(DB *db, Conf *conf, cklist *from, cklist *to); #endif /* DBLAYER_H */ |