summary refs log tree commit diff stats
path: root/include/hw/qdev-core.h
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-07-14 10:14:52 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-14 12:04:42 +0200
commit5b4ff3c661374b2df247e12b58667e4643b30af1 (patch)
tree96beea107bb99a102dbbb423e061d841adf788a5 /include/hw/qdev-core.h
parentfaabdbb792889bf011a593578d1de51e14616bb7 (diff)
downloadfocaccia-qemu-5b4ff3c661374b2df247e12b58667e4643b30af1.tar.gz
focaccia-qemu-5b4ff3c661374b2df247e12b58667e4643b30af1.zip
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>
Diffstat (limited to 'include/hw/qdev-core.h')
-rw-r--r--include/hw/qdev-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h
index 33518eec12..08d1d2c6f9 100644
--- a/include/hw/qdev-core.h
+++ b/include/hw/qdev-core.h
@@ -233,6 +233,7 @@ struct Property {
     int          arrayoffset;
     PropertyInfo *arrayinfo;
     int          arrayfieldsize;
+    const char   *link_type;
 };
 
 struct PropertyInfo {