diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-02-07 12:26:50 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-07 12:26:50 -0600 |
commit | 53d8bbfe292bdcdfe28b3d50fbc189202f6fb7c8 (patch) | |
tree | a3757695eb20b4c74c1df0a04db69524b8a2dd65 /src/sim.c | |
parent | 417b445eaf0a4d8bcff59fb93e865e83c7d92b78 (diff) | |
download | ofono-53d8bbfe292bdcdfe28b3d50fbc189202f6fb7c8.tar.bz2 |
sim: Add implementation of sim file watching API
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1987,6 +1987,20 @@ int ofono_sim_write(struct ofono_sim_context *context, int id, userdata); } +unsigned int ofono_sim_add_file_watch(struct ofono_sim_context *context, + int id, ofono_sim_file_changed_cb_t cb, + void *userdata, + ofono_destroy_func destroy) +{ + return sim_fs_file_watch_add(context, id, cb, userdata, destroy); +} + +void ofono_sim_remove_file_watch(struct ofono_sim_context *context, + unsigned int id) +{ + sim_fs_file_watch_remove(context, id); +} + const char *ofono_sim_get_imsi(struct ofono_sim *sim) { if (sim == NULL) |