From b24b50ec0c1c54a14acf34df2c95b37043d15b49 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 18 Jan 2022 19:48:40 +0100 Subject: single-pixel-buffer-v1: new protocol implementation This implements the single-pixel-buffer-v1 protocol [1], to allow clients to create 1x1 buffers with a single color. [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/104 --- include/wlr/types/wlr_single_pixel_buffer_v1.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/wlr/types/wlr_single_pixel_buffer_v1.h (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_single_pixel_buffer_v1.h b/include/wlr/types/wlr_single_pixel_buffer_v1.h new file mode 100644 index 00000000..3eba546a --- /dev/null +++ b/include/wlr/types/wlr_single_pixel_buffer_v1.h @@ -0,0 +1,19 @@ +/* + * This an unstable interface of wlroots. No guarantees are made regarding the + * future consistency of this API. + */ +#ifndef WLR_USE_UNSTABLE +#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features" +#endif + +#ifndef WLR_TYPES_WLR_SINGLE_PIXEL_BUFFER_V1 +#define WLR_TYPES_WLR_SINGLE_PIXEL_BUFFER_V1 + +#include + +struct wlr_single_pixel_buffer_manager_v1; + +struct wlr_single_pixel_buffer_manager_v1 *wlr_single_pixel_buffer_manager_v1_create( + struct wl_display *display); + +#endif -- cgit v1.2.3