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
Init()27 void SoftbusAdapter::Init()
28 {
29 HILOGI("%{public}s common called. ", __func__);
30 }
31
UnInit()32 void SoftbusAdapter::UnInit()
33 {
34 HILOGI("%{public}s common called. ", __func__);
35 }
36
SendSoftbusEvent(std::shared_ptr<DSchedDataBuffer> buffer)37 int32_t SoftbusAdapter::SendSoftbusEvent(std::shared_ptr<DSchedDataBuffer> buffer)
38 {
39 HILOGI("%{public}s common called. ", __func__);
40 return 0;
41 }
42
StopSoftbusEvent()43 int32_t SoftbusAdapter::StopSoftbusEvent()
44 {
45 HILOGI("%{public}s common called. ", __func__);
46 return 0;
47 }
48
OnBroadCastRecv(std::string & networkId,uint8_t * data,uint32_t dataLen)49 void SoftbusAdapter::OnBroadCastRecv(std::string& networkId, uint8_t* data, uint32_t dataLen)
50 {
51 HILOGI("%{public}s common called. ", __func__);
52 return;
53 }
54
RegisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener> & listener)55 int32_t SoftbusAdapter::RegisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener>& listener)
56 {
57 HILOGI("%{public}s common called. ", __func__);
58 return 0;
59 }
60
UnregisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener> & listener)61 int32_t SoftbusAdapter::UnregisterSoftbusEventListener(const std::shared_ptr<SoftbusAdapterListener>& listener)
62 {
63 HILOGI("%{public}s common called. ", __func__);
64 return 0;
65 }
66 } // namespace DistributedSchedule
67 } // namespace OHOS
68