2017-08-18 23:52:05 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under both the BSD-style license (found in the
|
|
|
|
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
|
|
* in the COPYING file in the root directory of this source tree).
|
2017-09-08 07:09:23 +00:00
|
|
|
* You may select, at your option, one of the above-listed licenses.
|
2017-08-18 23:52:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2016-12-16 21:29:23 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "zstd_errors.h"
|
|
|
|
#define ZSTD_STATIC_LINKING_ONLY
|
|
|
|
#include "zstd.h"
|
|
|
|
#define ZBUFF_DISABLE_DEPRECATE_WARNINGS
|
|
|
|
#define ZBUFF_STATIC_LINKING_ONLY
|
|
|
|
#include "zbuff.h"
|
2016-12-23 01:28:49 +00:00
|
|
|
#define ZDICT_DISABLE_DEPRECATE_WARNINGS
|
2016-12-16 21:29:23 +00:00
|
|
|
#define ZDICT_STATIC_LINKING_ONLY
|
|
|
|
#include "zdict.h"
|
|
|
|
|
|
|
|
static const void *symbols[] = {
|
|
|
|
/* zstd.h */
|
|
|
|
&ZSTD_versionNumber,
|
|
|
|
&ZSTD_compress,
|
|
|
|
&ZSTD_decompress,
|
|
|
|
&ZSTD_getDecompressedSize,
|
2017-02-07 21:50:09 +00:00
|
|
|
&ZSTD_findDecompressedSize,
|
2017-02-22 20:12:32 +00:00
|
|
|
&ZSTD_findFrameCompressedSize,
|
2017-02-07 21:50:09 +00:00
|
|
|
&ZSTD_getFrameContentSize,
|
2016-12-16 21:29:23 +00:00
|
|
|
&ZSTD_maxCLevel,
|
|
|
|
&ZSTD_compressBound,
|
|
|
|
&ZSTD_isError,
|
|
|
|
&ZSTD_getErrorName,
|
|
|
|
&ZSTD_createCCtx,
|
|
|
|
&ZSTD_freeCCtx,
|
|
|
|
&ZSTD_compressCCtx,
|
|
|
|
&ZSTD_createDCtx,
|
|
|
|
&ZSTD_freeDCtx,
|
|
|
|
&ZSTD_decompressDCtx,
|
|
|
|
&ZSTD_compress_usingDict,
|
|
|
|
&ZSTD_decompress_usingDict,
|
|
|
|
&ZSTD_createCDict,
|
|
|
|
&ZSTD_freeCDict,
|
|
|
|
&ZSTD_compress_usingCDict,
|
|
|
|
&ZSTD_createDDict,
|
|
|
|
&ZSTD_freeDDict,
|
|
|
|
&ZSTD_decompress_usingDDict,
|
|
|
|
&ZSTD_createCStream,
|
|
|
|
&ZSTD_freeCStream,
|
|
|
|
&ZSTD_initCStream,
|
|
|
|
&ZSTD_compressStream,
|
|
|
|
&ZSTD_flushStream,
|
|
|
|
&ZSTD_endStream,
|
|
|
|
&ZSTD_CStreamInSize,
|
|
|
|
&ZSTD_CStreamOutSize,
|
|
|
|
&ZSTD_createDStream,
|
|
|
|
&ZSTD_freeDStream,
|
|
|
|
&ZSTD_initDStream,
|
|
|
|
&ZSTD_decompressStream,
|
|
|
|
&ZSTD_DStreamInSize,
|
|
|
|
&ZSTD_DStreamOutSize,
|
|
|
|
/* zstd.h: advanced functions */
|
|
|
|
&ZSTD_estimateCCtxSize,
|
|
|
|
&ZSTD_createCCtx_advanced,
|
|
|
|
&ZSTD_sizeof_CCtx,
|
|
|
|
&ZSTD_createCDict_advanced,
|
|
|
|
&ZSTD_sizeof_CDict,
|
|
|
|
&ZSTD_getCParams,
|
|
|
|
&ZSTD_getParams,
|
|
|
|
&ZSTD_checkCParams,
|
|
|
|
&ZSTD_adjustCParams,
|
|
|
|
&ZSTD_compress_advanced,
|
|
|
|
&ZSTD_isFrame,
|
|
|
|
&ZSTD_estimateDCtxSize,
|
|
|
|
&ZSTD_createDCtx_advanced,
|
|
|
|
&ZSTD_sizeof_DCtx,
|
|
|
|
&ZSTD_sizeof_DDict,
|
|
|
|
&ZSTD_getDictID_fromDict,
|
|
|
|
&ZSTD_getDictID_fromDDict,
|
|
|
|
&ZSTD_getDictID_fromFrame,
|
|
|
|
&ZSTD_createCStream_advanced,
|
|
|
|
&ZSTD_initCStream_srcSize,
|
|
|
|
&ZSTD_initCStream_usingDict,
|
|
|
|
&ZSTD_initCStream_advanced,
|
|
|
|
&ZSTD_initCStream_usingCDict,
|
|
|
|
&ZSTD_resetCStream,
|
|
|
|
&ZSTD_sizeof_CStream,
|
|
|
|
&ZSTD_createDStream_advanced,
|
|
|
|
&ZSTD_initDStream_usingDict,
|
|
|
|
&ZSTD_setDStreamParameter,
|
|
|
|
&ZSTD_initDStream_usingDDict,
|
|
|
|
&ZSTD_resetDStream,
|
|
|
|
&ZSTD_sizeof_DStream,
|
|
|
|
&ZSTD_compressBegin,
|
|
|
|
&ZSTD_compressBegin_usingDict,
|
|
|
|
&ZSTD_compressBegin_advanced,
|
|
|
|
&ZSTD_copyCCtx,
|
|
|
|
&ZSTD_compressContinue,
|
|
|
|
&ZSTD_compressEnd,
|
2017-05-09 23:53:09 +00:00
|
|
|
&ZSTD_getFrameHeader,
|
2016-12-16 21:29:23 +00:00
|
|
|
&ZSTD_decompressBegin,
|
|
|
|
&ZSTD_decompressBegin_usingDict,
|
|
|
|
&ZSTD_copyDCtx,
|
|
|
|
&ZSTD_nextSrcSizeToDecompress,
|
|
|
|
&ZSTD_decompressContinue,
|
|
|
|
&ZSTD_nextInputType,
|
2017-05-19 18:27:43 +00:00
|
|
|
&ZSTD_getBlockSize,
|
2016-12-16 21:29:23 +00:00
|
|
|
&ZSTD_compressBlock,
|
|
|
|
&ZSTD_decompressBlock,
|
|
|
|
&ZSTD_insertBlock,
|
|
|
|
/* zstd_errors.h */
|
|
|
|
&ZSTD_getErrorCode,
|
|
|
|
&ZSTD_getErrorString,
|
|
|
|
/* zbuff.h */
|
|
|
|
&ZBUFF_createCCtx,
|
|
|
|
&ZBUFF_freeCCtx,
|
|
|
|
&ZBUFF_compressInit,
|
|
|
|
&ZBUFF_compressInitDictionary,
|
|
|
|
&ZBUFF_compressContinue,
|
|
|
|
&ZBUFF_compressFlush,
|
|
|
|
&ZBUFF_compressEnd,
|
|
|
|
&ZBUFF_createDCtx,
|
|
|
|
&ZBUFF_freeDCtx,
|
|
|
|
&ZBUFF_decompressInit,
|
|
|
|
&ZBUFF_decompressInitDictionary,
|
|
|
|
&ZBUFF_decompressContinue,
|
|
|
|
&ZBUFF_isError,
|
|
|
|
&ZBUFF_getErrorName,
|
|
|
|
&ZBUFF_recommendedCInSize,
|
|
|
|
&ZBUFF_recommendedCOutSize,
|
|
|
|
&ZBUFF_recommendedDInSize,
|
|
|
|
&ZBUFF_recommendedDOutSize,
|
|
|
|
/* zbuff.h: advanced functions */
|
|
|
|
&ZBUFF_createCCtx_advanced,
|
|
|
|
&ZBUFF_createDCtx_advanced,
|
|
|
|
&ZBUFF_compressInit_advanced,
|
|
|
|
/* zdict.h */
|
|
|
|
&ZDICT_trainFromBuffer,
|
|
|
|
&ZDICT_getDictID,
|
|
|
|
&ZDICT_isError,
|
|
|
|
&ZDICT_getErrorName,
|
|
|
|
/* zdict.h: advanced functions */
|
2017-06-27 04:07:14 +00:00
|
|
|
&ZDICT_trainFromBuffer_cover,
|
|
|
|
&ZDICT_optimizeTrainFromBuffer_cover,
|
2018-08-23 19:06:20 +00:00
|
|
|
&ZDICT_trainFromBuffer_fastCover,
|
|
|
|
&ZDICT_optimizeTrainFromBuffer_fastCover,
|
2017-06-27 04:07:14 +00:00
|
|
|
&ZDICT_finalizeDictionary,
|
|
|
|
&ZDICT_trainFromBuffer_legacy,
|
2016-12-16 21:29:23 +00:00
|
|
|
&ZDICT_addEntropyTablesFromBuffer,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
int main(int argc, const char** argv) {
|
|
|
|
const void **symbol;
|
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
|
|
|
|
|
|
|
for (symbol = symbols; *symbol != NULL; ++symbol) {
|
|
|
|
printf("%p\n", *symbol);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|