X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwimlib.h;h=974fba7f61529d2ef0af86ac5e9362375c6d1573;hb=34a91e36924e10b924117d91acd116ade58df0b4;hp=f0be7acdba028fcc24c54fc39d321c6974af252a;hpb=92d96f9e2db42196a778b727cfa91d18a5cc6f49;p=wimlib diff --git a/src/wimlib.h b/src/wimlib.h index f0be7acd..974fba7f 100644 --- a/src/wimlib.h +++ b/src/wimlib.h @@ -899,7 +899,8 @@ struct wimlib_modify_command { * added at the end to maintain a compatible ABI, except when it's being broken * anyway. */ enum wimlib_error_code { - WIMLIB_ERR_ALREADY_LOCKED = 1, + WIMLIB_ERR_SUCCESS = 0, + WIMLIB_ERR_ALREADY_LOCKED, WIMLIB_ERR_COMPRESSED_LOOKUP_TABLE, WIMLIB_ERR_DECOMPRESSION, WIMLIB_ERR_DELETE_STAGING_DIR, @@ -949,7 +950,6 @@ enum wimlib_error_code { WIMLIB_ERR_SPLIT_INVALID, WIMLIB_ERR_SPLIT_UNSUPPORTED, WIMLIB_ERR_STAT, - WIMLIB_ERR_SUCCESS = 0, WIMLIB_ERR_TIMEOUT, WIMLIB_ERR_UNICODE_STRING_NOT_REPRESENTABLE, WIMLIB_ERR_UNKNOWN_VERSION, @@ -1674,14 +1674,6 @@ wimlib_join(const wimlib_tchar * const *swms, * * As a special requirement, the compression code is optimized for the WIM * format and therefore requires (@a chunk_size <= 32768). - * - * As another special requirement, the compression code will read up to 8 bytes - * off the end of the @a chunk array for performance reasons. The values of - * these bytes will not affect the output of the compression, but the calling - * code must make sure that the buffer holding the uncompressed chunk is - * actually at least (@a chunk_size + 8) bytes, or at least that these extra - * bytes are in mapped memory that will not cause a memory access violation if - * accessed. */ extern unsigned wimlib_lzx_compress(const void *chunk, unsigned chunk_size, void *out);