Patch to hal-spec : 4/6-system-processor
Robert Wittams
robert at wittams.com
Thu Jan 13 16:24:27 PST 2005
David Zeuthen wrote:
>> <entry>example: 200-300,400-500,800</entry>
>
>
> Uh, this I don't like, it will be too difficult for programs to parse.
> Perhaps
> just punt it until now? Note that I'm going to add a stringlist property
> to
> HEAD somewhat soon (will be used for info.capabilities instead).
>
A real list would be better, but I can't understand how this would be
difficult for anyone to parse...
ie list = split(",", property);
then we are in the same place as a string list will be.
There are no escaping issues in this case.
Tbh, if the developers writing your power management app can't handle
that... I think you are in serious trouble ;-)
If this is concern for a generic thing like hal device manager, then
obviously a real list would be better... But not by a huge amount. If
you also add number ranges and unions, maybe it would make sense to care
about type correctness, but hey, this is a string api, right?
Robert
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list