Skip to contentSkip to conversation

qapi-schema: remove legacy<> from doc

PATCH Applied [email protected] 3 participants 3 messages Sep 4, 2015 – Sep 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qapi-schema: remove legacy<> from doc

From: Marc-André Lureau <[email protected]>

The legacy<> type is no longer used since 7ce7ffe02.

---
 qapi-schema.json | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
qapi-schema.json +6 -9
index 67fef37..884d476 100644
@@ -1632,13 +1632,10 @@
 #        1) A primitive type such as 'u8', 'u16', 'bool', 'str', or 'double'.
 #           These types are mapped to the appropriate JSON type.
 #
-#        2) A legacy type in the form 'legacy<subtype>' where subtype is the
-#           legacy qdev typename.  These types are always treated as strings.
-#
-#        3) A child type in the form 'child<subtype>' where subtype is a qdev
+#        2) A child type in the form 'child<subtype>' where subtype is a qdev
 #           device type name.  Child properties create the composition tree.
 #
-#        4) A link type in the form 'link<subtype>' where subtype is a qdev
+#        3) A link type in the form 'link<subtype>' where subtype is a qdev
 #           device type name.  Link properties form the device model graph.
 #
 # Since: 1.2
@@ -1689,10 +1686,10 @@
 #
 # @property: The property name to read
 #
-# Returns: The property value.  The type depends on the property type.  legacy<>
-#          properties are returned as #str.  child<> and link<> properties are
-#          returns as #str pathnames.  All integer property types (u8, u16, etc)
-#          are returned as #int.
+# Returns: The property value.  The type depends on the property
+#          type. child<> and link<> properties are returns as #str
+#          pathnames.  All integer property types (u8, u16, etc) are
+#          returned as #int.
 #
 # Since: 1.2
 ##
Signature · 1 line
2.4.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · On 09/04/2015 01:41 PM, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

The legacy<> type is no longer used since 7ce7ffe02.

---
 qapi-schema.json | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

qapi-schema.json line 1690

Quoted 9 lines
qapi-schema.json +2 -4
@@ -1689,10 +1686,10 @@
 #
 # @property: The property name to read
 #
-# Returns: The property value.  The type depends on the property type.  legacy<>
-#          properties are returned as #str.  child<> and link<> properties are
-#          returns as #str pathnames.  All integer property types (u8, u16, etc)
-#          are returned as #int.
+# Returns: The property value.  The type depends on the property
+#          type. child<> and link<> properties are returns as #str

While at it, please fix the pre-existing typo:

s/returns/returned/

qapi-schema.json line 1692

Quoted 2 lines
qapi-schema.json +2 -0
+#          pathnames.  All integer property types (u8, u16, etc) are
+#          returned as #int.

With that fixed,

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org