aboutsummaryrefslogtreecommitdiff
path: root/include/npassd/service.h
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-26 22:48:10 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-27 10:59:14 +0530
commit06e3f1885fc112093f867cd5d7a8b163ef28650c (patch)
treee60eb7e80f76d45f294131ab8de2d9ce1f0c1657 /include/npassd/service.h
parent8ce5f52567f486dbad1eb3f91383f62395df7581 (diff)
npassd/session: refactor
- mak use of list(3)
Diffstat (limited to 'include/npassd/service.h')
-rw-r--r--include/npassd/service.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/npassd/service.h b/include/npassd/service.h
index 6219dd6..b7c71af 100644
--- a/include/npassd/service.h
+++ b/include/npassd/service.h
@@ -1,4 +1,5 @@
#include <sqlite3.h>
+#include <sys/queue.h>
#include <systemd/sd-bus.h>
#include "npassd/session.h"
@@ -8,8 +9,9 @@
struct service {
sd_bus *bus;
sd_bus_slot *slot;
+
struct sqlite3 *db;
- struct session session[MAX_SESSION];
+ struct session_dlist sessions;
};
int service_init(sd_bus *bus, struct service *service);