+static void _account_insert_delete_update_dbus_notification_send(char *noti_name)
+{
+ DBusMessage* msg;
+ DBusConnection* conn;
+ DBusError err;
+ dbus_uint32_t serial = 0;
+
+ if (!noti_name) {
+ ACCOUNT_DEBUG("Noti Name is NULL!!!!!!\n");
+ return;
+ }
+
+ ACCOUNT_DEBUG("Sending signal with value %s\n", noti_name);
+
+ /* initialise the error value*/
+ dbus_error_init(&err);
+
+ /* connect to the DBUS system bus, and check for errors*/
+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);
+ if (dbus_error_is_set(&err)) {
+ ACCOUNT_DEBUG("Connection Error (%s)\n", err.message);
+ dbus_error_free(&err);
+ }
+ if (NULL == conn) {
+ ACCOUNT_DEBUG("Dbus connection is NULL \n");
+ return;
+ }
+ /* create a signal & check for errors */
+ msg = dbus_message_new_signal("/account/signal/Object", /*object name of the signal*/
+ ACCOUNT_DBUS_SIGNAL_INTERFACE, /*interface name of the signal*/
+ noti_name); /* name of the signal*/
+ if (NULL == msg) {
+ ACCOUNT_DEBUG("Message Null\n");
+ return;
+ }
+
+ /* send the message and flush the connection*/
+ if (!dbus_connection_send(conn, msg, &serial)) {
+ ACCOUNT_DEBUG("Out Of Memory!\n");
+ return;
+ }
+ dbus_connection_flush(conn);
+ ACCOUNT_DEBUG("Signal Sent\n");
+
+ /* free the message*/
+ if (msg)
+ dbus_message_unref(msg);
+}
+