aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-10-21 15:25:28 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:38 -0500
commitd8ed79aea7b89b1dc0dbd9ca0b05508e711d2c6d (patch)
tree8c79d529eef5cbe64cc4bda0db90e60e94fe20c3 /hw/qdev.h
parent93db66850d99fd9885edeff6af5679be51e1c610 (diff)
qdev: add qdev_prop_exists()
Function test whenever a driver has a specific property. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index 2e7983fca6..77075a8e03 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -249,6 +249,7 @@ extern PropertyInfo qdev_prop_pci_devfn;
/* Set properties between creation and init. */
void *qdev_get_prop_ptr(DeviceState *dev, Property *prop);
+int qdev_prop_exists(DeviceState *dev, const char *name);
int qdev_prop_parse(DeviceState *dev, const char *name, const char *value);
void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyType type);
void qdev_prop_set_uint8(DeviceState *dev, const char *name, uint8_t value);