From 10615eee4887bd869ac85885afcffd030da350be Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 15 Jan 2020 12:00:25 -0500 Subject: [PATCH] actions: Expose lttng_action_type_string internally MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- include/lttng/action/action-internal.h | 3 +++ src/common/actions/action.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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: -- 2.34.1