X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=a9aee7233e7307735982c951b937ed5c2012d38e;hp=dd5d936c5faaed64910f4220e04025b691606028;hb=5168918c35a95e9d955fa4efb6533aaafe05b2e5;hpb=d00c599e39ae45ec7c8e12e6bac6b5e58f08f817 diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index dd5d936c5..a9aee7233 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. */ @@ -576,4 +580,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 */