qemu-patch-raspberry4/include/qapi
Markus Armbruster 91fa93e516 qapi: Implement deprecated-output=hide for QMP command results
This policy suppresses deprecated bits in output, and thus permits
"testing the future".  Implement it for QMP command results.  Example:
when QEMU is run with -compat deprecated-output=hide, then

    {"execute": "query-cpus-fast"}

yields

    {"return": [{"thread-id": 9805, "props": {"core-id": 0, "thread-id": 0, "socket-id": 0}, "qom-path": "/machine/unattached/device[0]", "cpu-index": 0, "target": "x86_64"}]}

instead of

    {"return": [{"arch": "x86", "thread-id": 22436, "props": {"core-id": 0, "thread-id": 0, "socket-id": 0}, "qom-path": "/machine/unattached/device[0]", "cpu-index": 0, "target": "x86_64"}]}

Note the suppression of deprecated member "arch".

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210318155519.1224118-4-armbru@redhat.com>
2021-03-19 15:43:33 +01:00
..
qmp qga: return a more explicit error on why a command is disabled 2021-03-16 20:21:47 -05:00
clone-visitor.h qapi: Make visitor functions taking Error ** return bool, not void 2020-07-10 15:18:08 +02:00
compat-policy.h qapi: Implement deprecated-output=hide for QMP command results 2021-03-19 15:43:33 +01:00
dealloc-visitor.h include: Fix typos found by codespell 2017-01-24 23:26:52 +03:00
error.h error: Fix "Converting to ERRP_GUARD()" doc on "valid at return" 2021-03-05 15:40:42 +01:00
hmp-output-visitor.h hmp: Use QAPI NetdevInfo in hmp_info_network 2021-03-15 16:41:22 +08:00
opts-visitor.h Move include qemu/option.h from qemu-common.h to actual users 2018-02-09 13:52:16 +01:00
qmp-event.h qapi: Eliminate indirection through qmp_event_get_func_emit() 2019-01-24 10:01:05 +01:00
qobject-input-visitor.h Include qapi/qmp/qobject.h exactly where needed 2018-02-09 13:52:15 +01:00
qobject-output-visitor.h qapi: Implement deprecated-output=hide for QMP command results 2021-03-19 15:43:33 +01:00
string-input-visitor.h qapi: Rewrite string-input-visitor's integer and list parsing 2018-12-13 19:10:06 +01:00
string-output-visitor.h qapi: Add new visit_complete() function 2016-07-06 10:52:04 +02:00
util.h qapi: Introduce QAPI_LIST_APPEND 2021-01-28 08:08:45 +01:00
visitor-impl.h qapi: Implement deprecated-output=hide for QMP command results 2021-03-19 15:43:33 +01:00
visitor.h qapi: Implement deprecated-output=hide for QMP command results 2021-03-19 15:43:33 +01:00