common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / systemservice / interface_unified / library / include / system_service / ss_logger_service_local.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  * @file ss_logger_service_local.h
19  * @brief \~english This file supports the the Logger Service.
20  */
21 /** @addtogroup BaseSystem
22  *  @{
23  */
24 /** @addtogroup system_service
25  *  @ingroup BaseSystem
26  *  @{
27  */
28 /** @addtogroup logger_service
29  *  @ingroup system_service
30  *  @{
31  */
32 #ifndef SS_LOGGER_SERVICE_LOCAL_H_  // NOLINT (build/header_guard)
33 #define SS_LOGGER_SERVICE_LOCAL_H_
34
35 ///////////////////////////////////////////////////////////////////////////////
36 /// \ingroup  logger_service
37 /// \brief    Screen Capture Event data
38 ///////////////////////////////////////////////////////////////////////////////
39 typedef struct _TInterfaceunifiedSetLoggerParams {
40   ELOGGER_STAT Logger_State;
41   EDEV_TYPE Device_Type;
42 }STLoggerSetParams;
43
44 typedef struct _TInterfaceunifiedSetLoggerAllParams {
45   ELOGGER_STAT   Logger_State;
46   EDEV_TYPE     Device_Type;
47   ELOGGER_STAT   Logger_UDPState;
48   UI_32         Log_FolderCnt;
49 }STLoggerSetAllParams;
50
51 typedef struct _TErrorLogger_FolderInfo {
52   static const UI_16  STR_BUFF_LEN = 64;
53   CHAR                FoldernameAndLogname[STR_BUFF_LEN];
54   CHAR                StorageTarget[STR_BUFF_LEN];
55 }STLoggerFolderInfo;
56
57 ///////////////////////////////////////////////////////////////////////////////
58 /// \ingroup  logger_service
59 /// \brief    Event logger resets counter information
60 ///////////////////////////////////////////////////////////////////////////////
61 typedef union _uEvtLoggerCommonInfo {
62   STEventLoggerCommonInfo u_stEvtLoggerCommonInfo;
63   UI_8 CommonData[4];
64 }UEvtLoggerCommonInfo;
65
66 #pragma pack(1)
67 ///////////////////////////////////////////////////////////////////////////////
68 /// \ingroup  logger_service
69 /// \brief    Logger Event information
70 ///////////////////////////////////////////////////////////////////////////////
71 typedef struct _stLogEventss_ {
72   UI_32 ts;
73   UI_8 grp_ID;
74   UI_8 event_id;
75   UI_8 data[4];
76 }st_LogEvent_ss;
77 #pragma pack(0)
78
79 /// Macros definition for the Event Logs
80 #define MAX_EVT_RECORDS    20000
81 #define MAX_EVENTLOG_SIZE 10*MAX_EVT_RECORDS      ///< Max size for event logging
82
83 typedef struct _TInterfaceunifiedEventLogPersistBuffer {
84   static const UI_16    EVT_BUFMAXSIZE = MAX_EVT_RECORDS;
85   st_LogEvent_ss      EvtLog_Buffer[EVT_BUFMAXSIZE];
86   UI_16          Current_Log_Size;
87 }STEventLogPersistBuffer;
88
89 #endif /* SS_LOGGER_SERVICE_LOCAL_H_ */  // NOLINT (build/header_guard)
90 /** @}*/
91 /** @}*/
92 /** @}*/
93
94