neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit 3d21c276c5bcd9308248890ec059cc59b8ff1339
parent 4af1c318eeddb8afc52e627e2315a3cd951c8fb4
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 18 Dec 2019 16:51:10 -0800

Use forward declarations instead of including wayland-server.h

Diffstat:
Mlibswc/compositor.h | 1+
Mlibswc/plane.h | 2+-
Mlibswc/swc.h | 3++-
Mlibswc/util.h | 1+
Mlibswc/view.h | 2++
5 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/libswc/compositor.h b/libswc/compositor.h @@ -28,6 +28,7 @@ #include <stdbool.h> #include <pixman.h> +#include <wayland-server.h> struct swc_compositor { struct pointer_handler *const pointer_handler; diff --git a/libswc/plane.h b/libswc/plane.h @@ -27,7 +27,7 @@ #include "plane.h" #include "view.h" -#include <wayland-util.h> +#include <wayland-server.h> struct plane { struct view view; diff --git a/libswc/swc.h b/libswc/swc.h @@ -26,13 +26,14 @@ #include <stdbool.h> #include <stdint.h> -#include <wayland-server.h> #ifdef __cplusplus extern "C" { #endif struct libinput_device; +struct wl_display; +struct wl_event_loop; /* Rectangles {{{ */ diff --git a/libswc/util.h b/libswc/util.h @@ -62,6 +62,7 @@ #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array)[0]) struct wl_resource; +struct wl_client; void remove_resource(struct wl_resource *resource); void destroy_resource(struct wl_client *client, struct wl_resource *resource); diff --git a/libswc/view.h b/libswc/view.h @@ -26,6 +26,8 @@ #include "swc.h" +#include <wayland-util.h> + /** * A view represents a component that can display buffers to the user. *