aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/drm.h10
-rw-r--r--include/backend/drm/iface.h3
-rw-r--r--include/backend/drm/renderer.h6
-rw-r--r--include/backend/drm/util.h2
-rw-r--r--include/backend/headless.h2
-rw-r--r--include/backend/libinput.h3
-rw-r--r--include/backend/multi.h2
-rw-r--r--include/backend/wayland.h8
-rw-r--r--include/backend/x11.h8
9 files changed, 20 insertions, 24 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 12530da6..65db04ef 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -1,19 +1,17 @@
#ifndef BACKEND_DRM_DRM_H
#define BACKEND_DRM_DRM_H
+#include <EGL/egl.h>
+#include <gbm.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <wayland-server.h>
-#include <xf86drmMode.h>
-#include <EGL/egl.h>
-#include <gbm.h>
#include <wayland-util.h>
-
-#include <wlr/backend/session.h>
#include <wlr/backend/drm.h>
+#include <wlr/backend/session.h>
#include <wlr/render/egl.h>
-
+#include <xf86drmMode.h>
#include "iface.h"
#include "properties.h"
#include "renderer.h"
diff --git a/include/backend/drm/iface.h b/include/backend/drm/iface.h
index 15cdf1ab..ef0e7bf8 100644
--- a/include/backend/drm/iface.h
+++ b/include/backend/drm/iface.h
@@ -1,10 +1,9 @@
#ifndef BACKEND_DRM_IFACE_H
#define BACKEND_DRM_IFACE_H
+#include <gbm.h>
#include <stdbool.h>
#include <stdint.h>
-
-#include <gbm.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h
index bf0165bc..a56a8673 100644
--- a/include/backend/drm/renderer.h
+++ b/include/backend/drm/renderer.h
@@ -1,12 +1,10 @@
#ifndef BACKEND_DRM_RENDERER_H
#define BACKEND_DRM_RENDERER_H
-#include <stdbool.h>
-#include <stdint.h>
-
#include <EGL/egl.h>
#include <gbm.h>
-
+#include <stdbool.h>
+#include <stdint.h>
#include <wlr/render.h>
struct wlr_drm_backend;
diff --git a/include/backend/drm/util.h b/include/backend/drm/util.h
index 6818b4db..25da858f 100644
--- a/include/backend/drm/util.h
+++ b/include/backend/drm/util.h
@@ -2,9 +2,9 @@
#define BACKEND_DRM_UTIL_H
#include <stdint.h>
+#include <wlr/types/wlr_output.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include <wlr/types/wlr_output.h>
// Calculates a more accurate refresh rate (mHz) than what mode itself provides
int32_t calculate_refresh_rate(drmModeModeInfo *mode);
diff --git a/include/backend/headless.h b/include/backend/headless.h
index f9805bcc..e130bae1 100644
--- a/include/backend/headless.h
+++ b/include/backend/headless.h
@@ -1,8 +1,8 @@
#ifndef BACKEND_HEADLESS_H
#define BACKEND_HEADLESS_H
-#include <wlr/backend/interface.h>
#include <wlr/backend/headless.h>
+#include <wlr/backend/interface.h>
struct wlr_headless_backend {
struct wlr_backend backend;
diff --git a/include/backend/libinput.h b/include/backend/libinput.h
index 6ec718c6..f828c310 100644
--- a/include/backend/libinput.h
+++ b/include/backend/libinput.h
@@ -1,10 +1,11 @@
#ifndef BACKEND_LIBINPUT_H
#define BACKEND_LIBINPUT_H
+
#include <libinput.h>
#include <wayland-server-core.h>
-#include <wlr/types/wlr_input_device.h>
#include <wlr/backend/interface.h>
#include <wlr/interfaces/wlr_input_device.h>
+#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_list.h>
struct wlr_libinput_backend {
diff --git a/include/backend/multi.h b/include/backend/multi.h
index 3363c608..c57c48f3 100644
--- a/include/backend/multi.h
+++ b/include/backend/multi.h
@@ -1,10 +1,10 @@
#ifndef BACKEND_MULTI_H
#define BACKEND_MULTI_H
+#include <wayland-util.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/multi.h>
#include <wlr/backend/session.h>
-#include <wayland-util.h>
struct wlr_multi_backend {
struct wlr_backend backend;
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index 78a88f29..16c8e13b 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -3,13 +3,13 @@
#include <stdbool.h>
#include <wayland-client.h>
-#include <wayland-server.h>
#include <wayland-egl.h>
-#include <wlr/render/egl.h>
-#include <wlr/render.h>
+#include <wayland-server.h>
+#include <wayland-util.h>
#include <wlr/backend/wayland.h>
+#include <wlr/render.h>
+#include <wlr/render/egl.h>
#include <wlr/types/wlr_box.h>
-#include <wayland-util.h>
struct wlr_wl_backend {
struct wlr_backend backend;
diff --git a/include/backend/x11.h b/include/backend/x11.h
index fee39eac..c5f258c0 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -1,11 +1,11 @@
-#ifndef WLR_X11_H
-#define WLR_X11_H
+#ifndef BACKEND_X11_H
+#define BACKEND_X11_H
#include <stdbool.h>
-#include <xcb/xcb.h>
-#include <X11/Xlib-xcb.h>
#include <wayland-server.h>
#include <wlr/render/egl.h>
+#include <X11/Xlib-xcb.h>
+#include <xcb/xcb.h>
struct wlr_x11_backend;