From: Mathieu Desnoyers Date: Thu, 10 Mar 2016 15:17:53 +0000 (-0500) Subject: Fix: move lttng_context_is_app to core file X-Git-Tag: v2.8.0-rc1~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ce47f5d8417e9cc78e41be04428f4837071ae79b;p=lttng-ust.git Fix: move lttng_context_is_app to core file Needed by both lttng-ust and lttng-ust-ctl. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-context.c b/liblttng-ust/lttng-context.c index e2032162..4e5b3084 100644 --- a/liblttng-ust/lttng-context.c +++ b/liblttng-ust/lttng-context.c @@ -55,14 +55,6 @@ int lttng_find_context(struct lttng_ctx *ctx, const char *name) return 0; } -int lttng_context_is_app(const char *name) -{ - if (strncmp(name, "$app.", strlen("$app.")) != 0) { - return 0; - } - return 1; -} - int lttng_get_context_index(struct lttng_ctx *ctx, const char *name) { unsigned int i; diff --git a/liblttng-ust/ust-core.c b/liblttng-ust/ust-core.c index 0182d957..6574f93b 100644 --- a/liblttng-ust/ust-core.c +++ b/liblttng-ust/ust-core.c @@ -106,3 +106,11 @@ void lttng_ust_dummy_get_value(struct lttng_ctx_field *field, { value->sel = LTTNG_UST_DYNAMIC_TYPE_NONE; } + +int lttng_context_is_app(const char *name) +{ + if (strncmp(name, "$app.", strlen("$app.")) != 0) { + return 0; + } + return 1; +}