aboutsummaryrefslogtreecommitdiffstats
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-15 14:40:29 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-01-27 10:50:46 -0600
commit3cc90eb2b7c0810fb23ceed57c1f50683ee803fd (patch)
treeb6194aded9070101c6dab9390e31f5cd480d0eec /hw/qdev.h
parent94afdadcb3ab71f5123f719d74065c6f4cc837ea (diff)
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>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index f3c92199f..48f80a5cc 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -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. */