docs/devel/qapi-code-gen: Update features doc, minor improvements
cover docs/devel/qapi-code-gen: Update features doc, minor improvements
*** BLURB HERE ***
Markus Armbruster (2):
docs/devel/qapi-code-gen: Belatedly update features documentation docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
docs/devel/qapi-code-gen.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.39.0
PATCH 1/2 docs/devel/qapi-code-gen: Belatedly update features documentation
Commit 013b4efc9be "qapi: Add feature flags to remaining definitions" (v5.0.0), commit 84ab0086879 "qapi: Add feature flags to struct members" (v5.0.0), and commit b6c18755e41 "qapi: Add feature flags to enum members" (v6.2.0) neglected to update section "Features". Make up for that.
--- docs/devel/qapi-code-gen.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
docs/devel/qapi-code-gen.rst +4 -3
@@ -685,9 +685,10 @@ change in the QMP syntax (usually by allowing values or operations that previously resulted in an error). QMP clients may still need to know whether the extension is available. -For this purpose, a list of features can be specified for a command or -struct type. Each list member can either be ``{ 'name': STRING, '*if': -COND }``, or STRING, which is shorthand for ``{ 'name': STRING }``. +For this purpose, a list of features can be specified for definitions, +enumeration values, and struct members. Each feature list member can +either be ``{ 'name': STRING, '*if': COND }``, or STRING, which is +shorthand for ``{ 'name': STRING }``. The optional 'if' member specifies a conditional. See `Configuring the schema`_ below for more on this.
Signature · 1 line
2.39.0
Re: [PATCH 1/2] docs/devel/qapi-code-gen: Belatedly update features documentation
Quoted 10 lines · Markus Armbruster
Commit
013b4efc9be"qapi: Add feature flags to remaining definitions" (v5.0.0), commit84ab0086879"qapi: Add feature flags to struct members" (v5.0.0), and commitb6c18755e41"qapi: Add feature flags to enum members" (v6.2.0) neglected to update section "Features". Make up for that.Signed-off-by Markus Armbruster <[email protected]>--- docs/devel/qapi-code-gen.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
PATCH 2/2 docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
In reply to Markus ArmbrusterDocumentation of enumeration value conditions lacks a 'may'. Fix that.
Clarify SchemaInfo documentation for struct and union types.
--- docs/devel/qapi-code-gen.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
docs/devel/qapi-code-gen.rst +4 -5
@@ -818,8 +818,8 @@ member 'bar' :: A union's discriminator may not be conditional. -Likewise, individual enumeration values be conditional. This requires -the longhand form of ENUM-VALUE_. +Likewise, individual enumeration values may be conditional. This +requires the longhand form of ENUM-VALUE_. Example: an enum type with unconditional value 'foo' and conditional value 'bar' ::
@@ -1158,9 +1158,8 @@ Example: the SchemaInfo for EVENT_C from section Events_ :: Type "q_obj-EVENT_C-arg" is an implicitly defined object type with the two members from the event's definition. -The SchemaInfo for struct and union types has meta-type "object". - -The SchemaInfo for a struct type has variant member "members". +The SchemaInfo for struct and union types has meta-type "object" and +variant member "members". The SchemaInfo for a union type additionally has variant members "tag" and "variants".
Signature · 1 line
2.39.0
Re: [PATCH 2/2] docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo
Quoted 9 lines · Markus Armbruster
Documentation of enumeration value conditions lacks a 'may'. Fix that.
Clarify SchemaInfo documentation for struct and union types.
Signed-off-by Markus Armbruster <[email protected]>--- docs/devel/qapi-code-gen.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 2 lines · Markus Armbruster
*** BLURB HERE ***
🤫
Quoted 11 lines
Markus Armbruster (2):
docs/devel/qapi-code-gen: Belatedly update features documentation docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfodocs/devel/qapi-code-gen.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)--
2.39.0
John Snow
Reviewed-byQuoted 21 lines · John Snow
Quoted 2 lines · Markus Armbruster
*** BLURB HERE ***
🤫
Quoted 10 lines
Markus Armbruster (2):
docs/devel/qapi-code-gen: Belatedly update features documentation docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfodocs/devel/qapi-code-gen.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)--
2.39.0
Oops, also meant to add:
Quoted 10 lines · John Snow
Quoted 8 lines · John Snow
Quoted 2 lines · Markus Armbruster
*** BLURB HERE ***
🤫
Uh, thank you for following my written instructions literally, and...
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Markus Armbruster (2):
docs/devel/qapi-code-gen: Belatedly update features documentation docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfodocs/devel/qapi-code-gen.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
--
2.39.0Oops, also meant to add:
Reviewed-by John Snow <[email protected]>
... thank you for reviewing!