diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/npassd/db.h | 3 | ||||
-rw-r--r-- | include/npassd/service.h | 2 |
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]; }; |