aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/simple
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-12-31 16:29:39 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-12-31 16:29:39 +0200
commit322ecf93c961e45a1da8c4a794a7fdacefcd7f40 (patch)
tree3fc5fbae174d255bdebced50f0695d08db0cb927 /src/liblzma/simple
parentFixed missing quoting in configure.ac. (diff)
downloadxz-322ecf93c961e45a1da8c4a794a7fdacefcd7f40.tar.xz
Renamed lzma_options_simple to lzma_options_bcj in the API.
The internal implementation is still using the name "simple". It may need some cleanups, so I look at it later.
Diffstat (limited to 'src/liblzma/simple')
-rw-r--r--src/liblzma/simple/simple_coder.c2
-rw-r--r--src/liblzma/simple/simple_decoder.c4
-rw-r--r--src/liblzma/simple/simple_encoder.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/liblzma/simple/simple_coder.c b/src/liblzma/simple/simple_coder.c
index c3141b8f..555fcce8 100644
--- a/src/liblzma/simple/simple_coder.c
+++ b/src/liblzma/simple/simple_coder.c
@@ -254,7 +254,7 @@ lzma_simple_coder_init(lzma_next_coder *next, lzma_allocator *allocator,
}
if (filters[0].options != NULL) {
- const lzma_options_simple *simple = filters[0].options;
+ const lzma_options_bcj *simple = filters[0].options;
next->coder->now_pos = simple->start_offset;
} else {
next->coder->now_pos = 0;
diff --git a/src/liblzma/simple/simple_decoder.c b/src/liblzma/simple/simple_decoder.c
index 30dc7c57..d7c17e2f 100644
--- a/src/liblzma/simple/simple_decoder.c
+++ b/src/liblzma/simple/simple_decoder.c
@@ -30,8 +30,8 @@ lzma_simple_props_decode(void **options, lzma_allocator *allocator,
if (props_size != 4)
return LZMA_OPTIONS_ERROR;
- lzma_options_simple *opt = lzma_alloc(
- sizeof(lzma_options_simple), allocator);
+ lzma_options_bcj *opt = lzma_alloc(
+ sizeof(lzma_options_bcj), allocator);
if (opt == NULL)
return LZMA_MEM_ERROR;
diff --git a/src/liblzma/simple/simple_encoder.c b/src/liblzma/simple/simple_encoder.c
index 15d888d9..fe2f98d6 100644
--- a/src/liblzma/simple/simple_encoder.c
+++ b/src/liblzma/simple/simple_encoder.c
@@ -23,7 +23,7 @@
extern lzma_ret
lzma_simple_props_size(uint32_t *size, const void *options)
{
- const lzma_options_simple *const opt = options;
+ const lzma_options_bcj *const opt = options;
*size = (opt == NULL || opt->start_offset == 0) ? 0 : 4;
return LZMA_OK;
}
@@ -32,7 +32,7 @@ lzma_simple_props_size(uint32_t *size, const void *options)
extern lzma_ret
lzma_simple_props_encode(const void *options, uint8_t *out)
{
- const lzma_options_simple *const opt = options;
+ const lzma_options_bcj *const opt = options;
// The default start offset is zero, so we don't need to store any
// options unless the start offset is non-zero.