diff options
Diffstat (limited to 'include/client/registry.h')
-rw-r--r-- | include/client/registry.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/client/registry.h b/include/client/registry.h new file mode 100644 index 00000000..68a9bc02 --- /dev/null +++ b/include/client/registry.h @@ -0,0 +1,28 @@ +#ifndef _SWAY_CLIENT_REGISTRY_H +#define _SWAY_CLIENT_REGISTRY_H + +#include <wayland-client.h> +#include "wayland-desktop-shell-client-protocol.h" +#include "list.h" + +struct output_state { + struct wl_output *output; + uint32_t flags; + uint32_t width, height; +}; + +struct registry { + struct wl_compositor *compositor; + struct wl_display *display; + struct wl_pointer *pointer; + struct wl_seat *seat; + struct wl_shell *shell; + struct wl_shm *shm; + struct desktop_shell *desktop_shell; + list_t *outputs; +}; + +struct registry *registry_poll(void); +void registry_teardown(struct registry *registry); + +#endif |