aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/wmem_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wmem/wmem_allocator.h')
-rw-r--r--epan/wmem/wmem_allocator.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/epan/wmem/wmem_allocator.h b/epan/wmem/wmem_allocator.h
index baa7822326..296e206de5 100644
--- a/epan/wmem/wmem_allocator.h
+++ b/epan/wmem/wmem_allocator.h
@@ -26,6 +26,7 @@
#ifndef __WMEM_ALLOCATOR_H__
#define __WMEM_ALLOCATOR_H__
+#include <glib.h>
#include <string.h>
#ifdef __cplusplus
@@ -37,10 +38,6 @@ enum _wmem_allocator_type_t;
/* See section "4. Internal Design" of doc/README.wmem for details
* on this structure */
struct _wmem_allocator_t {
- /* Implementation details */
- void *private_data;
- enum _wmem_allocator_type_t type;
-
/* Consumer functions */
void *(*alloc)(void *private_data, const size_t size);
void (*free)(void *private_data, void *ptr);
@@ -50,6 +47,13 @@ struct _wmem_allocator_t {
void (*free_all)(void *private_data);
void (*gc)(void *private_data);
void (*destroy)(struct _wmem_allocator_t *allocator);
+
+ /* Callback List */
+ GSList *callbacks;
+
+ /* Implementation details */
+ void *private_data;
+ enum _wmem_allocator_type_t type;
};
#ifdef __cplusplus