diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-22 18:40:22 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-22 18:40:22 +0200 |
| commit | f14acf7306b022c1d0dd98f5fd654dbdc38e64e5 (patch) | |
| tree | 562e30fdad694f11fc1075b353be6d22d9094171 /wayland.h | |
create ffbg
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h new file mode 100644 index 0000000..bf9ebb0 --- /dev/null +++ b/wayland.h @@ -0,0 +1,33 @@ +#ifndef WAYLAND_H +#define WAYLAND_H + +#include "xdg-shell-client-protocol.h" +#include "wlr-layer-shell-protocol.h" + +typedef struct ListElement ListElement; +struct ListElement { + const char *name; + ListElement *next; + ListElement *previous; +}; + +typedef struct { + ListElement *first; + ListElement *last; + uint32_t size; +} List; + +struct client_state { + struct wl_display *wl_display; + struct wl_registry *wl_registry; + struct wl_shm *wl_shm; + struct wl_compositor *wl_compositor; + struct zwlr_layer_shell_v1 *zwlr_layer; + struct zdwl_manager_v1 *dwl_manager; + List tags; + List layouts; +}; + +int allocate_shm_file(size_t size); + +#endif |