From 3cc90eb2b7c0810fb23ceed57c1f50683ee803fd Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 15 Dec 2011 14:40:29 -0600 Subject: 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 --- hw/qdev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/qdev.h') diff --git a/hw/qdev.h b/hw/qdev.h index f3c92199f0..48f80a5cce 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. */ -- cgit v1.2.3-55-g7522