diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-07-09 17:53:13 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-07-09 17:53:13 +1200 |
commit | bd5bca52830e78364ab48efb0f6e4d0f1d9773db (patch) | |
tree | a59d0415d2541e3317ea39d6eba61c031e16bf3f /include | |
parent | f413a67bb144cbd5ccb80c32f1ae31ca8ce9360e (diff) |
Added public fields to wlr_session
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/session.h | 12 | ||||
-rw-r--r-- | include/wlr/session/interface.h | 5 |
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 |