include: add method to query pin Retries

This commit is contained in:
Lucas De Marchi 2011-01-10 19:02:28 -02:00 committed by Denis Kenzior
parent 4c2920d8a5
commit 2ae5b82ad9
1 changed files with 5 additions and 0 deletions

View File

@ -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);