mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user