summaryrefslogtreecommitdiff
path: root/dbhandling.h
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-04-11 17:18:52 +0200
committeryuzu-eva <cafebabe@disroot.org>2025-04-11 17:18:52 +0200
commita56994fbaea532e2d2314aeeb917c30031c29f08 (patch)
treeab3bd10b0da575e3c1631a973a12b7548ec079b5 /dbhandling.h
parent041f7e889909bc9bc23f54c7ff8521e2dfe82183 (diff)
re-organized project structure (no src folder)
Diffstat (limited to 'dbhandling.h')
-rw-r--r--dbhandling.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dbhandling.h b/dbhandling.h
new file mode 100644
index 0000000..4f09852
--- /dev/null
+++ b/dbhandling.h
@@ -0,0 +1,15 @@
+#ifndef _DBHANDLING_
+#define _DBHANDLING_
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <sqlite3.h>
+
+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