Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _IPXE_JOB_H
  2. #define _IPXE_JOB_H
  3. /** @file
  4. *
  5. * Job control interfaces
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #include <ipxe/interface.h>
  10. /** Job progress */
  11. struct job_progress {
  12. /** Amount of operation completed so far
  13. *
  14. * The units for this quantity are arbitrary. @c completed
  15. * divded by @total should give something which approximately
  16. * represents the progress through the operation. For a
  17. * download operation, using byte counts would make sense.
  18. */
  19. unsigned long completed;
  20. /** Total operation size
  21. *
  22. * See @c completed. A zero value means "total size unknown"
  23. * and is explcitly permitted; users should take this into
  24. * account before calculating @c completed/total.
  25. */
  26. unsigned long total;
  27. };
  28. extern int job_progress ( struct interface *intf,
  29. struct job_progress *progress );
  30. #define job_progress_TYPE( object_type ) \
  31. typeof ( int ( object_type, struct job_progress *progress ) )
  32. #endif /* _IPXE_JOB_H */