org.freedesktop.PowerManagement
Rob Taylor
rob.taylor at codethink.co.uk
Thu Mar 22 04:21:29 PDT 2007
Kevin Krammer wrote:
> On Wednesday 21 March 2007 21:57 +0100, Richard Hughes wrote:
>> On Wed, 2007-03-21 at 15:58 -0400, Havoc Pennington wrote:
>
>>> As an alternative to a bitfield, one option is a dictionary of
>>> properties. This is most likely nicer than a bitfield in say python,
>>> and more annoying than a bitfield in C.
>> Yes, a dictionary might be nice, but it's not trivial to access in C.
>> This stuff really needs to be *trivial* for an application to access,
>> hence why I think booleans are probably best.
>
> How likely is an application written in C not going to use the D-Bus glib
> bindings?
>
> (Assuming that these bindings support dictionaries)
heh, dbus-glib does support dicts, but it returns it as a GHashTable.
Its not exactly the nicest way of reading a set of flags...
Rob Taylor
More information about the xdg
mailing list