buffer: add addon set

This allows wlr_buffer users to extend it with tjeir own state.
This commit is contained in:
Simon Ser 2021-08-11 10:00:07 +02:00
parent 20404ed8bb
commit 93964012e6
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#include <pixman.h>
#include <wayland-server-core.h>
#include <wlr/render/dmabuf.h>
#include <wlr/util/addon.h>
struct wlr_buffer;
struct wlr_renderer;
@ -67,6 +68,8 @@ struct wlr_buffer {
struct wl_signal destroy;
struct wl_signal release;
} events;
struct wlr_addon_set addons;
};
struct wlr_buffer_resource_interface {