Proactive Safety Framework  1.0
log_to_psb.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11 */
12 
13 // log_to_psb.h
14 
15 #include <cstdint>
16 #include <syslog.h>
17 #ifndef LOG_TO_PSB_H
18 #define LOG_TO_PSB_H
19 #define MMJ_CLIENT_VERSION_MAJOR 1
20 #define MMJ_CLIENT_VERSION_MINOR 0
21 #define SMARTDOOR_PSS_VERSION_MAJOR 2
22 #define SMARTDOOR_PSS_VERSION_MINOR 1
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
29 {
31  SMARTDOOR_PSS = 1
32 };
33 
34 // API Function declaration
35 void initLogger(const char* ident);
36 
37 void logMessage(const char* sourceFile,
38  const char* sensorId,
39  const char* alertType,
40  const char* additionalInfo);
41 
42 void closeLogger();
43 
44 bool versionCheck(uint32_t major, uint32_t minor, ClientType sourceClient);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
void initLogger(const char *ident)
void closeLogger()
bool versionCheck(uint32_t major, uint32_t minor, ClientType sourceClient)
void logMessage(const char *sourceFile, const char *sensorId, const char *alertType, const char *additionalInfo)
ClientType
Definition: log_to_psb.h:29
@ MMJ_CLIENT
Definition: log_to_psb.h:30
@ SMARTDOOR_PSS
Definition: log_to_psb.h:31