From: Denis Kenzior Date: Mon, 7 Feb 2011 17:28:30 +0000 (-0600) Subject: sim: Add API for watching files changed via stk X-Git-Tag: 0.42~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00a3a6d7ac74456445715f7b881bce4e658d9390;p=platform%2Fupstream%2Fofono.git sim: Add API for watching files changed via stk --- diff --git a/include/sim.h b/include/sim.h index 137e825..412ae44 100644 --- a/include/sim.h +++ b/include/sim.h @@ -102,6 +102,7 @@ typedef void (*ofono_sim_state_event_cb_t)(enum ofono_sim_state new_state, typedef void (*ofono_sim_file_read_cb_t)(int ok, int total_length, int record, const unsigned char *data, int record_length, void *userdata); +typedef void (*ofono_sim_file_changed_cb_t)(int id, void *userdata); typedef void (*ofono_sim_file_write_cb_t)(int ok, void *userdata); @@ -218,6 +219,14 @@ int ofono_sim_write(struct ofono_sim_context *context, int id, int ofono_sim_read_bytes(struct ofono_sim_context *context, int id, unsigned short offset, unsigned short num_bytes, ofono_sim_file_read_cb_t cb, void *data); + +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); +void ofono_sim_remove_file_watch(struct ofono_sim_context *context, + unsigned int id); + #ifdef __cplusplus } #endif