aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/utils/allocator.h')
-rw-r--r--Source/charon/utils/allocator.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/charon/utils/allocator.h b/Source/charon/utils/allocator.h
index 7ea0fb60d..a2f3292b6 100644
--- a/Source/charon/utils/allocator.h
+++ b/Source/charon/utils/allocator.h
@@ -172,7 +172,15 @@
void (*report_memory_leaks) (allocator_t *this);
};
-
+
+ /**
+ * @brief Initialize the allocator.
+ *
+ * Setup the allocator (currently set
+ * allocation functions for libgmp)
+ */
+ void allocator_init();
+
/**
* @brief Global allocater_t object.
*
@@ -316,7 +324,14 @@
*
* @ingroup utils
*/
- #define report_memory_leaks(void) {}
+ #define report_memory_leaks() {}
+
+ /**
+ * Initialize the allocator.
+ *
+ * @ingroup utils
+ */
+ #define allocator_init() {}
#endif
#endif /*ALLOCATOR_H_*/