]> Git Repo - qemu.git/commit - qapi/char.json
qapi: add conditions to SPICE type/commands/events on the schema
authorMarc-André Lureau <[email protected]>
Tue, 3 Jul 2018 15:56:48 +0000 (17:56 +0200)
committerMarkus Armbruster <[email protected]>
Tue, 3 Jul 2018 16:38:54 +0000 (18:38 +0200)
commit514337c142f9522f6ab89c3d2f964f446ebeb1cd
tree0c59030dbfef59f833cac931f65fa1371006066a
parent05eb4a25aea245575503b03bc882a64ae70fcaad
qapi: add conditions to SPICE type/commands/events on the schema

Add #if defined(CONFIG_SPICE) in generated code, and adjust the
qmp/hmp code accordingly.

query-qmp-schema no longer reports the command/events etc as
available when disabled at compile time.

Commands made conditional:

* query-spice

  Before the patch, the command for !CONFIG_SPICE is unregistered. It
  will fail with the same error.

Events made conditional:

* SPICE_CONNECTED, SPICE_INITIALIZED, SPICE_DISCONNECTED,
  SPICE_MIGRATE_COMPLETED

Add TODO for conditional SPICE chardevs, delayed until the supports
for conditional members lands.

No HMP change, the code was already conditional.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Message-Id: <20180703155648[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
monitor.c
qapi/char.json
qapi/ui.json
qmp.c
This page took 0.022324 seconds and 4 git commands to generate.