diff options
| author | Michael Brown | 2013-11-01 16:05:16 +0100 |
|---|---|---|
| committer | Michael Brown | 2013-11-01 17:17:28 +0100 |
| commit | 5674a3c087bf1bde65b61b6b0ca26035dd47baa3 (patch) | |
| tree | e30dd88a260b22c9bf3919432e645544d1867294 /src/include/ipxe | |
| parent | [interface] Default to calling intf_restart() in response to intf_close() (diff) | |
| download | ipxe-5674a3c087bf1bde65b61b6b0ca26035dd47baa3.tar.gz ipxe-5674a3c087bf1bde65b61b6b0ca26035dd47baa3.tar.xz ipxe-5674a3c087bf1bde65b61b6b0ca26035dd47baa3.zip | |
[job] Allow job_progress() to return an ongoing job status code, if known
Some background jobs have a meaningful ongoing status code (e.g. the
current link status for a job waiting for a network link to come up).
Allow this to be exposed via the job_progress() method.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/job.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/ipxe/job.h b/src/include/ipxe/job.h index c2232fc17..a2369f7c2 100644 --- a/src/include/ipxe/job.h +++ b/src/include/ipxe/job.h @@ -30,9 +30,9 @@ struct job_progress { unsigned long total; }; -extern void job_progress ( struct interface *intf, - struct job_progress *progress ); +extern int job_progress ( struct interface *intf, + struct job_progress *progress ); #define job_progress_TYPE( object_type ) \ - typeof ( void ( object_type, struct job_progress *progress ) ) + typeof ( int ( object_type, struct job_progress *progress ) ) #endif /* _IPXE_JOB_H */ |
