Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / vehicleservice / positioning / server / include / ServiceInterface / DevDetectSrvIf.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
19  *    DevDetectSrvIf.h
20  * @brief
21  *    DevDetectSrv service-to-service interface
22  */
23 #ifndef POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_DEVDETECTSRVIF_H_
24 #define POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_DEVDETECTSRVIF_H_
25
26 /*---------------------------------------------------------------------------------*
27  * Incluce                                                                         *
28  *---------------------------------------------------------------------------------*/
29 #include <native_service/frameworkunified_types.h>
30 #include <system_service/ss_devicedetection_service_ifc.h>
31 #include <system_service/ss_devicedetection_service_protocol.h>
32
33 #include <vehicle_service/positioning_base_library.h>
34
35 /*---------------------------------------------------------------------------------*
36  * Definition                                                                      *
37  *---------------------------------------------------------------------------------*/
38
39 /*---------------------------------------------------------------------------------*
40  * Typedef declaration                                                             *
41  *---------------------------------------------------------------------------------*/
42
43 /*---------------------------------------------------------------------------------*
44  * Struct declaration                                                              *
45  *---------------------------------------------------------------------------------*/
46
47 /*---------------------------------------------------------------------------------*
48  * Prototype Declaration                                                           *
49  *---------------------------------------------------------------------------------*/
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 void DevDetectSrvIfSetAvailability(BOOL b_is_available);
54 EFrameworkunifiedStatus DevDetectSrvIfInitialize(void);
55 EFrameworkunifiedStatus DevDetectSrvIfNotifyOnDeviceDetectionAvailability(CbFuncPtr fp_call_back_fn);
56 EFrameworkunifiedStatus DevDetectSrvIfNotifyOnOpenSessionAck(CbFuncPtr fp_call_back_fn, BOOL* pb_is_available);
57 EFrameworkunifiedStatus DevDetectSrvIfNotifyOnCloseSessionAck(CbFuncPtr fp_call_back_fn, BOOL* pb_is_available);
58 EFrameworkunifiedStatus DevDetectSrvIfOpenSessionRequest(BOOL* pb_is_available);
59 EFrameworkunifiedStatus DevDetectSrvIfDecodeOpenSessionResponse(BOOL* pb_is_available);
60 EFrameworkunifiedStatus DevDetectSrvIfRegisterForDeviceDetectionEvent(SS_DeviceDetectionServerEvents fe_dev_detect_event, \
61               CbFuncPtr fp_call_back_fn, PCSTR p_file_path, BOOL* pb_is_available);
62 EFrameworkunifiedStatus DevDetectSrvIfUnRegisterForDeviceDetectionEvent(SS_DeviceDetectionServerEvents fe_dev_detect_event, \
63               BOOL* pb_is_available);
64 EFrameworkunifiedStatus DevDetectSrvIfCloseSessionRequest(BOOL* pb_is_available);
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif  // POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_DEVDETECTSRVIF_H_