From: Lucas De Marchi Date: Thu, 28 Jun 2012 14:20:52 +0000 (-0300) Subject: dundee: Watch for signals only on DUNDEE_SERVICE X-Git-Tag: 1.3~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59f52fa5f8aa51a75ab8eb3d15da05101965e614;p=platform%2Fupstream%2Fconnman.git dundee: Watch for signals only on DUNDEE_SERVICE --- diff --git a/plugins/dundee.c b/plugins/dundee.c index 045f6398..d0ecdef8 100644 --- a/plugins/dundee.c +++ b/plugins/dundee.c @@ -789,18 +789,18 @@ static int dundee_init(void) watch = g_dbus_add_service_watch(connection, DUNDEE_SERVICE, dundee_connect, dundee_disconnect, NULL, NULL); - added_watch = g_dbus_add_signal_watch(connection, NULL, NULL, + added_watch = g_dbus_add_signal_watch(connection, DUNDEE_SERVICE, NULL, DUNDEE_MANAGER_INTERFACE, DEVICE_ADDED, device_added, NULL, NULL); - removed_watch = g_dbus_add_signal_watch(connection, NULL, NULL, - DUNDEE_MANAGER_INTERFACE, + removed_watch = g_dbus_add_signal_watch(connection, DUNDEE_SERVICE, + NULL, DUNDEE_MANAGER_INTERFACE, DEVICE_REMOVED, device_removed, NULL, NULL); - device_watch = g_dbus_add_signal_watch(connection, NULL, NULL, - DUNDEE_DEVICE_INTERFACE, + device_watch = g_dbus_add_signal_watch(connection, DUNDEE_SERVICE, + NULL, DUNDEE_DEVICE_INTERFACE, PROPERTY_CHANGED, device_changed, NULL, NULL);