UnknownMethod vs. UnknownProperty

Lennart Poettering mzqohf at 0pointer.de
Wed Mar 9 07:25:31 PST 2011


I was just looking into fixing up thos epatches which added the
UnknownInterface and UnknownObject error codes to D-Bus which some
bindings already use.

Looking into that, and how to make use of those in systemd I noticed
that adding UnknownProperty is probably a good idea as well, since the
only error code currently existing is UnknownMethod which is a bit of a
misnomer when we think about properties. If it had been named
UnknownMember or so things would have been much more appropriate.

Unless anybody opposes I'll commit in a few days to the 1.4 branch which
introduces UnknownInterface, UnknownObject and UnknownProperty, but
doesn't make use of them anywhere. And to the devel branch I'll commit a
patch that hooks up a few places with these error codes.

So, is introducing UnknownProperty a good idea? I say yes, what says you?


Lennart Poettering - Red Hat, Inc.

More information about the dbus mailing list