From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRHyK-00008F-3U for qemu-devel@nongnu.org; Wed, 02 Oct 2013 04:39:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRHyE-0005RC-4P for qemu-devel@nongnu.org; Wed, 02 Oct 2013 04:39:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRHyD-0005R6-SP for qemu-devel@nongnu.org; Wed, 02 Oct 2013 04:39:46 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r928dj4P008193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 2 Oct 2013 04:39:45 -0400 From: Max Reitz Date: Wed, 2 Oct 2013 10:39:35 +0200 Message-Id: <1380703180-27493-2-git-send-email-mreitz@redhat.com> In-Reply-To: <1380703180-27493-1-git-send-email-mreitz@redhat.com> References: <1380703180-27493-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v7 1/6] qapi: Add ImageInfoSpecific type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , Stefan Hajnoczi , Max Reitz Add a new type ImageInfoSpecific as a union for image format specific information in ImageInfo. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- qapi-schema.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 145eca8..a472d7d 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -210,6 +210,18 @@ 'vm-clock-sec': 'int', 'vm-clock-nsec': 'int' } } ## +# @ImageInfoSpecific: +# +# A discriminated record of image format specific information structures. +# +# Since: 1.7 +## + +{ 'union': 'ImageInfoSpecific', + 'data': { + } } + +## # @ImageInfo: # # Information about a QEMU image file @@ -238,6 +250,9 @@ # # @backing-image: #optional info of the backing image (since 1.6) # +# @format-specific: #optional structure supplying additional format-specific +# information (since 1.7) +# # Since: 1.3 # ## @@ -248,7 +263,8 @@ '*cluster-size': 'int', '*encrypted': 'bool', '*backing-filename': 'str', '*full-backing-filename': 'str', '*backing-filename-format': 'str', '*snapshots': ['SnapshotInfo'], - '*backing-image': 'ImageInfo' } } + '*backing-image': 'ImageInfo', + '*format-specific': 'ImageInfoSpecific' } } ## # @ImageCheck: -- 1.8.3.1