mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 09:14:32 +08:00
The interface is already part of the object itself
This commit is contained in:
parent
6d738f7aeb
commit
164736b5d2
@ -19,11 +19,9 @@ if __name__ == "__main__":
|
||||
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
|
||||
'org.bluez.Manager')
|
||||
|
||||
manager.connect_to_signal("AdapterAdded", adapter_added,
|
||||
dbus_interface="org.bluez.Manager")
|
||||
manager.connect_to_signal("AdapterAdded", adapter_added)
|
||||
|
||||
manager.connect_to_signal("AdapterRemoved", adapter_removed,
|
||||
dbus_interface="org.bluez.Manager")
|
||||
manager.connect_to_signal("AdapterRemoved", adapter_removed)
|
||||
|
||||
mainloop = gobject.MainLoop()
|
||||
mainloop.run()
|
||||
|
Loading…
Reference in New Issue
Block a user