docs/qapi-code-gen.txt: Fix simple union introspection example
PATCH 1/1 docs/qapi-code-gen.txt: Fix simple union introspection example
The implicit tag member is named "type", not "kind". Screwed up in commit 39a1815.
--- docs/qapi-code-gen.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/qapi-code-gen.txt +1 -1
@@ -655,7 +655,7 @@ Union types { "name": "BlockdevOptions", "meta-type": "object", "members": [ - { "name": "kind", "type": "BlockdevOptionsKind" } ], + { "name": "type", "type": "BlockdevOptionsKind" } ], "tag": "type", "variants": [ { "case": "file", "type": ":obj-FileOptions-wrapper" },
Signature · 1 line
2.4.3
Quoted 7 lines · Markus Armbruster
The implicit tag member is named "type", not "kind". Screwed up in commit 39a1815.
Signed-off-by Markus Armbruster <[email protected]>--- docs/qapi-code-gen.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
However, there's other errors in the documentation (we haven't kept it up-to-date with recent churn in the generator), so maybe it's better to fix all of them at once. See my Subset E series:
https://lists.gnu.org/archive/html/qemu-devel/2015-12/msg03863.html
https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg00410.html
(I'll probably have to send a v9 of the series, but wanted to see if you had any comments on v8 first)
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 9 lines · Eric Blake
Quoted 7 lines · Markus Armbruster
The implicit tag member is named "type", not "kind". Screwed up in commit 39a1815.
Signed-off-by Markus Armbruster <[email protected]>--- docs/qapi-code-gen.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
Reviewed-by Eric Blake <[email protected]>However, there's other errors in the documentation (we haven't kept it up-to-date with recent churn in the generator), so maybe it's better to fix all of them at once. See my Subset E series:
https://lists.gnu.org/archive/html/qemu-devel/2015-12/msg03863.html
https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg00410.html
Feel free to fold my patch into yours.
Quoted 2 lines
(I'll probably have to send a v9 of the series, but wanted to see if you had any comments on v8 first)
In my review queue.