]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qdev: add a interface to register subclasses
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 15 Dec 2011 20:40:29 +0000 (14:40 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 27 Jan 2012 16:50:46 +0000 (10:50 -0600)
commit3cc90eb2b7c0810fb23ceed57c1f50683ee803fd
treeb6194aded9070101c6dab9390e31f5cd480d0eec
parent94afdadcb3ab71f5123f719d74065c6f4cc837ea
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>
hw/qdev.c
hw/qdev.h