summaryrefslogtreecommitdiffstats
path: root/src/simutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/simutil.c')
-rw-r--r--src/simutil.c18
1 files changed, 18 insertions, 0 deletions
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;
+}