X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwimlib.h;h=076aee176fab516609ee461ed2a33b1b70477b2b;hb=16e3b6e5615abcefc9e5bb9607e2804b64d19cc2;hp=dddfd2ad6a02674caeeec144e33904acf64991f2;hpb=f4a194333c5856d466d096c306f709edd19d1cc8;p=wimlib diff --git a/src/wimlib.h b/src/wimlib.h index dddfd2ad..076aee17 100644 --- a/src/wimlib.h +++ b/src/wimlib.h @@ -346,6 +346,7 @@ enum wimlib_error_code { WIMLIB_ERR_READLINK, WIMLIB_ERR_READ, WIMLIB_ERR_RENAME, + WIMLIB_ERR_RESOURCE_ORDER, WIMLIB_ERR_SPECIAL_FILE, WIMLIB_ERR_SPLIT_INVALID, WIMLIB_ERR_SPLIT_UNSUPPORTED, @@ -1113,6 +1114,11 @@ extern int wimlib_overwrite(WIMStruct *wim, int flags); * from the WIM file associated with @a wim could not be read to compute * the SHA1 message digests, or the old integrity table (if it existed) * could not be read. + * @retval ::WIMLIB_ERR_RESOURCE_ORDER + * Stream resources appeared in the WIM after the XML data or integrity + * table, so we could not safely overwrite the XML data and integrity + * table. Note: this error should never be received from WIMs that were + * written by this library. * @retval ::WIMLIB_ERR_WRITE * Failed to write the WIM header, the XML data, or the integrity table to * the WIM file associated with @a wim.