aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/shm.h b/shm.h
index 312d45a9..555c5d51 100644
--- a/shm.h
+++ b/shm.h
@@ -7,6 +7,8 @@
#include <wayland-client.h>
struct buffer {
+ unsigned long cookie;
+
int width;
int height;
int stride;
@@ -19,5 +21,6 @@ struct buffer {
pixman_image_t *pix;
};
-struct buffer *shm_get_buffer(struct wl_shm *shm, int width, int height);
+struct buffer *shm_get_buffer(
+ struct wl_shm *shm, int width, int height, unsigned long cookie);
void shm_fini(void);