aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r--hw/qdev-properties.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index 2d4eeec..bda6699 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -480,6 +480,11 @@ static Property *qdev_prop_find(DeviceState *dev, const char *name)
return NULL;
}
+int qdev_prop_exists(DeviceState *dev, const char *name)
+{
+ return qdev_prop_find(dev, name) ? true : false;
+}
+
int qdev_prop_parse(DeviceState *dev, const char *name, const char *value)
{
Property *prop;