X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcontext.h;h=b6755addacb4453325aa2b122587677fe9d40638;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hp=f4abd841726d41b1ad48fcf52d8eea9ec6b6d1f9;hpb=3a5f70173aa04d11ccb22694d5d31a702cad33ab;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 */