Re: [Qemu-devel] [RFC 3/3 v2] qdev: set globals on post_init() function

2013-07-12 Thread Eduardo Habkost
On Thu, Jul 11, 2013 at 08:48:44AM +0200, Igor Mammedov wrote: [...] > > #define TYPE_STATIC_PROPS "static_prop_type" > > @@ -80,7 +82,7 @@ static void test_static_prop(void) > > static void test_static_globalprop(void) > > { > > MyType *mt; > > -GlobalProperty props[] = { > > +stat

Re: [Qemu-devel] [RFC 3/3 v2] qdev: set globals on post_init() function

2013-07-10 Thread Igor Mammedov
On Wed, 10 Jul 2013 17:08:42 -0300 Eduardo Habkost wrote: > This way, properties registered in the instance_init() function of > children classes will be handled properly by qdev_prop_set_globals(), > too. > > Includes a new unit test for the new functionality. > > Signed-off-by: Eduardo Habkos

[Qemu-devel] [RFC 3/3 v2] qdev: set globals on post_init() function

2013-07-10 Thread Eduardo Habkost
This way, properties registered in the instance_init() function of children classes will be handled properly by qdev_prop_set_globals(), too. Includes a new unit test for the new functionality. Signed-off-by: Eduardo Habkost --- hw/core/qdev.c | 10 +- tests/test-qdev-global