X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=03af109a14fbc3772af12fe2661ab31a2e3d3f9a;hb=91dfef6e2f50460b9597fc8a8186949c48557c14;hp=4350408e6aa3fb8159721a90d29e54d85d75a027;hpb=f37d259d342af1ff8855d9eaa578cb7a3cfcc4f2;p=lttng-tools.git diff --git a/src/common/error.h b/src/common/error.h index 4350408e6..03af109a1 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -20,12 +20,15 @@ #include #include +#include #include #ifndef _GNU_SOURCE #error "lttng-tools error.h needs _GNU_SOURCE" #endif +#include + /* 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 */