X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=d066728528e419c1014be3a12e32cef4f33b1c84;hb=d8fbe2a9cc6ace367bfb5428df3e7649ac012f32;hp=dd5d936c5faaed64910f4220e04025b691606028;hpb=03b1319df1a6c74a152d4723bf1bf9e1cdf770e1;p=lttng-tools.git diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index dd5d936c5..d06672852 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -29,6 +29,10 @@ /* Error codes that can be returned by API calls */ #include +#ifdef __cplusplus +extern "C" { +#endif + /* * Event symbol length. Copied from LTTng kernel ABI. */ @@ -257,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; }; /* @@ -576,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 */