aboutsummaryrefslogtreecommitdiff
path: root/include/hw/qdev-properties.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-05-01 16:03:19 +0200
committerAndreas Färber <afaerber@suse.de>2013-05-06 19:50:52 +0200
commit868d378bb087c6003bfa0e431aec0e5871a90ff4 (patch)
tree5a7a2e8d78abf3c5d90af24509df23d0313d2eba /include/hw/qdev-properties.h
parentb1fe9bcbceb6fb9d800f735da37aa79ac4552c6e (diff)
qdev: Introduce qdev_prop_set_globals_for_type()
Reuse it in qdev_prop_set_globals(). Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> [AF: Renamed from qdev_prop_set_custom_globals()] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/qdev-properties.h')
-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 38469d45a7..39448b716c 100644
--- a/include/hw/qdev-properties.h
+++ b/include/hw/qdev-properties.h
@@ -169,6 +169,8 @@ void qdev_prop_set_ptr(DeviceState *dev, const char *name, void *value);
void qdev_prop_register_global(GlobalProperty *prop);
void qdev_prop_register_global_list(GlobalProperty *props);
void qdev_prop_set_globals(DeviceState *dev, Error **errp);
+void qdev_prop_set_globals_for_type(DeviceState *dev, const char *typename,
+ Error **errp);
void error_set_from_qdev_prop_error(Error **errp, int ret, DeviceState *dev,
Property *prop, const char *value);