Re: [Qemu-devel] [PATCH v6 20/27] qapi: add 'if' to alternate members

2018-12-08 Thread Marc-André Lureau
Hi On Thu, Dec 6, 2018 at 8:41 PM Markus Armbruster wrote: > > Marc-André Lureau writes: > > > Add 'if' key to alternate members: > > > > { 'alternate': 'TestIfAlternate', 'data': > > { 'alt': { 'type': 'TestStruct', 'if': 'COND' } } } > > > > Generated code is not changed by this patch but

Re: [Qemu-devel] [PATCH v6 20/27] qapi: add 'if' to alternate members

2018-12-06 Thread Markus Armbruster
Marc-André Lureau writes: > Add 'if' key to alternate members: > > { 'alternate': 'TestIfAlternate', 'data': > { 'alt': { 'type': 'TestStruct', 'if': 'COND' } } } > > Generated code is not changed by this patch but with "qapi: add #if > conditions to generated code". > > Signed-off-by:

[Qemu-devel] [PATCH v6 20/27] qapi: add 'if' to alternate members

2018-07-06 Thread Marc-André Lureau
Add 'if' key to alternate members: { 'alternate': 'TestIfAlternate', 'data': { 'alt': { 'type': 'TestStruct', 'if': 'COND' } } } Generated code is not changed by this patch but with "qapi: add #if conditions to generated code". Signed-off-by: Marc-André Lureau --- scripts/qapi/common.py