X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fwim.h;h=c78fe90524c4acd999f0742d2e70ff95bfa94a74;hb=31786dbc470c919893bf4fc5cc91a0f73cbee720;hp=42d109ed74bbb859e3421e083792a5c73f3d919a;hpb=228d351a64b5551b2eb4626a8f105e8cd4d36c68;p=wimlib diff --git a/include/wimlib/wim.h b/include/wimlib/wim.h index 42d109ed..c78fe905 100644 --- a/include/wimlib/wim.h +++ b/include/wimlib/wim.h @@ -66,9 +66,8 @@ struct WIMStruct { * generates WIMs with invalid reference counts.) */ u8 refcnts_ok : 1; - u8 wim_locked : 1; - - u8 guid_set_explicitly : 1; + /* Has the underlying WIM file been locked for appending? */ + u8 locked_for_append : 1; /* One of WIMLIB_COMPRESSION_TYPE_*, cached from the header flags. */ u8 compression_type; @@ -94,6 +93,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) @@ -149,7 +153,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);