summaryrefslogtreecommitdiff
path: root/epan/wmem/wmem_core.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-10-27 02:42:05 +0000
committerEvan Huus <eapache@gmail.com>2012-10-27 02:42:05 +0000
commitb464dcd8888d1cd8ad4e16022d358d555a27f4fd (patch)
tree2a100927c562fe065e682b54113cd63f4a1582f2 /epan/wmem/wmem_core.h
parent2ea364607a49c3c73ba0ddadf4ed88e7bf9bce98 (diff)
downloadwireshark-b464dcd8888d1cd8ad4e16022d358d555a27f4fd.tar.gz
Create init and cleanup functions for wmem as a whole.
Call them from epan_init() and epan_cleanup(). Expose a permanent wmem scope for allocations that should only be freed when epan is done (which is *not* necessarily when the program finishes). svn path=/trunk/; revision=45805
Diffstat (limited to 'epan/wmem/wmem_core.h')
-rw-r--r--epan/wmem/wmem_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/wmem/wmem_core.h b/epan/wmem/wmem_core.h
index 4de4e6eb60..8d7753d54c 100644
--- a/epan/wmem/wmem_core.h
+++ b/epan/wmem/wmem_core.h
@@ -48,6 +48,15 @@ wmem_free_all(wmem_allocator_t *allocator);
void
wmem_destroy_allocator(wmem_allocator_t *allocator);
+wmem_allocator_t *
+wmem_permanent_scope(void);
+
+void
+wmem_init(void);
+
+void
+wmem_cleanup(void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */