static void radio_fast_dormancy_query_callback(const struct ofono_error *error, ofono_bool_t enable, void *data) { struct ofono_radio_settings *rs = data; DBusMessage *reply; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error during fast dormancy query"); reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); return; } radio_set_fast_dormancy(rs, enable); radio_query_available_rats(rs); }
static void radio_fast_dormancy_set_callback(const struct ofono_error *error, void *data) { struct ofono_radio_settings *rs = data; DBusMessage *reply; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error setting fast dormancy"); rs->fast_dormancy_pending = rs->fast_dormancy; reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); return; } reply = dbus_message_new_method_return(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); radio_set_fast_dormancy(rs, rs->fast_dormancy_pending); }
static void radio_fast_dormancy_query_callback(const struct ofono_error *error, ofono_bool_t enable, void *data) { struct ofono_radio_settings *rs = data; DBusMessage *reply; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error during fast dormancy query"); reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); return; } radio_set_fast_dormancy(rs, enable); /* Modem technology is not supposed to change, so one query is enough */ if (rs->modem_rats_filled) radio_send_properties_reply(rs); else radio_query_modem_rats(rs); }