aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-22 22:23:29 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-22 22:24:45 +0530
commitb33130cd384e531cb6dfbeefbb94f8f20bc967c6 (patch)
tree479d703c07bca440a30dc73147b872d7ebdbf55f /include
parent5c1279fe17f23ec1f407809567b8a752d3be7f09 (diff)
npassd/db: init
Diffstat (limited to 'include')
-rw-r--r--include/npassd/db.h3
-rw-r--r--include/npassd/service.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/npassd/db.h b/include/npassd/db.h
new file mode 100644
index 0000000..d5166a4
--- /dev/null
+++ b/include/npassd/db.h
@@ -0,0 +1,3 @@
+#include <sqlite3.h>
+
+int db_init(const char *store_path, struct sqlite3 **db);
diff --git a/include/npassd/service.h b/include/npassd/service.h
index e1a42fc..6219dd6 100644
--- a/include/npassd/service.h
+++ b/include/npassd/service.h
@@ -1,3 +1,4 @@
+#include <sqlite3.h>
#include <systemd/sd-bus.h>
#include "npassd/session.h"
@@ -7,6 +8,7 @@
struct service {
sd_bus *bus;
sd_bus_slot *slot;
+ struct sqlite3 *db;
struct session session[MAX_SESSION];
};