From ce47f5d8417e9cc78e41be04428f4837071ae79b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 10 Mar 2016 10:17:53 -0500 Subject: [PATCH] Fix: move lttng_context_is_app to core file Needed by both lttng-ust and lttng-ust-ctl. Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-context.c | 8 -------- liblttng-ust/ust-core.c | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) 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; +} -- 2.34.1