mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
job: Add job_delete()
This moves freeing the Job object and its fields from block_job_unref() to job_delete(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
This commit is contained in:
@ -62,6 +62,9 @@ struct JobDriver {
|
||||
*/
|
||||
void *job_create(const char *job_id, const JobDriver *driver, Error **errp);
|
||||
|
||||
/** Frees the @job object. */
|
||||
void job_delete(Job *job);
|
||||
|
||||
/** Returns the JobType of a given Job. */
|
||||
JobType job_type(const Job *job);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user