aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-02-16 20:22:28 -0500
committerSimon Ser <contact@emersion.fr>2021-04-17 09:54:39 +0200
commit0b9288ec0b8885ba0a76e54fc8949c563d39cabd (patch)
treeaf8841268849832ac6242bcb7a167e91a8017f81 /include/wlr
parent9f33d8ad39c26c00ef129419ea1c69c6966e5606 (diff)
buffer: introduce wlr_buffer_get_data_ptr
The function has been place in an internal header for API stability reasons.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h
index 84555899..59996fce 100644
--- a/include/wlr/types/wlr_buffer.h
+++ b/include/wlr/types/wlr_buffer.h
@@ -19,6 +19,8 @@ struct wlr_buffer_impl {
void (*destroy)(struct wlr_buffer *buffer);
bool (*get_dmabuf)(struct wlr_buffer *buffer,
struct wlr_dmabuf_attributes *attribs);
+ bool (*get_data_ptr)(struct wlr_buffer *buffer, void **data,
+ size_t *stride);
};
/**