From 2ae5b82ad95b7bb4cc9a10c186e33491e28cdf42 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 10 Jan 2011 19:02:28 -0200 Subject: include: add method to query pin Retries --- include/sim.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/sim.h b/include/sim.h index 7860e242..830322ab 100644 --- a/include/sim.h +++ b/include/sim.h @@ -108,6 +108,9 @@ typedef void (*ofono_sim_passwd_cb_t)(const struct ofono_error *error, enum ofono_sim_password_type type, void *data); +typedef void (*ofono_sim_pin_retries_cb_t)(const struct ofono_error *error, + int retries[OFONO_SIM_PASSWORD_INVALID], void *data); + typedef void (*ofono_sim_lock_unlock_cb_t)(const struct ofono_error *error, void *data); @@ -144,6 +147,8 @@ struct ofono_sim_driver { ofono_sim_passwd_cb_t cb, void *data); void (*send_passwd)(struct ofono_sim *sim, const char *passwd, ofono_sim_lock_unlock_cb_t cb, void *data); + void (*query_pin_retries)(struct ofono_sim *sim, + ofono_sim_pin_retries_cb_t cb, void *data); void (*reset_passwd)(struct ofono_sim *sim, const char *puk, const char *passwd, ofono_sim_lock_unlock_cb_t cb, void *data); -- cgit v1.2.3