Fix: move lttng_context_is_app to core file
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Mar 2016 15:17:53 +0000 (10:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Mar 2016 15:17:53 +0000 (10:17 -0500)
Needed by both lttng-ust and lttng-ust-ctl.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-context.c
liblttng-ust/ust-core.c

index e2032162e514c8e1aac85e6ee88a13c559cc0cb8..4e5b308466212563acc2342ecb929c00349dad35 100644 (file)
@@ -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;
index 0182d95722040a24d4a57969ff95071eaf51513a..6574f93b194150540456bdb9dfd86d5479381acc 100644 (file)
@@ -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;
+}
This page took 0.025966 seconds and 4 git commands to generate.