Re-organized sub-directory by category
[staging/basesystem.git] / service / system / logger_service / server / include / ss_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 /// \ingroup  tag_SS_LoggerService
19 /// \brief    This file supports shared internal logger module data types.
20 ///
21 ///////////////////////////////////////////////////////////////////////////////
22 #ifndef LOGGER_SERVICE_SERVER_INCLUDE_SS_LOGGER_TYPES_H_
23 #define LOGGER_SERVICE_SERVER_INCLUDE_SS_LOGGER_TYPES_H_
24
25 #include <native_service/frameworkunified_sm_eventdata.h>
26
27 typedef enum _ENPS_Archivetype {
28   ARCHTYPE_COMPRESSION = 0,  // Compression
29   ARCHTYPE_DECOMPRESSION = 1  // DeCompression
30 } ENPS_Archivetype;
31
32 typedef CHAR CopyInfoStr[MAX_PATH_LENGTH];  ///< Information passed via the framework
33
34 typedef enum _LOGGERSERVICE_COMPRESSION_TYPE {
35   eLoggerserviceNone = 0,        // No Compression before file persistence
36   eLoggerserviceDefaultCompression,  // Compress file before persistence using default compression method
37   eLoggerserviceCompressUsingLibz    // Compress file before persistence using libz
38 } LOGGERSERVICE_COMPRESSION_TYPE;
39
40 typedef struct _NPS_CopyInfoMsg {
41   CopyInfoStr m_cSourcePath;      // Source path
42   CopyInfoStr m_cDestinationPath;  // Destination path
43   ENPS_Archivetype m_eArchiveType;    // Compression or DeCompression
44   LOGGERSERVICE_COMPRESSION_TYPE m_eCompressionType;  // Check for Compression of the file
45 } NSP_CopyInfoCmd;
46
47 typedef struct _NPS_CopyStatus {
48   BOOL m_bPersistenceChk;  // Persistence Success or Failure
49   LOGGERSERVICE_COMPRESSION_TYPE m_eCompressionType;  // Check for Compression of the file
50 } NSP_CopyStatusResponse, NSP_CopyCancel;
51
52 #endif  // LOGGER_SERVICE_SERVER_INCLUDE_SS_LOGGER_TYPES_H_