521 +static void ril_query_passwd_state(struct ofono_sim *sim, 522 + ofono_sim_passwd_cb_t cb, void *data) 523 +{ 524 + struct sim_data *sd = ofono_sim_get_data(sim); 525 + 526 + DBG("passwd_state %u", sd->passwd_state); 527 + CALLBACK_WITH_SUCCESS(cb, sd->passwd_state, data); 528 +}
You also might want to handle the case which the passwd_state is invalid, check how this is done with isi and qmimodem.
« Back to merge proposal
521 +static void ril_query_ passwd_ state(struct ofono_sim *sim, passwd_ cb_t cb, void *data) get_data( sim); WITH_SUCCESS( cb, sd->passwd_state, data);
522 + ofono_sim_
523 +{
524 + struct sim_data *sd = ofono_sim_
525 +
526 + DBG("passwd_state %u", sd->passwd_state);
527 + CALLBACK_
528 +}
You also might want to handle the case which the passwd_state is invalid, check how this is done with isi and qmimodem.