From 95d957b62ec79effa9ebe27bea5f4d77a1d8984c Mon Sep 17 00:00:00 2001 From: Kristen Carlson Accardi Date: Fri, 27 Aug 2010 09:19:24 -0700 Subject: sim: read EFiidf EFiidf can be larger than 256 bytes, so allow callers to read portions of the EFiidf from a specified offset. Cache EFiidf files as blocks of 256 bytes so that it's not necessary to read the entire (potentially large) file. --- include/sim.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sim.h') diff --git a/include/sim.h b/include/sim.h index 5bd1dd33..b4e85411 100644 --- a/include/sim.h +++ b/include/sim.h @@ -202,6 +202,10 @@ int ofono_sim_write(struct ofono_sim *sim, int id, ofono_sim_file_write_cb_t cb, enum ofono_sim_file_structure structure, int record, const unsigned char *data, int length, void *userdata); + +int ofono_sim_read_bytes(struct ofono_sim *sim, int id, + unsigned short offset, int num_bytes, + ofono_sim_file_read_cb_t cb, void *data); #ifdef __cplusplus } #endif -- cgit v1.2.3