blob: c21900e9a0b3101c51379c48790f00a9074e9415 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef SESSION_H
#define SESSION_H
#include <systemd/sd-bus.h>
#include <stdbool.h>
struct otd_session {
char *id;
char *path;
char *seat;
sd_bus *bus;
};
struct otd;
bool otd_new_session(struct otd *otd);
void otd_close_session(struct otd *otd);
int take_device(struct otd *restrict otd,
const char *restrict path,
bool *restrict paused_out);
void release_device(struct otd *otd, int fd);
#endif
|