Add module macros
This commit is contained in:
@@ -17,12 +17,6 @@
|
||||
#include <linux/kernel.h>
|
||||
|
||||
|
||||
/*-****************************************
|
||||
* Version
|
||||
******************************************/
|
||||
unsigned ZSTD_versionNumber (void) { return ZSTD_VERSION_NUMBER; }
|
||||
|
||||
|
||||
/*=**************************************************************
|
||||
* Custom allocator
|
||||
****************************************************************/
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
* Dependencies
|
||||
***************************************/
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/string.h> /* memset */
|
||||
#include "mem.h"
|
||||
#include "fse.h"
|
||||
@@ -3337,3 +3338,44 @@ ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSize,
|
||||
params.cParams = cParams;
|
||||
return params;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_maxCLevel);
|
||||
EXPORT_SYMBOL(ZSTD_compressBound);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_CCtxWorkspaceBound);
|
||||
EXPORT_SYMBOL(ZSTD_createCCtx);
|
||||
EXPORT_SYMBOL(ZSTD_compressCCtx);
|
||||
EXPORT_SYMBOL(ZSTD_compress_usingDict);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_CDictWorkspaceBound);
|
||||
EXPORT_SYMBOL(ZSTD_createCDict);
|
||||
EXPORT_SYMBOL(ZSTD_compress_usingCDict);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_CStreamWorkspaceBound);
|
||||
EXPORT_SYMBOL(ZSTD_createCStream);
|
||||
EXPORT_SYMBOL(ZSTD_createCStream_usingCDict);
|
||||
EXPORT_SYMBOL(ZSTD_resetCStream);
|
||||
EXPORT_SYMBOL(ZSTD_compressStream);
|
||||
EXPORT_SYMBOL(ZSTD_flushStream);
|
||||
EXPORT_SYMBOL(ZSTD_endStream);
|
||||
EXPORT_SYMBOL(ZSTD_CStreamInSize);
|
||||
EXPORT_SYMBOL(ZSTD_CStreamOutSize);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_getCParams);
|
||||
EXPORT_SYMBOL(ZSTD_getParams);
|
||||
EXPORT_SYMBOL(ZSTD_checkCParams);
|
||||
EXPORT_SYMBOL(ZSTD_adjustCParams);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_compressBegin);
|
||||
EXPORT_SYMBOL(ZSTD_compressBegin_usingDict);
|
||||
EXPORT_SYMBOL(ZSTD_compressBegin_advanced);
|
||||
EXPORT_SYMBOL(ZSTD_copyCCtx);
|
||||
EXPORT_SYMBOL(ZSTD_compressBegin_usingCDict);
|
||||
EXPORT_SYMBOL(ZSTD_compressContinue);
|
||||
EXPORT_SYMBOL(ZSTD_compressEnd);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_getBlockSizeMax);
|
||||
EXPORT_SYMBOL(ZSTD_compressBlock);
|
||||
|
||||
MODULE_LICENSE("BSD");
|
||||
MODULE_DESCRIPTION("Zstd Compressor");
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
/*-*******************************************************
|
||||
* Dependencies
|
||||
*********************************************************/
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/string.h> /* memcpy, memmove, memset */
|
||||
#include "mem.h" /* low level memory routines */
|
||||
#include "fse.h"
|
||||
@@ -2333,3 +2335,43 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB
|
||||
return nextSrcSizeHint;
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_DCtxWorkspaceBound);
|
||||
EXPORT_SYMBOL(ZSTD_createDCtx);
|
||||
EXPORT_SYMBOL(ZSTD_decompressDCtx);
|
||||
EXPORT_SYMBOL(ZSTD_decompress_usingDict);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_DDictWorkspaceBound);
|
||||
EXPORT_SYMBOL(ZSTD_createDDict);
|
||||
EXPORT_SYMBOL(ZSTD_decompress_usingDDict);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_DStreamWorkspaceBound);
|
||||
EXPORT_SYMBOL(ZSTD_createDStream);
|
||||
EXPORT_SYMBOL(ZSTD_createDStream_usingDDict);
|
||||
EXPORT_SYMBOL(ZSTD_resetDStream);
|
||||
EXPORT_SYMBOL(ZSTD_decompressStream);
|
||||
EXPORT_SYMBOL(ZSTD_DStreamInSize);
|
||||
EXPORT_SYMBOL(ZSTD_DStreamOutSize);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_findFrameCompressedSize);
|
||||
EXPORT_SYMBOL(ZSTD_getFrameContentSize);
|
||||
EXPORT_SYMBOL(ZSTD_findDecompressedSize);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_isFrame);
|
||||
EXPORT_SYMBOL(ZSTD_getDictID_fromDict);
|
||||
EXPORT_SYMBOL(ZSTD_getDictID_fromDDict);
|
||||
EXPORT_SYMBOL(ZSTD_getDictID_fromFrame);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_getFrameParams);
|
||||
EXPORT_SYMBOL(ZSTD_decompressBegin);
|
||||
EXPORT_SYMBOL(ZSTD_decompressBegin_usingDict);
|
||||
EXPORT_SYMBOL(ZSTD_copyDCtx);
|
||||
EXPORT_SYMBOL(ZSTD_nextSrcSizeToDecompress);
|
||||
EXPORT_SYMBOL(ZSTD_decompressContinue);
|
||||
EXPORT_SYMBOL(ZSTD_nextInputType);
|
||||
|
||||
EXPORT_SYMBOL(ZSTD_decompressBlock);
|
||||
EXPORT_SYMBOL(ZSTD_insertBlock);
|
||||
|
||||
MODULE_LICENSE("BSD");
|
||||
MODULE_DESCRIPTION("Zstd Decompressor");
|
||||
|
||||
Reference in New Issue
Block a user