From a598e6d026548ce7ab580504e05a71a5296b83f0 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Fri, 22 Sep 2017 14:58:41 +1200 Subject: Add X11 backend skeleton --- backend/x11/backend.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 backend/x11/backend.c (limited to 'backend/x11') diff --git a/backend/x11/backend.c b/backend/x11/backend.c new file mode 100644 index 00000000..be022a7a --- /dev/null +++ b/backend/x11/backend.c @@ -0,0 +1,30 @@ +#include +#include +#include +#include +#include "backend/x11.h" + +struct wlr_backend *wlr_x11_backend_create(const char *display) { + return NULL; +} + +static bool wlr_x11_backend_start(struct wlr_backend *backend) { + return false; +} + +static void wlr_x11_backend_destroy(struct wlr_backend *backend) { +} + +struct wlr_egl *wlr_x11_backend_get_egl(struct wlr_backend *backend) { + return NULL; +} + +static struct wlr_backend_impl backend_impl = { + .start = wlr_x11_backend_start, + .destroy = wlr_x11_backend_destroy, + .get_egl = wlr_x11_backend_get_egl, +}; + +bool wlr_backend_is_x11(struct wlr_backend *backend) { + return backend->impl == &backend_impl; +} -- cgit v1.2.3