zstd_common_module.c 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
  2. /*
  3. * Copyright (c) Facebook, Inc.
  4. * All rights reserved.
  5. *
  6. * This source code is licensed under both the BSD-style license (found in the
  7. * LICENSE file in the root directory of this source tree) and the GPLv2 (found
  8. * in the COPYING file in the root directory of this source tree).
  9. * You may select, at your option, one of the above-listed licenses.
  10. */
  11. #include <linux/compat.h>
  12. #include "common/huf.h"
  13. #include "common/fse.h"
  14. #include "common/zstd_internal.h"
  15. // Export symbols shared by compress and decompress into a common module
  16. #undef ZSTD_isError /* defined within zstd_internal.h */
  17. EXPORT_SYMBOL_GPL(FSE_readNCount);
  18. EXPORT_SYMBOL_GPL(HUF_readStats);
  19. EXPORT_SYMBOL_GPL(HUF_readStats_wksp);
  20. EXPORT_SYMBOL_GPL(ZSTD_isError);
  21. EXPORT_SYMBOL_GPL(ZSTD_getErrorName);
  22. EXPORT_SYMBOL_GPL(ZSTD_getErrorCode);
  23. EXPORT_SYMBOL_GPL(ZSTD_customMalloc);
  24. EXPORT_SYMBOL_GPL(ZSTD_customCalloc);
  25. EXPORT_SYMBOL_GPL(ZSTD_customFree);
  26. MODULE_LICENSE("Dual BSD/GPL");
  27. MODULE_DESCRIPTION("Zstd Common");