Add lttng-error.h containing every API err. code
[lttng-tools.git] / src / common / error.h
index 4350408e6aa3fb8159721a90d29e54d85d75a027..03af109a14fbc3772af12fe2661ab31a2e3d3f9a 100644 (file)
 
 #include <errno.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <string.h>
 
 #ifndef _GNU_SOURCE
 #error "lttng-tools error.h needs _GNU_SOURCE"
 #endif
 
+#include <lttng/lttng-error.h>
+
 /* Stringify the expansion of a define */
 #define XSTR(d) STR(d)
 #define STR(s) #s
@@ -109,4 +112,6 @@ extern int lttng_opt_verbose;
        } while(0);
 #endif
 
+const char *error_get_str(int32_t code);
+
 #endif /* _ERROR_H */
This page took 0.02314 seconds and 4 git commands to generate.