summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4.c7
-rw-r--r--lib/lz4.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 08cf6b5..df346cf 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1500,6 +1500,13 @@ char* LZ4_slideInputBuffer (void* LZ4_Data)
return (char*)(ctx->bufferStart + dictSize);
}
+/*
+ * Testing so we don't have to hack prototypes or the static inline nature of LZ4_compress_generic().
+ */
+int LZ4_compress_generic_wrapper(void* state, const char* source, char* dest, int inputSize, int acceleration) {
+ return LZ4_compress_generic(state, source, dest, inputSize, 0, notLimited, byU16, noDict, noDictIssue, acceleration);
+}
+
/* Obsolete streaming decompression functions */
int LZ4_decompress_safe_withPrefix64k(const char* source, char* dest, int compressedSize, int maxOutputSize)
diff --git a/lib/lz4.h b/lib/lz4.h
index 3e74002..edb2998 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -300,6 +300,10 @@ int LZ4_decompress_safe_usingDict (const char* source, char* dest, int compresse
int LZ4_decompress_fast_usingDict (const char* source, char* dest, int originalSize, const char* dictStart, int dictSize);
+/*
+ * Testing so we don't have to hack prototypes or the static inline nature of LZ4_compress_generic().
+ */
+int LZ4_compress_generic_wrapper(void* state, const char* source, char* dest, int inputSize, int acceleration);
/**************************************
* Obsolete Functions