2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * DevDetectSrv service-to-service interface
23 #ifndef POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_DEVDETECTSRVIF_H_
24 #define POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_DEVDETECTSRVIF_H_
26 /*---------------------------------------------------------------------------------*
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>
33 #include <vehicle_service/positioning_base_library.h>
35 /*---------------------------------------------------------------------------------*
37 *---------------------------------------------------------------------------------*/
39 /*---------------------------------------------------------------------------------*
40 * Typedef declaration *
41 *---------------------------------------------------------------------------------*/
43 /*---------------------------------------------------------------------------------*
44 * Struct declaration *
45 *---------------------------------------------------------------------------------*/
47 /*---------------------------------------------------------------------------------*
48 * Prototype Declaration *
49 *---------------------------------------------------------------------------------*/
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);
69 #endif // POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_DEVDETECTSRVIF_H_