common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / otherservice / vehicle_parameter_library / library / include / VP_FuncCheck_CanRcv_private.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /* ====================================================================== */
18 /**
19  * @file VP_FuncCheck_CanRcv_private.h
20  * @brief Get function existence API internal header file
21  * @attention Cannot be included from external functions
22  *
23  * Exported because it will be inconvenient at MT
24  */
25 /* ====================================================================== */
26
27 #ifndef VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_VP_FUNCCHECK_CANRCV_PRIVATE_H_
28 #define VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_VP_FUNCCHECK_CANRCV_PRIVATE_H_
29
30 /* ====================================================================== */
31 /* Include public headers                                                 */
32 /* ====================================================================== */
33 #include <other_service/VP_FuncCheck_CanRcv.h>
34
35 /* ====================================================================== */
36 /* Internal definitions for debugging                                                     */
37 /* ====================================================================== */
38 #ifdef DEBUG_MT
39     #include <stdio.h>
40
41     #define MT_STATIC  /**< Static definitions - Remove the static in order to remove the file scope at MT. */
42
43     /**< Debugging output function - Compile the entity at MT */
44     #define DEBUG_PRINT(msg)                {printf("%s\n", (msg) ) ;}
45     /**< Debugging output function - Compile the entity at MT */
46     #define DEBUG_PRINTF(format, msg)        {printf((format), (msg) ) ;}
47
48     /**< Static assertion */
49     #define VP_DEBUG_STATIC_ASSERT(expr)    do { int static_assert[ (expr)? 1:-1 ]; }while(0);
50 #else
51     /**< Static definitions. The scope shall be limited by static at the time of releasing.
52      * Remove the static in order to remove the file scope at MT.
53      */
54     #define MT_STATIC static
55
56     /**< Static definitions. The scope shall be limited by static at the time of releasing.
57      * Remove the static in order to remove the file scope at MT.
58      */
59     #define DEBUG_PRINT(msg)
60
61     /**< Static definitions. The scope shall be limited by static at the time of releasing.
62      * Remove the static in order to remove the file scope at MT.
63      */
64     #define DEBUG_PRINTF(format, msg)
65
66     /**< Static definitions. The scope shall be limited by static at the time of releasing.
67      * Remove the static in order to remove the file scope at MT.
68      */
69     #define VP_DEBUG_STATIC_ASSERT(expr)
70 #endif
71
72 /* ====================================================================== */
73 /* General-purpose type definition - Redifined for internal use           */
74 /* ====================================================================== */
75 /**< Internal boolean type - sys/type.h has no type definitions, so defined it here. FCCR: "F"unc"C"heck_"C"an"R"cv */
76 typedef enum VP_FCCR_BOOL_Tag {
77     B_FALSE, /**< FALSE */
78     B_TRUE   /**< TRUE */
79 } VP_FCCR_BOOL;
80
81
82 /* ====================================================================== */
83 /* Structure                                                                 */
84 /* ====================================================================== */
85 typedef struct TABLE_INDEX_INFO_tag {
86     char*           code_str; /**< String that can be gotten from vehicle parameters */
87     unsigned int    index;    /**< Index for function existence          */
88 } TABLE_INDEX_INFO;
89
90 #endif  // VEHICLE_PARAMETER_LIBRARY_LIBRARY_INCLUDE_VP_FUNCCHECK_CANRCV_PRIVATE_H_