From b84e107f0817470b63d9e67d3b540eff15f1144b Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 28 Jun 2012 10:59:19 -0300 Subject: bluetooth: watch for signals only on BLUEZ_SERVICE --- plugins/bluetooth.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index cb5fe241..91c8d18f 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -840,22 +840,25 @@ static void bluetooth_ref(void) bluetooth_connect, bluetooth_disconnect, NULL, NULL); - adapter_added_watch = g_dbus_add_signal_watch(connection, NULL, NULL, - BLUEZ_MANAGER_INTERFACE, + adapter_added_watch = g_dbus_add_signal_watch(connection, BLUEZ_SERVICE, + NULL, BLUEZ_MANAGER_INTERFACE, "AdapterAdded", adapter_added, NULL, NULL); - adapter_removed_watch = g_dbus_add_signal_watch(connection, NULL, NULL, + adapter_removed_watch = g_dbus_add_signal_watch(connection, + BLUEZ_SERVICE, NULL, BLUEZ_MANAGER_INTERFACE, "AdapterRemoved", adapter_removed, NULL, NULL); - device_removed_watch = g_dbus_add_signal_watch(connection, NULL, NULL, + device_removed_watch = g_dbus_add_signal_watch(connection, + BLUEZ_SERVICE, NULL, BLUEZ_ADAPTER_INTERFACE, "DeviceRemoved", device_removed, NULL, NULL); - property_watch = g_dbus_add_signal_watch(connection, NULL, NULL, + property_watch = g_dbus_add_signal_watch(connection, + BLUEZ_SERVICE, NULL, BLUEZ_DEVICE_INTERFACE, "PropertyChanged", property_changed, NULL, NULL); -- cgit v1.2.3