Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Remove all wayland-server.h includes
Browse files Browse the repository at this point in the history
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.

Replacing wayland-server.h with wayland-server-core.h allows us to drop the
WL_HIDE_DEPRECATED declaration.
  • Loading branch information
emersion authored and ddevault committed Jul 27, 2019
1 parent 76ef089 commit ca45f44
Show file tree
Hide file tree
Showing 129 changed files with 136 additions and 145 deletions.
2 changes: 1 addition & 1 deletion backend/backend.c
Expand Up @@ -5,7 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/drm.h>
#include <wlr/backend/headless.h>
#include <wlr/backend/interface.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/drm/backend.c
Expand Up @@ -4,7 +4,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/session.h>
#include <wlr/interfaces/wlr_output.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/drm/drm.c
Expand Up @@ -12,7 +12,7 @@
#include <string.h>
#include <strings.h>
#include <time.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wayland-util.h>
#include <wlr/backend/interface.h>
#include <wlr/interfaces/wlr_output.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/rdp/keyboard.c
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_keyboard.h>
#include <wlr/interfaces/wlr_keyboard.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/rdp/output.c
Expand Up @@ -2,7 +2,7 @@
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <stdlib.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_output.h>
#include <wlr/interfaces/wlr_output.h>
#include <wlr/util/log.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/rdp/pointer.c
@@ -1,7 +1,7 @@
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include <string.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_pointer.h>
#include <wlr/interfaces/wlr_pointer.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/session/direct-freebsd.c
Expand Up @@ -13,7 +13,7 @@
#include <sys/types.h>
#include <termios.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/session/interface.h>
#include <wlr/util/log.h>
#include <xf86drm.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/session/direct.c
Expand Up @@ -14,7 +14,7 @@
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/session/interface.h>
#include <wlr/util/log.h>
#include "backend/session/direct-ipc.h"
Expand Down
2 changes: 1 addition & 1 deletion backend/session/logind.c
Expand Up @@ -9,7 +9,7 @@
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/session/interface.h>
#include <wlr/config.h>
#include <wlr/util/log.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/session/noop.c
Expand Up @@ -3,7 +3,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/session/interface.h>
#include <wlr/util/log.h>
#include "util/signal.h"
Expand Down
2 changes: 1 addition & 1 deletion backend/session/session.c
Expand Up @@ -6,7 +6,7 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/session.h>
#include <wlr/backend/session/interface.h>
#include <wlr/config.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/wayland/backend.c
Expand Up @@ -5,7 +5,7 @@

#include <wlr/config.h>

#include <wayland-server.h>
#include <wayland-server-core.h>

#include <wlr/backend/interface.h>
#include <wlr/interfaces/wlr_input_device.h>
Expand Down
2 changes: 1 addition & 1 deletion backend/x11/backend.c
Expand Up @@ -10,7 +10,7 @@
#include <wlr/config.h>

#include <X11/Xlib-xcb.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <xcb/xcb.h>
#include <xcb/xfixes.h>
#include <xcb/xinput.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/fullscreen-shell.c
Expand Up @@ -5,7 +5,7 @@
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_compositor.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/multi-pointer.c
Expand Up @@ -7,8 +7,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/render/gles2.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/output-layout.c
Expand Up @@ -8,8 +8,7 @@
#include <strings.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/render/wlr_renderer.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/pointer.c
Expand Up @@ -6,8 +6,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/render/gles2.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/rotation.c
Expand Up @@ -8,8 +8,7 @@
#include <strings.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/render/wlr_renderer.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.c
Expand Up @@ -5,7 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/types/wlr_output.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/tablet.c
Expand Up @@ -6,8 +6,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/render/wlr_renderer.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/touch.c
Expand Up @@ -7,8 +7,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/types/wlr_output.h>
Expand Down
2 changes: 1 addition & 1 deletion include/backend/drm/drm.h
Expand Up @@ -7,7 +7,7 @@
#include <stddef.h>
#include <stdint.h>
#include <time.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wayland-util.h>
#include <wlr/backend/drm.h>
#include <wlr/backend/session.h>
Expand Down
2 changes: 1 addition & 1 deletion include/backend/wayland.h
Expand Up @@ -5,7 +5,7 @@

#include <wayland-client.h>
#include <wayland-egl.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wayland-util.h>

#include <wlr/backend/wayland.h>
Expand Down
2 changes: 1 addition & 1 deletion include/backend/x11.h
Expand Up @@ -4,7 +4,7 @@
#include <stdbool.h>

#include <X11/Xlib-xcb.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <xcb/xcb.h>

#include <wlr/backend/x11.h>
Expand Down
2 changes: 1 addition & 1 deletion include/rootston/desktop.h
@@ -1,7 +1,7 @@
#ifndef ROOTSTON_DESKTOP_H
#define ROOTSTON_DESKTOP_H
#include <time.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/config.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
Expand Down
2 changes: 1 addition & 1 deletion include/rootston/input.h
@@ -1,7 +1,7 @@
#ifndef ROOTSTON_INPUT_H
#define ROOTSTON_INPUT_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_seat.h>
Expand Down
2 changes: 1 addition & 1 deletion include/rootston/output.h
Expand Up @@ -2,7 +2,7 @@
#define ROOTSTON_OUTPUT_H
#include <pixman.h>
#include <time.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_output_damage.h>

Expand Down
2 changes: 1 addition & 1 deletion include/rootston/seat.h
@@ -1,7 +1,7 @@
#ifndef ROOTSTON_SEAT_H
#define ROOTSTON_SEAT_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include "rootston/input.h"
#include "rootston/keyboard.h"
#include "rootston/layers.h"
Expand Down
2 changes: 1 addition & 1 deletion include/rootston/server.h
@@ -1,7 +1,7 @@
#ifndef _ROOTSTON_SERVER_H
#define _ROOTSTON_SERVER_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/config.h>
Expand Down
2 changes: 1 addition & 1 deletion include/types/wlr_data_device.h
@@ -1,7 +1,7 @@
#ifndef TYPES_WLR_DATA_DEVICE_H
#define TYPES_WLR_DATA_DEVICE_H

#include <wayland-server.h>
#include <wayland-server-core.h>

#define DATA_DEVICE_ALL_ACTIONS (WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY | \
WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE | \
Expand Down
2 changes: 1 addition & 1 deletion include/types/wlr_seat.h
@@ -1,7 +1,7 @@
#ifndef TYPES_WLR_SEAT_H
#define TYPES_WLR_SEAT_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_seat.h>

const struct wlr_pointer_grab_interface default_pointer_grab_impl;
Expand Down
2 changes: 1 addition & 1 deletion include/types/wlr_tablet_v2.h
Expand Up @@ -2,7 +2,7 @@
#define TYPES_WLR_TABLET_V2_H

#include "tablet-unstable-v2-protocol.h"
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_tablet_v2.h>

struct wlr_tablet_seat_v2 {
Expand Down
2 changes: 1 addition & 1 deletion include/types/wlr_xdg_shell.h
@@ -1,7 +1,7 @@
#ifndef TYPES_WLR_XDG_SHELL_H
#define TYPES_WLR_XDG_SHELL_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_xdg_shell.h>
#include "xdg-shell-protocol.h"

Expand Down
2 changes: 1 addition & 1 deletion include/types/wlr_xdg_shell_v6.h
@@ -1,7 +1,7 @@
#ifndef TYPES_WLR_XDG_SHELL_V6_H
#define TYPES_WLR_XDG_SHELL_V6_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include "xdg-shell-unstable-v6-protocol.h"

Expand Down
2 changes: 1 addition & 1 deletion include/util/signal.h
@@ -1,7 +1,7 @@
#ifndef UTIL_SIGNAL_H
#define UTIL_SIGNAL_H

#include <wayland-server.h>
#include <wayland-server-core.h>

void wlr_signal_emit_safe(struct wl_signal *signal, void *data);

Expand Down
2 changes: 1 addition & 1 deletion include/wlr/backend.h
Expand Up @@ -9,7 +9,7 @@
#ifndef WLR_BACKEND_H
#define WLR_BACKEND_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend/session.h>
#include <wlr/render/egl.h>

Expand Down
2 changes: 1 addition & 1 deletion include/wlr/backend/drm.h
Expand Up @@ -9,7 +9,7 @@
#ifndef WLR_BACKEND_DRM_H
#define WLR_BACKEND_DRM_H

#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/types/wlr_output.h>
Expand Down
2 changes: 1 addition & 1 deletion include/wlr/backend/libinput.h
Expand Up @@ -10,7 +10,7 @@
#define WLR_BACKEND_LIBINPUT_H

#include <libinput.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/types/wlr_input_device.h>
Expand Down
2 changes: 1 addition & 1 deletion include/wlr/backend/session.h
Expand Up @@ -4,7 +4,7 @@
#include <libudev.h>
#include <stdbool.h>
#include <sys/types.h>
#include <wayland-server.h>
#include <wayland-server-core.h>

struct session_impl;

Expand Down
2 changes: 1 addition & 1 deletion include/wlr/backend/wayland.h
Expand Up @@ -2,7 +2,7 @@
#define WLR_BACKEND_WAYLAND_H
#include <stdbool.h>
#include <wayland-client.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_output.h>
Expand Down
2 changes: 1 addition & 1 deletion include/wlr/backend/x11.h
Expand Up @@ -3,7 +3,7 @@

#include <stdbool.h>

#include <wayland-server.h>
#include <wayland-server-core.h>

#include <wlr/backend.h>
#include <wlr/types/wlr_input_device.h>
Expand Down
2 changes: 1 addition & 1 deletion include/wlr/render/egl.h
Expand Up @@ -19,7 +19,7 @@
#include <EGL/eglext.h>
#include <pixman.h>
#include <stdbool.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/render/dmabuf.h>
#include <wlr/render/drm_format_set.h>

Expand Down
2 changes: 1 addition & 1 deletion include/wlr/types/wlr_box.h
Expand Up @@ -11,7 +11,7 @@

#include <pixman.h>
#include <stdbool.h>
#include <wayland-server.h>
#include <wayland-server-protocol.h>

struct wlr_box {
int x, y;
Expand Down
2 changes: 1 addition & 1 deletion include/wlr/types/wlr_buffer.h
Expand Up @@ -10,7 +10,7 @@
#define WLR_TYPES_WLR_BUFFER_H

#include <pixman.h>
#include <wayland-server.h>
#include <wayland-server-core.h>
#include <wlr/render/dmabuf.h>

/**
Expand Down

0 comments on commit ca45f44

Please sign in to comment.