X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Flttng-error.h;h=790a78a0b60e88188486fc230b84c01ba031f347;hb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;hp=d955e143a0055dd90e52891c4b4d2c5366c05e42;hpb=b99a0cb3edd93f55e712096a352d64b79d4716bb;p=lttng-tools.git diff --git a/include/lttng/lttng-error.h b/include/lttng/lttng-error.h index d955e143a..790a78a0b 100644 --- a/include/lttng/lttng-error.h +++ b/include/lttng/lttng-error.h @@ -15,6 +15,8 @@ #ifndef LTTNG_ERROR_H #define LTTNG_ERROR_H +#include + #ifdef __cplusplus extern "C" { #endif @@ -180,6 +182,7 @@ enum lttng_error_code { LTTNG_ERR_EVENT_NOTIFIER_ERROR_ACCOUNTING = 167, /* Error initializing event notifier error accounting. */ LTTNG_ERR_EVENT_NOTIFIER_ERROR_ACCOUNTING_FULL = 168, /* Error event notifier error accounting full. */ LTTNG_ERR_INVALID_ERROR_QUERY_TARGET = 169, /* Invalid error query target. */ + LTTNG_ERR_BUFFER_FLUSH_FAILED = 170, /* Buffer flush failed */ /* MUST be last element of the manually-assigned section of the enum */ LTTNG_ERR_NR, @@ -194,7 +197,7 @@ enum lttng_error_code { * * Parameter MUST be a negative value or else you'll get a generic message. */ -extern const char *lttng_strerror(int code); +LTTNG_EXPORT extern const char *lttng_strerror(int code); #ifdef __cplusplus }