treewide: sort headers

This commit is contained in:
Alexander Orzechowski 2023-11-23 16:58:47 -05:00
parent 26158d0718
commit dcd81c91f3
125 changed files with 252 additions and 300 deletions

View file

@ -6,11 +6,11 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <wayland-util.h>
#include <xf86drmMode.h>
#include <wlr/backend/drm.h>
#include <wlr/backend/session.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/types/wlr_output_layer.h>
#include <xf86drmMode.h>
#include "backend/drm/iface.h"
#include "backend/drm/properties.h"
#include "backend/drm/renderer.h"

View file

@ -1,9 +1,9 @@
#ifndef BACKEND_DRM_IFACE_H
#define BACKEND_DRM_IFACE_H
#include <pixman.h>
#include <stdbool.h>
#include <stdint.h>
#include <pixman.h>
#include <xf86drm.h>
#include <xf86drmMode.h>

View file

@ -2,18 +2,16 @@
#define BACKEND_WAYLAND_H
#include <stdbool.h>
#include <wayland-client.h>
#include <wayland-server-core.h>
#include <wlr/backend/wayland.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_keyboard.h>
#include <wlr/types/wlr_pointer.h>
#include <wlr/types/wlr_tablet_pad.h>
#include <wlr/types/wlr_tablet_tool.h>
#include <wlr/types/wlr_touch.h>
#include <wlr/render/drm_format_set.h>
struct wlr_wl_backend {
struct wlr_backend backend;

View file

@ -1,22 +1,18 @@
#ifndef BACKEND_X11_H
#define BACKEND_X11_H
#include <wlr/config.h>
#include <stdbool.h>
#include <wayland-server-core.h>
#include <xcb/xcb.h>
#include <xcb/present.h>
#include <pixman.h>
#include <stdbool.h>
#include <wayland-server-core.h>
#include <wlr/config.h>
#include <wlr/backend/x11.h>
#include <wlr/interfaces/wlr_keyboard.h>
#include <wlr/interfaces/wlr_output.h>
#include <wlr/interfaces/wlr_touch.h>
#include <wlr/types/wlr_pointer.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/types/wlr_pointer.h>
#include <xcb/present.h>
#include <xcb/xcb.h>
#include "config.h"
#if HAVE_XCB_ERRORS

View file

@ -1,12 +1,12 @@
#ifndef RENDER_GLES2_H
#define RENDER_GLES2_H
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <wlr/render/egl.h>
#include <wlr/render/gles2.h>
#include <wlr/render/interface.h>

View file

@ -1,14 +1,14 @@
#ifndef RENDER_VULKAN_H
#define RENDER_VULKAN_H
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <vulkan/vulkan.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/render/wlr_texture.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/render/interface.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/render/wlr_texture.h>
#include <wlr/util/addon.h>
#include "util/rect_union.h"

View file

@ -1,9 +1,9 @@
#ifndef TYPES_WLR_TABLET_V2_H
#define TYPES_WLR_TABLET_V2_H
#include "tablet-unstable-v2-protocol.h"
#include <wayland-server-core.h>
#include <wlr/types/wlr_tablet_v2.h>
#include "tablet-unstable-v2-protocol.h"
struct wlr_tablet_seat_v2 {
struct wl_list link; // wlr_tablet_manager_v2.seats

View file

@ -1,8 +1,8 @@
#ifndef UTIL_ARRAY_H
#define UTIL_ARRAY_H
#include <stdlib.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wayland-util.h>
/**

View file

@ -1,9 +1,9 @@
#ifndef UTIL_RECT_UNION_H
#define UTIL_RECT_UNION_H
#include <stdlib.h>
#include <stdbool.h>
#include <pixman.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wayland-util.h>
/**

View file

@ -1,8 +1,8 @@
#ifndef UTIL_SET_H
#define UTIL_SET_H
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
/**

View file

@ -2,8 +2,8 @@
#define WLR_BACKEND_SESSION_H
#include <stdbool.h>
#include <sys/types.h>
#include <wayland-server-core.h>
#include <sys/types.h>
struct libseat;

View file

@ -16,13 +16,12 @@
#define EGL_NO_PLATFORM_SPECIFIC_TYPES
#endif
#include <wlr/config.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <pixman.h>
#include <stdbool.h>
#include <wayland-server-core.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <wlr/config.h>
#include <wlr/render/dmabuf.h>
#include <wlr/render/drm_format_set.h>

View file

@ -11,10 +11,10 @@
#include <stdbool.h>
#include <wayland-server-core.h>
#include <wlr/render/dmabuf.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/render/wlr_texture.h>
#include <wlr/types/wlr_output.h>
#include <wlr/render/dmabuf.h>
struct wlr_box;
struct wlr_fbox;

View file

@ -10,8 +10,8 @@
#define WLR_TYPES_WLR_CURSOR_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_layout.h>
struct wlr_input_device;
struct wlr_xcursor_manager;

View file

@ -9,10 +9,10 @@
#ifndef WLR_TYPES_WLR_DAMAGE_RING_H
#define WLR_TYPES_WLR_DAMAGE_RING_H
#include <pixman.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <pixman.h>
/* For triple buffering, a history of two frames is required. */
#define WLR_DAMAGE_RING_PREVIOUS_LEN 2

View file

@ -9,9 +9,9 @@
#ifndef WLR_TYPES_WLR_DRM_H
#define WLR_TYPES_WLR_DRM_H
#include <wayland-server-protocol.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/types/wlr_buffer.h>
#include <wayland-server-protocol.h>
struct wlr_renderer;

View file

@ -12,9 +12,9 @@
#include <stdbool.h>
#include <stdint.h>
#include <wayland-server-core.h>
#include <wayland-server-protocol.h>
#include <wlr/types/wlr_input_device.h>
#include <xkbcommon/xkbcommon.h>
#include <wayland-server-protocol.h>
#define WLR_LED_COUNT 3

View file

@ -10,11 +10,11 @@
#define WLR_TYPES_WLR_LINUX_DMABUF_H
#include <stdint.h>
#include <sys/stat.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_buffer.h>
#include <sys/stat.h>
#include <wlr/render/dmabuf.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/types/wlr_buffer.h>
struct wlr_surface;

View file

@ -12,11 +12,11 @@
#include <pixman.h>
#include <stdbool.h>
#include <time.h>
#include <wayland-server-protocol.h>
#include <wayland-util.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_buffer.h>
#include <wlr/util/addon.h>
#include <wayland-server-protocol.h>
enum wlr_output_mode_aspect_ratio {
WLR_OUTPUT_MODE_ASPECT_RATIO_NONE,

View file

@ -11,8 +11,8 @@
#include <wlr/render/drm_format_set.h>
#include <wlr/types/wlr_output.h>
#include <wlr/util/box.h>
#include <wlr/util/addon.h>
#include <wlr/util/box.h>
/**
* An output layer.

View file

@ -11,8 +11,8 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <wayland-server-protocol.h>
#include <wlr/types/wlr_input_device.h>
#include <wayland-server-protocol.h>
struct wlr_pointer_impl;

View file

@ -9,9 +9,9 @@
#ifndef WLR_TYPES_WLR_POINTER_CONSTRAINTS_V1_H
#define WLR_TYPES_WLR_POINTER_CONSTRAINTS_V1_H
#include <pixman.h>
#include <stdint.h>
#include <wayland-server-core.h>
#include <pixman.h>
#include <wlr/types/wlr_seat.h>
#include "pointer-constraints-unstable-v1-protocol.h"

View file

@ -11,9 +11,8 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <wayland-server-protocol.h>
#include <wlr/types/wlr_compositor.h>
#include <wayland-server-protocol.h>
#include "tearing-control-v1-protocol.h"
struct wlr_tearing_control_v1 {

View file

@ -10,8 +10,8 @@
#define WLR_TYPES_WLR_TOUCH_H
#include <stdint.h>
#include <wlr/types/wlr_input_device.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_input_device.h>
struct wlr_touch_impl;

View file

@ -10,9 +10,9 @@
#define WLR_TYPES_WLR_VIRTUAL_POINTER_V1_H
#include <wayland-server-core.h>
#include <wayland-server-protocol.h>
#include <wlr/interfaces/wlr_pointer.h>
#include <wlr/interfaces/wlr_output.h>
#include <wlr/interfaces/wlr_pointer.h>
#include <wayland-server-protocol.h>
struct wlr_virtual_pointer_manager_v1 {
struct wl_global *global;

View file

@ -16,10 +16,10 @@
#ifndef WLR_UTIL_LOG_H
#define WLR_UTIL_LOG_H
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
enum wlr_log_importance {
WLR_SILENT = 0,

View file

@ -16,8 +16,8 @@
#ifndef WLR_UTIL_REGION_H
#define WLR_UTIL_REGION_H
#include <stdbool.h>
#include <pixman.h>
#include <stdbool.h>
#include <wayland-server-protocol.h>
/**

View file

@ -10,9 +10,9 @@
#define WLR_XWAYLAND_SERVER_H
#include <stdbool.h>
#include <sys/types.h>
#include <time.h>
#include <wayland-server-core.h>
#include <sys/types.h>
struct wlr_xwayland_server_options {
bool lazy;

View file

@ -11,10 +11,10 @@
#include <stdbool.h>
#include <wayland-server-core.h>
#include <wlr/util/addon.h>
#include <xcb/xcb.h>
#include <xcb/xcb_ewmh.h>
#include <xcb/xcb_icccm.h>
#include <wlr/util/addon.h>
struct wlr_box;
struct wlr_xwm;

View file

@ -2,8 +2,8 @@
#define XWAYLAND_SELECTION_H
#include <stdbool.h>
#include <xcb/xfixes.h>
#include <wayland-util.h>
#include <xcb/xfixes.h>
#define INCR_CHUNK_SIZE (64 * 1024)