All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] qapi: introduce BlockJobType enum
@ 2013-10-08  9:29 Fam Zheng
  2013-10-08  9:29 ` [Qemu-devel] [PATCH 1/3] blockjob: rename BlockJobType to BlockJobDriver Fam Zheng
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Fam Zheng @ 2013-10-08  9:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, stefanha

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-08 13:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08  9:29 [Qemu-devel] [PATCH 0/3] qapi: introduce BlockJobType enum Fam Zheng
2013-10-08  9:29 ` [Qemu-devel] [PATCH 1/3] blockjob: rename BlockJobType to BlockJobDriver Fam Zheng
2013-10-08  9:29 ` [Qemu-devel] [PATCH 2/3] qapi: Introduce enum BlockJobType Fam Zheng
2013-10-08  9:29 ` [Qemu-devel] [PATCH 3/3] qapi: make use of new BlockJobType Fam Zheng
2013-10-08 13:06   ` Eric Blake
2013-10-08 12:49 ` [Qemu-devel] [PATCH 0/3] qapi: introduce BlockJobType enum Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.