mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
move wl_compositor into wlroots as wlr_compositor
This commit is contained in:
parent
b876bea288
commit
4110788159
5 changed files with 36 additions and 33 deletions
21
include/wlr/types/wlr_compositor.h
Normal file
21
include/wlr/types/wlr_compositor.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef _EXAMPLE_COMPOSITOR_H
|
||||
#define _EXAMPLE_COMPOSITOR_H
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/render.h>
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue