From 21c92f735ff52ff98b50f7f9d8e8ab9c46dad557 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sat, 17 Nov 2018 19:49:52 +0200 Subject: Finish restructure and simplify include graph --- src/dblayer.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/dblayer.h') 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 #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 */ -- cgit v1.2.3