buffer: introduce wlr_buffer_finish()

This commit is contained in:
Kirill Primak 2024-11-22 23:18:55 +03:00 committed by Isaac Freund
parent 5eed5d622d
commit 7963ba6a0d
12 changed files with 38 additions and 9 deletions

View file

@ -36,6 +36,11 @@ struct wlr_buffer_resource_interface {
void wlr_buffer_init(struct wlr_buffer *buffer,
const struct wlr_buffer_impl *impl, int width, int height);
/**
* Emit the destroy event and clean up common buffer state.
*/
void wlr_buffer_finish(struct wlr_buffer *buffer);
/**
* Allows the registration of a struct wl_resource implementation.
*