aboutsummaryrefslogtreecommitdiff
path: root/include/block/blockjob.h
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2013-10-08 17:29:40 +0800
committerKevin Wolf <kwolf@redhat.com>2013-10-11 10:52:54 +0200
commit79e14bf7782d861d3d773a67680de07a8f354f4e (patch)
tree07922b6bb3b2b800babb90dd795ee241e9dc2a31 /include/block/blockjob.h
parent2cb5b22286a7546226d9e9363aaee543fcba6b61 (diff)
qapi: make use of new BlockJobType
Switch the string to enum type BlockJobType in BlockJobDriver. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/blockjob.h')
-rw-r--r--include/block/blockjob.h2
1 files changed, 1 insertions, 1 deletions
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);