From 1ce05125571e9dbbd16e1de0f8924fe45bef2bf0 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 2 Feb 2012 22:09:44 +0100 Subject: 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 Signed-off-by: Paolo Bonzini --- hw/qdev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/qdev.h') 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); -- cgit v1.1