SETTING_TRACE_ERROR("*** [ERR] tel_get_network_serving. ***");
}
- (void) vconf_notify_key_changed(VCONFKEY_TELEPHONY_NWNAME, __selected_network_change_cb, ad);
- (void) vconf_notify_key_changed(VCONFKEY_TELEPHONY_SPN_DISP_CONDITION, __selected_network_change_cb, ad);
- (void) vconf_notify_key_changed(VCONFKEY_TELEPHONY_SPN_NAME, __selected_network_change_cb, ad);
- (void) vconf_notify_key_changed(VCONFKEY_TELEPHONY_SVCTYPE, __selected_network_change_cb, ad);
- (void) vconf_notify_key_changed(VCONFKEY_TELEPHONY_FLIGHT_MODE, __selected_network_change_cb, ad);
+ vconf_notify_key_changed(VCONFKEY_TELEPHONY_NWNAME, __selected_network_change_cb, ad);
+ vconf_notify_key_changed(VCONFKEY_TELEPHONY_SPN_DISP_CONDITION, __selected_network_change_cb, ad);
+ vconf_notify_key_changed(VCONFKEY_TELEPHONY_SPN_NAME, __selected_network_change_cb, ad);
+ vconf_notify_key_changed(VCONFKEY_TELEPHONY_SVCTYPE, __selected_network_change_cb, ad);
+ vconf_notify_key_changed(VCONFKEY_TELEPHONY_FLIGHT_MODE, __selected_network_change_cb, ad);
SETTING_TRACE_END;
}
void select_network_terminate(void)
{
SETTING_TRACE_BEGIN;
- (void) vconf_ignore_key_changed(VCONFKEY_TELEPHONY_NWNAME, __selected_network_change_cb);
- (void) vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SPN_DISP_CONDITION, __selected_network_change_cb);
- (void) vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SPN_NAME, __selected_network_change_cb);
- (void) vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SVCTYPE, __selected_network_change_cb);
- (void) vconf_ignore_key_changed(VCONFKEY_TELEPHONY_FLIGHT_MODE, __selected_network_change_cb);
+ vconf_ignore_key_changed(VCONFKEY_TELEPHONY_NWNAME, __selected_network_change_cb);
+ vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SPN_DISP_CONDITION, __selected_network_change_cb);
+ vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SPN_NAME, __selected_network_change_cb);
+ vconf_ignore_key_changed(VCONFKEY_TELEPHONY_SVCTYPE, __selected_network_change_cb);
+ vconf_ignore_key_changed(VCONFKEY_TELEPHONY_FLIGHT_MODE, __selected_network_change_cb);
FREE(s_info.sel_network);
SETTING_TRACE_END;
if (STC_ERROR_NONE != ret) {
SETTING_TRACE_ERROR("stc_restriction_rule_create() error: %s",
get_error_message(ret));
+ free(subscriber_id);
return STC_CALLBACK_CONTINUE;
}
restrictions_res = set_mobile_restriction_rule_parameters(rule, subscriber_id, limit, warning_limit);
if (restrictions_res != RESTRICTIONS_OK) {
SETTING_TRACE_ERROR("set_mobile_restriction_rule_parameters() error");
+ stc_restriction_rule_destroy(rule);
+ free(subscriber_id);
return STC_CALLBACK_CONTINUE;
}
if (STC_ERROR_NONE != ret) {
SETTING_TRACE_ERROR("stc_unset_restriction() error: %s",
get_error_message(ret));
+ stc_restriction_rule_destroy(rule);
+ free(subscriber_id);
return STC_CALLBACK_CONTINUE;
}
- free(subscriber_id);
}
+ free(subscriber_id);
SETTING_TRACE_ERROR("stc_unset_restriction() successful unset restriction");
return STC_CALLBACK_CONTINUE;
return true;
}
- (void)stc_stats_rule_destroy(rule);
+ stc_stats_rule_destroy(rule);
return true;
}
if (ret != STC_ERROR_NONE) {
SETTING_TRACE_ERROR("stc_stats_rule_set_time_interval() error: %s",
get_error_message(ret));
- (void)stc_stats_rule_destroy(rule);
+ stc_stats_rule_destroy(rule);
return true;
}
if (ret != STC_ERROR_NONE) {
SETTING_TRACE_ERROR("stc_stats_rule_set_iface_type() error: %s",
get_error_message(ret));
- (void)stc_stats_rule_destroy(rule);
+ stc_stats_rule_destroy(rule);
return true;
}
if (ret != STC_ERROR_NONE) {
SETTING_TRACE_ERROR("stc_get_total_stats() error: %s",
get_error_message(ret));
- (void)stc_stats_rule_destroy(rule);
+ stc_stats_rule_destroy(rule);
if (STC_ERROR_IN_PROGRESS == ret)
return false;
return true;
}
- (void)stc_stats_rule_destroy(rule);
+ stc_stats_rule_destroy(rule);
return true;
}
if (STC_ERROR_NONE != ret) {
SETTING_TRACE_ERROR("SIM stc_foreach_restriction() error: %s",
get_error_message(ret));
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
if (STC_ERROR_IN_PROGRESS == ret)
return false;
return true;
}
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
return true;
}
ret = stc_restriction_rule_set_app_id(rule, "TOTAL_DATACALL");
if (STC_ERROR_NONE != ret) {
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_app_id() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
ret = stc_restriction_rule_set_iface_type(rule, STC_IFACE_DATACALL);
if (STC_ERROR_NONE != ret) {
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_iface_type() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
ret = stc_restriction_rule_set_subscriber_id(rule, subscriber_id);
if (STC_ERROR_NONE != ret) {
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_subscriber_id() error:"\
"%s", get_error_message(ret));
ret = stc_restriction_rule_set_limit(rule, limit);
if (STC_ERROR_NONE != ret) {
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_limit() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
ret = stc_restriction_rule_set_warning_limit(rule, warning_limit);
if (STC_ERROR_NONE != ret) {
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_restriction_rule_set_warning_limit() error: %s",
get_error_message(ret));
return RESTRICTIONS_ERROR;
result = set_mobile_restriction_rule_parameters(rule, subscriber_id, limit,
warning_limit);
if (RESTRICTIONS_OK != result) {
- (void)stc_restriction_rule_destroy(rule);
- SETTING_TRACE_ERROR("set_restriction_rule_parameters() error");
+ SETTING_TRACE_ERROR("set_restriction_rule_parameters() error");
+ stc_restriction_rule_destroy(rule);
return result;
}
ret = stc_set_restriction(stc_handle, rule);
if (STC_ERROR_NONE != ret) {
- (void)stc_restriction_rule_destroy(rule);
SETTING_TRACE_ERROR("stc_set_restriction() error: %s",
get_error_message(ret));
+ stc_restriction_rule_destroy(rule);
return RESTRICTIONS_ERROR;
}
- (void)stc_restriction_rule_destroy(rule);
+ stc_restriction_rule_destroy(rule);
SETTING_TRACE_END;
return RESTRICTIONS_OK;
}