X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Factions%2Faction.c;h=86628542bc50186c32b20a0bc026530a235672d6;hp=a0347a34c66ee53abd7b1851bdc362b3fffe2c78;hb=17182cfd13b6d35cf8c80d4f9ccf8d2bdd1a05f2;hpb=0c51e8f329cdd907761e34c3e4394200a56c6812 diff --git a/src/common/actions/action.c b/src/common/actions/action.c index a0347a34c..86628542b 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: @@ -37,18 +38,11 @@ static const char *lttng_action_type_string(enum lttng_action_type action_type) } } -enum lttng_action_type lttng_action_get_type(struct lttng_action *action) +enum lttng_action_type lttng_action_get_type(const struct lttng_action *action) { return action ? action->type : LTTNG_ACTION_TYPE_UNKNOWN; } -LTTNG_HIDDEN -enum lttng_action_type lttng_action_get_type_const( - const struct lttng_action *action) -{ - return action->type; -} - LTTNG_HIDDEN void lttng_action_init( struct lttng_action *action,