aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/backend/session
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/backend/session')
-rw-r--r--include/wlr/backend/session/interface.h22
-rw-r--r--include/wlr/backend/session/meson.build1
2 files changed, 23 insertions, 0 deletions
diff --git a/include/wlr/backend/session/interface.h b/include/wlr/backend/session/interface.h
new file mode 100644
index 00000000..5ccf9c8a
--- /dev/null
+++ b/include/wlr/backend/session/interface.h
@@ -0,0 +1,22 @@
+/*
+ * This an unstable interface of wlroots. No guarantees are made regarding the
+ * future consistency of this API.
+ */
+#ifndef WLR_USE_UNSTABLE
+#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
+#endif
+
+#ifndef WLR_BACKEND_SESSION_INTERFACE_H
+#define WLR_BACKEND_SESSION_INTERFACE_H
+
+#include <wlr/backend/session.h>
+
+struct session_impl {
+ struct wlr_session *(*create)(struct wl_display *disp);
+ void (*destroy)(struct wlr_session *session);
+ int (*open)(struct wlr_session *session, const char *path);
+ void (*close)(struct wlr_session *session, int fd);
+ bool (*change_vt)(struct wlr_session *session, unsigned vt);
+};
+
+#endif
diff --git a/include/wlr/backend/session/meson.build b/include/wlr/backend/session/meson.build
new file mode 100644
index 00000000..21b5a96b
--- /dev/null
+++ b/include/wlr/backend/session/meson.build
@@ -0,0 +1 @@
+install_headers('interface.h', subdir: 'wlr/backend/session')