mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-26 14:23:28 +08:00
client: Ignore property changes from other objects
This commit is contained in:
parent
89301e4b7e
commit
4e053d83e0
@ -173,9 +173,15 @@ static void proxy_removed(GDBusProxy *proxy, void *user_data)
|
||||
static void property_changed(GDBusProxy *proxy, const char *name,
|
||||
DBusMessageIter *iter, void *user_data)
|
||||
{
|
||||
begin_message();
|
||||
print_iter("[CHANGED] ", name, iter);
|
||||
end_message();
|
||||
const char *interface;
|
||||
|
||||
interface = g_dbus_proxy_get_interface(proxy);
|
||||
|
||||
if (!strcmp(interface, "org.bluez.Adapter1")) {
|
||||
begin_message();
|
||||
print_iter("[CHANGED] ", name, iter);
|
||||
end_message();
|
||||
}
|
||||
}
|
||||
|
||||
static void message_handler(DBusConnection *connection,
|
||||
|
Loading…
Reference in New Issue
Block a user