aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-02-02 19:53:16 +0100
committerSimon Ser <contact@emersion.fr>2021-02-02 19:53:16 +0100
commit3d7aa7386706f6aa8041f27a3fba22d5b4290e82 (patch)
treef34caef1a36d3c4582acc351629bf6242ad2bf3f
parent7ac2ce25e3bcb7e03bee98dd9dd5757f6bf12d47 (diff)
render/dmabuf: make src arg const in wlr_dmabuf_attributes_copy
-rw-r--r--include/wlr/render/dmabuf.h2
-rw-r--r--render/dmabuf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h
index b9c54896..75892d30 100644
--- a/include/wlr/render/dmabuf.h
+++ b/include/wlr/render/dmabuf.h
@@ -40,6 +40,6 @@ void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs);
* Clones the DMA-BUF attributes.
*/
bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
- struct wlr_dmabuf_attributes *src);
+ const struct wlr_dmabuf_attributes *src);
#endif
diff --git a/render/dmabuf.c b/render/dmabuf.c
index 1940b66e..3c431159 100644
--- a/render/dmabuf.c
+++ b/render/dmabuf.c
@@ -13,7 +13,7 @@ void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs) {
}
bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
- struct wlr_dmabuf_attributes *src) {
+ const struct wlr_dmabuf_attributes *src) {
memcpy(dst, src, sizeof(struct wlr_dmabuf_attributes));
int i;