Replace all wayland-server.h includes with wayland-server-core.h

The documentation for `wayland-server.h` says:

> Use of this header file is discouraged. Prefer including
> wayland-server-core.h instead, which does not include the server protocol
> header and as such only defines the library PI, excluding the deprecated API
> below.

See also
ca45f4490c (diff-b57e10fe0774258a6d21b22077001cff)
This commit is contained in:
Jente Hidskes 2019-12-20 17:16:53 +01:00
parent abfe6a66ca
commit 0aeba8085c
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
14 changed files with 14 additions and 14 deletions

2
cage.c
View file

@ -16,7 +16,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/backend.h> #include <wlr/backend.h>
#include <wlr/render/wlr_renderer.h> #include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>

View file

@ -7,7 +7,7 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_idle.h> #include <wlr/types/wlr_idle.h>
#include <wlr/types/wlr_idle_inhibit_v1.h> #include <wlr/types/wlr_idle_inhibit_v1.h>

View file

@ -1,7 +1,7 @@
#ifndef CG_IDLE_INHIBIT_H #ifndef CG_IDLE_INHIBIT_H
#define CG_IDLE_INHIBIT_H #define CG_IDLE_INHIBIT_H
#include <wayland-server.h> #include <wayland-server-core.h>
void handle_idle_inhibitor_v1_new(struct wl_listener *listener, void *data); void handle_idle_inhibitor_v1_new(struct wl_listener *listener, void *data);

View file

@ -13,7 +13,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/backend.h> #include <wlr/backend.h>
#include <wlr/backend/wayland.h> #include <wlr/backend/wayland.h>
#if WLR_HAS_X11_BACKEND #if WLR_HAS_X11_BACKEND

View file

@ -1,7 +1,7 @@
#ifndef CG_OUTPUT_H #ifndef CG_OUTPUT_H
#define CG_OUTPUT_H #define CG_OUTPUT_H
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_damage.h> #include <wlr/types/wlr_output_damage.h>

2
seat.c
View file

@ -10,7 +10,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/backend.h> #include <wlr/backend.h>
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_data_device.h>

2
seat.h
View file

@ -1,7 +1,7 @@
#ifndef CG_SEAT_H #ifndef CG_SEAT_H
#define CG_SEAT_H #define CG_SEAT_H
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>

View file

@ -3,7 +3,7 @@
#include "config.h" #include "config.h"
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/backend.h> #include <wlr/backend.h>
#include <wlr/types/wlr_idle.h> #include <wlr/types/wlr_idle.h>
#include <wlr/types/wlr_idle_inhibit_v1.h> #include <wlr/types/wlr_idle_inhibit_v1.h>

2
view.c
View file

@ -11,7 +11,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_box.h> #include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_surface.h> #include <wlr/types/wlr_surface.h>

2
view.h
View file

@ -4,7 +4,7 @@
#include "config.h" #include "config.h"
#include <stdbool.h> #include <stdbool.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_box.h> #include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_surface.h> #include <wlr/types/wlr_surface.h>
#include <wlr/types/wlr_xdg_shell.h> #include <wlr/types/wlr_xdg_shell.h>

View file

@ -8,7 +8,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_box.h> #include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_xdg_shell.h> #include <wlr/types/wlr_xdg_shell.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>

View file

@ -1,7 +1,7 @@
#ifndef CG_XDG_SHELL_H #ifndef CG_XDG_SHELL_H
#define CG_XDG_SHELL_H #define CG_XDG_SHELL_H
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_xdg_decoration_v1.h> #include <wlr/types/wlr_xdg_decoration_v1.h>
#include <wlr/types/wlr_xdg_shell.h> #include <wlr/types/wlr_xdg_shell.h>

View file

@ -8,7 +8,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_box.h> #include <wlr/types/wlr_box.h>
#include <wlr/xwayland.h> #include <wlr/xwayland.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>

View file

@ -1,7 +1,7 @@
#ifndef CG_XWAYLAND_H #ifndef CG_XWAYLAND_H
#define CG_XWAYLAND_H #define CG_XWAYLAND_H
#include <wayland-server.h> #include <wayland-server-core.h>
#include <wlr/xwayland.h> #include <wlr/xwayland.h>
#include "view.h" #include "view.h"