summaryrefslogtreecommitdiff
path: root/dbhandling.h
diff options
context:
space:
mode:
Diffstat (limited to 'dbhandling.h')
-rw-r--r--dbhandling.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/dbhandling.h b/dbhandling.h
deleted file mode 100644
index fd21579..0000000
--- a/dbhandling.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef _DBHANDLING_
-#define _DBHANDLING_
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sqlite3.h>
-
-#include "enum.h"
-
-#define MAX_NAME_LEN 128
-#define MAX_AUTHOR_LEN 64
-#define MAX_VALUE_LEN 16
-#define MAX_STATUS_LEN 16
-
-typedef struct {
- char *name;
- char *author;
- char *value;
- char *status;
-} entry_t;
-
-
-void exit_with_error(sqlite3 *db, const char *msg);
-void select_from_table(sqlite3 *db, args_e target, entry_t *entry);
-void update_entry(sqlite3 *db, args_e target, entry_t *entry);
-void add_entry(sqlite3 *db, args_e target, entry_t *entry);
-
-#endif