mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Initial commit
This commit is contained in:
commit
52e6ed54cb
19 changed files with 701 additions and 0 deletions
1
backend/CMakeLists.txt
Normal file
1
backend/CMakeLists.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_subdirectory(wayland)
|
||||
13
backend/wayland/CMakeLists.txt
Normal file
13
backend/wayland/CMakeLists.txt
Normal file
|
|
@ -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}
|
||||
)
|
||||
13
backend/wayland/backend.c
Normal file
13
backend/wayland/backend.c
Normal file
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue