diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/CMakeLists.txt | 1 | ||||
-rw-r--r-- | backend/wayland/CMakeLists.txt | 13 | ||||
-rw-r--r-- | backend/wayland/backend.c | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt new file mode 100644 index 00000000..d69efdd5 --- /dev/null +++ b/backend/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(wayland) diff --git a/backend/wayland/CMakeLists.txt b/backend/wayland/CMakeLists.txt new file mode 100644 index 00000000..f185245c --- /dev/null +++ b/backend/wayland/CMakeLists.txt @@ -0,0 +1,13 @@ +include_directories( + ${PROTOCOLS_INCLUDE_DIRS} + ${WAYLAND_INCLUDE_DIR} + . +) + +add_library(wlr-backend-wayland + backend.c +) + +target_link_libraries(wlr-backend-wayland + ${WAYLAND_LIBRARIES} +) diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c new file mode 100644 index 00000000..3564fc12 --- /dev/null +++ b/backend/wayland/backend.c @@ -0,0 +1,13 @@ +#include <stdlib.h> +#include <stdint.h> +#include <wayland-server.h> +#include "backend/wayland.h" + +struct wlr_wayland_backend *wayland_backend_init(struct wl_display *display, + size_t outputs) { + struct wlr_wayland_backend *backend = calloc( + sizeof(struct wlr_wayland_backend), 1); + backend->local_display = display; + // TODO: obtain reference to remote display + return backend; +} |