diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-22 14:58:41 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-29 16:12:13 +1300 |
commit | a598e6d026548ce7ab580504e05a71a5296b83f0 (patch) | |
tree | b716cc262402b9f175d9918ff556d3307b2d52cc /backend/x11 | |
parent | 6479fb27be364ef6ee7c5289c18d015ec3d8c2f3 (diff) |
Add X11 backend skeleton
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/backend.c | 30 |
1 files changed, 30 insertions, 0 deletions
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 <stdbool.h> +#include <wlr/backend/interface.h> +#include <wlr/backend/x11.h> +#include <wlr/egl.h> +#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; +} |