blob: 92a833e609bf03e24402b32d1874ff4eea3731db (
plain) (
tree)
|
|
#include <sqlite3.h>
#include <sys/queue.h>
#include <systemd/sd-bus.h>
#include "npassd/collection.h"
#include "npassd/session.h"
#define MAX_SESSION 128
struct service {
sd_bus *bus;
sd_bus_slot *slot;
struct sqlite3 *db;
struct session_dlist sessions;
struct collection_dlist collections;
};
int service_init(sd_bus *bus, struct service *service);
void service_free(struct service *service);
|