summaryrefslogtreecommitdiffstats
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorAnthony Liguori2011-12-12 21:29:28 +0100
committerAnthony Liguori2011-12-15 16:20:47 +0100
commita10f07a7d0827eeef920c16b500b50030b7ff651 (patch)
treea44dcb4da7c63ea80b9866b7f1b87aa86263d34d /hw/qdev.h
parentqom: register legacy properties as new style properties (v2) (diff)
downloadqemu-a10f07a7d0827eeef920c16b500b50030b7ff651.tar.gz
qemu-a10f07a7d0827eeef920c16b500b50030b7ff651.tar.xz
qemu-a10f07a7d0827eeef920c16b500b50030b7ff651.zip
qom: introduce root device
This is based on Jan's suggestion for how to do unique naming. The root device is the root of composition. All devices are reachable via child<> links from this device. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index 3b629d4fbd..52aadd2f1f 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -482,4 +482,12 @@ const char *qdev_property_get_type(DeviceState *dev, const char *name,
*/
void qdev_property_add_legacy(DeviceState *dev, Property *prop, Error **errp);
+/**
+ * @qdev_get_root - returns the root device of the composition tree
+ *
+ * Returns:
+ * The root of the composition tree.
+ */
+DeviceState *qdev_get_root(void);
+
#endif