|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete |
Date: | Wed, 13 Jun 2012 12:42:50 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Il 13/06/2012 12:28, Andreas Färber ha scritto: > I am pretty certain that object_new() is NOT called recursively! It is for interfaces: object_new ->object_new_with_type ->object_initialize_with_type ->object_init_with_type ->object_interface_init and then: static void object_interface_init(Object *obj, InterfaceImpl *iface) { TypeImpl *ti = iface->type; Interface *iface_obj; assert(!object_is_interface(obj)); iface_obj = INTERFACE(object_new(ti->name)); iface_obj->iface_obj = obj; iface_obj->iface_parent.interfaces = INTERFACE_MAGIC; obj->interfaces = g_slist_prepend(obj->interfaces, iface_obj); } Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |