Skip to contentSkip to conversation

docs/devel/qapi-code-gen: Update features doc, minor improvements

PATCH In review Markus Armbruster 3 participants 8 messages Feb 13, 2023 – Feb 15, 2023

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 5edc49aa74..566640edf8 100644
@@ -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
Reviewed-by on v1 1/2
#2 lore raw

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), 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(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
#3 lore raw

PATCH 2/2 docs/devel/qapi-code-gen: Fix a missing 'may', clarify SchemaInfo

In reply to Markus Armbruster

Documentation 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
index 566640edf8..23e7f2fb1c 100644
@@ -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
Reviewed-by on v1 2/2
#4 lore raw

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.

---
 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
#5 lore raw
In reply to Markus Armbruster
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 SchemaInfo

 docs/devel/qapi-code-gen.rst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

--
2.39.0

Reviewed-by
#6 lore raw
Quoted 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 SchemaInfo

 docs/devel/qapi-code-gen.rst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

--
2.39.0

Oops, also meant to add:

#7 lore raw
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 SchemaInfo

 docs/devel/qapi-code-gen.rst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

--
2.39.0

Oops, also meant to add:

... thank you for reviewing!