From 2cb5b22286a7546226d9e9363aaee543fcba6b61 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 8 Oct 2013 17:29:39 +0800 Subject: qapi: Introduce enum BlockJobType This will replace the open coded block job type string for mirror, commit and backup. Signed-off-by: Fam Zheng Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- qapi-schema.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'qapi-schema.json') diff --git a/qapi-schema.json b/qapi-schema.json index 145eca8855..381ffbf932 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1365,6 +1365,24 @@ { 'enum': 'MirrorSyncMode', '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: # -- cgit v1.2.1