1 #ifndef _WIMLIB_PROGRESS_H
2 #define _WIMLIB_PROGRESS_H
6 /* If specified, call the user-provided progress function and check its result.
9 call_progress(wimlib_progress_func_t progfunc,
10 enum wimlib_progress_msg msg,
11 union wimlib_progress_info *info,
15 enum wimlib_progress_status status;
17 status = (*progfunc)(msg, info, progctx);
20 case WIMLIB_PROGRESS_STATUS_CONTINUE:
22 case WIMLIB_PROGRESS_STATUS_ABORT:
23 return WIMLIB_ERR_ABORTED_BY_PROGRESS;
25 return WIMLIB_ERR_UNKNOWN_PROGRESS_STATUS;