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/hello_interface_service.h" 17#include <hdf_base.h> 18#include "hello_log.h" 19#include "devhost_dump_reg.h" 20#include "hello_dump.h" 21 22#define HDF_LOG_TAG hello_interface_service 23 24namespace OHOS { 25namespace HDI { 26namespace Hello { 27namespace V1_0 { 28extern "C" IHelloInterface *HelloInterfaceImplGetInstance(void) 29{ 30 // עᨩdumper 31 DevHostRegisterDumpHost(GetHelloDump); 32 // [hdf-gen] Todo 33 HDF_LOGI("%{public}s: IHelloInterface init", __func__); 34 return new (std::nothrow) HelloInterfaceService(); 35} 36 37int32_t HelloInterfaceService::Helloworld(const std::string& sendMsg, std::string& recvMsg) 38{ 39 // [hdf-gen] Todo 40 HDF_LOGI("%{public}s: HelloService::Helloworld print", __func__); 41 return HDF_SUCCESS; 42} 43 44} // V1_0 45} // Hello 46} // HDI 47} // OHOS 48