mirror of
https://github.com/xboot/xfel.git
synced 2024-11-23 01:33:26 +08:00
25 lines
421 B
C
25 lines
421 B
C
#ifndef __PROGRESS_H__
|
|
#define __PROGRESS_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <x.h>
|
|
|
|
struct progress_t {
|
|
uint64_t total;
|
|
uint64_t done;
|
|
double start;
|
|
};
|
|
|
|
void progress_start(struct progress_t * p, uint64_t total);
|
|
void progress_update(struct progress_t * p, uint64_t bytes);
|
|
void progress_stop(struct progress_t * p);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __PROGRESS_H__ */
|