how many types would a 'g' type type if a 'g' type would GType?

Robert McQueen robert.mcqueen at collabora.co.uk
Sun Sep 24 04:31:36 PDT 2006


Havoc Pennington wrote:
> It is enforced or at least assumed for the type tag of a variant, but
> not for just a random message arg. I guess we could assume it for a
> random message arg, but it seems a little arbitrary (and backward
> incompatible). You could just as easily use the 'g' type for passing a
> whole signature, e.g. if you did a binary introspection protocol or
> something. Restricting it doesn't seem to have any fundamental basis,
> just convenience for the glib bindings / this particular method call
> you're doing.

Yeah you're right... fair enough. I'll demarshal it to a GArray of
GTypes. It'll be useful when we write our binary introspection API. :D

> Come to think of it, instead of GetParameters -> a{sg} you could about
> as easily have done GetParameters -> ga{s} ...

(assuming you mean 'gas' :D)

Well, at the moment it's a{ss} or whatever, so I can change it when I
change it to use 'g'. :)

> Havoc

Regards,
Rob

-- 
Robert McQueen
Director, Collabora Ltd.


More information about the dbus mailing list