summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-07-06 17:13:06 +0200
committerdimitri staessens <[email protected]>2016-07-06 19:18:00 +0200
commit03256707111ce2409de0857c65482512e42d9238 (patch)
treeeccf66deb8f0a8c1d0b610fbedc69142f5886243 /include
parent90c3c96b5c9b1e4db6bb6d1894a21aec54a965b1 (diff)
downloadouroboros-03256707111ce2409de0857c65482512e42d9238.tar.gz
ouroboros-03256707111ce2409de0857c65482512e42d9238.zip
lib: shm_du_map: Clean sdus upon exit
When an application closes the shm_du_map, it will clean all remaining sdu's for that application. Adds a function to clean the shm_du_map on close. Fixes #20.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_du_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ouroboros/shm_du_map.h b/include/ouroboros/shm_du_map.h
index 9d6d7aaf..59cd94a1 100644
--- a/include/ouroboros/shm_du_map.h
+++ b/include/ouroboros/shm_du_map.h
@@ -36,6 +36,7 @@ struct shm_du_map;
struct shm_du_map * shm_du_map_create();
struct shm_du_map * shm_du_map_open();
void shm_du_map_close(struct shm_du_map * dum);
+void shm_du_map_close_on_exit(struct shm_du_map * dum);
void shm_du_map_destroy(struct shm_du_map * dum);
pid_t shm_du_map_owner(struct shm_du_map * dum);
void * shm_du_map_sanitize(void * o);