tuhi/tuhi
Daniel Martin e7f8cc2bc2 ble: make object manager return sorted object list
The object list returned by object managers get_objects() function is
not sorted. Though, we rely on objects being sorted by their object
path.

Replace the object managers get_objects() function with a variant
fixing that. Additionally, our variant makes it possible to filter
the returned object list by object path and interface.

Examples:

- get_objects():
  /
  /org/bluez
  /org/bluez/hci0
  /org/bluez/hci0/dev_00_00_00_00_00_00
  /org/bluez/hci0/dev_00_00_00_00_00_00/service0000
  /org/bluez/hci0/dev_00_00_00_00_00_00/service0000/char0000
  /org/bluez/hci0/dev_00_00_00_00_00_00/service1111
  /org/bluez/hci0/dev_00_00_00_00_00_00/service1111/char1111
  /org/bluez/hci0/dev_FF_FF_FF_FF_FF_FF
  /org/bluez/hci0/dev_FF_FF_FF_FF_FF_FF/serviceffff
  /org/bluez/hci0/dev_FF_FF_FF_FF_FF_FF/serviceffff/charffff

- get_objects(interface='org.bluez.Adapter1'):
  /org/bluez/hci0

- get_objects(interface='org.bluez.GattCharacteristic1'
              base_path='/org/bluez/hci0/dev_00_00_00_00_00_00'):
  /org/bluez/hci0/dev_00_00_00_00_00_00/service0000/char0000
  /org/bluez/hci0/dev_00_00_00_00_00_00/service1111/char1111

Signed-off-by: Daniel Martin <consume.noise@gmail.com>
2019-06-07 08:34:07 +10:00
..
__init__.py __init__: remove empty line that snuck in during rebasing 2018-01-24 21:39:56 +10:00
base.py Fix flake8-3 complaints 2019-06-05 10:58:21 +02:00
ble.py ble: make object manager return sorted object list 2019-06-07 08:34:07 +10:00
config.py config: store the protocol used by the device in the config file 2018-02-09 13:31:11 +10:00
dbusserver.py dbus: add file format version negotiation for the JSON data 2018-02-19 11:17:18 +10:00
drawing.py tuhi: prettify the exported json 2019-04-29 09:36:11 +02:00
uhid.py wacom: create a uhid device on live mode 2018-02-14 06:23:25 +10:00
wacom.py wacom: let's assume any 0xb3 with nonzero data is an error 2019-06-05 11:14:48 +02:00