qemu-e2k/include/qapi
Paolo Bonzini 18fa3ebc45 qapi: introduce forwarding visitor
This new adaptor visitor takes a single field of the adaptee, and exposes it
with a different name.

This will be used for QOM alias properties.  Alias targets can of course
have a different name than the alias property itself (e.g. a machine's
pflash0 might be an alias of a property named 'drive').  When the target's
getter or setter invokes the visitor, it will use a different name than
what the caller expects, and the visitor will not be able to find it
(or will consume erroneously).

The solution is for alias getters and setters to wrap the incoming
visitor, and forward the sole field that the target is expecting while
renaming it appropriately.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-07-23 18:17:17 +02:00
..
qmp vl: plumb keyval-based options into -readconfig 2021-06-04 13:50:04 +02: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-input=reject for QMP command arguments 2021-03-19 16:05:11 +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
forward-visitor.h qapi: introduce forwarding visitor 2021-07-23 18:17:17 +02: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 qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +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-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00
visitor.h qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00