blob: 741de20b30bd2969906e6e27353299af84b58f63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef WAYLAND_H
#define WAYLAND_H
#include "xdg-shell-client-protocol.h"
#include "wlr-layer-shell-protocol.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
|