Received: from eggs.gnu.org ([2001:4830:134:3::10]:49908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTTcA-00089E-Gc for qemu-devel@nongnu.org; Tue, 08 Oct 2013 05:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTTc3-0007dH-Qx for qemu-devel@nongnu.org; Tue, 08 Oct 2013 05:30:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTTc3-0007d9-JQ for qemu-devel@nongnu.org; Tue, 08 Oct 2013 05:29:55 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r989Ts4T031409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Oct 2013 05:29:55 -0400 From: Fam Zheng Date: Tue, 8 Oct 2013 17:29:39 +0800 Message-Id: <1381224580-14950-3-git-send-email-famz@redhat.com> In-Reply-To: <1381224580-14950-1-git-send-email-famz@redhat.com> References: <1381224580-14950-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] qapi: Introduce enum BlockJobType List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com This will replace the open coded block job type string for mirror, commit and backup. Signed-off-by: Fam Zheng --- qapi-schema.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 145eca8..381ffbf 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1366,6 +1366,24 @@ 'data': ['top', 'full', 'none'] } ## +# @BlockJobType: +# +# Type of a block job. +# +# @commit: block commit job type, see "block-commit" +# +# @stream: block stream job type, see "block-stream" +# +# @mirror: drive mirror job type, see "drive-mirror" +# +# @backup: drive backup job type, see "drive-backup" +# +# Since: 1.7 +## +{ 'enum': 'BlockJobType', + 'data': ['commit', 'stream', 'mirror', 'backup'] } + +## # @BlockJobInfo: # # Information about a long-running block device operation. -- 1.8.3.1