diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-09 02:09:09 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-02-15 23:26:07 +0000 |
commit | 10f5fb49dbe8e79390758d8a83e826865d76929d (patch) | |
tree | 8ec560d195272fa0265419592d6bf7c24ec17417 /include/osmocom | |
parent | 3e6d5701e6aa56979165e58d896c14040966f04b (diff) |
gsup: add osmo_gsup_message_type_name()
Change-Id: Ic29b588b72893821d73fe90ecc16c6bf78d5a360
Diffstat (limited to 'include/osmocom')
-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 e2912a64..04b31d0b 100644 --- a/include/osmocom/gsm/gsup.h +++ b/include/osmocom/gsm/gsup.h @@ -95,6 +95,11 @@ enum osmo_gsup_message_type { #define OSMO_GSUP_IS_MSGT_ERROR(msgt) (((msgt) & 0b00000011) == 0b01) #define OSMO_GSUP_TO_MSGT_ERROR(msgt) (((msgt) & 0b11111100) | 0b01) +extern const struct value_string osmo_gsup_message_type_names[]; +static inline const char * +osmo_gsup_message_type_name(enum osmo_gsup_message_type val) +{ return get_value_string(osmo_gsup_message_type_names, val); } + enum osmo_gsup_cancel_type { OSMO_GSUP_CANCEL_TYPE_UPDATE = 1, /* on wire: 0 */ OSMO_GSUP_CANCEL_TYPE_WITHDRAW = 2, /* on wire: 1 */ |