aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/session/interface.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-04 19:30:37 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-04 19:30:50 -0400
commit7d82476590033a93761035ead1dd761b68c5c049 (patch)
tree7efe3f19d428df18a280906f65b4839b8168ed6f /include/wlr/session/interface.h
parent7051d0e79dc74426c312f9eee0ce95adf85ff7c9 (diff)
Refactor type implementations
Diffstat (limited to 'include/wlr/session/interface.h')
-rw-r--r--include/wlr/session/interface.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/wlr/session/interface.h b/include/wlr/session/interface.h
new file mode 100644
index 00000000..78256dd6
--- /dev/null
+++ b/include/wlr/session/interface.h
@@ -0,0 +1,15 @@
+#ifndef WLR_SESSION_INTERFACE_H
+#define WLR_SESSION_INTERFACE_H
+
+#include <wlr/session.h>
+
+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);
+ void (*close)(struct wlr_session *session, int fd);
+ bool (*change_vt)(struct wlr_session *session, int vt);
+};
+
+#endif