On Tue, Dec 05, 2006 at 09:13:26AM -0800, Michael Shapiro wrote: > > scf_simple_prop_get() is pretty handy though. > > I don't even like that one, because you still have to: > > - check the type > - check the number of values > - deal with the odd signatures of the various simple_prop_* functions > to get your values back
Well, the type is checked for you as part of the simple_prop_next_*() call... > If you compare that to using the lower-level interfaces, you'll realize that > there isn't much simplification being offered beyond create/destroy of > handles. > A much more useful set of primitives for the truly simplest queries would be: > > - for each primitive type, a function which retrieves a property given > handle, instance, pgname, propname, and expected type, and returns > me the single-value directly or an error > > - an interface which permits me to declare an array of such descriptions > and then iteratively fills in a C struct with the result of each, > allowing easy retrieval of a small set of single-valued properties ...but yes, this would be much, much nicer. regards john