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

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

 



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

Attachment: pgpgWqlX7HaUC.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]