X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=d066728528e419c1014be3a12e32cef4f33b1c84;hb=d8fbe2a9cc6ace367bfb5428df3e7649ac012f32;hp=cb3562ffdf601f66274ffef2bd7252450184e3a2;hpb=54773d681e44cb32d6923bd2db0dcecd4bd10079;p=lttng-tools.git diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index cb3562ffd..d06672852 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -26,6 +26,13 @@ #include #include +/* Error codes that can be returned by API calls */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + /* * Event symbol length. Copied from LTTng kernel ABI. */ @@ -254,6 +261,7 @@ struct lttng_event_field { enum lttng_event_field_type type; char padding[LTTNG_EVENT_FIELD_PADDING]; struct lttng_event event; + int written; }; /* @@ -573,4 +581,8 @@ extern int lttng_disable_consumer(struct lttng_handle *handle); */ extern int lttng_health_check(enum lttng_health_component c); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_H */