summaryrefslogtreecommitdiffstats
path: root/src/simutil.h
diff options
context:
space:
mode:
authorPetteri Tikander <petteri.tikander@ixonos.com>2010-10-15 00:02:49 +0300
committerDenis Kenzior <denkenz@gmail.com>2010-10-15 02:01:34 -0500
commit1f2140dabe18e195adf24efafcb51f53a4eb2cce (patch)
tree228a98eec93b29f2a4ae23c42f7f91e91655b05b /src/simutil.h
parent1e1ddfcf1bd5f8b6097ee3cfff99beb1eab6ad53 (diff)
downloadofono-1f2140dabe18e195adf24efafcb51f53a4eb2cce.tar.bz2
simutil: response-handler returns now also file-status
Diffstat (limited to 'src/simutil.h')
-rw-r--r--src/simutil.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/simutil.h b/src/simutil.h
index 69ef528e..dc4ff57e 100644
--- a/src/simutil.h
+++ b/src/simutil.h
@@ -58,6 +58,13 @@ enum sim_file_access {
SIM_FILE_ACCESS_NEVER = 15,
};
+/* 51.011 Section 9.3 */
+enum sim_file_status {
+ SIM_FILE_STATUS_INVALID = 0x00,
+ SIM_FILE_STATUS_VALID = 0x01,
+ SIM_FILE_STATUS_RW_WHEN_INVALID = 0x04,
+};
+
/* 131.102 Section 4.2.8 */
enum sim_ust_service {
SIM_UST_SERVICE_LOCAL_PHONE_BOOK = 0,
@@ -426,7 +433,8 @@ gboolean sim_parse_3g_get_response(const unsigned char *data, int len,
gboolean sim_parse_2g_get_response(const unsigned char *response, int len,
int *file_len, int *record_len,
- int *structure, unsigned char *access);
+ int *structure, unsigned char *access,
+ unsigned char *file_status);
gboolean sim_ust_is_available(unsigned char *service_ust, unsigned char len,
enum sim_ust_service index);