summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame_static.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-19 14:23:53 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-19 14:23:53 (GMT)
commit409f816267b00e2307fabc59cc6ddffcc605a1ec (patch)
treeabc9b214e91ed4809f90ccfbf2872273d4b9921f /lib/lz4frame_static.h
parent47c304039954d73cea018fbd6b4eebc05877d3fc (diff)
downloadlz4-409f816267b00e2307fabc59cc6ddffcc605a1ec.zip
lz4-409f816267b00e2307fabc59cc6ddffcc605a1ec.tar.gz
lz4-409f816267b00e2307fabc59cc6ddffcc605a1ec.tar.bz2
Updated LZ4F_getFrameInfo() behavior, related to uncomplete frame header decoding attempts
Diffstat (limited to 'lib/lz4frame_static.h')
-rw-r--r--lib/lz4frame_static.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/lz4frame_static.h b/lib/lz4frame_static.h
index 25afed4..0d90975 100644
--- a/lib/lz4frame_static.h
+++ b/lib/lz4frame_static.h
@@ -40,10 +40,18 @@ extern "C" {
#endif
/* lz4frame_static.h should be used solely in the context of static linking.
+ * It contains definitions which may still change overtime.
+ * Never use it in the context of DLL linking.
* */
/**************************************
+* Includes
+**************************************/
+#include "lz4frame.h"
+
+
+/**************************************
* Error management
* ************************************/
#define LZ4F_LIST_ERRORS(ITEM) \
@@ -53,7 +61,7 @@ extern "C" {
ITEM(ERROR_headerVersion_wrong) ITEM(ERROR_blockChecksum_unsupported) ITEM(ERROR_reservedFlag_set) \
ITEM(ERROR_allocation_failed) \
ITEM(ERROR_srcSize_tooLarge) ITEM(ERROR_dstMaxSize_tooSmall) \
- ITEM(ERROR_frameType_unknown) ITEM(ERROR_frameSize_wrong) \
+ ITEM(ERROR_frameHeader_incomplete) ITEM(ERROR_frameType_unknown) ITEM(ERROR_frameSize_wrong) \
ITEM(ERROR_srcPtr_wrong) \
ITEM(ERROR_decompressionFailed) \
ITEM(ERROR_headerChecksum_invalid) ITEM(ERROR_contentChecksum_invalid) \
@@ -68,12 +76,6 @@ extern "C" {
typedef enum { LZ4F_LIST_ERRORS(LZ4F_GENERATE_ENUM) } LZ4F_errorCodes; /* enum is exposed, to handle specific errors; compare function result to -enum value */
-/**************************************
- Includes
-**************************************/
-#include "lz4frame.h"
-
-
#if defined (__cplusplus)
}
#endif