lz4frame_static.h
Go to the documentation of this file.
1 /*
2  LZ4 auto-framing library
3  Header File for static linking only
4  Copyright (C) 2011-2016, Yann Collet.
5 
6  BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions are
10  met:
11 
12  * Redistributions of source code must retain the above copyright
13  notice, this list of conditions and the following disclaimer.
14  * Redistributions in binary form must reproduce the above
15  copyright notice, this list of conditions and the following disclaimer
16  in the documentation and/or other materials provided with the
17  distribution.
18 
19  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31  You can contact the author at :
32  - LZ4 source repository : https://github.com/lz4/lz4
33  - LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c
34 */
35 
36 #ifndef LZ4FRAME_STATIC_H_0398209384
37 #define LZ4FRAME_STATIC_H_0398209384
38 
39 #if defined (__cplusplus)
40 extern "C" {
41 #endif
42 
43 /* lz4frame_static.h should be used solely in the context of static linking.
44  * It contains definitions which are not stable and may change in the future.
45  * Never use it in the context of DLL linking.
46  */
47 
48 
49 /* --- Dependency --- */
50 #include "lz4frame.h"
51 
52 
53 /* --- Error List --- */
54 #define LZ4F_LIST_ERRORS(ITEM) \
55  ITEM(OK_NoError) \
56  ITEM(ERROR_GENERIC) \
57  ITEM(ERROR_maxBlockSize_invalid) \
58  ITEM(ERROR_blockMode_invalid) \
59  ITEM(ERROR_contentChecksumFlag_invalid) \
60  ITEM(ERROR_compressionLevel_invalid) \
61  ITEM(ERROR_headerVersion_wrong) \
62  ITEM(ERROR_blockChecksum_unsupported) \
63  ITEM(ERROR_reservedFlag_set) \
64  ITEM(ERROR_allocation_failed) \
65  ITEM(ERROR_srcSize_tooLarge) \
66  ITEM(ERROR_dstMaxSize_tooSmall) \
67  ITEM(ERROR_frameHeader_incomplete) \
68  ITEM(ERROR_frameType_unknown) \
69  ITEM(ERROR_frameSize_wrong) \
70  ITEM(ERROR_srcPtr_wrong) \
71  ITEM(ERROR_decompressionFailed) \
72  ITEM(ERROR_headerChecksum_invalid) \
73  ITEM(ERROR_contentChecksum_invalid) \
74  ITEM(ERROR_frameDecoding_alreadyStarted) \
75  ITEM(ERROR_maxCode)
76 
77 #define LZ4F_GENERATE_ENUM(ENUM) LZ4F_##ENUM,
78 
79 /* enum list is exposed, to handle specific errors */
81 
82 LZ4F_errorCodes LZ4F_getErrorCode(size_t functionResult);
83 
84 
85 #if defined (__cplusplus)
86 }
87 #endif
88 
89 #endif /* LZ4FRAME_STATIC_H_0398209384 */
LZ4F_errorCodes
#define LZ4F_GENERATE_ENUM(ENUM)
#define LZ4F_LIST_ERRORS(ITEM)
LZ4F_errorCodes LZ4F_getErrorCode(size_t functionResult)
Definition: lz4frame.c:204


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:21