Init basesystem source codes.
[staging/basesystem.git] / nsframework / framework_unified / client / include / native_service / ns_rcs_logger_types.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  * ns_rcs_logger_if.h
19  */
20 /**
21  * @file
22  * @brief \~english This file provides logger type's structures
23  *
24  */
25 /** @addtogroup BaseSystem
26  *  @{
27  */
28 /** @addtogroup native_service
29  *  @ingroup BaseSystem
30  *  @{
31  */
32 /** @addtogroup framework_unified
33  *  @ingroup native_service
34  *  @{
35  */
36 /** @addtogroup nsrcs
37  *  @ingroup framework_unified
38  *  @{
39  */
40 #ifndef _NS_RCS_LOGGER_IF_H_  // NOLINT  (build/header_guard)
41 #define _NS_RCS_LOGGER_IF_H_
42
43 #include <native_service/ns_logger_if.h>
44
45 // protocol: NSRCS_SET_LOG_SETTINGS_REQ,
46 //       NSRCS_SET_LOG_MASK_REQ,
47 //       NSRCS_SET_LOG_OUT_OPT_REQ,
48 //       NSRCS_SET_LOG_SEVERITY_REQ
49 typedef struct _TNSRCS_SetLogSettingsReq {
50   UI_8           m_ui8ClientId;
51   TFrameworkunifiedZoneMask     m_pui32ZoneMask;
52   UI_8           m_ui8OutputLogOption;
53   TFrameworkunifiedLoggerSeverity m_si32Severity;
54 } TNSRCS_SetLogSettingsReq;
55
56 // protocol: NSRCS_SET_LOG_SETTINGS_RESP
57 typedef struct _TNSRCS_SetLogSettingsResp {
58   UI_8           m_ui8ClientId;
59   UI_8           m_ui8SetStatus;
60   TFrameworkunifiedZoneMask     m_pui32ZoneMask;
61   UI_8           m_ui8OutputLogOption;
62   TFrameworkunifiedLoggerSeverity m_si32Severity;
63 } TNSRCS_SetLogSettingsResp;
64
65 // protocol: NSRCS_GET_LOG_SETTINGS_REQ
66 typedef struct _TNSRCS_GetLogSettingsReq {
67   UI_8  m_ui8ClientId;
68 } TNSRCS_GetLogSettingsReq;
69
70 // protocol: NSRCS_GET_LOG_SETTINGS_RESP
71 typedef struct _TNSRCS_GetLogSettingsResp {
72   UI_8           m_ui8ClientId;
73   CHAR           m_cZoneList[BITS_IN_ZONE_MASK][ZONE_TEXT_SIZE];
74   TFrameworkunifiedZoneMask     m_pui32ZoneMask;
75   UI_8           m_ui8OutputLogOption;
76   TFrameworkunifiedLoggerSeverity m_si32Severity;
77 } TNSRCS_GetLogSettingsResp;
78
79 // protocol: NSRCS_SET_LOG_MASK_RESP
80 typedef struct _TNSRCS_SetLogMaskResp {
81   UI_8       m_ui8ClientId;
82   UI_8       m_ui8SetStatus;
83   TFrameworkunifiedZoneMask m_pui32ZoneMask;
84 } TNSRCS_SetLogMaskResp;
85
86 // protocol: NSRCS_SET_LOG_OUT_OPT_RESP
87 typedef struct _TNSRCS_SetLogOutOptResp {
88   UI_8 m_ui8ClientId;
89   UI_8 m_ui8SetStatus;
90   UI_8 m_ui8OutputLogOption;
91 } TNSRCS_SetLogOutOptResp;
92
93 // protocol: NSRCS_SET_LOG_SEVERITY_RESP
94 typedef struct _TNSRCS_SetLogSeverityResp {
95   UI_8  m_ui8ClientId;
96   UI_8  m_ui8SetStatus;
97   SI_32 m_si32Severity;
98 } TNSRCS_SetLogSeverityResp;
99
100 #endif /* _NS_RCS_LOGGER_IF_H_ */  // NOLINT  (build/header_guard)
101 /** @}*/
102 /** @}*/
103 /** @}*/
104 /** @}*/