summaryrefslogtreecommitdiffstats
path: root/src/simutil.c
diff options
context:
space:
mode:
authorYang Gu <yang.gu@intel.com>2010-03-26 00:07:31 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-03-25 11:36:11 -0500
commita13db81229d5657bc0d8202059114290a7b65067 (patch)
tree979c7f237d4e92ef645e7b8220ac10c77f99a952 /src/simutil.c
parent8ecf7fd24dd3c36758d1bd6eb09792967422961d (diff)
downloadofono-a13db81229d5657bc0d8202059114290a7b65067.tar.bz2
Make the function to parse mcc and mnc public
Diffstat (limited to 'src/simutil.c')
-rw-r--r--src/simutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simutil.c b/src/simutil.c
index d9383b7a..9fb111f4 100644
--- a/src/simutil.c
+++ b/src/simutil.c
@@ -538,7 +538,7 @@ static char *sim_network_name_parse(const unsigned char *buffer, int length,
return ret;
}
-static void parse_mcc_mnc(const guint8 *bcd, char *mcc, char *mnc)
+void sim_parse_mcc_mnc(const guint8 *bcd, char *mcc, char *mnc)
{
static const char digit_lut[] = "0123456789*#abd\0";
guint8 digit;
@@ -609,7 +609,7 @@ struct sim_spdi *sim_spdi_new(const guint8 *tlv, int length)
oper = g_new0(struct spdi_operator, 1);
- parse_mcc_mnc(plmn_list, oper->mcc, oper->mnc);
+ sim_parse_mcc_mnc(plmn_list, oper->mcc, oper->mnc);
spdi->operators = g_slist_insert_sorted(spdi->operators, oper,
spdi_operator_compare);
}
@@ -694,7 +694,7 @@ static struct opl_operator *opl_operator_alloc(const guint8 *record)
{
struct opl_operator *oper = g_new0(struct opl_operator, 1);
- parse_mcc_mnc(record, oper->mcc, oper->mnc);
+ sim_parse_mcc_mnc(record, oper->mcc, oper->mnc);
record += 3;
oper->lac_tac_low = (record[0] << 8) | record[1];