From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBqS5-0008Co-IH for qemu-devel@nongnu.org; Wed, 23 Dec 2015 15:56:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBqS3-00013Q-4E for qemu-devel@nongnu.org; Wed, 23 Dec 2015 15:56:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBqS2-00013F-Uf for qemu-devel@nongnu.org; Wed, 23 Dec 2015 15:56:03 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 85A1C8F280 for ; Wed, 23 Dec 2015 20:56:02 +0000 (UTC) From: Eric Blake Date: Wed, 23 Dec 2015 13:55:42 -0700 Message-Id: <1450904145-17721-14-git-send-email-eblake@redhat.com> In-Reply-To: <1450904145-17721-1-git-send-email-eblake@redhat.com> References: <1450904145-17721-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH v6 13/16] qapi: Use anonymous base in SchemaInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com Now that the generator supports it, we might as well use an anonymous base rather than breaking out a single-use SchemaInfoBase structure. Oddly enough, this change does not affect the resulting introspection output (because we already inline the members of a base type into an object, and had no independent use of the base type reachable from a command). Signed-off-by: Eric Blake --- v6: new patch --- qapi/introspect.json | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/qapi/introspect.json b/qapi/introspect.json index 9e9369e..3fd81fb 100644 --- a/qapi/introspect.json +++ b/qapi/introspect.json @@ -75,16 +75,6 @@ 'command', 'event' ] } ## -# @SchemaInfoBase -# -# Members common to any @SchemaInfo. -# -# Since: 2.5 -## -{ 'struct': 'SchemaInfoBase', - 'data': { 'name': 'str', 'meta-type': 'SchemaMetaType' } } - -## # @SchemaInfo # # @name: the entity's name, inherited from @base. @@ -103,7 +93,7 @@ # Since: 2.5 ## { 'union': 'SchemaInfo', - 'base': 'SchemaInfoBase', + 'base': { 'name': 'str', 'meta-type': 'SchemaMetaType' }, 'discriminator': 'meta-type', 'data': { 'builtin': 'SchemaInfoBuiltin', -- 2.4.3