2017-06-29 00:51:58 +02:00
|
|
|
#ifndef _EXAMPLE_COMPOSITOR_H
|
|
|
|
#define _EXAMPLE_COMPOSITOR_H
|
|
|
|
#include <wayland-server.h>
|
2017-08-03 15:50:45 +02:00
|
|
|
#include <wlr/render.h>
|
2017-06-29 00:51:58 +02:00
|
|
|
|
|
|
|
struct wl_compositor_state {
|
|
|
|
struct wl_global *wl_global;
|
|
|
|
struct wl_list wl_resources;
|
2017-08-03 15:50:45 +02:00
|
|
|
struct wlr_renderer *renderer;
|
2017-06-29 00:51:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
void wl_compositor_init(struct wl_display *display,
|
2017-08-03 15:50:45 +02:00
|
|
|
struct wl_compositor_state *state, struct wlr_renderer *renderer);
|
2017-06-29 00:51:58 +02:00
|
|
|
|
|
|
|
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
|