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 "dtbschedmgr_log.h"
17 #include "softbus_adapter/softbus_adapter.h"
18
19 namespace OHOS {
20 namespace DistributedSchedule {
21 namespace {
22 const std::string TAG = "SoftbusAdapter";
23 }
24
25 IMPLEMENT_SINGLE_INSTANCE(SoftbusAdapter);
26
SendSoftbusEvent(uint8_t * sendData,uint32_t sendDataLen)27 int32_t SoftbusAdapter::SendSoftbusEvent(uint8_t* sendData, uint32_t sendDataLen)
28 {
29 HILOGI("%{public}s common called. ", __func__);
30 return 0;
31 }
32
StopSoftbusEvent()33 int32_t SoftbusAdapter::StopSoftbusEvent()
34 {
35 HILOGI("%{public}s common called. ", __func__);
36 return 0;
37 }
38
OnBroadCastRecv(std::string & networkId,uint8_t * data,uint32_t dataLen)39 void SoftbusAdapter::OnBroadCastRecv(std::string& networkId, uint8_t* data, uint32_t dataLen)
40 {
41 HILOGI("%{public}s common called. ", __func__);
42 return;
43 }
44
RegisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener> & listener)45 int32_t SoftbusAdapter::RegisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener>& listener)
46 {
47 HILOGI("%{public}s common called. ", __func__);
48 return 0;
49 }
50
UnregisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener> & listener)51 int32_t SoftbusAdapter::UnregisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener>& listener)
52 {
53 HILOGI("%{public}s common called. ", __func__);
54 return 0;
55 }
56 } // namespace DistributedSchedule
57 } // namespace OHOS
58