Re: [Qemu-devel] [PATCH v14 11/15] qapi: Track enum values by QAPISchemaMember, not string

2015-12-02 Thread Markus Armbruster
Eric Blake writes: > Rather than using just an array of strings, make enum.values be > an array of the new QAPISchemaMember type, and add a helper > member_names() method to get back at the original list of names. > Likewise, creating an enum requires wrapping strings, via a new > QAPISchema._mak

[Qemu-devel] [PATCH v14 11/15] qapi: Track enum values by QAPISchemaMember, not string

2015-12-01 Thread Eric Blake
Rather than using just an array of strings, make enum.values be an array of the new QAPISchemaMember type, and add a helper member_names() method to get back at the original list of names. Likewise, creating an enum requires wrapping strings, via a new QAPISchema._make_enum_members() method. The b