mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
acbac4a1dc
commit
1ce0512557
3 changed files with 34 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue