diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-06-23 16:15:29 +0900 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-07-11 20:00:58 +0300 |
commit | f4594a3be005ea96e276a1354184258f5ef3b8da (patch) | |
tree | e9b55ecccfed798c4ce89e93c5e56cbaf67cff61 /hw/qdev-properties.c | |
parent | e327e323f103f7354a0385b835255e86b16ae669 (diff) |
qdev: implement qdev_prop_set_bit().
implement qdev_prop_set_bit().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r-- | hw/qdev-properties.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 7e3e99efcb..9219cd7a60 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -633,6 +633,11 @@ void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyT qdev_prop_cpy(dev, prop, src); } +void qdev_prop_set_bit(DeviceState *dev, const char *name, bool value) +{ + qdev_prop_set(dev, name, &value, PROP_TYPE_BIT); +} + void qdev_prop_set_uint8(DeviceState *dev, const char *name, uint8_t value) { qdev_prop_set(dev, name, &value, PROP_TYPE_UINT8); |