Проект разнесён по файлам

This commit is contained in:
2025-11-16 17:02:39 +03:00
parent b11a56ad06
commit 1f700295ff
8 changed files with 509 additions and 323 deletions

14
wayland/registry.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef WAYLAND_REGISTRY_H
#define WAYLAND_REGISTRY_H
#include <wayland-client.h>
/* Initialize registry listener on the given registry */
void registry_add_listener(struct wl_registry *registry);
/* Accessors for bound globals */
struct wl_compositor *registry_get_compositor(void);
struct wl_shm *registry_get_shm(void);
struct xdg_wm_base *registry_get_xdg_wm_base(void);
#endif