From 52e6ed54cbaf05cd1829099e04427d1706ca0da4 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 25 Apr 2017 11:32:52 -0400 Subject: Initial commit --- backend/CMakeLists.txt | 1 + backend/wayland/CMakeLists.txt | 13 +++++++++++++ backend/wayland/backend.c | 13 +++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 backend/CMakeLists.txt create mode 100644 backend/wayland/CMakeLists.txt create mode 100644 backend/wayland/backend.c (limited to 'backend') 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 +#include +#include +#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; +} -- cgit v1.2.3