aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-02-02 22:09:44 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-02-07 13:52:41 +0100
commit1ce05125571e9dbbd16e1de0f8924fe45bef2bf0 (patch)
tree74df8e956ee118aa0a3829b2e776d9e5c5919b1c /hw/qdev.h
parentacbac4a1dc974a3915760b4551336544c4360241 (diff)
downloadqemu-1ce05125571e9dbbd16e1de0f8924fe45bef2bf0.zip
qemu-1ce05125571e9dbbd16e1de0f8924fe45bef2bf0.tar.gz
qemu-1ce05125571e9dbbd16e1de0f8924fe45bef2bf0.tar.bz2
qdev: remove print/parse methods from LostTickPolicy properties
Also generalize the code so that we can have more enum properties in the future. Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.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 ab53273..c31dc4e 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -140,6 +140,7 @@ struct PropertyInfo {
const char *legacy_name;
size_t size;
enum PropertyType type;
+ const char **enum_table;
int64_t min;
int64_t max;
int (*parse)(DeviceState *dev, Property *prop, const char *str);