1 /* 2 * Copyright (C) 2023 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 "nci_native_adapter_default.h" 17 #include "nci_ce_impl_default.h" 18 #include "nci_nfcc_impl_default.h" 19 #include "nci_tag_impl_default.h" 20 21 namespace OHOS { 22 namespace NFC { 23 namespace NCI { 24 DECLARE_NATIVE_INTERFACE(NciNativeAdapterDefault); 25 GetNciCeInterface()26std::shared_ptr<INciCeInterface> NciNativeAdapterDefault::GetNciCeInterface() 27 { 28 return std::make_shared<NciCeImplDefault>(); 29 } 30 GetNciNfccInterface()31std::shared_ptr<INciNfccInterface> NciNativeAdapterDefault::GetNciNfccInterface() 32 { 33 return std::make_shared<NciNfccImplDefault>(); 34 } 35 GetNciTagInterface()36std::shared_ptr<INciTagInterface> NciNativeAdapterDefault::GetNciTagInterface() 37 { 38 return std::make_shared<NciTagImplDefault>(); 39 } 40 } // namespace NCI 41 } // namespace NFC 42 } // namespace OHOS