summaryrefslogtreecommitdiffstats
path: root/polyp/xmalloc.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-04 16:42:37 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-04 16:42:37 +0000
commit839f99ffbf5b01e585845a061830a6fa5f0743dc (patch)
treefb5bc8e07b337b7454dc897d2cc56e840b56e592 /polyp/xmalloc.h
parent46091a9237f17f4295dca7140d8d70b4fce8b357 (diff)
forgot some files
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@104 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/xmalloc.h')
-rw-r--r--polyp/xmalloc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/polyp/xmalloc.h b/polyp/xmalloc.h
new file mode 100644
index 00000000..5f58a8ad
--- /dev/null
+++ b/polyp/xmalloc.h
@@ -0,0 +1,14 @@
+#ifndef foomemoryhfoo
+#define foomemoryhfoo
+
+#include <sys/types.h>
+
+void* pa_xmalloc(size_t l);
+void *pa_xmalloc0(size_t l);
+void *pa_xrealloc(void *ptr, size_t size);
+#define pa_xfree free
+
+char *pa_xstrdup(const char *s);
+char *pa_xstrndup(const char *s, size_t l);
+
+#endif