aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-05-13 23:56:40 +1200
committerScott Anderson <ascent12@hotmail.com>2017-05-14 12:40:17 +1200
commitc88f25258027257e1f6c56e9f76b8fc1feaedbd4 (patch)
tree6475e59c5a265f54a8b3a6e928b78070cb54bf3c /include
parent66e02e97ec3322b6453bf0db227fd2cd6c39c819 (diff)
Initial D-Bus signal support.
Diffstat (limited to 'include')
-rw-r--r--include/session/interface.h3
-rw-r--r--include/wlr/session.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/include/session/interface.h b/include/session/interface.h
index a815718f..68754280 100644
--- a/include/session/interface.h
+++ b/include/session/interface.h
@@ -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 {
diff --git a/include/wlr/session.h b/include/wlr/session.h
index cf04f1da..36521a73 100644
--- a/include/wlr/session.h
+++ b/include/wlr/session.h
@@ -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