2017-05-01 05:20:48 +02:00
|
|
|
#ifndef SESSION_H
|
|
|
|
#define SESSION_H
|
|
|
|
|
|
|
|
#include <systemd/sd-bus.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
struct wlr_session {
|
|
|
|
sd_bus *bus;
|
|
|
|
|
2017-05-01 05:20:48 +02:00
|
|
|
char *id;
|
|
|
|
char *path;
|
|
|
|
char *seat;
|
|
|
|
};
|
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
bool wlr_session_start(struct wlr_session *session);
|
|
|
|
void wlr_session_end(struct wlr_session *session);
|
2017-05-01 05:20:48 +02:00
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
int wlr_session_take_device(struct wlr_session *restrict session,
|
|
|
|
const char *restrict path,
|
|
|
|
bool *restrict paused_out);
|
2017-05-01 05:20:48 +02:00
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
void wlr_session_release_device(struct wlr_session *session, int fd);
|
2017-05-01 05:20:48 +02:00
|
|
|
|
|
|
|
#endif
|