Start of bt_component_factory implementation
[babeltrace.git] / include / babeltrace / babeltrace-internal.h
index 6384eee007f4d2bf922ab4a2d77dc253a49f9346..9a91ba46736128bae32bb13daa62963198a52147 100644 (file)
@@ -27,6 +27,8 @@
 #include <stdio.h>
 #include <glib.h>
 #include <stdint.h>
+#include <stdlib.h>
+#include <errno.h>
 #include <babeltrace/compat/string.h>
 
 #define PERROR_BUFLEN  200
@@ -159,6 +161,16 @@ extern int babeltrace_verbose, babeltrace_debug;
 #define max(a, b)      (((a) > (b)) ? (a) : (b))
 #endif
 
+#ifndef max_t
+#define max_t(type, a, b)      \
+       ((type) (a) > (type) (b) ? (type) (a) : (type) (b))
+#endif
+
+/*
+ * Memory allocation zeroed
+ */
+#define zmalloc(x) calloc(1, x)
+
 /*
  * BT_HIDDEN: set the hidden attribute for internal functions
  */
This page took 0.022927 seconds and 4 git commands to generate.