~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to src/simfs.h

  • Committer: Kalle Valo
  • Date: 2011-02-21 07:46:07 UTC
  • mfrom: (2738.1.2125)
  • Revision ID: kalle.valo@canonical.com-20110221074607-u4rocuj2p75kpht9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
struct sim_fs *sim_fs_new(struct ofono_sim *sim,
29
29
                                const struct ofono_sim_driver *driver);
30
 
 
31
 
int sim_fs_read(struct sim_fs *fs, int id,
 
30
struct ofono_sim_context *sim_fs_context_new(struct sim_fs *fs);
 
31
 
 
32
unsigned int sim_fs_file_watch_add(struct ofono_sim_context *context,
 
33
                                        int id, ofono_sim_file_changed_cb_t cb,
 
34
                                        void *userdata,
 
35
                                        ofono_destroy_func destroy);
 
36
void sim_fs_file_watch_remove(struct ofono_sim_context *context,
 
37
                                        unsigned int id);
 
38
 
 
39
/* Id of -1 notifies all watches, serving as a wildcard */
 
40
void sim_fs_notify_file_watches(struct sim_fs *fs, int id);
 
41
 
 
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);
35
46
 
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);
39
50
 
40
51
void sim_fs_check_version(struct sim_fs *fs);
41
52
 
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);
45
57
 
53
65
void sim_fs_image_cache_flush_file(struct sim_fs *fs, int id);
54
66
 
55
67
void sim_fs_free(struct sim_fs *fs);
 
68
void sim_fs_context_free(struct ofono_sim_context *context);