summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm0411_smc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/gsm/gsm0411_smc.h')
-rw-r--r--include/osmocom/gsm/gsm0411_smc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0411_smc.h b/include/osmocom/gsm/gsm0411_smc.h
index 7dfaa150..d05c0188 100644
--- a/include/osmocom/gsm/gsm0411_smc.h
+++ b/include/osmocom/gsm/gsm0411_smc.h
@@ -64,4 +64,9 @@ int gsm411_smc_send(struct gsm411_smc_inst *inst, int msg_type,
int gsm411_smc_recv(struct gsm411_smc_inst *inst, int msg_type,
struct msgb *msg, int cp_msg_type);
+extern const struct value_string gsm411_cp_state_names[];
+
+static inline const char *gsm411_cp_state_name(enum gsm411_cp_state cp_state) {
+ return get_value_string(gsm411_cp_state_names, cp_state);
+}
/*! @} */