summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4.c12
-rw-r--r--lib/lz4.h11
2 files changed, 12 insertions, 11 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index df346cf..f59dccc 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1097,6 +1097,11 @@ int LZ4_saveDict (LZ4_stream_t* LZ4_dict, char* safeBuffer, int dictSize)
}
+int LZ4_compress_generic_wrapper(void* state, const char* source, char* dest, const int inputSize, const int max_dst_size,
+ const int limited_output, const int table_type, const int dictionary,
+ const int dictionary_issue, const int acceleration) {
+ return LZ4_compress_generic(state, source, dest, inputSize, max_dst_size, limited_output, table_type, dictionary, dictionary_issue, acceleration);
+}
/*******************************
* Decompression functions
@@ -1500,13 +1505,6 @@ 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 edb2998..b019eed 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -180,6 +180,13 @@ LZ4_decompress_safe_partial() :
*/
int LZ4_decompress_safe_partial (const char* source, char* dest, int compressedSize, int targetOutputSize, int maxDecompressedSize);
+/*
+ * LZ4_compress_generic_wrapper
+ * The LZ4_compress_generic function is inline and isn't easily exposed. Writing this for the time being.
+ */
+int LZ4_compress_generic_wrapper(void* state, const char* source, char* dest, const int inputSize, const int max_dst_size,
+ const int limited_output, const int table_type, const int dictionary,
+ const int dictionary_issue, const int acceleration);
/***********************************************
* Streaming Compression Functions
@@ -300,10 +307,6 @@ 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