mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
qdev: add class_init to DeviceInfo
Since we are still dynamically creating TypeInfo, we need to chain the class_init function in order to be able to make use of it within subclasses of TYPE_DEVICE. This will disappear once we register TypeInfos directly. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3cc90eb2b7
commit
3dde52d2fe
2 changed files with 9 additions and 0 deletions
|
@ -231,6 +231,11 @@ struct DeviceInfo {
|
|||
/* device state */
|
||||
const VMStateDescription *vmsd;
|
||||
|
||||
/**
|
||||
* See #TypeInfo::class_init()
|
||||
*/
|
||||
void (*class_init)(ObjectClass *klass, void *data);
|
||||
|
||||
/* Private to qdev / bus. */
|
||||
qdev_initfn init;
|
||||
qdev_event unplug;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue