qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v6 14/16] qapi: Use anonymous base in Netdev


From: Eric Blake
Subject: [Qemu-devel] [PATCH v6 14/16] qapi: Use anonymous base in Netdev
Date: Wed, 23 Dec 2015 13:55:43 -0700

Now that the generator supports it, we might as well use an
anonymous base rather than breaking out a single-use NetdevBase
structure.

Signed-off-by: Eric Blake <address@hidden>

---
v6: new patch
---
 qapi-schema.json | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/qapi-schema.json b/qapi-schema.json
index a400fa3..ad3030f 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -2675,30 +2675,20 @@
             'bridge', 'hubport', 'netmap', 'vhost-user' ] }

 ##
-# @NetdevBase
-#
-# Captures the common configuration of a network device.
-#
-# @id: identifier for monitor commands.
-#
-# @type: Specify the driver used for interpreting remaining arguments.
-#
-# Since 1.2
-##
-{ 'struct': 'NetdevBase',
-  'data': { 'id': 'str', 'type': 'NetClientDriver' } }
-
-##
 # @Netdev
 #
 # Captures the configuration of a network device.
 #
+# @id: identifier for monitor commands.
+#
+# @type: Specify the driver used for interpreting remaining arguments.
+#
 # Since 1.2
 #
 # 'l2tpv3' - since 2.1
 ##
 { 'union': 'Netdev',
-  'base': 'NetdevBase',
+  'base': { 'id': 'str', 'type': 'NetClientDriver' },
   'discriminator': 'type',
   'data': {
     'none':     'NetdevNoneOptions',
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]