aboutsummaryrefslogtreecommitdiffstats
path: root/src/dblayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dblayer.h')
-rw-r--r--src/dblayer.h20
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 */