diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-20 15:21:21 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-20 15:21:21 +0100 |
| commit | 05e97f8346521b50fbedcc2e7d0679e297d4d98b (patch) | |
| tree | 6f0a909ffd1c5bcf5e1b95fa7ae61d721826e7db /wayland.h | |
make first sketch of bar using freetype2 instead of cairo
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h new file mode 100644 index 0000000..4844d28 --- /dev/null +++ b/wayland.h @@ -0,0 +1,34 @@ +#ifndef WAYLAND_H +#define WAYLAND_H + +#include "xdg-shell-client-protocol.h" +#include "wlr-layer-shell-unstable.h" +#include "dwl-bar-ipc-unstable-v1-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 |