1 #ifndef _WIMLIB_PROGRESS_H
2 #define _WIMLIB_PROGRESS_H
5 #include "wimlib/types.h"
7 /* If specified, call the user-provided progress function and check its result.
10 call_progress(wimlib_progress_func_t progfunc,
11 enum wimlib_progress_msg msg,
12 union wimlib_progress_info *info,
16 enum wimlib_progress_status status;
18 status = (*progfunc)(msg, info, progctx);
21 case WIMLIB_PROGRESS_STATUS_CONTINUE:
23 case WIMLIB_PROGRESS_STATUS_ABORT:
24 return WIMLIB_ERR_ABORTED_BY_PROGRESS;
26 return WIMLIB_ERR_UNKNOWN_PROGRESS_STATUS;
33 report_error(wimlib_progress_func_t progfunc,
34 void *progctx, int error_code, const tchar *path);
36 #endif /* _WIMLIB_PROGRESS_H */