aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-19 17:40:45 -0400
committerGitHub <noreply@github.com>2017-08-19 17:40:45 -0400
commita1c3636d69fa6fa83d34f38bffc1640b17fed101 (patch)
treef8e14b54f6253541119c3e70ec16e03ee356c52f /include/wlr
parentb876bea288bc4827a9de157eed481b823c081a4b (diff)
parent1ca08dc4cb5d7b05cb82025e7c69ccabd04c3ca8 (diff)
Merge pull request #115 from martinetd/move_wl_compositor
move wl_compositor into wlroots as wlr_compositor
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_compositor.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
new file mode 100644
index 00000000..1b2f890f
--- /dev/null
+++ b/include/wlr/types/wlr_compositor.h
@@ -0,0 +1,21 @@
+#ifndef _EXAMPLE_COMPOSITOR_H
+#define _EXAMPLE_COMPOSITOR_H
+#include <wayland-server.h>
+#include <wlr/render.h>
+
+struct wlr_compositor {
+ struct wl_global *wl_global;
+ struct wl_list wl_resources;
+ struct wlr_renderer *renderer;
+ struct wl_list surfaces;
+ struct wl_listener destroy_surface_listener;
+};
+
+void wlr_compositor_destroy(struct wlr_compositor *wlr_compositor);
+struct wlr_compositor *wlr_compositor_create(struct wl_display *display,
+ struct wlr_renderer *renderer);
+
+struct wlr_surface;
+void wl_compositor_surface_destroyed(struct wlr_compositor *wlr_compositor,
+ struct wlr_surface *surface);
+#endif