qemu/qapi
Markus Armbruster a130728554 qapi: Generalize struct member policy checking
The generated visitor functions call visit_deprecated_accept() and
visit_deprecated() when visiting a struct member with special feature
flag 'deprecated'.  This makes the feature flag visible to the actual
visitors.  I want to make feature flag 'unstable' visible there as
well, so I can add policy for it.

To let me make it visible, replace these functions by
visit_policy_reject() and visit_policy_skip(), which take the member's
special features as an argument.  Note that the new functions have the
opposite sense, i.e. the return value flips.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20211028102520.747396-6-armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[Unbreak forward visitor]
2021-10-29 18:23:09 +02:00
..
acpi.json
audio.json
authz.json
block-core.json qapi: Mark unstable QMP parts with feature 'unstable' 2021-10-29 15:55:52 +02:00
block-export.json qapi: make 'if' condition strings simple identifiers 2021-08-26 13:53:56 +02:00
block.json
char.json qapi: Convert simple union ChardevBackend to flat one 2021-09-27 08:23:09 +02:00
common.json
compat.json qapi: Implement deprecated-input={reject,crash} for enum values 2021-10-27 17:19:34 +02:00
control.json
crypto.json crypto: replace 'des-rfb' cipher with 'des' 2021-07-14 14:15:52 +01:00
dump.json
error.json
introspect.json qapi: Add feature flags to enum members 2021-10-27 17:18:55 +02:00
job.json
machine-target.json qapi: make 'if' condition strings simple identifiers 2021-08-26 13:53:56 +02:00
machine.json qapi: Include qom-path in MEMORY_DEVICE_SIZE_CHANGE qapi events 2021-10-02 08:43:21 +02:00
meson.build qapi: introduce forwarding visitor 2021-07-23 18:17:17 +02:00
migration.json qapi: Mark unstable QMP parts with feature 'unstable' 2021-10-29 15:55:52 +02:00
misc-target.json qapi/misc-target: Group SEV QAPI definitions 2021-10-13 10:47:49 +02:00
misc.json qapi: Mark unstable QMP parts with feature 'unstable' 2021-10-29 15:55:52 +02:00
net.json netdev: add more commands to preconfig mode 2021-06-11 10:30:13 +08:00
opts-visitor.c
pci.json
pragma.json
qapi-clone-visitor.c
qapi-dealloc-visitor.c
qapi-forward-visitor.c qapi: Generalize struct member policy checking 2021-10-29 18:23:09 +02:00
qapi-schema.json
qapi-util.c
qapi-visit-core.c qapi: Generalize struct member policy checking 2021-10-29 18:23:09 +02:00
qdev.json vl: Enable JSON syntax for -device 2021-10-15 16:11:22 +02:00
qmp-dispatch.c qapi: Move compat policy from QObject to generic visitor 2021-10-27 17:19:15 +02:00
qmp-event.c
qmp-registry.c
qobject-input-visitor.c qapi: Generalize struct member policy checking 2021-10-29 18:23:09 +02:00
qobject-output-visitor.c qapi: Generalize struct member policy checking 2021-10-29 18:23:09 +02:00
qom.json qapi: Mark unstable QMP parts with feature 'unstable' 2021-10-29 15:55:52 +02:00
rdma.json
replay.json
rocker.json
run-state.json
sockets.json build-sys: add HAVE_IPPROTO_MPTCP 2021-09-30 15:30:25 +02:00
string-input-visitor.c
string-output-visitor.c
tpm.json qapi: Convert simple union TpmTypeOptions to flat one 2021-09-27 08:22:25 +02:00
trace-events qapi: Generalize struct member policy checking 2021-10-29 18:23:09 +02:00
trace.h
trace.json qapi: Set boolean value correctly in examples 2021-09-03 17:03:05 +02:00
transaction.json qapi: Convert simple union TransactionAction to flat one 2021-09-27 08:23:25 +02:00
ui.json qapi: Convert simple union InputEvent to flat one 2021-09-25 06:55:54 +02:00
yank.json