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 20namespace OHOS { 21namespace HDI { 22namespace Location { 23namespace Geofence { 24namespace V2_0 { 25extern "C" IGeofenceInterface *GeofenceInterfaceImplGetInstance(void) 26{ 27 return new (std::nothrow) GeofenceInterfaceImpl(); 28} 29 30GeofenceInterfaceImpl::~GeofenceInterfaceImpl() 31{ 32} 33 34int32_t GeofenceInterfaceImpl::SetGeofenceCallback(const sptr<IGeofenceCallback>& callbackObj) 35{ 36 return HDF_SUCCESS; 37} 38 39int32_t GeofenceInterfaceImpl::AddGnssGeofence(const GeofenceInfo& fence, int monitorEvent) 40{ 41 return HDF_SUCCESS; 42} 43 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