diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-04-11 16:59:21 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-04-11 16:59:21 +0200 |
| commit | 041f7e889909bc9bc23f54c7ff8521e2dfe82183 (patch) | |
| tree | 3b6aefae7c448ba193c8b476222a8ecf9731e685 /src/dbhandling.h | |
| parent | bb3704ee0307691ca33aba975e7d0000909e13de (diff) | |
separated files and changed if-else to switch-case in main
Diffstat (limited to 'src/dbhandling.h')
| -rw-r--r-- | src/dbhandling.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <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 |
