From c679babdc5c288a02bea8ff095e9ecccbe8b693a Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Thu, 19 Aug 2010 14:05:35 +0800 Subject: sim: Read EFust and EFest --- src/simutil.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/simutil.c') diff --git a/src/simutil.c b/src/simutil.c index 4b49b006..2d0764cc 100644 --- a/src/simutil.c +++ b/src/simutil.c @@ -1416,3 +1416,21 @@ gboolean sim_parse_2g_get_response(const unsigned char *response, int len, return TRUE; } + +gboolean sim_ust_is_available(unsigned char *efust, unsigned char len, + enum sim_ust_service index) +{ + if (index >= len * 8) + return FALSE; + + return (efust[index / 8] >> (index % 8)) & 1; +} + +gboolean sim_est_is_active(unsigned char *efest, unsigned char len, + enum sim_est_service index) +{ + if (index >= len * 8) + return FALSE; + + return (efest[index / 8] >> (index % 8)) & 1; +} -- cgit v1.2.3