[libvirt] [PATCH libvirt-glib 2/3] Add GVirDomainInterface

Christophe Fergeau cfergeau at redhat.com
Mon Nov 14 09:49:20 UTC 2011


On Thu, Nov 10, 2011 at 04:15:01PM -0500, Marc-André Lureau wrote:
> > On Thu, Nov 10, 2011 at 09:33:42PM +0100, Marc-André Lureau wrote:
> > Do we really need to use GSlice here? I consider GSlice as something
> > to use
> > when you want to make many allocations of same-size objects, will we
> > allocate many of these stats objects?
> 
> Yes, it's frequently allocated (1/second), and kept in memory too for history.

Ok, fine with me then.

> > * how do we handle ABI compatibility the day we need to add fields to
> > this
> >   struct?
> 
> It's only a returned structure, allocated by the lib, so I guess that's
> fine to append fields later, right?

Yes, I think it should be fine, I think it's possible to find scenarios
that could break when adding fields, but that's probably some convoluted
cases where we can say "don't do that". Iirc libvirt does this too, so this
should be good enough for us :)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111114/e8d7df6b/attachment-0001.sig>


More information about the libvir-list mailing list