Re: [Qemu-devel] [PATCH v8 11/18] qapi: Simplify gen_struct_field()

2015-10-13 Thread Eric Blake
On 10/13/2015 06:12 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Rather than having all callers pass a name, type, and optional >> flag, have them instead pass a QAPISchemaObjectTypeMember which >> already has all that information. >> >> This will allow a future patch to simplify altern

Re: [Qemu-devel] [PATCH v8 11/18] qapi: Simplify gen_struct_field()

2015-10-13 Thread Markus Armbruster
Eric Blake writes: > Rather than having all callers pass a name, type, and optional > flag, have them instead pass a QAPISchemaObjectTypeMember which > already has all that information. > > This will allow a future patch to simplify alternates to use > a special tag 'qtype_code type'. In the mea

[Qemu-devel] [PATCH v8 11/18] qapi: Simplify gen_struct_field()

2015-10-12 Thread Eric Blake
Rather than having all callers pass a name, type, and optional flag, have them instead pass a QAPISchemaObjectTypeMember which already has all that information. This will allow a future patch to simplify alternates to use a special tag 'qtype_code type'. In the meantime, it requires a hack to cre