On 04/15/2015 03:16 AM, Alberto Garcia wrote: > On Sat 11 Apr 2015 01:06:58 AM CEST, Eric Blake <ebl...@redhat.com> wrote: > >>> +{ 'type': 'SchemaInfoEnum', >>> + 'data': { 'values': ['str'] } } >> >> At one point, one thread suggested that we might want to allow QAPI to >> support enums with fixed values, as in: >> >> 'data': [ {'one': 1}, {'three': 3} ] > > Out of curiosity, what's the use case for that?
If we add that extension, it will allow the creation of C enums with specific values, rather than defaulting to consecutive initialization from 0. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org