X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcontext.h;h=b6755addacb4453325aa2b122587677fe9d40638;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=f4abd841726d41b1ad48fcf52d8eea9ec6b6d1f9;hpb=ca806b0b247f89c62ac628a7779ae84049a8c2d7;p=lttng-tools.git diff --git a/src/common/context.h b/src/common/context.h index f4abd8417..b6755adda 100644 --- a/src/common/context.h +++ b/src/common/context.h @@ -10,6 +10,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* * Parse string as an application context of the form * "$app.provider_name:context_name" and return the provider name and context @@ -24,4 +28,8 @@ int parse_application_context(const char *str, char **provider_name, char **ctx_name); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_COMMON_CONTEXT_H */