summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-06-28 11:20:51 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-06-30 10:36:49 +0200
commitb24ce18eaba01f04efa1c925b91ca83c1c5a8d8a (patch)
treee0b2c52d468b96a2256e8ce56e6cdfadc39f893b
parent15df59f39050e7f94ab5ee97ccd8be31b3c34306 (diff)
downloadconnman-b24ce18eaba01f04efa1c925b91ca83c1c5a8d8a.tar.gz
connman-b24ce18eaba01f04efa1c925b91ca83c1c5a8d8a.tar.bz2
connman-b24ce18eaba01f04efa1c925b91ca83c1c5a8d8a.zip
bluetooth: Watch for signals only on BLUEZ_SERVICE
-rw-r--r--plugins/bluetooth.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 9e1aaa2c..6f476e23 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -1194,33 +1194,34 @@ static int bluetooth_init(void)
watch = g_dbus_add_service_watch(connection, BLUEZ_SERVICE,
bluetooth_connect, bluetooth_disconnect, NULL, NULL);
- added_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
+ added_watch = g_dbus_add_signal_watch(connection, BLUEZ_SERVICE, NULL,
BLUEZ_MANAGER_INTERFACE,
ADAPTER_ADDED, adapter_added,
NULL, NULL);
- removed_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
+ removed_watch = g_dbus_add_signal_watch(connection, BLUEZ_SERVICE, NULL,
BLUEZ_MANAGER_INTERFACE,
ADAPTER_REMOVED, adapter_removed,
NULL, NULL);
- adapter_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
- BLUEZ_ADAPTER_INTERFACE,
+ adapter_watch = g_dbus_add_signal_watch(connection, BLUEZ_SERVICE,
+ NULL, BLUEZ_ADAPTER_INTERFACE,
PROPERTY_CHANGED, adapter_changed,
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,
DEVICE_REMOVED, device_removed,
NULL, NULL);
- device_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
+ device_watch = g_dbus_add_signal_watch(connection, BLUEZ_SERVICE, NULL,
BLUEZ_DEVICE_INTERFACE,
PROPERTY_CHANGED, device_changed,
NULL, NULL);
- network_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
- BLUEZ_NETWORK_INTERFACE,
+ network_watch = g_dbus_add_signal_watch(connection, BLUEZ_SERVICE,
+ NULL, BLUEZ_NETWORK_INTERFACE,
PROPERTY_CHANGED, network_changed,
NULL, NULL);