X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcontext.h;h=8791b71d1a46c94d8b0c91976be5abec5e58fd80;hp=5552f4da5736c400c661142a2cc8f8fe285b10b9;hb=b12ed34b0005becf4b7e4e1102b49f5f510630c1;hpb=ae8c46e0602f4c688f8c7743b9a7891a0a7ce91e diff --git a/src/common/context.h b/src/common/context.h index 5552f4da5..8791b71d1 100644 --- a/src/common/context.h +++ b/src/common/context.h @@ -18,6 +18,8 @@ #ifndef LTTNG_COMMON_CONTEXT_H #define LTTNG_COMMON_CONTEXT_H +#include + /* * Parse string as an application context of the form * "$app.provider_name:context_name" and return the provider name and context @@ -29,6 +31,7 @@ * 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);