aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/session.h
blob: 4dfb026c26263788e4faf8e9a5ef794cba8cd5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef WLR_SESSION_H
#define WLR_SESSION_H

#include <wayland-server.h>

struct session_interface;

struct wlr_session {
	const struct session_interface *iface;

	struct wl_signal device_paused;
	struct wl_signal device_resumed;
};

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 *restrict session,
	const char *restrict path);
void wlr_session_close_file(struct wlr_session *session, int fd);
bool wlr_session_change_vt(struct wlr_session *session, int vt);

#endif