aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-09 18:30:16 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-02-06 19:14:15 +0000
commit0c966f102c1d1940718cf96888036605e35074fb (patch)
tree139ce9a2ac89c0652bfadd96694c5e19d5e20626 /include/wlr
parentb264ec7767ab3e3fdfe0d1cf2372c26403787245 (diff)
linux-dmabuf-v1: add wlr_linux_dmabuf_feedback_v1_init_with_options()
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_linux_dmabuf_v1.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h
index 94fffe98..6bb0712e 100644
--- a/include/wlr/types/wlr_linux_dmabuf_v1.h
+++ b/include/wlr/types/wlr_linux_dmabuf_v1.h
@@ -111,4 +111,19 @@ struct wlr_linux_dmabuf_feedback_v1_tranche *wlr_linux_dmabuf_feedback_add_tranc
*/
void wlr_linux_dmabuf_feedback_v1_finish(struct wlr_linux_dmabuf_feedback_v1 *feedback);
+struct wlr_linux_dmabuf_feedback_v1_init_options {
+ // Main renderer used by the compositor
+ struct wlr_renderer *main_renderer;
+ // Output on which direct scan-out is possible on the primary plane, or NULL
+ struct wlr_output *scanout_primary_output;
+};
+
+/**
+ * Initialize a DMA-BUF feedback object with the provided options.
+ *
+ * The caller is responsible for calling wlr_linux_dmabuf_feedback_v1_finish() after use.
+ */
+bool wlr_linux_dmabuf_feedback_v1_init_with_options(struct wlr_linux_dmabuf_feedback_v1 *feedback,
+ const struct wlr_linux_dmabuf_feedback_v1_init_options *options);
+
#endif