]> wimlib.net Git - wimlib/blobdiff - include/wimlib/capture.h
wimlib: Clean up code that sends capture progress messages
[wimlib] / include / wimlib / capture.h
index 8b67c949c4b2870fb5c01776b3fda78b16e0cf78..50402cf35e39f35cfbc0a0681a0b666f381789d4 100644 (file)
@@ -52,20 +52,26 @@ struct add_image_params {
        /* 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,