diff options
author | Keith <keith@rhizomatica.org> | 2018-08-31 20:09:18 +0200 |
---|---|---|
committer | Keith <keith@rhizomatica.org> | 2018-09-02 12:33:54 +0200 |
commit | 3cdaa8d52517093ec846774f4ce0f66a43b17e17 (patch) | |
tree | 5139392060b1ff2f45d55db438a47e381f6e26d7 /include | |
parent | 1a72bafa5df03718bb1c328f3d64078dc5e70feb (diff) |
Add CC_CAUSE value_string array
Adds a value_string array for GSM 04.08 Call Control
cause values
Change-Id: I296f208581ce2550805f9d96e20f7319e1199023
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/gsm/protocol/gsm_04_08.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h index 46350147..e218295c 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08.h +++ b/include/osmocom/gsm/protocol/gsm_04_08.h @@ -1495,6 +1495,10 @@ enum gsm48_cc_cause { GSM48_CC_CAUSE_INTERWORKING = 127, }; +extern const struct value_string gsm48_cc_cause_names[]; +static inline const char *gsm48_cc_cause_name(enum gsm48_cc_cause val) +{ return get_value_string(gsm48_cc_cause_names, val); } + /* Annex G, GSM specific cause values for mobility management */ enum gsm48_reject_value { GSM48_REJECT_IMSI_UNKNOWN_IN_HLR = 2, |