render: stop pulling <wlr/backend.h>

Let's just forward-declare struct wlr_backend instead.

We need to fixup the Vulkan renderer: it needs makedev(), which
got included by chance via <wlr/backend.h> → <wlr/backend/session.h>
→ <libudev.h>.
This commit is contained in:
Simon Ser 2022-11-23 14:29:58 +01:00
parent 8a56490229
commit 99134c26b8
2 changed files with 5 additions and 1 deletions

View File

@ -11,9 +11,9 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/render/wlr_texture.h>
struct wlr_backend;
struct wlr_renderer_impl;
struct wlr_drm_format_set;
struct wlr_buffer;

View File

@ -12,6 +12,10 @@
#include <wlr/config.h>
#include "render/vulkan.h"
#if defined(__linux__)
#include <sys/sysmacros.h>
#endif
static bool check_extension(const VkExtensionProperties *avail,
uint32_t avail_len, const char *name) {
for (size_t i = 0; i < avail_len; i++) {