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