Re-organized sub-directory by category
[staging/basesystem.git] / service / vehicle / positioning / server / include / Sensor / ClockUtility.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     ClockUtility.h
19 @detail   Common processing function header file concerning clock
20 *****************************************************************************/
21 #ifndef POSITIONING_SERVER_INCLUDE_SENSOR_CLOCKUTILITY_H_
22 #define POSITIONING_SERVER_INCLUDE_SENSOR_CLOCKUTILITY_H_
23
24 #include <vehicle_service/positioning_base_library.h>
25 #include "Clock_API.h"
26
27 #ifdef  __cplusplus
28 extern "C" {
29 #endif
30
31     /*
32      Function prototype declaration
33     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
34
35     RET_API ClockUtilityConvertDateToSecond(const LPSYSTEMTIME lp_st, u_int32* uli_sec);
36     RET_API ClockUtilityConvertSecondToDate(const u_int32* uli_sec, LPSYSTEMTIME lp_st);
37
38     /* Converting TimeData Types to SYSTEMTIME Types Functions */
39     CLOCK_RETURN ClockApiConvertTimeDataToSYSTEMTIME(const TimeData* base_time,
40                                                       SYSTEMTIME* result_time);
41
42 #ifdef  __cplusplus
43 }
44 #endif
45
46 #endif  // POSITIONING_SERVER_INCLUDE_SENSOR_CLOCKUTILITY_H_