diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-06-16 11:10:12 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-06-16 11:11:08 +0200 |
commit | 6a6a609309bee71e0ed0cba4753f06ae36038a44 (patch) | |
tree | 0c46fb1b679e8f2cd06e34d3cb1a9d470a6bb529 /include/osmocom/gsm | |
parent | f1318fe371a1943b8e3dc291a19844e084cbb2c2 (diff) |
gsup: Add value_string for Session State IE
In Change-Id I1cee271fed0284a134ffed103c0d4bebbcfde2a8 we added support
for a new session state IE, but we didn't add any value_string array
for string conversion of it. Let's fix this.
Change-Id: I3d9f087786dc37c42498fa9a2be07483ec93ba7b
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r-- | include/osmocom/gsm/gsup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsup.h b/include/osmocom/gsm/gsup.h index e246639a..0ef5a759 100644 --- a/include/osmocom/gsm/gsup.h +++ b/include/osmocom/gsm/gsup.h @@ -154,6 +154,11 @@ enum osmo_gsup_session_state { OSMO_GSUP_SESSION_STATE_END = 0x03, }; +extern const struct value_string osmo_gsup_session_state_names[]; +static inline const char * +osmo_gsup_session_state_name(enum osmo_gsup_session_state val) +{ return get_value_string(osmo_gsup_session_state_names, val); } + /*! parsed/decoded PDP context information */ struct osmo_gsup_pdp_info { unsigned int context_id; |