aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-01-18 19:48:40 +0100
committerSimon Ser <contact@emersion.fr>2022-08-03 10:35:23 +0000
commitb24b50ec0c1c54a14acf34df2c95b37043d15b49 (patch)
tree2e95884e87cbfd0c638e69c73683b5661303b9d5 /include
parentf1e05a64933d78830e0d783758f8d584ce16b825 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_single_pixel_buffer_v1.h19
1 files changed, 19 insertions, 0 deletions
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 <wayland-server-core.h>
+
+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