error_public.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #include <contrib/libs/zstd06/renames.h>
  2. /* ******************************************************************
  3. Error codes list
  4. Copyright (C) 2016, Yann Collet
  5. BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
  6. Redistribution and use in source and binary forms, with or without
  7. modification, are permitted provided that the following conditions are
  8. met:
  9. * Redistributions of source code must retain the above copyright
  10. notice, this list of conditions and the following disclaimer.
  11. * Redistributions in binary form must reproduce the above
  12. copyright notice, this list of conditions and the following disclaimer
  13. in the documentation and/or other materials provided with the
  14. distribution.
  15. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  16. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  17. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  18. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  19. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  20. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  21. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  23. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  25. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. You can contact the author at :
  27. - Homepage : http://www.zstd.net
  28. ****************************************************************** */
  29. #ifndef ERROR_PUBLIC_H_MODULE
  30. #define ERROR_PUBLIC_H_MODULE
  31. #if defined (__cplusplus)
  32. extern "C" {
  33. #endif
  34. /* ****************************************
  35. * error codes list
  36. ******************************************/
  37. typedef enum {
  38. ZSTD_error_no_error,
  39. ZSTD_error_GENERIC,
  40. ZSTD_error_prefix_unknown,
  41. ZSTD_error_frameParameter_unsupported,
  42. ZSTD_error_frameParameter_unsupportedBy32bits,
  43. ZSTD_error_compressionParameter_unsupported,
  44. ZSTD_error_init_missing,
  45. ZSTD_error_memory_allocation,
  46. ZSTD_error_stage_wrong,
  47. ZSTD_error_dstSize_tooSmall,
  48. ZSTD_error_srcSize_wrong,
  49. ZSTD_error_corruption_detected,
  50. ZSTD_error_tableLog_tooLarge,
  51. ZSTD_error_maxSymbolValue_tooLarge,
  52. ZSTD_error_maxSymbolValue_tooSmall,
  53. ZSTD_error_dictionary_corrupted,
  54. ZSTD_error_maxCode
  55. } ZSTD_ErrorCode;
  56. /* note : compare with size_t function results using ZSTD_getError() */
  57. #if defined (__cplusplus)
  58. }
  59. #endif
  60. #endif /* ERROR_PUBLIC_H_MODULE */