commit 3d21c27

Michael Forney  ·  2019-12-19 00:51:10 +0000 UTC
parent 4af1c31
Use forward declarations instead of including wayland-server.h
5 files changed,  +7, -2
+1, -0
1@@ -28,6 +28,7 @@
2 
3 #include <stdbool.h>
4 #include <pixman.h>
5+#include <wayland-server.h>
6 
7 struct swc_compositor {
8 	struct pointer_handler *const pointer_handler;
+1, -1
1@@ -27,7 +27,7 @@
2 #include "plane.h"
3 #include "view.h"
4 
5-#include <wayland-util.h>
6+#include <wayland-server.h>
7 
8 struct plane {
9 	struct view view;
+2, -1
 1@@ -26,13 +26,14 @@
 2 
 3 #include <stdbool.h>
 4 #include <stdint.h>
 5-#include <wayland-server.h>
 6 
 7 #ifdef __cplusplus
 8 extern "C" {
 9 #endif
10 
11 struct libinput_device;
12+struct wl_display;
13+struct wl_event_loop;
14 
15 /* Rectangles {{{ */
16 
+1, -0
1@@ -62,6 +62,7 @@
2 #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array)[0])
3 
4 struct wl_resource;
5+struct wl_client;
6 
7 void remove_resource(struct wl_resource *resource);
8 void destroy_resource(struct wl_client *client, struct wl_resource *resource);
+2, -0
1@@ -26,6 +26,8 @@
2 
3 #include "swc.h"
4 
5+#include <wayland-util.h>
6+
7 /**
8  * A view represents a component that can display buffers to the user.
9  *