diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-06-28 10:59:19 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-07-02 11:04:35 -0500 |
commit | b84e107f0817470b63d9e67d3b540eff15f1144b (patch) | |
tree | ca93c8291884151364f294c2e2e553993ce5af61 /plugins | |
parent | 32a2dd13deaa9f91adfe76e3541d332b24fab568 (diff) | |
download | ofono-b84e107f0817470b63d9e67d3b540eff15f1144b.tar.bz2 |
bluetooth: watch for signals only on BLUEZ_SERVICE
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bluetooth.c | 13 |
1 files changed, 8 insertions, 5 deletions
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); |