Add some missing includes/declarations

This commit is contained in:
Kirill Primak 2023-06-05 23:45:28 +03:00 committed by Alexander Orzechowski
parent c5f4df6c96
commit 3dc646ea88
9 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#define BACKEND_DRM_PROPERTIES_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
/*

View file

@ -5,8 +5,10 @@
#include <stdint.h>
#include <wlr/backend.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/util/addon.h>
struct wlr_drm_backend;
struct wlr_drm_format;
struct wlr_drm_plane;
struct wlr_buffer;

View file

@ -1,6 +1,9 @@
#ifndef BACKEND_SESSION_SESSION_H
#define BACKEND_SESSION_SESSION_H
#include <stdbool.h>
struct wl_display;
struct wlr_session;
struct wlr_session *libseat_session_create(struct wl_display *disp);

View file

@ -2,6 +2,7 @@
#define TYPES_WLR_DATA_DEVICE_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_data_device.h>
#define DATA_DEVICE_ALL_ACTIONS (WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY | \
WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE | \

View file

@ -2,6 +2,7 @@
#define UTIL_SHM_H
#include <stdbool.h>
#include <stddef.h>
int create_shm_file(void);
int allocate_shm_file(size_t size);

View file

@ -1,6 +1,7 @@
#ifndef UTIL_TIME_H
#define UTIL_TIME_H
#include <stdint.h>
#include <time.h>
/**

View file

@ -25,6 +25,7 @@
* Author: Keith Packard, SuSE, Inc.
*/
#include <stddef.h>
#include <stdint.h>
static const uint32_t cursor_data[] = {

View file

@ -1,7 +1,9 @@
#ifndef XWAYLAND_SELECTION_H
#define XWAYLAND_SELECTION_H
#include <stdbool.h>
#include <xcb/xfixes.h>
#include <wayland-util.h>
#define INCR_CHUNK_SIZE (64 * 1024)
@ -11,6 +13,9 @@ struct wlr_primary_selection_source;
struct wlr_xwm_selection;
struct wlr_drag;
struct wlr_data_source;
struct wlr_xwm_selection_transfer {
struct wlr_xwm_selection *selection;

View file

@ -1,6 +1,8 @@
#ifndef XWAYLAND_SOCKETS_H
#define XWAYLAND_SOCKETS_H
#include <stdbool.h>
bool set_cloexec(int fd, bool cloexec);
void unlink_display_sockets(int display);
int open_display_sockets(int socks[2]);