X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fcapture.h;h=50402cf35e39f35cfbc0a0681a0b666f381789d4;hb=d919e6c00b99ae2196cadc517d2da3b3971465b3;hp=b60c5c85a348bfc6aaea477fb72d294f5e9e2b33;hpb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;p=wimlib diff --git a/include/wimlib/capture.h b/include/wimlib/capture.h index b60c5c85..50402cf3 100644 --- a/include/wimlib/capture.h +++ b/include/wimlib/capture.h @@ -47,25 +47,31 @@ struct add_image_params { /* Pointer to the capture configuration, which indicates whether any * files should be excluded from capture or not. */ - const struct wimlib_capture_config *config; + struct wimlib_capture_config *config; /* Flags that affect the capture operation (WIMLIB_ADD_FLAG_*) */ int add_flags; - /* If non-NULL, the user-supplied progress function. */ - wimlib_progress_func_t progress_func; - /* Extra argument; set to point to a pointer to the ntfs_volume for * libntfs-3g capture. */ void *extra_arg; u64 capture_root_ino; u64 capture_root_dev; + + /* If non-NULL, the user-supplied progress function. */ + wimlib_progress_func_t progress_func; + + /* Progress data. */ + union wimlib_progress_info progress; }; /* capture_common.c */ +extern void +do_capture_progress(struct add_image_params *params, int status); + extern bool exclude_path(const tchar *path, size_t path_len, const struct wimlib_capture_config *config,