action: Mark parameter of lttng_action_get_type as const
[lttng-tools.git] / src / common / actions / action.c
index a0347a34c66ee53abd7b1851bdc362b3fffe2c78..86628542bc50186c32b20a0bc026530a235672d6 100644 (file)
@@ -15,7 +15,8 @@
 #include <lttng/action/start-session-internal.h>
 #include <lttng/action/stop-session-internal.h>
 
-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,
This page took 0.023057 seconds and 4 git commands to generate.