mbox series

[0/2] qapi: allow flat unions with empty branches

Message ID 1526029534-35771-1-git-send-email-anton.nefedov@virtuozzo.com
Headers show
Series qapi: allow flat unions with empty branches | expand

Message

Anton Nefedov May 11, 2018, 9:05 a.m. UTC
hej,

inspired by this thread
http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg04802.html

Seems that nobody got around to this since (did anybody?),
so I thought I'd give a try.

There's a generator patch and usage example.

Anton Nefedov (2):
  qapi: allow flat unions with empty branches
  qapi: avoid empty CpuInfoOther type

 qapi/misc.json                 | 48 ++++--------------------------------------
 cpus.c                         |  2 --
 scripts/qapi/common.py         | 18 ++++++++++------
 scripts/qapi/doc.py            |  2 +-
 scripts/qapi/types.py          |  2 +-
 scripts/qapi/visit.py          | 12 ++++++-----
 tests/qapi-schema/test-qapi.py |  2 +-
 7 files changed, 26 insertions(+), 60 deletions(-)