summaryrefslogtreecommitdiff
path: root/mm-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-25 17:14:24 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-25 17:14:24 +0000
commit555e300ab282812f6fe4d776908584275993ba76 (patch)
tree234f38e2d46e5b91f6a482d50e4a5a747ae40eba /mm-internal.h
parent7eb250e9c52813f30fef256b97f08a6871fd381a (diff)
downloadlibevent-555e300ab282812f6fe4d776908584275993ba76.tar.gz
r14940@tombo: nickm | 2007-11-25 12:01:37 -0500
New mm-internal.h header that includes internal memory management functions. svn:r542
Diffstat (limited to 'mm-internal.h')
-rw-r--r--mm-internal.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/mm-internal.h b/mm-internal.h
new file mode 100644
index 00000000..52a6fa5b
--- /dev/null
+++ b/mm-internal.h
@@ -0,0 +1,22 @@
+
+#ifndef _EVENT_MM_INTERNAL_H
+#define _EVENT_MM_INTERNAL_H
+
+#include <sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Internal use only: Memory allocation functions. */
+void *event_malloc(size_t sz);
+void *event_calloc(size_t count, size_t size);
+char *event_strdup(const char *s);
+void *event_realloc(void *p, size_t sz);
+void event_free(void *p);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif