From 1a7ec87c8ee61dfc2e496d2e1fb7ab0939804691 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 31 Dec 2009 22:45:53 +0200 Subject: Revised the Index handling code. This breaks API and ABI but most apps are not affected since most apps don't use this part of the API. You will get a compile error if you are using anything that got broken. Summary of changes: - Ability to store Stream Flags, which are needed for random-access reading in multi-Stream files. - Separate function to set size of Stream Padding. - Iterator structure makes it possible to read the same lzma_index from multiple threads at the same time. - A lot faster code to locate Blocks. - Removed lzma_index_equal() without adding anything to replace it. I don't know what it should do exactly with the new features and what actually needs this function in the first place other than test_index.c, which now has its own code to compare lzma_indexes. --- src/liblzma/common/index_encoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liblzma/common/index_encoder.h') diff --git a/src/liblzma/common/index_encoder.h b/src/liblzma/common/index_encoder.h index c85d1c87..a13c94dc 100644 --- a/src/liblzma/common/index_encoder.h +++ b/src/liblzma/common/index_encoder.h @@ -17,7 +17,7 @@ extern lzma_ret lzma_index_encoder_init(lzma_next_coder *next, - lzma_allocator *allocator, lzma_index *i); + lzma_allocator *allocator, const lzma_index *i); #endif -- cgit v1.2.3