mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Added public fields to wlr_session
This commit is contained in:
parent
f413a67bb1
commit
bd5bca5283
5 changed files with 59 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue