Re: [Qemu-devel] [RFC 2/3 v2] qom: introduce post_init() function

2013-07-11 Thread Eduardo Habkost
On Thu, Jul 11, 2013 at 08:29:15AM +0200, Igor Mammedov wrote: > On Wed, 10 Jul 2013 17:08:41 -0300 > Eduardo Habkost wrote: > > > This will allow classes to specify a function to be called after all > > instance_init() functions were called. > > > > This will be used by DeviceState to call qdev

Re: [Qemu-devel] [RFC 2/3 v2] qom: introduce post_init() function

2013-07-10 Thread Igor Mammedov
On Wed, 10 Jul 2013 17:08:41 -0300 Eduardo Habkost wrote: > This will allow classes to specify a function to be called after all > instance_init() functions were called. > > This will be used by DeviceState to call qdev_prop_set_globals() at the > right moment. > > Signed-off-by: Eduardo Habkos

[Qemu-devel] [RFC 2/3 v2] qom: introduce post_init() function

2013-07-10 Thread Eduardo Habkost
This will allow classes to specify a function to be called after all instance_init() functions were called. This will be used by DeviceState to call qdev_prop_set_globals() at the right moment. Signed-off-by: Eduardo Habkost --- include/qom/object.h | 3 +++ qom/object.c | 14 +