mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-07 13:29:49 -05:00
Add shim implementations of wl_{compositor,shell}
To example compositor
This commit is contained in:
parent
28736c5787
commit
486ec5953c
5 changed files with 133 additions and 0 deletions
21
examples/compositor.h
Normal file
21
examples/compositor.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue