summaryrefslogtreecommitdiffstats
path: root/include/sim.h
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2010-08-27 09:19:24 -0700
committerDenis Kenzior <denkenz@gmail.com>2010-09-09 08:45:32 -0500
commit95d957b62ec79effa9ebe27bea5f4d77a1d8984c (patch)
treea7f85ff826167e109f3de15466623c4c8f6e4aa1 /include/sim.h
parentff093fb6d3b8ea8e682927716da38831dc597f18 (diff)
downloadofono-95d957b62ec79effa9ebe27bea5f4d77a1d8984c.tar.bz2
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.
Diffstat (limited to 'include/sim.h')
-rw-r--r--include/sim.h4
1 files changed, 4 insertions, 0 deletions
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