mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Initial D-Bus signal support.
This commit is contained in:
parent
66e02e97ec
commit
c88f252580
6 changed files with 122 additions and 28 deletions
|
|
@ -4,11 +4,12 @@
|
|||
struct wlr_session;
|
||||
|
||||
struct session_interface {
|
||||
struct wlr_session *(*start)(void);
|
||||
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);
|
||||
void (*close)(struct wlr_session *session, int fd);
|
||||
bool (*change_vt)(struct wlr_session *session, int vt);
|
||||
};
|
||||
|
||||
struct wlr_session {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
#ifndef WLR_SESSION_H
|
||||
#define WLR_SESSION_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
|
||||
struct wlr_session;
|
||||
|
||||
struct wlr_session *wlr_session_start(void);
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue