1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "geofence_interface_impl.h" 17 #include <hdf_base.h> 18 #include <hdf_log.h> 19 20 namespace OHOS { 21 namespace HDI { 22 namespace Location { 23 namespace Geofence { 24 namespace V2_0 { GeofenceInterfaceImplGetInstance(void)25extern "C" IGeofenceInterface *GeofenceInterfaceImplGetInstance(void) 26 { 27 return new (std::nothrow) GeofenceInterfaceImpl(); 28 } 29 ~GeofenceInterfaceImpl()30GeofenceInterfaceImpl::~GeofenceInterfaceImpl() 31 { 32 } 33 SetGeofenceCallback(const sptr<IGeofenceCallback> & callbackObj)34int32_t GeofenceInterfaceImpl::SetGeofenceCallback(const sptr<IGeofenceCallback>& callbackObj) 35 { 36 return HDF_SUCCESS; 37 } 38 AddGnssGeofence(const GeofenceInfo & fence,int monitorEvent)39int32_t GeofenceInterfaceImpl::AddGnssGeofence(const GeofenceInfo& fence, int monitorEvent) 40 { 41 return HDF_SUCCESS; 42 } 43 DeleteGnssGeofence(int32_t fenceIndex)44int32_t GeofenceInterfaceImpl::DeleteGnssGeofence(int32_t fenceIndex) 45 { 46 return HDF_SUCCESS; 47 } 48 } // V2_0 49 } // Geofence 50 } // Location 51 } // HDI 52 } // OHOS 53