aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/session.h
blob: 52dbf8cab1983d806ca8489e86142617982614ad (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
26
#ifndef WLR_SESSION_H
#define WLR_SESSION_H

#include <stdbool.h>
#include <wayland-server.h>
#include <sys/types.h>

struct session_impl;

struct wlr_session {
	const struct session_impl *impl;
	struct wl_signal session_signal;
	bool active;

	int drm_fd;
	unsigned vtnr;
	char seat[8];
};

struct wlr_session *wlr_session_start(struct wl_display *disp);
void wlr_session_finish(struct wlr_session *session);
int wlr_session_open_file(struct wlr_session *session, const char *path);
void wlr_session_close_file(struct wlr_session *session, int fd);
bool wlr_session_change_vt(struct wlr_session *session, unsigned vt);

#endif