aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-09 18:06:26 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-02-06 19:14:15 +0000
commitb264ec7767ab3e3fdfe0d1cf2372c26403787245 (patch)
tree411eba95412ce73d3da83685a03ecc913acc6175 /include
parent5cd14dfc91dfa581a1c4ad675939f6b227fd44ab (diff)
linux-dmabuf-v1: add basic helpers for feedback
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_linux_dmabuf_v1.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h
index e850ea6b..94fffe98 100644
--- a/include/wlr/types/wlr_linux_dmabuf_v1.h
+++ b/include/wlr/types/wlr_linux_dmabuf_v1.h
@@ -98,4 +98,17 @@ bool wlr_linux_dmabuf_v1_set_surface_feedback(
struct wlr_linux_dmabuf_v1 *linux_dmabuf, struct wlr_surface *surface,
const struct wlr_linux_dmabuf_feedback_v1 *feedback);
+/**
+ * Append a tranche at the end of the DMA-BUF feedback list.
+ *
+ * Tranches must be added with decreasing priority.
+ */
+struct wlr_linux_dmabuf_feedback_v1_tranche *wlr_linux_dmabuf_feedback_add_tranche(
+ struct wlr_linux_dmabuf_feedback_v1 *feedback);
+
+/**
+ * Release resources allocated by a DMA-BUF feedback object.
+ */
+void wlr_linux_dmabuf_feedback_v1_finish(struct wlr_linux_dmabuf_feedback_v1 *feedback);
+
#endif