SLOG(LOG_ERROR, TAG_VCC, "[Dbus ERROR] Fail to Send"); //LCOV_EXCL_LINE
dbus_message_unref(msg);
return VC_ERROR_OPERATION_FAILED;
+ } else {
+ SLOG(LOG_INFO, TAG_VCC, "[Dbus DEBUG] Success to Send");
+ dbus_connection_flush(g_conn_sender);
}
- dbus_connection_flush(g_conn_sender);
-
dbus_message_unref(msg);
-
return 0;
}
dbus_message_unref(msg);
return VC_ERROR_OPERATION_FAILED;
} else {
- SLOG(LOG_DEBUG, TAG_VCC, "[Dbus DEBUG] Success to Send");
+ SLOG(LOG_INFO, TAG_VCC, "[Dbus DEBUG] Success to Send");
dbus_connection_flush(g_conn_sender);
}
dbus_message_set_no_reply(msg, TRUE);
+ /* send the message and flush the connection */
if (1 != dbus_connection_send(g_m_conn_sender, msg, NULL)) {
SLOG(LOG_ERROR, TAG_VCM, "[Dbus ERROR] Fail to Send");
dbus_message_unref(msg);
- return -1;
+ return VC_ERROR_OPERATION_FAILED;
} else {
SLOG(LOG_INFO, TAG_VCM, "[Dbus] SUCCESS Send");
dbus_connection_flush(g_m_conn_sender);
}
- dbus_message_unref(msg);
+ dbus_message_unref(msg);
return 0;
}
dbus_message_set_no_reply(msg, TRUE);
/* send the message and flush the connection */
- if (!dbus_connection_send(g_m_conn_sender, msg, NULL)) {
- SLOG(LOG_ERROR, TAG_VCM, "[Dbus ERROR] Fail to send result message");
+ if (1 != dbus_connection_send(g_m_conn_sender, msg, NULL)) {
+ SLOG(LOG_ERROR, TAG_VCM, "[Dbus ERROR] Fail to Send");
+ dbus_message_unref(msg);
+ return VC_ERROR_OPERATION_FAILED;
} else {
- SLOG(LOG_INFO, TAG_VCM, "[Dbus] Success to send result");
-
+ SLOG(LOG_INFO, TAG_VCM, "[Dbus] SUCCESS Send");
dbus_connection_flush(g_m_conn_sender);
}
dbus_message_unref(msg);
-
return 0;
}
dbus_message_set_no_reply(msg, TRUE);
+ /* send the message and flush the connection */
if (1 != dbus_connection_send(g_m_conn_sender, msg, NULL)) {
SLOG(LOG_ERROR, TAG_VCM, "[Dbus ERROR] Fail to Send");
- return -1;
+ dbus_message_unref(msg);
+ return VC_ERROR_OPERATION_FAILED;
} else {
SLOG(LOG_INFO, TAG_VCM, "[Dbus] SUCCESS Send");
dbus_connection_flush(g_m_conn_sender);
}
+ dbus_message_unref(msg);
return 0;
}
dbus_message_set_no_reply(msg, TRUE);
+ /* send the message and flush the connection */
if (1 != dbus_connection_send(g_m_conn_sender, msg, NULL)) {
SLOG(LOG_ERROR, TAG_VCM, "[Dbus ERROR] Fail to Send");
dbus_message_unref(msg);
- return -1;
+ return VC_ERROR_OPERATION_FAILED;
} else {
SLOG(LOG_INFO, TAG_VCM, "[Dbus] SUCCESS Send");
dbus_connection_flush(g_m_conn_sender);
}
- dbus_message_unref(msg);
+ dbus_message_unref(msg);
return 0;
}
dbus_message_set_no_reply(msg, TRUE);
+ /* send the message and flush the connection */
if (1 != dbus_connection_send(g_m_conn_sender, msg, NULL)) {
SLOG(LOG_ERROR, TAG_VCM, "[Dbus ERROR] Fail to Send");
dbus_message_unref(msg);
- return -1;
+ return VC_ERROR_OPERATION_FAILED;
} else {
SLOG(LOG_INFO, TAG_VCM, "[Dbus] SUCCESS Send");
dbus_connection_flush(g_m_conn_sender);
}
- dbus_message_unref(msg);
+ dbus_message_unref(msg);
return 0;
}