mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
blockjobs: Allow creating internal jobs
Add the ability to create jobs without an ID. 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-3-git-send-email-jsnow@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
This commit is contained in:
parent
559b935f8c
commit
f81e0b4532
8 changed files with 30 additions and 16 deletions
|
@ -210,6 +210,11 @@ struct BlockJob {
|
|||
QLIST_ENTRY(BlockJob) txn_list;
|
||||
};
|
||||
|
||||
typedef enum BlockJobCreateFlags {
|
||||
BLOCK_JOB_DEFAULT = 0x00,
|
||||
BLOCK_JOB_INTERNAL = 0x01,
|
||||
} BlockJobCreateFlags;
|
||||
|
||||
/**
|
||||
* block_job_next:
|
||||
* @job: A block job, or %NULL.
|
||||
|
@ -252,7 +257,7 @@ BlockJob *block_job_get(const char *id);
|
|||
* called from a wrapper that is specific to the job type.
|
||||
*/
|
||||
void *block_job_create(const char *job_id, const BlockJobDriver *driver,
|
||||
BlockDriverState *bs, int64_t speed,
|
||||
BlockDriverState *bs, int64_t speed, int flags,
|
||||
BlockCompletionFunc *cb, void *opaque, Error **errp);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue