From: Jonathan Rajotte Date: Wed, 15 Jan 2020 17:00:25 +0000 (-0500) Subject: actions: Expose lttng_action_type_string internally X-Git-Tag: v2.13.0-rc1~613 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=10615eee4887bd869ac85885afcffd030da350be;p=lttng-tools.git actions: Expose lttng_action_type_string internally This will ease debugging output on the action handling code. Change-Id: I81b6faf5bb8b5082edcf3895ea88c8690572475a Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/include/lttng/action/action-internal.h b/include/lttng/action/action-internal.h index e4c3b7b09..57035d869 100644 --- a/include/lttng/action/action-internal.h +++ b/include/lttng/action/action-internal.h @@ -75,4 +75,7 @@ void lttng_action_get(struct lttng_action *action); LTTNG_HIDDEN void lttng_action_put(struct lttng_action *action); +LTTNG_HIDDEN +const char* lttng_action_type_string(enum lttng_action_type action_type); + #endif /* LTTNG_ACTION_INTERNAL_H */ diff --git a/src/common/actions/action.c b/src/common/actions/action.c index a0347a34c..11b3c5501 100644 --- a/src/common/actions/action.c +++ b/src/common/actions/action.c @@ -15,7 +15,8 @@ #include #include -static const char *lttng_action_type_string(enum lttng_action_type action_type) +LTTNG_HIDDEN +const char *lttng_action_type_string(enum lttng_action_type action_type) { switch (action_type) { case LTTNG_ACTION_TYPE_UNKNOWN: