162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) Facebook, Inc.
462306a36Sopenharmony_ci * All rights reserved.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * This source code is licensed under both the BSD-style license (found in the
762306a36Sopenharmony_ci * LICENSE file in the root directory of this source tree) and the GPLv2 (found
862306a36Sopenharmony_ci * in the COPYING file in the root directory of this source tree).
962306a36Sopenharmony_ci * You may select, at your option, one of the above-listed licenses.
1062306a36Sopenharmony_ci */
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#include <linux/module.h>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#include "common/huf.h"
1562306a36Sopenharmony_ci#include "common/fse.h"
1662306a36Sopenharmony_ci#include "common/zstd_internal.h"
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci// Export symbols shared by compress and decompress into a common module
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#undef ZSTD_isError   /* defined within zstd_internal.h */
2162306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(FSE_readNCount);
2262306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(HUF_readStats);
2362306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(HUF_readStats_wksp);
2462306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(ZSTD_isError);
2562306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(ZSTD_getErrorName);
2662306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(ZSTD_getErrorCode);
2762306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(ZSTD_customMalloc);
2862306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(ZSTD_customCalloc);
2962306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(ZSTD_customFree);
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciMODULE_LICENSE("Dual BSD/GPL");
3262306a36Sopenharmony_ciMODULE_DESCRIPTION("Zstd Common");
33