mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qdev: add a interface to register subclasses
In order to introduce inheritance while still using the qdev registration interfaces, we need to be able to use a parent other than TYPE_DEVICE. Add a new interface that allows this. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
94afdadcb3
commit
3cc90eb2b7
2 changed files with 8 additions and 2 deletions
|
@ -241,6 +241,7 @@ struct DeviceInfo {
|
|||
extern DeviceInfo *device_info_list;
|
||||
|
||||
void qdev_register(DeviceInfo *info);
|
||||
void qdev_register_subclass(DeviceInfo *info, const char *parent);
|
||||
|
||||
/* Register device properties. */
|
||||
/* GPIO inputs also double as IRQ sinks. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue