Use more consistent include guard names

This commit is contained in:
emersion 2017-09-23 10:26:01 +02:00
parent 06ae9e7c9f
commit 427bdb5b55
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
48 changed files with 128 additions and 96 deletions

View file

@ -1,5 +1,5 @@
#ifndef DRM_PROPERTIES_H #ifndef BACKEND_DRM_PROPERTIES_H
#define DRM_PROPERTIES_H #define BACKEND_DRM_PROPERTIES_H
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,5 @@
#ifndef WLR_DRM_UTIL_H #ifndef BACKEND_DRM_UTIL_H
#define WLR_DRM_UTIL_H #define BACKEND_DRM_UTIL_H
#include <stdint.h> #include <stdint.h>
#include <xf86drm.h> #include <xf86drm.h>

View file

@ -1,5 +1,5 @@
#ifndef DRM_BACKEND_H #ifndef BACKEND_DRM_H
#define DRM_BACKEND_H #define BACKEND_DRM_H
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_BACKEND_LIBINPUT_INTERNAL_H #ifndef BACKEND_LIBINPUT_H
#define _WLR_BACKEND_LIBINPUT_INTERNAL_H #define BACKEND_LIBINPUT_H
#include <libinput.h> #include <libinput.h>
#include <wayland-server-core.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_MULTI_BACKEND_INTERNAL #ifndef BACKEND_MULTI_H
#define _WLR_MULTI_BACKEND_INTERNAL #define BACKEND_MULTI_H
#include <wlr/backend/interface.h> #include <wlr/backend/interface.h>
#include <wlr/backend/multi.h> #include <wlr/backend/multi.h>

View file

@ -1,5 +1,5 @@
#ifndef SESSION_DIRECT_IPC #ifndef BACKEND_SESSION_DIRECT_IPC_H
#define SESSION_DIRECT_IPC #define BACKEND_SESSION_DIRECT_IPC_H
#include <sys/types.h> #include <sys/types.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_INTERNAL_BACKEND_WAYLAND_H #ifndef BACKEND_WAYLAND_H
#define _WLR_INTERNAL_BACKEND_WAYLAND_H #define BACKEND_WAYLAND_H
#include <wayland-client.h> #include <wayland-client.h>
#include <wayland-server.h> #include <wayland-server.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_RENDER_GLES2_INTERNAL_H #ifndef RENDER_GLES2_H
#define _WLR_RENDER_GLES2_INTERNAL_H #define RENDER_GLES2_H
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_BACKEND_H #ifndef WLR_BACKEND_H
#define _WLR_BACKEND_H #define WLR_BACKEND_H
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/backend/session.h> #include <wlr/backend/session.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_BACKEND_INTERFACE_H #ifndef WLR_BACKEND_INTERFACE_H
#define _WLR_BACKEND_INTERFACE_H #define WLR_BACKEND_INTERFACE_H
#include <stdbool.h> #include <stdbool.h>
#include <wlr/backend.h> #include <wlr/backend.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_BACKEND_MULTI_H #ifndef WLR_BACKEND_MULTI_H
#define _WLR_BACKEND_MULTI_H #define WLR_BACKEND_MULTI_H
#include <wlr/backend.h> #include <wlr/backend.h>
#include <wlr/backend/session.h> #include <wlr/backend/session.h>

View file

@ -1,5 +1,5 @@
#ifndef WLR_SESSION_H #ifndef WLR_BACKEND_SESSION_H
#define WLR_SESSION_H #define WLR_BACKEND_SESSION_H
#include <stdbool.h> #include <stdbool.h>
#include <wayland-server.h> #include <wayland-server.h>

View file

@ -1,5 +1,5 @@
#ifndef WLR_SESSION_INTERFACE_H #ifndef WLR_BACKEND_SESSION_INTERFACE_H
#define WLR_SESSION_INTERFACE_H #define WLR_BACKEND_SESSION_INTERFACE_H
#include <wlr/backend/session.h> #include <wlr/backend/session.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACES_DATA_SOURCE_H #ifndef WLR_INTERFACES_WLR_DATA_SOURCE_H
#define _WLR_INTERFACES_DATA_SOURCE_H #define WLR_INTERFACES_WLR_DATA_SOURCE_H
#include <wlr/types/wlr_data_source.h> #include <wlr/types/wlr_data_source.h>
struct wlr_data_source_impl { struct wlr_data_source_impl {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACES_INPUT_DEVICE_H #ifndef WLR_INTERFACES_WLR_INPUT_DEVICE_H
#define _WLR_INTERFACES_INPUT_DEVICE_H #define WLR_INTERFACES_WLR_INPUT_DEVICE_H
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>
struct wlr_input_device_impl { struct wlr_input_device_impl {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACE_KEYBOARD_H #ifndef WLR_INTERFACE_WLR_KEYBOARD_H
#define _WLR_INTERFACE_KEYBOARD_H #define WLR_INTERFACE_WLR_KEYBOARD_H
#include <wlr/types/wlr_keyboard.h> #include <wlr/types/wlr_keyboard.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACE_OUTPUT_H #ifndef WLR_INTERFACE_WLR_OUTPUT_H
#define _WLR_INTERFACE_OUTPUT_H #define WLR_INTERFACE_WLR_OUTPUT_H
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACES_POINTER_H #ifndef WLR_INTERFACES_WLR_POINTER_H
#define _WLR_INTERFACES_POINTER_H #define WLR_INTERFACES_WLR_POINTER_H
#include <wlr/types/wlr_pointer.h> #include <wlr/types/wlr_pointer.h>
struct wlr_pointer_impl { struct wlr_pointer_impl {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACES_TABLET_PAD_H #ifndef WLR_INTERFACES_WLR_TABLET_PAD_H
#define _WLR_INTERFACES_TABLET_PAD_H #define WLR_INTERFACES_WLR_TABLET_PAD_H
#include <wlr/types/wlr_tablet_pad.h> #include <wlr/types/wlr_tablet_pad.h>
struct wlr_tablet_pad_impl { struct wlr_tablet_pad_impl {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACES_TABLET_TOOL_H #ifndef WLR_INTERFACES_WLR_TABLET_TOOL_H
#define _WLR_INTERFACES_TABLET_TOOL_H #define WLR_INTERFACES_WLR_TABLET_TOOL_H
#include <wlr/types/wlr_tablet_tool.h> #include <wlr/types/wlr_tablet_tool.h>
struct wlr_tablet_tool_impl { struct wlr_tablet_tool_impl {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_INTERFACES_TOUCH_H #ifndef WLR_INTERFACES_WLR_TOUCH_H
#define _WLR_INTERFACES_TOUCH_H #define WLR_INTERFACES_WLR_TOUCH_H
#include <wlr/types/wlr_touch.h> #include <wlr/types/wlr_touch.h>
struct wlr_touch_impl { struct wlr_touch_impl {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_RENDER_H #ifndef WLR_RENDER_H
#define _WLR_RENDER_H #define WLR_RENDER_H
#include <stdint.h> #include <stdint.h>
#include <wayland-server-protocol.h> #include <wayland-server-protocol.h>
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_GLES2_RENDERER_H #ifndef WLR_RENDER_GLES2_H
#define _WLR_GLES2_RENDERER_H #define WLR_RENDER_GLES2_H
#include <wlr/render.h> #include <wlr/render.h>
#include <wlr/backend.h> #include <wlr/backend.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_RENDER_INTERFACE_H #ifndef WLR_RENDER_INTERFACE_H
#define _WLR_RENDER_INTERFACE_H #define WLR_RENDER_INTERFACE_H
#include <wayland-server-protocol.h> #include <wayland-server-protocol.h>
#include <stdbool.h> #include <stdbool.h>
#include <wlr/render.h> #include <wlr/render.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_RENDER_MATRIX_H #ifndef WLR_RENDER_MATRIX_H
#define _WLR_RENDER_MATRIX_H #define WLR_RENDER_MATRIX_H
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_GEOMETRY_H #ifndef WLR_TYPES_WLR_BOX_H
#define _WLR_TYPES_GEOMETRY_H #define WLR_TYPES_WLR_BOX_H
#include <stdbool.h> #include <stdbool.h>
struct wlr_box { struct wlr_box {

View file

@ -1,5 +1,6 @@
#ifndef _EXAMPLE_COMPOSITOR_H #ifndef WLR_TYPES_WLR_COMPOSITOR_H
#define _EXAMPLE_COMPOSITOR_H #define WLR_TYPES_WLR_COMPOSITOR_H
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/render.h> #include <wlr/render.h>
@ -22,4 +23,5 @@ struct wlr_compositor *wlr_compositor_create(struct wl_display *display,
struct wlr_surface; struct wlr_surface;
void wl_compositor_surface_destroyed(struct wlr_compositor *wlr_compositor, void wl_compositor_surface_destroyed(struct wlr_compositor *wlr_compositor,
struct wlr_surface *surface); struct wlr_surface *surface);
#endif #endif

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_CURSOR_H #ifndef WLR_TYPES_WLR_CURSOR_H
#define _WLR_TYPES_CURSOR_H #define WLR_TYPES_WLR_CURSOR_H
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output_layout.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_TYPES_DATA_DEVICE_MANAGER_H #ifndef WLR_TYPES_WLR_DATA_DEVICE_MANAGER_H
#define _WLR_TYPES_DATA_DEVICE_MANAGER_H #define WLR_TYPES_WLR_DATA_DEVICE_MANAGER_H
#include <wayland-server.h> #include <wayland-server.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_TYPES_DATA_SOURCE_H #ifndef WLR_TYPES_WLR_DATA_SOURCE_H
#define _WLR_TYPES_DATA_SOURCE_H #define WLR_TYPES_WLR_DATA_SOURCE_H
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/util/list.h> #include <wlr/util/list.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_GAMMA_CONTROL_H #ifndef WLR_TYPES_WLR_GAMMA_CONTROL_H
#define _WLR_GAMMA_CONTROL_H #define WLR_TYPES_WLR_GAMMA_CONTROL_H
#include <wayland-server.h> #include <wayland-server.h>
struct wlr_gamma_control_manager { struct wlr_gamma_control_manager {

View file

@ -1,5 +1,5 @@
#ifndef _WLR_TYPES_INPUT_H #ifndef WLR_TYPES_WLR_INPUT_DEVICE_H
#define _WLR_TYPES_INPUT_H #define WLR_TYPES_WLR_INPUT_DEVICE_H
enum wlr_button_state { enum wlr_button_state {
WLR_BUTTON_RELEASED, WLR_BUTTON_RELEASED,

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_KEYBOARD_H #ifndef WLR_TYPES_WLR_KEYBOARD_H
#define _WLR_TYPES_KEYBOARD_H #define WLR_TYPES_WLR_KEYBOARD_H
#include <wayland-server.h> #include <wayland-server.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_OUTPUT_H #ifndef WLR_TYPES_WLR_OUTPUT_H
#define _WLR_TYPES_OUTPUT_H #define WLR_TYPES_WLR_OUTPUT_H
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/util/list.h> #include <wlr/util/list.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_OUTPUT_LAYOUT_H #ifndef WLR_TYPES_WLR_OUTPUT_LAYOUT_H
#define _WLR_TYPES_OUTPUT_LAYOUT_H #define WLR_TYPES_WLR_OUTPUT_LAYOUT_H
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <wayland-util.h> #include <wayland-util.h>
#include <stdbool.h> #include <stdbool.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_POINTER_H #ifndef WLR_TYPES_WLR_POINTER_H
#define _WLR_TYPES_POINTER_H #define WLR_TYPES_WLR_POINTER_H
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>
#include <wayland-server.h> #include <wayland-server.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_TYPES_REGION_H #ifndef WLR_TYPES_WLR_REGION_H
#define _WLR_TYPES_REGION_H #define WLR_TYPES_WLR_REGION_H
struct wl_resource; struct wl_resource;

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_SEAT_H #ifndef WLR_TYPES_WLR_SEAT_H
#define _WLR_TYPES_SEAT_H #define WLR_TYPES_WLR_SEAT_H
#include <wlr/types/wlr_surface.h> #include <wlr/types/wlr_surface.h>
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>
#include <wayland-server.h> #include <wayland-server.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_WLR_SURFACE_H #ifndef WLR_TYPES_WLR_SURFACE_H
#define _WLR_TYPES_WLR_SURFACE_H #define WLR_TYPES_WLR_SURFACE_H
#include <wayland-server.h> #include <wayland-server.h>
#include <pixman.h> #include <pixman.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_TABLET_PAD_H #ifndef WLR_TYPES_WLR_TABLET_PAD_H
#define _WLR_TYPES_TABLET_PAD_H #define WLR_TYPES_WLR_TABLET_PAD_H
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>
#include <wayland-server.h> #include <wayland-server.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_TABLET_TOOL_H #ifndef WLR_TYPES_TABLET_TOOL_H
#define _WLR_TYPES_TABLET_TOOL_H #define WLR_TYPES_TABLET_TOOL_H
#include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_input_device.h>
#include <wayland-server.h> #include <wayland-server.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_TYPES_TOUCH_H #ifndef WLR_TYPES_WLR_TOUCH_H
#define _WLR_TYPES_TOUCH_H #define WLR_TYPES_WLR_TOUCH_H
#include <wayland-server.h> #include <wayland-server.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_WL_SHELL_H #ifndef WLR_TYPES_WLR_WL_SHELL_H
#define _WLR_WL_SHELL_H #define WLR_TYPES_WLR_WL_SHELL_H
#include <wayland-server.h> #include <wayland-server.h>
struct wlr_wl_shell { struct wlr_wl_shell {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_XDG_SHELL_V6_H #ifndef WLR_TYPES_WLR_XDG_SHELL_V6_H
#define _WLR_XDG_SHELL_V6_H #define WLR_TYPES_WLR_XDG_SHELL_V6_H
#include <wlr/types/wlr_box.h> #include <wlr/types/wlr_box.h>
#include <wayland-server.h> #include <wayland-server.h>

View file

@ -1,5 +1,5 @@
#ifndef _WLR_UTIL_LIST_H #ifndef WLR_UTIL_LIST_H
#define _WLR_UTIL_LIST_H #define WLR_UTIL_LIST_H
#include <stddef.h> #include <stddef.h>

View file

@ -1,5 +1,6 @@
#ifndef _WLR_UTIL_LOG_H #ifndef WLR_UTIL_LOG_H
#define _WLR_UTIL_LOG_H #define WLR_UTIL_LOG_H
#include <stdbool.h> #include <stdbool.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>

View file

@ -27,8 +27,10 @@
* This is adapted from wayland-cursor, but with the wl_shm client stuff removed * This is adapted from wayland-cursor, but with the wl_shm client stuff removed
* so we can use it on the compositor, too. * so we can use it on the compositor, too.
*/ */
#ifndef _WLR_XCURSOR_H
#define _WLR_XCURSOR_H #ifndef WLR_XCURSOR_H
#define WLR_XCURSOR_H
#include <stdint.h> #include <stdint.h>
struct wlr_xcursor_image { struct wlr_xcursor_image {

View file

@ -1,5 +1,6 @@
#ifndef _WLR_XWAYLAND_H #ifndef WLR_XWAYLAND_H
#define _WLR_XWAYLAND_H #define WLR_XWAYLAND_H
#include <time.h> #include <time.h>
#include <stdbool.h> #include <stdbool.h>
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>