X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Flttng-error.h;h=790a78a0b60e88188486fc230b84c01ba031f347;hb=8ddd72efb54e568ddead0aa3fbc05a3ced24da7d;hp=db0f5e0f7f0308da85ba62822324ae03a42be554;hpb=352b58f55f53e7d11fb286ddc26a3bd0ecdd02f5;p=lttng-tools.git diff --git a/include/lttng/lttng-error.h b/include/lttng/lttng-error.h index db0f5e0f7..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 @@ -175,6 +177,12 @@ enum lttng_error_code { LTTNG_ERR_UNSUPPORTED_DOMAIN = 162, /* Unsupported domain used. */ LTTNG_ERR_PROCESS_ATTR_TRACKER_INVALID_TRACKING_POLICY = 163, /* Operation does not apply to the process attribute tracker's tracking policy */ LTTNG_ERR_EVENT_NOTIFIER_GROUP_NOTIFICATION_FD = 164, /* Error initializing event notifier group notification file descriptor */ + LTTNG_ERR_INVALID_CAPTURE_EXPRESSION = 165, /* Invalid capture expression. */ + LTTNG_ERR_EVENT_NOTIFIER_REGISTRATION = 166, /* Error registering event notifier to the tracer. */ + 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, @@ -189,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 }