mirror of
https://github.com/xcat2/xNBA.git
synced 2025-04-14 17:19:25 +00:00
[job] Add missing job_progress() interface method
This commit is contained in:
parent
d7dfc9572e
commit
0fc13add31
@ -44,6 +44,14 @@ void job_kill ( struct job_interface *job ) {
|
||||
job_put ( dest );
|
||||
}
|
||||
|
||||
void job_progress ( struct job_interface *job,
|
||||
struct job_progress *progress ) {
|
||||
struct job_interface *dest = job_get_dest ( job );
|
||||
|
||||
dest->op->progress ( dest, progress );
|
||||
job_put ( dest );
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* Helper methods
|
||||
|
@ -68,6 +68,8 @@ extern struct job_interface_operations null_job_ops;
|
||||
|
||||
extern void job_done ( struct job_interface *job, int rc );
|
||||
extern void job_kill ( struct job_interface *job );
|
||||
extern void job_progress ( struct job_interface *job,
|
||||
struct job_progress *progress );
|
||||
|
||||
extern void ignore_job_done ( struct job_interface *job, int rc );
|
||||
extern void ignore_job_kill ( struct job_interface *job );
|
||||
|
Loading…
x
Reference in New Issue
Block a user