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

2015-06-19 Thread Andreas Färber
Am 19.06.2015 um 18:38 schrieb Eric Blake: > On 05/27/2015 09:07 AM, 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 >> als

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

2015-06-19 Thread Eric Blake
On 05/27/2015 09:07 AM, 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 object have access

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

2015-06-19 Thread Andreas Färber
Am 19.06.2015 um 18:12 schrieb Eric Blake: > On 05/27/2015 09:07 AM, 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 >> als

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

2015-06-19 Thread Eric Blake
On 05/27/2015 09:07 AM, 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 object have access

[Qemu-devel] [PATCH v5 7/8] qom: add a object_property_add_enum helper method

2015-05-27 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