From 85549c89b0241ad22d102aaf19f037a7c0ebce5b Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 11 Apr 2025 20:21:00 +0200 Subject: changed tblName to an enum; refactored enums into their own file --- dbhandling.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dbhandling.h') diff --git a/dbhandling.h b/dbhandling.h index 4f09852..df54eba 100644 --- a/dbhandling.h +++ b/dbhandling.h @@ -7,9 +7,11 @@ #include #include +#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 -- cgit v1.2.3