This series builds on top of my quorum maintainance series. It's cut qmp.c and monitor.c into pieces extract QAPI block command definitions and wire the result to qemu-nbd.c.
Benoît Canet (6): qapi: Extract QAPI block and common definitions. qmp: Extract system emulation related code from qmp.c into qmp-system.c qemu-nbd: build QAPI block core into qemu-nbd monitor: Split monitor in two parts: core and system. qapi: Add a script to filter qmp-commands-old.h to generate a subset of it. qemu-nbd: Add --qmp option to qemu-nbd. Makefile | 41 +- Makefile.objs | 10 +- Makefile.target | 1 + block/Makefile.objs | 11 +- include/monitor/monitor-init.h | 34 + include/monitor/monitor-system.h | 93 ++ include/monitor/monitor.h | 13 + monitor-init.c | 121 ++ monitor-system.c | 2497 ++++++++++++++++++++++++++++ monitor.c | 3158 ++++-------------------------------- qapi-schema.json | 1881 ++------------------- qapi/block-core.json | 1447 +++++++++++++++++ qapi/block.json | 166 ++ qapi/common.json | 88 + qemu-nbd.c | 33 +- qmp-stub.c | 90 + qmp-system.c | 340 ++++ qmp.c | 325 +--- qom/Makefile.objs | 9 +- scripts/filter_qmp_commands_old.py | 93 ++ vl.c | 88 +- 21 files changed, 5502 insertions(+), 5037 deletions(-) create mode 100644 include/monitor/monitor-init.h create mode 100644 include/monitor/monitor-system.h create mode 100644 monitor-init.c create mode 100644 monitor-system.c create mode 100644 qapi/block-core.json create mode 100644 qapi/block.json create mode 100644 qapi/common.json create mode 100644 qmp-stub.c create mode 100644 qmp-system.c create mode 100755 scripts/filter_qmp_commands_old.py -- 1.9.1