qemu/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
compat-policy.h qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00
dealloc-visitor.h
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
qmp-event.h
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
string-output-visitor.h
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