maybe types - was: the GetAll method and invalid properties
mgorse at suse.com
Wed Apr 11 13:02:11 PDT 2012
On Tue, 10 Apr 2012, Simon McVittie wrote:
> There is a proposal to add 'm' (maybe) types, which are like 'a'
> (array) types but can only have 0 or 1 elements in the array: so you
> either have an object path (or whatever the element's type is), or
> "nothing". These are not yet supported, though, and nobody's actively
> working on them, so they're unlikely to be in D-Bus 1.6 at this stage.
>  https://bugs.freedesktop.org/show_bug.cgi?id=27857
Fwiw, I just took a look at the bug, to try to figure out what would need
to be done (AT-SPI does something similar where some methods might return
an object, or they might return null, and currently there is a special
object path used to indicate a null object, so in theory this could be
done with a maybe type, at least in the long term). Anyway, there are some
patches on the bug along with comments from various people who reviewed
the patches. Then the patches were updated by the person who originally
wrote them, so they could use a review from someone.
More information about the dbus