/* error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
"alarm_manager_call_alarm_create_noti_sync()failed. alarm_id[%d], return_code[%d].", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
"alarm_manager_call_alarm_create_appsvc_sync()failed. alarm_id[%d], return_code[%d].", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
"alarm_manager_call_alarm_create_sync()failed. alarm_id[%d], return_code[%d]", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
alarm_id, &return_code, NULL, &error)) {
ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_create_periodic_sync()failed. alarm_id[%d], return_code[%d]",
alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* g_dbus_proxy_call_sync error */
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_get_appsvc_info_sync() failed. alarm_id[%d], return_code[%d].", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
if (b_data)
g_free(b_data);
/* g_dbus_proxy_call_sync error */
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_get_appsvc_info_sync() failed. alarm_id[%d], return_code[%d].", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
if (noti_data)
g_free(noti_data);
/* g_dbus_proxy_call_sync error */
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_rtc_time() failed. return_code[%d]", return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* g_dbus_proxy_call_sync error */
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_delete_sync() failed. alarm_id[%d], return_code[%d]", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* g_dbus_proxy_call_sync error */
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_delete_all_sync() failed. return_code[%d]", return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
"alarm_manager_call_alarm_get_list_of_ids_sync() failed by dbus. alarm_id[%d], return_code[%d]\n", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* g_dbus_proxy_call_sync error */
/* error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
- "alarm_manager_call_alarm_get_number_of_ids_sync() failed by dbus. return_code[%d], return_code[%s].",
- return_code, error->message);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ "alarm_manager_call_alarm_get_number_of_ids_sync() failed by dbus. return_code[%d]",
+ return_code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/* error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
"alarm_manager_call_alarm_get_info_sync() failed by dbus. alarm_id[%d], return_code[%d]\n", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
/*error_code should be set */
ALARM_MGR_EXCEPTION_PRINT(
"alarm_manager_call_alarm_get_next_duetime_sync() failed by dbus. alarm_id[%d], return_code[%d]\n", alarm_id, return_code);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
if (!alarm_manager_call_alarm_get_all_info_sync((AlarmManager*)context.proxy, db_path, &return_code, NULL, &error)) {
/*g_dbus_proxy_call_sync error */
/*error_code should be set */
- ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_get_all_info_sync() failed by dbus. return_code[%d][%s]", return_code, error->message);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_get_all_info_sync() failed by dbus. return_code[%d]", return_code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
if (!alarm_manager_call_alarm_set_time_finish((AlarmManager *)func_data->proxy,
(gint *)&return_code,
res, &error)) {
- ALARM_MGR_EXCEPTION_PRINT("dbus error message: %s", error->message);
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("dbus error message: %s", error->message);
+ g_error_free(error);
+ }
return_code = ERR_ALARM_SYSTEM_FAIL;
}
if (!alarm_manager_call_alarm_set_time_with_propagation_delay_sync((AlarmManager*)context.proxy, new_sec, new_nsec, req_sec, req_nsec, &return_code, NULL, &error)) {
/*g_dbus_proxy_call_sync error */
/*error_code should be set */
- ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_time_with_propagation_delay_sync() failed by dbus. return_code[%d][%s]", return_code, error->message);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_time_with_propagation_delay_sync() failed by dbus. return_code[%d]", return_code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
if (!alarm_manager_call_alarm_set_time_with_propagation_delay_finish((AlarmManager *)func_data->proxy,
(gint *)&return_code,
res, &error)) {
- ALARM_MGR_EXCEPTION_PRINT("dbus error message: %s", error->message);
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("dbus error message: %s", error->message);
+ g_error_free(error);
+ }
return_code = ERR_ALARM_SYSTEM_FAIL;
}
if (!alarm_manager_call_alarm_set_timezone_sync((AlarmManager*)context.proxy, tzpath_str, &return_code, NULL, &error)) {
/*g_dbus_proxy_call_sync error */
/*error_code should be set */
- ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_timezone_sync() failed by dbus. return_code[%d][%s]", return_code, error->message);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_timezone_sync() failed by dbus. return_code[%d]", return_code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
if (!alarm_manager_call_alarm_set_global_sync((AlarmManager *)context.proxy, alarm_id, global, &return_code, NULL, &error)) {
/*g_dbus_proxy_call_sync error */
/*error_code should be set */
- ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_global_sync() failed by dbus. return_code[%d][%s]", return_code, error->message);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_set_global_sync() failed by dbus. return_code[%d]", return_code);
if (error_code) {
- if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
+ if (error && error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}
if (!alarm_manager_call_alarm_get_global_sync((AlarmManager *)context.proxy, alarm_id, (gboolean *)&_global, &return_code, NULL, &error)) {
/*g_dbus_proxy_call_sync error */
/*error_code should be set */
- ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_get_global_sync() failed by dbus. return_code[%d][%s]", return_code, error->message);
- ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ ALARM_MGR_EXCEPTION_PRINT("alarm_manager_call_alarm_get_global_sync() failed by dbus. return_code[%d]", return_code);
if (error_code) {
if (error->code == G_DBUS_ERROR_ACCESS_DENIED)
*error_code = ERR_ALARM_NO_PERMISSION;
else
*error_code = ERR_ALARM_SYSTEM_FAIL;
}
- g_error_free(error);
+ if (error) {
+ ALARM_MGR_EXCEPTION_PRINT("error->message is %s(%d)", error->message, error->code);
+ g_error_free(error);
+ }
return false;
}