From 411078815953ef0a29e61b49868e646ad899fb01 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sat, 19 Aug 2017 21:48:20 +0200 Subject: move wl_compositor into wlroots as wlr_compositor --- include/wlr/types/wlr_compositor.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/wlr/types/wlr_compositor.h (limited to 'include') diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h new file mode 100644 index 00000000..47abeeac --- /dev/null +++ b/include/wlr/types/wlr_compositor.h @@ -0,0 +1,21 @@ +#ifndef _EXAMPLE_COMPOSITOR_H +#define _EXAMPLE_COMPOSITOR_H +#include +#include + +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_finish(struct wlr_compositor *wlr_compositor); +void wlr_compositor_init(struct wlr_compositor *wlr_compositor, + 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 -- cgit v1.2.3