wlroots/include/wlr/session.h

27 lines
628 B
C
Raw Normal View History

2017-05-03 02:11:22 +00:00
#ifndef WLR_SESSION_H
#define WLR_SESSION_H
#include <stdbool.h>
2017-05-13 11:56:40 +00:00
#include <wayland-server.h>
2017-05-14 01:07:34 +00:00
#include <sys/types.h>
2017-05-13 11:56:40 +00:00
2017-06-04 23:30:37 +00:00
struct session_impl;
2017-05-13 13:12:47 +00:00
struct wlr_session {
2017-06-04 23:30:37 +00:00
const struct session_impl *impl;
struct wl_signal session_signal;
2017-07-09 05:53:13 +00:00
bool active;
int drm_fd;
unsigned vtnr;
char seat[8];
2017-05-13 13:12:47 +00:00
};
2017-05-03 02:11:22 +00:00
2017-05-13 11:56:40 +00:00
struct wlr_session *wlr_session_start(struct wl_display *disp);
2017-05-03 02:11:22 +00:00
void wlr_session_finish(struct wlr_session *session);
2017-07-09 05:53:13 +00:00
int wlr_session_open_file(struct wlr_session *session, const char *path);
2017-05-03 02:11:22 +00:00
void wlr_session_close_file(struct wlr_session *session, int fd);
2017-07-09 05:53:13 +00:00
bool wlr_session_change_vt(struct wlr_session *session, unsigned vt);
2017-05-03 02:11:22 +00:00
#endif