Skip to contentSkip to conversation

docs/qapi-code-gen.txt: Fix simple union introspection example

PATCH In review Markus Armbruster 2 participants 3 messages Jan 14, 2016 – Jan 15, 2016

lore
Share & tools
lore
#0 lore raw

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
index 128f074..b11fa68 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Markus Armbruster

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(-)

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
#2 lore raw
Quoted 9 lines · Eric Blake
Quoted 7 lines · Markus Armbruster

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(-)
Quoted 7 lines

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.