summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm0411_smr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/gsm/gsm0411_smr.h')
-rw-r--r--include/osmocom/gsm/gsm0411_smr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0411_smr.h b/include/osmocom/gsm/gsm0411_smr.h
index 28f43dea..75102f8f 100644
--- a/include/osmocom/gsm/gsm0411_smr.h
+++ b/include/osmocom/gsm/gsm0411_smr.h
@@ -45,4 +45,10 @@ int gsm411_smr_send(struct gsm411_smr_inst *inst, int msg_type,
int gsm411_smr_recv(struct gsm411_smr_inst *inst, int msg_type,
struct msgb *msg);
+extern const struct value_string gsm411_rp_state_names[];
+
+static inline const char *gsm411_rp_state_name(enum gsm411_rp_state rp_state) {
+ return get_value_string(gsm411_rp_state_names, rp_state);
+}
+
/*! @} */