aboutsummaryrefslogtreecommitdiff
path: root/include/npassd/service.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/npassd/service.h')
-rw-r--r--include/npassd/service.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/npassd/service.h b/include/npassd/service.h
new file mode 100644
index 0000000..e1a42fc
--- /dev/null
+++ b/include/npassd/service.h
@@ -0,0 +1,14 @@
+#include <systemd/sd-bus.h>
+
+#include "npassd/session.h"
+
+#define MAX_SESSION 128
+
+struct service {
+ sd_bus *bus;
+ sd_bus_slot *slot;
+ struct session session[MAX_SESSION];
+};
+
+int service_init(sd_bus *bus, struct service *service);
+void service_free(struct service *service);