blockjob: Add block_job_get()
authorAlberto Garcia <berto@igalia.com>
Tue, 5 Jul 2016 14:28:54 +0000 (17:28 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Jul 2016 11:26:02 +0000 (13:26 +0200)
commitffb1f10cd1118393627e1bd2dad0a68152d2e539
tree6bc5ce3d7c06bb0f80324b0b696050e908c8093c
parent9df229c3caf6559a37c8760ef6e1485e66bbae41
blockjob: Add block_job_get()

Currently the way to look for a specific block job is to iterate the
list manually using block_job_next().

Since we want to be able to identify a job primarily by its ID it
makes sense to have a function that does just that.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockjob.c
include/block/blockjob.h