Ticket #2 (closed task: fixed)
Rely on introspection rather than hardcoding the interface
| Reported by: | mickey | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | milestone3 |
| Component: | framework/controller | Version: | |
| Keywords: | org.freesmartphone.Device.List | Cc: |
Description
To implement org.freesmartphone.Device.List we rely on <object>.interface. This is wrong for two reasons:
- An object can have more than just one interface
- Double bookkeeping is evil
Solution: Use the built-in dbus introspection interface of objects. Downside: Will require an additional dbus roundtrip, but I gather List'ing objects will only occur seldomly (once on startup).
Change History
comment:2 Changed 3 years ago by mickey
- Status changed from new to closed
- Resolution set to fixed
implemented in [d7bcf13dcdd0b57491c283d697f08c27b6bbc953]
Note: See
TracTickets for help on using
tickets.
