aboutsummaryrefslogtreecommitdiff
path: root/qapi/meson.build
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-07-18 08:49:22 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-07-23 18:17:17 +0200
commit18fa3ebc45262cebc7c9f0ba6f717452bdc51db7 (patch)
treea53611506176b3f6b20ef7a9c14bac6a07d33ddf /qapi/meson.build
parenteafadbbbac06a8d72baa976f4d3c42b0e5f8cfc8 (diff)
downloadqemu-18fa3ebc45262cebc7c9f0ba6f717452bdc51db7.zip
qemu-18fa3ebc45262cebc7c9f0ba6f717452bdc51db7.tar.gz
qemu-18fa3ebc45262cebc7c9f0ba6f717452bdc51db7.tar.bz2
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>
Diffstat (limited to 'qapi/meson.build')
-rw-r--r--qapi/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/qapi/meson.build b/qapi/meson.build
index 376f4ce..c356a38 100644
--- a/qapi/meson.build
+++ b/qapi/meson.build
@@ -2,6 +2,7 @@ util_ss.add(files(
'opts-visitor.c',
'qapi-clone-visitor.c',
'qapi-dealloc-visitor.c',
+ 'qapi-forward-visitor.c',
'qapi-util.c',
'qapi-visit-core.c',
'qobject-input-visitor.c',