28
28
struct sim_fs *sim_fs_new(struct ofono_sim *sim,
29
29
const struct ofono_sim_driver *driver);
31
int sim_fs_read(struct sim_fs *fs, int id,
30
struct ofono_sim_context *sim_fs_context_new(struct sim_fs *fs);
32
unsigned int sim_fs_file_watch_add(struct ofono_sim_context *context,
33
int id, ofono_sim_file_changed_cb_t cb,
35
ofono_destroy_func destroy);
36
void sim_fs_file_watch_remove(struct ofono_sim_context *context,
39
/* Id of -1 notifies all watches, serving as a wildcard */
40
void sim_fs_notify_file_watches(struct sim_fs *fs, int id);
42
int sim_fs_read(struct ofono_sim_context *context, int id,
32
43
enum ofono_sim_file_structure expected_type,
33
44
unsigned short offset, unsigned short num_bytes,
34
45
ofono_sim_file_read_cb_t cb, void *data);
36
int sim_fs_read_info(struct sim_fs *fs, int id,
47
int sim_fs_read_info(struct ofono_sim_context *context, int id,
37
48
enum ofono_sim_file_structure expected_type,
38
49
sim_fs_read_info_cb_t cb, void *data);
40
51
void sim_fs_check_version(struct sim_fs *fs);
42
int sim_fs_write(struct sim_fs *fs, int id, ofono_sim_file_write_cb_t cb,
53
int sim_fs_write(struct ofono_sim_context *context, int id,
54
ofono_sim_file_write_cb_t cb,
43
55
enum ofono_sim_file_structure structure, int record,
44
56
const unsigned char *data, int length, void *userdata);