Re: [Qemu-devel] [PATCH v2 6/7] qom: add a object_property_add_enum helper method

2015-05-01 Thread Daniel P. Berrange
On Thu, Apr 30, 2015 at 04:46:37PM +0100, Daniel P. Berrange wrote: > A QOM property can be parsed as enum using the visit_type_enum() > helper method, but this forces callers to use the more complex > generic object_property_add() method when registering it. It > also requires that users of that o

[Qemu-devel] [PATCH v2 6/7] qom: add a object_property_add_enum helper method

2015-04-30 Thread Daniel P. Berrange
A QOM property can be parsed as enum using the visit_type_enum() helper method, but this forces callers to use the more complex generic object_property_add() method when registering it. It also requires that users of that object have access to the string map when they want to read the property valu