aboutsummaryrefslogtreecommitdiff
path: root/include/npassd/session.h
blob: 48d4fed826d8322b413a83abf857b86d878491f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdbool.h>
#include <sys/queue.h>
#include <systemd/sd-bus.h>

#include "npassd/common.h"

#define SESSION_IFACE "org.freedesktop.Secret.Session"

struct session {
	sd_bus_slot *slot, *slot_singal;
	char *owner, *path;

	LIST_ENTRY(session) dlist;
};

LIST_HEAD(session_dlist, session);

void session_free(struct session *s);
int session_new(sd_bus *bus, struct session **session, const char *owner);