From 041f7e889909bc9bc23f54c7ff8521e2dfe82183 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 11 Apr 2025 16:59:21 +0200 Subject: separated files and changed if-else to switch-case in main --- src/dbhandling.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/dbhandling.h (limited to 'src/dbhandling.h') diff --git a/src/dbhandling.h b/src/dbhandling.h new file mode 100644 index 0000000..4f09852 --- /dev/null +++ b/src/dbhandling.h @@ -0,0 +1,15 @@ +#ifndef _DBHANDLING_ +#define _DBHANDLING_ + +#include +#include +#include +#include +#include + +void exit_with_error(sqlite3 *db, const char *msg); +void select_from_table(sqlite3 *db, char *tblName, char *qp); +void update_entry(sqlite3 *db, char *tblName, char *qp, char *value, char *status); +void add_entry(sqlite3 *db, char *tblName, char *name, char *value, char *status); + +#endif -- cgit v1.2.3