Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[job] Add missing job_progress() interface method
  • Loading branch information
Michael Brown committed Aug 31, 2009
1 parent d7dfc95 commit 0fc13ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/job.c
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/include/gpxe/job.h
Expand Up @@ -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 );
Expand Down

0 comments on commit 0fc13ad

Please sign in to comment.