[libvirt] [libvirt-designer][PATCH 4/4] domain: Introduce interface support

Christophe Fergeau cfergeau at redhat.com
Mon Sep 10 09:49:43 UTC 2012


On Mon, Sep 10, 2012 at 11:38:30AM +0200, Martin Kletzander wrote:
> On 09/10/2012 11:19 AM, Christophe Fergeau wrote:
> Thanks, but I have to look inside this one, anyway.  You confirmed me
> what I thought this is what the function is doing, but I saw no need for
> cast in here.  Now I see it has to be changed from InterfaceNetwork to
> Interface.  I guess this is some kind of polymorphism/inheritance design
> in glib.

Yes, C being what it is, you cannot get automatic casts from a child class
to one of its parents, so we have to do it explicitly when needed.

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/20120910/8295950a/attachment-0001.sig>


More information about the libvir-list mailing list