summaryrefslogtreecommitdiffstats
path: root/src/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
new file mode 100644
index 0000000..8470e6f
--- /dev/null
+++ b/src/db.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright © 2020 rsiddharth <s@ricketyspace.net>
+ */
+
+#ifndef _db_h
+#define _db_h
+
+#include <gdbm.h>
+#include <dbg.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+
+int db_init();
+int db_store(char *key, char *value);
+char *db_load(char *key);
+
+#endif
+