blob: 0261f2e7c7f14b732d4ba757f0a0069c17e265fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
* @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file ss_logger_service_local.h
* @brief \~english This file supports the the Logger Service.
*/
/** @addtogroup BaseSystem
* @{
*/
/** @addtogroup system_service
* @ingroup BaseSystem
* @{
*/
/** @addtogroup logger_service
* @ingroup system_service
* @{
*/
#ifndef SS_LOGGER_SERVICE_LOCAL_H_ // NOLINT (build/header_guard)
#define SS_LOGGER_SERVICE_LOCAL_H_
///////////////////////////////////////////////////////////////////////////////
/// \ingroup logger_service
/// \brief Screen Capture Event data
///////////////////////////////////////////////////////////////////////////////
typedef struct _TInterfaceunifiedSetLoggerParams {
ELOGGER_STAT Logger_State;
EDEV_TYPE Device_Type;
}STLoggerSetParams;
typedef struct _TInterfaceunifiedSetLoggerAllParams {
ELOGGER_STAT Logger_State;
EDEV_TYPE Device_Type;
ELOGGER_STAT Logger_UDPState;
UI_32 Log_FolderCnt;
}STLoggerSetAllParams;
typedef struct _TErrorLogger_FolderInfo {
static const UI_16 STR_BUFF_LEN = 64;
CHAR FoldernameAndLogname[STR_BUFF_LEN];
CHAR StorageTarget[STR_BUFF_LEN];
}STLoggerFolderInfo;
///////////////////////////////////////////////////////////////////////////////
/// \ingroup logger_service
/// \brief Event logger resets counter information
///////////////////////////////////////////////////////////////////////////////
typedef union _uEvtLoggerCommonInfo {
STEventLoggerCommonInfo u_stEvtLoggerCommonInfo;
UI_8 CommonData[4];
}UEvtLoggerCommonInfo;
#pragma pack(1)
///////////////////////////////////////////////////////////////////////////////
/// \ingroup logger_service
/// \brief Logger Event information
///////////////////////////////////////////////////////////////////////////////
typedef struct _stLogEventss_ {
UI_32 ts;
UI_8 grp_ID;
UI_8 event_id;
UI_8 data[4];
}st_LogEvent_ss;
#pragma pack(0)
/// Macros definition for the Event Logs
#define MAX_EVT_RECORDS 20000
#define MAX_EVENTLOG_SIZE 10*MAX_EVT_RECORDS ///< Max size for event logging
typedef struct _TInterfaceunifiedEventLogPersistBuffer {
static const UI_16 EVT_BUFMAXSIZE = MAX_EVT_RECORDS;
st_LogEvent_ss EvtLog_Buffer[EVT_BUFMAXSIZE];
UI_16 Current_Log_Size;
}STEventLogPersistBuffer;
#endif /* SS_LOGGER_SERVICE_LOCAL_H_ */ // NOLINT (build/header_guard)
/** @}*/
/** @}*/
/** @}*/
|