X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcontext.h;h=b6755addacb4453325aa2b122587677fe9d40638;hb=6e53c52d3bf42bac72d7437684657ac442499616;hp=036f2004dec13742dfbc194576bfbb5e9a69f402;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/context.h b/src/common/context.h index 036f2004d..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 @@ -21,8 +25,11 @@ * Returns 0 if the string is a valid application context, else a negative * value on error. */ -LTTNG_HIDDEN int parse_application_context(const char *str, char **provider_name, char **ctx_name); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_COMMON_CONTEXT_H */