mirror of git://git.sysmocom.de/ofono
atmodem: Change query_locked to query_facility_lock
This commit is contained in:
parent
7b2f8b0f6e
commit
847df8ee78
|
@ -1517,7 +1517,7 @@ static void at_lock_status_cb(gboolean ok, GAtResult *result,
|
||||||
{
|
{
|
||||||
struct cb_data *cbd = user_data;
|
struct cb_data *cbd = user_data;
|
||||||
GAtResultIter iter;
|
GAtResultIter iter;
|
||||||
ofono_sim_locked_cb_t cb = cbd->cb;
|
ofono_query_facility_lock_cb_t cb = cbd->cb;
|
||||||
struct ofono_error error;
|
struct ofono_error error;
|
||||||
int locked;
|
int locked;
|
||||||
|
|
||||||
|
@ -1542,9 +1542,9 @@ static void at_lock_status_cb(gboolean ok, GAtResult *result,
|
||||||
cb(&error, locked, cbd->data);
|
cb(&error, locked, cbd->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void at_pin_query_enabled(struct ofono_sim *sim,
|
static void at_query_clck(struct ofono_sim *sim,
|
||||||
enum ofono_sim_password_type passwd_type,
|
enum ofono_sim_password_type passwd_type,
|
||||||
ofono_sim_locked_cb_t cb, void *data)
|
ofono_query_facility_lock_cb_t cb, void *data)
|
||||||
{
|
{
|
||||||
struct sim_data *sd = ofono_sim_get_data(sim);
|
struct sim_data *sd = ofono_sim_get_data(sim);
|
||||||
struct cb_data *cbd = cb_data_new(cb, data);
|
struct cb_data *cbd = cb_data_new(cb, data);
|
||||||
|
@ -1627,7 +1627,7 @@ static struct ofono_sim_driver driver = {
|
||||||
.reset_passwd = at_pin_send_puk,
|
.reset_passwd = at_pin_send_puk,
|
||||||
.lock = at_pin_enable,
|
.lock = at_pin_enable,
|
||||||
.change_passwd = at_change_passwd,
|
.change_passwd = at_change_passwd,
|
||||||
.query_locked = at_pin_query_enabled,
|
.query_facility_lock = at_query_clck,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ofono_sim_driver driver_noef = {
|
static struct ofono_sim_driver driver_noef = {
|
||||||
|
@ -1641,7 +1641,7 @@ static struct ofono_sim_driver driver_noef = {
|
||||||
.reset_passwd = at_pin_send_puk,
|
.reset_passwd = at_pin_send_puk,
|
||||||
.lock = at_pin_enable,
|
.lock = at_pin_enable,
|
||||||
.change_passwd = at_change_passwd,
|
.change_passwd = at_change_passwd,
|
||||||
.query_locked = at_pin_query_enabled,
|
.query_facility_lock = at_query_clck,
|
||||||
};
|
};
|
||||||
|
|
||||||
void at_sim_init(void)
|
void at_sim_init(void)
|
||||||
|
|
Loading…
Reference in New Issue