diff options
Diffstat (limited to 'include/sim.h')
-rw-r--r-- | include/sim.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |