[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/3] qapi: introduce BlockJobType enum
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 0/3] qapi: introduce BlockJobType enum |
Date: |
Tue, 8 Oct 2013 17:29:37 +0800 |
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
- [Qemu-devel] [PATCH 0/3] qapi: introduce BlockJobType enum,
Fam Zheng <=