aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
new file mode 100644
index 0000000..494c0e3
--- /dev/null
+++ b/wayland.h
@@ -0,0 +1,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