mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-29 02:22:20 +00:00
26 lines
427 B
C
26 lines
427 B
C
#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
|