]> granicus.if.org Git - libevent/commitdiff
r14940@tombo: nickm | 2007-11-25 12:01:37 -0500
authorNick Mathewson <nickm@torproject.org>
Sun, 25 Nov 2007 17:14:24 +0000 (17:14 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 25 Nov 2007 17:14:24 +0000 (17:14 +0000)
 New mm-internal.h header that includes internal memory management functions.

svn:r542

mm-internal.h [new file with mode: 0644]

diff --git a/mm-internal.h b/mm-internal.h
new file mode 100644 (file)
index 0000000..52a6fa5
--- /dev/null
@@ -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