X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fwim.h;h=86926d8983232817d3f663814790f9477dfbdbd4;hp=ea916aa651fefb176e670227faf3bcf41898cad9;hb=b5b9681794d1f5f13350e3567f6f6e74f5c779cf;hpb=5f8590a7dcdf45a7f56f50ad96ac6349ffbafc08 diff --git a/include/wimlib/wim.h b/include/wimlib/wim.h index ea916aa6..86926d89 100644 --- a/include/wimlib/wim.h +++ b/include/wimlib/wim.h @@ -92,6 +92,11 @@ struct WIMStruct { /* Chunk size for writing packed streams; can be set with * wimlib_set_output_pack_chunk_size(). */ u32 out_pack_chunk_size; + + /* Currently registered progress function for this WIMStruct, or NULL if + * no progress function is currently registered for this WIMStruct. */ + wimlib_progress_func_t progfunc; + void *progctx; }; static inline bool wim_is_pipable(const WIMStruct *wim) @@ -147,7 +152,7 @@ wim_checksum_unhashed_streams(WIMStruct *wim); extern int open_wim_as_WIMStruct(const void *wim_filename_or_fd, int open_flags, WIMStruct **wim_ret, - wimlib_progress_func_t progress_func); + wimlib_progress_func_t progfunc, void *progctx); extern int close_wim(WIMStruct *wim);