1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef WAYLAND_H #define WAYLAND_H #include <wayland-client.h> #include "xdg-shell-client-protocol.h" struct client_state { struct wl_display *display; struct wl_registry *registry; struct wl_shm *shm; struct wl_compositor *compositor; struct xdg_wm_base *wm_base; struct wl_seat *seat; }; int allocate_shm_file(size_t size); #endif