mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
shm: add shm_purge()
Destroys *all* buffers associated with the specified cookie.
This commit is contained in:
parent
4d3251a93b
commit
8e5d386afc
2 changed files with 19 additions and 0 deletions
2
shm.h
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue