aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-12 22:22:40 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-13 08:10:36 -0400
commite257afeb7ea72a035202be02c90490eb3cb7129b (patch)
tree20c5e08776311cd7192f2b84cfd7415078cdb2ad /include
parent5dd96c077238b314162570655ea970ba6c2f8693 (diff)
Establish multi backend support
Diffstat (limited to 'include')
-rw-r--r--include/backend/multi.h13
-rw-r--r--include/wlr/backend/multi.h10
2 files changed, 23 insertions, 0 deletions
diff --git a/include/backend/multi.h b/include/backend/multi.h
new file mode 100644
index 00000000..5e6930bb
--- /dev/null
+++ b/include/backend/multi.h
@@ -0,0 +1,13 @@
+#ifndef _WLR_MULTI_BACKEND_INTERNAL
+#define _WLR_MULTI_BACKEND_INTERNAL
+
+#include <wlr/backend/interface.h>
+#include <wlr/backend/multi.h>
+#include <wlr/common/list.h>
+
+struct wlr_backend_state {
+ struct wlr_backend *backend;
+ list_t *backends;
+};
+
+#endif
diff --git a/include/wlr/backend/multi.h b/include/wlr/backend/multi.h
new file mode 100644
index 00000000..a07ca770
--- /dev/null
+++ b/include/wlr/backend/multi.h
@@ -0,0 +1,10 @@
+#ifndef _WLR_BACKEND_MULTI_H
+#define _WLR_BACKEND_MULTI_H
+
+#include <wlr/backend.h>
+
+struct wlr_backend *wlr_multi_backend_create();
+void wlr_multi_backend_add(struct wlr_backend *multi,
+ struct wlr_backend *backend);
+
+#endif