Fix/cleanup includes a bit

This commit is contained in:
Kirill Primak 2025-04-15 20:13:29 +03:00
parent 4277d8cfdc
commit 5fd43add1c
21 changed files with 12 additions and 25 deletions

View file

@ -1,5 +1,4 @@
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@ -12,7 +11,6 @@
#include <wlr/config.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/util/log.h>
#include "backend/multi.h"
#include "types/wlr_output.h"
#include "util/env.h"
#include "util/time.h"

View file

@ -5,13 +5,11 @@
#include <wlr/render/drm_syncobj.h>
#include <wlr/util/box.h>
#include <wlr/util/log.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include "backend/drm/drm.h"
#include "backend/drm/fb.h"
#include "backend/drm/iface.h"
#include "backend/drm/util.h"
#include "types/wlr_output.h"
static char *atomic_commit_flags_str(uint32_t flags) {
const char *const l[] = {

View file

@ -1,10 +1,8 @@
#include <assert.h>
#include <errno.h>
#include <drm_fourcc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wayland-server-core.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/session.h>

View file

@ -1,7 +1,6 @@
#include <assert.h>
#include <drm_fourcc.h>
#include <drm_mode.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdint.h>
@ -25,9 +24,6 @@
#include "backend/drm/fb.h"
#include "backend/drm/iface.h"
#include "backend/drm/util.h"
#include "render/pixel_format.h"
#include "render/drm_format_set.h"
#include "render/wlr_renderer.h"
#include "types/wlr_output.h"
#include "util/env.h"
#include "config.h"

View file

@ -6,6 +6,7 @@
#include <wlr/interfaces/wlr_tablet_tool.h>
#include <wlr/util/log.h>
#include "backend/libinput.h"
#include "config.h"
struct tablet_tool {
struct wlr_tablet_tool wlr_tool;

View file

@ -2,6 +2,10 @@
#define BACKEND_DRM_FB_H
#include <stdbool.h>
#include <stdint.h>
#include <wlr/util/addon.h>
struct wlr_drm_format_set;
struct wlr_drm_fb {
struct wlr_buffer *wlr_buf;

View file

@ -12,8 +12,6 @@
#include <wlr/types/wlr_tablet_tool.h>
#include <wlr/types/wlr_touch.h>
#include "config.h"
struct wlr_libinput_backend {
struct wlr_backend backend;

View file

@ -5,7 +5,6 @@
#include <GLES2/gl2ext.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <wlr/render/egl.h>
#include <wlr/render/gles2.h>

View file

@ -1,6 +1,8 @@
#ifndef TYPES_WLR_REGION_H
#define TYPES_WLR_REGION_H
#include <stdint.h>
struct wl_client;
/*

View file

@ -9,10 +9,13 @@
#ifndef WLR_TYPES_WLR_EXT_IMAGE_COPY_CAPTURE_V1_H
#define WLR_TYPES_WLR_EXT_IMAGE_COPY_CAPTURE_V1_H
#include <pixman.h>
#include <wayland-server.h>
#include <time.h>
#include "ext-image-copy-capture-v1-protocol.h"
struct wlr_renderer;
struct wlr_ext_image_copy_capture_manager_v1 {
struct wl_global *global;

View file

@ -9,7 +9,6 @@
#ifndef WLR_TYPES_WLR_INPUT_METHOD_V2_H
#define WLR_TYPES_WLR_INPUT_METHOD_V2_H
#include <stdint.h>
#include <stdlib.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/util/box.h>

View file

@ -13,6 +13,7 @@
struct wlr_backend;
struct wlr_backend_output_state;
struct wlr_output;
/**
* Helper to allocate swapchains for mode-setting.

View file

@ -11,7 +11,6 @@
#include <stdbool.h>
#include <stddef.h>
#include <time.h>
#include <wayland-server-core.h>
struct wlr_surface;

View file

@ -13,7 +13,6 @@
#include "render/egl.h"
#include "render/gles2.h"
#include "render/pixel_format.h"
#include "types/wlr_buffer.h"
static const struct wlr_texture_impl texture_impl;

View file

@ -25,7 +25,6 @@
#include <wlr/render/vulkan.h>
#endif // WLR_HAS_VULKAN_RENDERER
#include "render/pixel_format.h"
#include "render/wlr_renderer.h"
#include "util/env.h"

View file

@ -1,5 +1,4 @@
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

View file

@ -1,4 +1,3 @@
#include <assert.h>
#include <string.h>
#include <stdlib.h>

View file

@ -1,5 +1,6 @@
#include <assert.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
@ -9,7 +10,6 @@
#include <wlr/util/log.h>
#include <xkbcommon/xkbcommon.h>
#include "input-method-unstable-v2-protocol.h"
#include "util/shm.h"
// Note: zwp_input_popup_surface_v2 and zwp_input_method_keyboard_grab_v2 objects
// become inert when the corresponding zwp_input_method_v2 is destroyed

View file

@ -1,4 +1,3 @@
#include <assert.h>
#include <stdlib.h>
#include <wayland-server-core.h>

View file

@ -1,4 +1,3 @@
#include <assert.h>
#include <string.h>
#include <stdlib.h>

View file

@ -1,7 +1,5 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
@ -14,7 +12,6 @@
#include <wlr/util/log.h>
#include <wlr/xwayland/shell.h>
#include <wlr/xwayland/xwayland.h>
#include "sockets.h"
#include "xwayland/xwm.h"
struct wlr_xwayland_cursor {