mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
Add wlr_wl_compositor and remove wlr_wl_shm
This commit is contained in:
parent
8a18cf456a
commit
f5b7bc033e
11 changed files with 98 additions and 102 deletions
25
include/wlr/wayland/wlr_compositor.h
Normal file
25
include/wlr/wayland/wlr_compositor.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue