Add shim implementations of wl_{compositor,shell}

To example compositor
This commit is contained in:
Drew DeVault 2017-06-28 18:51:58 -04:00
parent 28736c5787
commit 486ec5953c
5 changed files with 133 additions and 0 deletions

21
examples/compositor.h Normal file
View file

@ -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