]> git.proxmox.com Git - mirror_qemu.git/commit
blockjobs: split interface into public/private, Part 1
authorJohn Snow <jsnow@redhat.com>
Thu, 27 Oct 2016 16:07:00 +0000 (12:07 -0400)
committerJeff Cody <jcody@redhat.com>
Tue, 1 Nov 2016 12:04:56 +0000 (08:04 -0400)
commitc87621ea68e37b87dde82d1da80f9f8d2e13ffae
treeb4c1a4c2bb03bd05c80017a54d5fbc7e55403034
parent0df4ba58631772dd391314c1119863b574ebbaf9
blockjobs: split interface into public/private, Part 1

To make it a little more obvious which functions are intended to be
public interface and which are intended to be for use only by jobs
themselves, split the interface into "public" and "private" files.

Convert blockjobs (e.g. block/backup) to using the private interface.
Leave blockdev and others on the public interface.

There are remaining uses of private state by qemu-img, and several
cases in blockdev.c and block/io.c where we grab job->blk for the
purposes of acquiring an AIOContext.

These will be corrected in future patches.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-id: 1477584421-1399-7-git-send-email-jsnow@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/backup.c
block/commit.c
block/mirror.c
block/stream.c
blockjob.c
include/block/block.h
include/block/blockjob.h
include/block/blockjob_int.h [new file with mode: 0644]
tests/test-blockjob-txn.c
tests/test-blockjob.c