Skip to contentSkip to conversation

qapi: Random small fixes

PATCH Applied Andrea Bolognani 3 participants 6 messages Apr 20, 2022 – Apr 21, 2022

lore
Share & tools
lore
#0 lore raw

cover qapi: Random small fixes

Andrea Bolognani (3):
docs: qapi: Remove outdated reference to simple unions
qapi: Fix documentation for query-xen-replication-status
qapi: Fix typo

 docs/devel/qapi-code-gen.rst | 4 ++--
 qapi/migration.json          | 2 +-
 qapi/sockets.json            | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.35.1
#1 lore raw

PATCH 1/3 docs: qapi: Remove outdated reference to simple unions

Commit 4e99f4b12c0e dropped simple unions and updated most documentation accordingly, but in one case we still claim that there are "two flavors of unions".

---
 docs/devel/qapi-code-gen.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/qapi-code-gen.rst +2 -2
index 246709ede8..7b968433a6 100644
@@ -41,8 +41,8 @@ used internally.
 
 There are several kinds of types: simple types (a number of built-in
 types, such as ``int`` and ``str``; as well as enumerations), arrays,
-complex types (structs and two flavors of unions), and alternate types
-(a choice between other types).
+complex types (structs and unions), and alternate types (a choice
+between other types).
 
 
 Schema syntax
Signature · 1 line
2.35.1
#2 lore raw

PATCH 2/3 qapi: Fix documentation for query-xen-replication-status

In reply to Andrea Bolognani

The correct return type is ReplicationStatus, not
ReplicationResult.

---
 qapi/migration.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/migration.json +1 -1
index 27d7b28158..409eb086a2 100644
@@ -1619,7 +1619,7 @@
 #
 # Query replication status while the vm is running.
 #
-# Returns: A @ReplicationResult object showing the status.
+# Returns: A @ReplicationStatus object showing the status.
 #
 # Example:
 #
Signature · 1 line
2.35.1
Reviewed-by on v1 2/3
#3 lore raw

Re: [PATCH 2/3] qapi: Fix documentation for query-xen-replication-status

Quoted 4 lines · * Andrea Bolognani ([email protected]) wrote:

The correct return type is ReplicationStatus, not
ReplicationResult.

Hmm yes I think that's right.

Quoted 20 lines
---
 qapi/migration.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/migration.json +1 -1
index 27d7b28158..409eb086a2 100644
@@ -1619,7 +1619,7 @@
 #
 # Query replication status while the vm is running.
 #
-# Returns: A @ReplicationResult object showing the status.
+# Returns: A @ReplicationStatus object showing the status.
 #
 # Example:
 #
Signature · 1 line
2.35.1
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
#4 lore raw

PATCH 3/3 qapi: Fix typo

In reply to Andrea Bolognani
---
 qapi/sockets.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qapi/sockets.json +1 -1
index 5773d9fcc4..fccc38584b 100644
@@ -149,7 +149,7 @@
 #
 # Note: This type is deprecated in favor of SocketAddress.  The
 #       difference between SocketAddressLegacy and SocketAddress is that the
-#       latter is has fewer {} on the wire.
+#       latter has fewer {} on the wire.
 #
 # Since: 1.3
 ##
Signature · 1 line
2.35.1