return OK;
}
-
-static void _update_status_ri(runtime_info_key_e key, void *user_data)
-{
- on_noti(tel_list.handle[0], user_data);
-}
-
static void _wifi_status_changed_cb(wifi_device_state_e state, void *user_data)
{
int status = 0;
return FAIL;
}
- ret = util_runtime_info_set_changed_cb(RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED,
- _update_status_ri, data);
-
- if (ret != 0) {
- _E("util_runtime_info_set_changed_cb failed");
- __deinit_tel();
- return FAIL;
- }
-
on_noti(tel_list.handle[0], data);
return OK;
util_system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, _flight_mode);
util_wifi_unset_device_state_changed_cb(_wifi_status_changed_cb);
- util_runtime_info_unset_changed_cb(RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED, _update_status_ri);
if (tel_list.count)
telephony_deinit(&tel_list);