summary refs log tree commit diff stats
path: root/hw/i2c/omap_i2c.c
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 /hw/i2c/omap_i2c.c
parenteafadbbbac06a8d72baa976f4d3c42b0e5f8cfc8 (diff)
downloadfocaccia-qemu-18fa3ebc45262cebc7c9f0ba6f717452bdc51db7.tar.gz
focaccia-qemu-18fa3ebc45262cebc7c9f0ba6f717452bdc51db7.zip
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 'hw/i2c/omap_i2c.c')
0 files changed, 0 insertions, 0 deletions