diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-12 17:15:47 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-21 13:35:37 -0500 |
commit | 59419663a139d09018fdd5f59646ce608abd46fc (patch) | |
tree | 25b1e8bf0e9e2f88cd6b5a48ff1efd099961ef20 /hw/qdev.h | |
parent | 6cfa64de908d67fb6f6b6e3ae4888dd863f69e44 (diff) | |
download | qemu-59419663a139d09018fdd5f59646ce608abd46fc.zip qemu-59419663a139d09018fdd5f59646ce608abd46fc.tar.gz qemu-59419663a139d09018fdd5f59646ce608abd46fc.tar.bz2 |
qdev: add string property.
Patchworks-ID: 35755
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -79,6 +79,7 @@ enum PropertyType { PROP_TYPE_MACADDR, PROP_TYPE_DRIVE, PROP_TYPE_CHR, + PROP_TYPE_STRING, PROP_TYPE_PTR, }; @@ -186,6 +187,7 @@ extern PropertyInfo qdev_prop_int32; extern PropertyInfo qdev_prop_uint64; extern PropertyInfo qdev_prop_hex32; extern PropertyInfo qdev_prop_hex64; +extern PropertyInfo qdev_prop_string; extern PropertyInfo qdev_prop_chr; extern PropertyInfo qdev_prop_ptr; extern PropertyInfo qdev_prop_macaddr; @@ -227,6 +229,8 @@ extern PropertyInfo qdev_prop_pci_devfn; DEFINE_PROP(_n, _s, _f, qdev_prop_ptr, void*) #define DEFINE_PROP_CHR(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharDriverState*) +#define DEFINE_PROP_STRING(_n, _s, _f) \ + DEFINE_PROP(_n, _s, _f, qdev_prop_string, char*) #define DEFINE_PROP_DRIVE(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, qdev_prop_drive, DriveInfo*) #define DEFINE_PROP_MACADDR(_n, _s, _f) \ |