From de01e654cef2c72dce3adb580e20fe2cbc8aeb16 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 25 Apr 2017 15:06:58 -0400 Subject: Flesh out wayland backend somewhat, add example --- include/backend/wayland.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'include/backend') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 9a445af9..368b0724 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -1,9 +1,24 @@ -#ifndef _WLR_BACKEND_WAYLAND_INTERNAL_H -#define _WLR_BACKEND_WAYLAND_INTERNAL_H +#ifndef _WLR_INTERNAL_BACKEND_WAYLAND_H +#define _WLR_INTERNAL_BACKEND_WAYLAND_H -struct wlr_wayland_backend { +#include +#include +#include +#include + +struct wlr_wl_backend { + /* local state */ struct wl_display *local_display; + /* remote state */ struct wl_display *remote_display; + struct wl_registry *remote_registry; + struct wl_compositor *remote_compositor; + struct wl_shell *shell; + struct wl_shm *shm; + struct wlr_wl_seat *seat; + list_t *outputs; }; +void wlr_wlb_registry_poll(struct wlr_wl_backend *backend); + #endif -- cgit v1.2.3