[patch] updated glib work snapshot

Colin Walters walters at verbum.org
Wed May 4 10:13:25 PDT 2005


On Wed, 2005-05-04 at 13:02 -0400, Havoc Pennington wrote:
> On Tue, 2005-05-03 at 14:08 -0400, Colin Walters wrote:
> > Still looking for input on how things should work; e.g. should I try to
> > dump DBusGArray and go with GArray consistently?
> > 
> 
> For C, I think you usually want "int *" not GArray, no?

How do you know how many elements are in the array?

> GArray is only useful if you're modifying the array,

Well it's also useful as a container for the length.  But I imagine at
least half the time a server is going to be computing the return value
dynamically anyways, so hopefully they're already using GArray.

>  and it's not
> typesafe

True.  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050504/47725ce0/attachment.pgp


More information about the dbus mailing list