Fix path to various non-standard directories
[staging/basesystem.git] / service / system / interface_unified / library / include / system_service / ss_logger_store_logs.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_store_logs.h
19  * @brief    This file supports the logger service interface for SystemManager.
20  */
21 /** @addtogroup BaseSystem
22  *  @{
23  */
24 /** @addtogroup system_service
25  *  @ingroup BaseSystem
26  *  @{
27  */
28 /** @addtogroup interface_unified
29  *  @ingroup system_service
30  *  @{
31  */
32 #ifndef SS_LOGGER_STORE_LOGS_H_  // NOLINT (build/header_guard)
33 #define SS_LOGGER_STORE_LOGS_H_
34
35 #include <native_service/frameworkunified_types.h>
36 #include "system_service/interfaceunified_system_types.h"
37
38 #include <string>
39 #include <vector>
40
41
42 #ifdef _cplusplus
43 extern "C" {
44 #endif
45 #define SS_LOGGER_SAVE_INTERFACEUNIFIEDLOG_FLAG "/var/local/lib/basesystem/ramd/BS/ss/logger_service/rwdata/frameworkunifiedlog/SS_LOGGER_SAVE_INTERFACEUNIFIEDLOG_FLAG"
46
47 typedef enum {
48   SS_STORELOGS_INTERFACEUNIFIEDLOG = 0,
49   SS_STORELOGS_ILLEGAL,
50   SS_STORELOGS_ACCOFFON,
51
52   SS_STORELOGS_SYS_ILLEGAL,
53   SS_STORELOGS_ACCOFFON_PRESS,
54
55   SS_STORELOGS_MAX
56 } SS_STORELOGS_OPE_TYPE;
57 ///////////////////////////////////////////////////////////////////////////////
58 /// \ingroup  logger_service
59 ///
60 /// \brief    SSLoggerSrvIfWriteDebugLogs
61 ///
62 /// \return Status
63 ///         EFrameworkunifiedStatus - success or error
64 ///////////////////////////////////////////////////////////////////////////////
65 EFrameworkunifiedStatus SS_LoggerStoreLogs(SS_STORELOGS_OPE_TYPE type);
66
67 EFrameworkunifiedStatus SS_LoggerStoreLogs_deleteOldLogAbnrm(const std::string& log_path, std::vector<std::string>& l_vector,
68                                                 const std::string& f_archive_destination, SI_32 max_num,
69                                                 UI_32 abnrm_total);
70
71 EFrameworkunifiedStatus StartRtUsbLogThread(HANDLE hApp);
72 EFrameworkunifiedStatus StopRtUsbLogThread(HANDLE hApp);
73
74 #ifdef _cplusplus
75 }
76 #endif
77
78 #endif /* SS_LOGGER_STORE_LOGS_H_ */  // NOLINT (build/header_guard)
79 /** @}*/
80 /** @}*/
81 /** @}*/