aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/session.h12
-rw-r--r--include/wlr/session/interface.h5
2 files changed, 9 insertions, 8 deletions
diff --git a/include/wlr/session.h b/include/wlr/session.h
index 4a5b2174..52dbf8ca 100644
--- a/include/wlr/session.h
+++ b/include/wlr/session.h
@@ -9,16 +9,18 @@ struct session_impl;
struct wlr_session {
const struct session_impl *impl;
-
- bool active;
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 *restrict session,
- const char *restrict path);
+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, int vt);
+bool wlr_session_change_vt(struct wlr_session *session, unsigned vt);
#endif
diff --git a/include/wlr/session/interface.h b/include/wlr/session/interface.h
index f75acfa4..4938110d 100644
--- a/include/wlr/session/interface.h
+++ b/include/wlr/session/interface.h
@@ -6,10 +6,9 @@
struct session_impl {
struct wlr_session *(*start)(struct wl_display *disp);
void (*finish)(struct wlr_session *session);
- int (*open)(struct wlr_session *restrict session,
- const char *restrict path);
+ int (*open)(struct wlr_session *session, const char *path);
void (*close)(struct wlr_session *session, int fd);
- bool (*change_vt)(struct wlr_session *session, int vt);
+ bool (*change_vt)(struct wlr_session *session, unsigned vt);
};
#endif