From 9eb6d88d644c9e7d85177c39f12952fd2f4d9138 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 25 Mar 2010 12:00:54 +0800 Subject: replace gsm48_cc_msg_names[] with gsm48_cc_msg_name() and implement the backend using value_string --- include/osmocore/gsm48.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/osmocore') diff --git a/include/osmocore/gsm48.h b/include/osmocore/gsm48.h index 787cdd0..1e96357 100644 --- a/include/osmocore/gsm48.h +++ b/include/osmocore/gsm48.h @@ -5,8 +5,8 @@ #include extern const struct tlv_definition gsm48_att_tlvdef; -extern const char *cc_state_names[32]; -extern const char *gsm48_cc_msg_names[0x40]; +const char *gsm48_cc_state_name(uint8_t state); +const char *gsm48_cc_msg_name(uint8_t msgtype); const char *rr_cause_name(uint8_t cause); void gsm48_generate_lai(struct gsm48_loc_area_id *lai48, uint16_t mcc, -- cgit v1.2.3-55-g7522