1/* 2 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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 "v1_0/[driver_name]_interface_service.h" 17#include <hdf_base.h> 18#include "[driver_name]_log.h" 19#include "devhost_dump_reg.h" 20#include "[driver_name]_dump.h" 21 22#define HDF_LOG_TAG [driver_name]_interface_service 23 24namespace OHOS { 25namespace HDI { 26namespace [driver_namespace_name] { 27namespace V1_0 { 28extern "C" [driver_idl_name] *[driver_inter_name]ImplGetInstance(void) 29{ 30 // ע��hidumper 31 DevHostRegisterDumpHost(Get[driver_namespace_name]Dump); 32 // [hdf-gen] Todo 33 HDF_LOGI("%{public}s: [driver_idl_name] init", __func__); 34 return new (std::nothrow) [driver_inter_name]Service(); 35} 36 37int32_t [driver_inter_name]Service::Helloworld(const std::string& sendMsg, std::string& recvMsg) 38{ 39 // [hdf-gen] Todo 40 HDF_LOGI("%{public}s: [driver_namespace_name]Service::Helloworld print", __func__); 41 return HDF_SUCCESS; 42} 43 44} // V1_0 45} // [driver_namespace_name] 46} // HDI 47} // OHOS 48