Add wlr_wl_compositor and remove wlr_wl_shm

This commit is contained in:
Drew DeVault 2017-06-23 15:10:52 -04:00
parent 8a18cf456a
commit f5b7bc033e
11 changed files with 98 additions and 102 deletions

View file

@ -0,0 +1,25 @@
#ifndef _WLR_COMPOSITOR_H
#define _WLR_COMPOSITOR_H
#include <wayland-server.h>
struct wlr_compositor_state;
struct wlr_compositor {
struct wlr_compositor_state *state;
void *user_data;
struct wl_global *wl_global;
struct wl_list wl_resources;
struct {
/** Emits a reference to the wl_resource just created */
struct wl_signal bound;
/** Emits a reference to the wl_surface just created */
struct wl_signal create_surface;
/** Emits a reference to the wl_region just created */
struct wl_signal create_region;
} events;
};
struct wlr_compositor *wlr_compositor_init(struct wl_display *display);
#endif