aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 23:49:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 23:49:00 +0000
commit8e5d386afc3c62c587d5e05ff111b41bdf421eea (patch)
treef1070f990cbefd13f03fc9c19e97cafcd02a1c42 /shm.h
parentrender: last_buf may point to a free:d buffer (diff)
shm: add shm_purge()
Destroys *all* buffers associated with the specified cookie.
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shm.h b/shm.h
index 555c5d51..cec0ef81 100644
--- a/shm.h
+++ b/shm.h
@@ -24,3 +24,5 @@ struct buffer {
struct buffer *shm_get_buffer(
struct wl_shm *shm, int width, int height, unsigned long cookie);
void shm_fini(void);
+
+void shm_purge(struct wl_shm *shm, unsigned long cookie);