> On 15 Jun 2015, at 13:48, Liviu Ionescu <i...@livius.net> wrote: > > ... add an explicit constructor, like in C++. > ... the DeviceClass structure ... qdev_construct() ...
For more generality, the new construct/destruct pointers can be added directly to the QOM ObjectClass, and the functions implemented as: object_construct(Object*, void*) object_destruct(Object*, void*) with qdev_construct()/qdev_destruct() as wrappers. Regards, Liviu