diff options
author | João Paulo Rechi Vita <joao.vita@gmail.com> | 2008-07-31 16:17:03 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-11 01:12:03 +0300 |
commit | ffe76a2daf873e04e39e6a7019f39bbd731b7df2 (patch) | |
tree | ce2d66dc7186a1de5675d4e59e9d4301139c62a3 /src | |
parent | fe8bd53e22e5f8cffe44c2d773e1f0f51360fa28 (diff) |
Add sender=org.bluez to dbus add match
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/module-bt-discover.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/module-bt-discover.c b/src/modules/module-bt-discover.c index af3448b6..2b0d6c5f 100644 --- a/src/modules/module-bt-discover.c +++ b/src/modules/module-bt-discover.c @@ -19,7 +19,9 @@ USA. ***/ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include <stdio.h> #include <stdlib.h> @@ -510,12 +512,12 @@ int pa__init(pa_module* m) { pa_log_error("Failed to add filter function"); goto fail; } - dbus_bus_add_match(pa_dbus_connection_get(u->conn), "type='signal',interface='org.bluez.Manager'", &err); + dbus_bus_add_match(pa_dbus_connection_get(u->conn), "type='signal',sender='org.bluez',interface='org.bluez.Manager'", &err); if (dbus_error_is_set(&err)) { pa_log_error("Unable to subscribe to org.bluez.Manager signals: %s: %s", err.name, err.message); goto fail; } - dbus_bus_add_match(pa_dbus_connection_get(u->conn), "type='signal',interface='org.bluez.Adapter'", &err); + dbus_bus_add_match(pa_dbus_connection_get(u->conn), "type='signal',sender='org.bluez',interface='org.bluez.Adapter'", &err); if (dbus_error_is_set(&err)) { pa_log_error("Unable to subscribe to org.bluez.Adapter signals: %s: %s", err.name, err.message); goto fail; |