6 * Job control interfaces
10 FILE_LICENCE ( GPL2_OR_LATER );
12 #include <ipxe/interface.h>
16 /** Amount of operation completed so far
18 * The units for this quantity are arbitrary. @c completed
19 * divded by @total should give something which approximately
20 * represents the progress through the operation. For a
21 * download operation, using byte counts would make sense.
23 unsigned long completed;
24 /** Total operation size
26 * See @c completed. A zero value means "total size unknown"
27 * and is explcitly permitted; users should take this into
28 * account before calculating @c completed/total.
33 extern int job_progress ( struct interface *intf,
34 struct job_progress *progress );
35 #define job_progress_TYPE( object_type ) \
36 typeof ( int ( object_type, struct job_progress *progress ) )
38 #endif /* _IPXE_JOB_H */