From 79e14bf7782d861d3d773a67680de07a8f354f4e Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 8 Oct 2013 17:29:40 +0800 Subject: qapi: make use of new BlockJobType Switch the string to enum type BlockJobType in BlockJobDriver. Signed-off-by: Fam Zheng Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- include/block/blockjob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/block/blockjob.h') diff --git a/include/block/blockjob.h b/include/block/blockjob.h index 99359b5502..d76de62a46 100644 --- a/include/block/blockjob.h +++ b/include/block/blockjob.h @@ -37,7 +37,7 @@ typedef struct BlockJobDriver { size_t instance_size; /** String describing the operation, part of query-block-jobs QMP API */ - const char *job_type; + BlockJobType job_type; /** Optional callback for job types that support setting a speed limit */ void (*set_speed)(BlockJob *job, int64_t speed, Error **errp); -- cgit v1.2.3