summaryrefslogtreecommitdiff
path: root/dbhandling.h
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-04-11 20:21:00 +0200
committeryuzu-eva <cafebabe@disroot.org>2025-04-11 20:21:00 +0200
commit85549c89b0241ad22d102aaf19f037a7c0ebce5b (patch)
treefe58dffd0a97bfdf924c3bfcfadd2eef3d6614fa /dbhandling.h
parentb81023a76e479bc417c523905a34266489b55d7f (diff)
changed tblName to an enum; refactored enums into their own file
Diffstat (limited to 'dbhandling.h')
-rw-r--r--dbhandling.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/dbhandling.h b/dbhandling.h
index 4f09852..df54eba 100644
--- a/dbhandling.h
+++ b/dbhandling.h
@@ -7,9 +7,11 @@
#include <unistd.h>
#include <sqlite3.h>
+#include "enum.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);
+void select_from_table(sqlite3 *db, target_e target, char *qp);
+void update_entry(sqlite3 *db, target_e target, char *qp, char *value, char *status);
+void add_entry(sqlite3 *db, target_e target, char *name, char *value, char *status);
#endif