Currently, block job type is hard coded string and could be repeated in different places in the code base. Introduce a enum type in QAPI to make it better for maintenance and introspection. The old BlockJobType struct is renamed to BlockJobDriver and its field "job_type" becomes a BlockJobType enum.
Nothing is changed to the interface. Fam Zheng (3): blockjob: rename BlockJobType to BlockJobDriver qapi: Introduce enum BlockJobType qapi: make use of new BlockJobType block/backup.c | 6 +++--- block/commit.c | 6 +++--- block/mirror.c | 6 +++--- block/stream.c | 6 +++--- blockjob.c | 22 +++++++++++----------- include/block/blockjob.h | 14 +++++++------- qapi-schema.json | 18 ++++++++++++++++++ 7 files changed, 48 insertions(+), 30 deletions(-) -- 1.8.3.1