]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
qdev: Introduce DEFINE_PROP_LINK
authorFam Zheng <famz@redhat.com>
Fri, 14 Jul 2017 02:14:52 +0000 (10:14 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:42 +0000 (12:04 +0200)
commit5b4ff3c661374b2df247e12b58667e4643b30af1
tree96beea107bb99a102dbbb423e061d841adf788a5
parentfaabdbb792889bf011a593578d1de51e14616bb7
qdev: Introduce DEFINE_PROP_LINK

This property can be used to replace the object_property_add_link in
device code, to add a link to other objects, which is a common pattern.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-4-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-core.h
include/hw/qdev-properties.h