summaryrefslogtreecommitdiffstats
path: root/lzlib.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-01-25 13:57:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-01-25 13:57:19 +0000
commit43dcb3aa74b5cbea293b296f161006f739b5a754 (patch)
tree3fb004d6e2437743a557510e7a0cfb587246becd /lzlib.h
parentReleasing debian version 1.11-8. (diff)
downloadlzlib-43dcb3aa74b5cbea293b296f161006f739b5a754.tar.xz
lzlib-43dcb3aa74b5cbea293b296f161006f739b5a754.zip
Merging upstream version 1.12.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lzlib.h')
-rw-r--r--lzlib.h38
1 files changed, 21 insertions, 17 deletions
diff --git a/lzlib.h b/lzlib.h
index 97672a0..b6374d8 100644
--- a/lzlib.h
+++ b/lzlib.h
@@ -1,35 +1,39 @@
-/* Lzlib - Compression library for the lzip format
- Copyright (C) 2009-2019 Antonio Diaz Diaz.
+/* Lzlib - Compression library for the lzip format
+ Copyright (C) 2009-2021 Antonio Diaz Diaz.
- This library is free software. Redistribution and use in source and
- binary forms, with or without modification, are permitted provided
- that the following conditions are met:
+ This library is free software. Redistribution and use in source and
+ binary forms, with or without modification, are permitted provided
+ that the following conditions are met:
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions, and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions, and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifdef __cplusplus
extern "C" {
#endif
-#define LZ_API_VERSION 1
+/* LZ_API_VERSION was first defined in lzlib 1.8 to 1.
+ Since lzlib 1.12, LZ_API_VERSION is defined as (major * 1000 + minor). */
-static const char * const LZ_version_string = "1.11";
+#define LZ_API_VERSION 1012
+
+static const char * const LZ_version_string = "1.12";
enum LZ_Errno { LZ_ok = 0, LZ_bad_argument, LZ_mem_error,
LZ_sequence_error, LZ_header_error, LZ_unexpected_eof,
LZ_data_error, LZ_library_error };
+int LZ_api_version( void ); /* new in 1.12 */
const char * LZ_version( void );
const char * LZ_strerror( const enum LZ_Errno lz_errno );
@@ -41,7 +45,7 @@ int LZ_min_match_len_limit( void );
int LZ_max_match_len_limit( void );
-/*---------------------- Compression Functions ----------------------*/
+/* --------------------- Compression Functions --------------------- */
struct LZ_Encoder;
@@ -71,7 +75,7 @@ unsigned long long LZ_compress_total_in_size( struct LZ_Encoder * const encoder
unsigned long long LZ_compress_total_out_size( struct LZ_Encoder * const encoder );
-/*--------------------- Decompression Functions ---------------------*/
+/* -------------------- Decompression Functions -------------------- */
struct LZ_Decoder;