aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/compositor.h')
-rw-r--r--examples/compositor.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/compositor.h b/examples/compositor.h
new file mode 100644
index 00000000..4773b83d
--- /dev/null
+++ b/examples/compositor.h
@@ -0,0 +1,21 @@
+#ifndef _EXAMPLE_COMPOSITOR_H
+#define _EXAMPLE_COMPOSITOR_H
+#include <wayland-server.h>
+
+struct wl_compositor_state {
+ struct wl_global *wl_global;
+ struct wl_list wl_resources;
+};
+
+void wl_compositor_init(struct wl_display *display,
+ struct wl_compositor_state *state);
+
+struct wl_shell_state {
+ struct wl_global *wl_global;
+ struct wl_list wl_resources;
+};
+
+void wl_shell_init(struct wl_display *display,
+ struct wl_shell_state *state);
+
+#endif