summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorStefan Hajnoczi2014-06-18 11:58:32 +0200
committerStefan Hajnoczi2014-07-01 09:15:02 +0200
commit67cc7e0aaca835ed68cf3bd34f4d51a21232792f (patch)
tree1db022a67f3f1899a5dd5ee1c90412dfb836772c /include/hw
parentvirtio-blk: move x-data-plane qdev property to virtio-blk.h (diff)
downloadqemu-67cc7e0aaca835ed68cf3bd34f4d51a21232792f.tar.gz
qemu-67cc7e0aaca835ed68cf3bd34f4d51a21232792f.tar.xz
qemu-67cc7e0aaca835ed68cf3bd34f4d51a21232792f.zip
qdev: add qdev_alias_all_properties()
The qdev_alias_all_properties() function creates QOM alias properties for each qdev property on a DeviceState. This is useful for parent objects that wish to forward property accesses to their children. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/qdev-properties.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
index c962b6bbaa..3726bf331b 100644
--- a/include/hw/qdev-properties.h
+++ b/include/hw/qdev-properties.h
@@ -193,6 +193,8 @@ void error_set_from_qdev_prop_error(Error **errp, int ret, DeviceState *dev,
*/
void qdev_property_add_static(DeviceState *dev, Property *prop, Error **errp);
+void qdev_alias_all_properties(DeviceState *target, Object *source);
+
/**
* @qdev_prop_set_after_realize:
* @dev: device