[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] Non-working support for GObject Introspection.



On Tue, Mar 16, 2010 at 03:54:05PM +0000, Daniel P. Berrange wrote:
> Actually this won't work either because of this 2nd requirement from GType
> 
>  1. All class structures must contain as first member a GTypeClass structure. 
>  2. All instance structures must contain as first member a GTypeInstance structure.

I guess we could put some padding at the beginning of the real
guestfs_h structure.  It shouldn't break the ABI because no callers
should be looking inside the guestfs_h structure.

The current _GTypeInstance just contains a single pointer, so 8 bytes
of padding ought to do it ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]