1 /*
2 * Copyright (c) 2021-2025 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 "comm_log.h"
17 #include "if_softbus_client.h"
18
19 namespace OHOS {
OnChannelOpened(const char * sessionName,const ChannelInfo * channel)20 int32_t ISoftBusClient::OnChannelOpened(const char *sessionName, const ChannelInfo *channel)
21 {
22 COMM_LOGI(COMM_EVENT, "ipc default impl");
23 return SOFTBUS_OK;
24 }
25
OnChannelOpenFailed(int32_t channelId,int32_t channelType,int32_t errCode)26 int32_t ISoftBusClient::OnChannelOpenFailed(int32_t channelId, int32_t channelType, int32_t errCode)
27 {
28 COMM_LOGI(COMM_EVENT, "ipc default impl");
29 return SOFTBUS_OK;
30 }
31
OnChannelLinkDown(const char * networkId,int32_t routeType)32 int32_t ISoftBusClient::OnChannelLinkDown(const char *networkId, int32_t routeType)
33 {
34 COMM_LOGI(COMM_EVENT, "ipc default impl");
35 return SOFTBUS_OK;
36 }
37
OnChannelMsgReceived(int32_t channelId,int32_t channelType,const void * data,uint32_t len,int32_t type)38 int32_t ISoftBusClient::OnChannelMsgReceived(int32_t channelId, int32_t channelType, const void *data,
39 uint32_t len, int32_t type)
40 {
41 COMM_LOGI(COMM_EVENT, "ipc default impl");
42 return SOFTBUS_OK;
43 }
44
OnChannelClosed(int32_t channelId,int32_t channelType,int32_t messageType)45 int32_t ISoftBusClient::OnChannelClosed(int32_t channelId, int32_t channelType, int32_t messageType)
46 {
47 COMM_LOGI(COMM_EVENT, "ipc default impl");
48 return SOFTBUS_OK;
49 }
50
OnChannelQosEvent(int32_t channelId,int32_t channelType,int32_t eventId,int32_t tvCount,const QosTv * tvList)51 int32_t ISoftBusClient::OnChannelQosEvent(int32_t channelId, int32_t channelType, int32_t eventId, int32_t tvCount,
52 const QosTv *tvList)
53 {
54 COMM_LOGI(COMM_EVENT, "ipc default impl");
55 return SOFTBUS_OK;
56 }
57
SetChannelInfo(const char * sessionName,int32_t sessionId,int32_t channelId,int32_t channelType)58 int32_t ISoftBusClient::SetChannelInfo(const char *sessionName, int32_t sessionId,
59 int32_t channelId, int32_t channelType)
60 {
61 COMM_LOGI(COMM_EVENT, "ipc default impl");
62 return SOFTBUS_OK;
63 }
64
OnJoinLNNResult(void * addr,uint32_t addrTypeLen,const char * networkId,int retCode)65 int32_t ISoftBusClient::OnJoinLNNResult(void *addr, uint32_t addrTypeLen, const char *networkId, int retCode)
66 {
67 COMM_LOGI(COMM_EVENT, "ipc default impl");
68 return SOFTBUS_OK;
69 }
70
OnJoinMetaNodeResult(void * addr,uint32_t addrTypeLen,void * metaInfo,uint32_t infoLen,int retCode)71 int32_t ISoftBusClient::OnJoinMetaNodeResult(void *addr, uint32_t addrTypeLen, void *metaInfo, uint32_t infoLen,
72 int retCode)
73 {
74 COMM_LOGI(COMM_EVENT, "ipc default impl");
75 return SOFTBUS_OK;
76 }
77
OnLeaveLNNResult(const char * networkId,int retCode)78 int32_t ISoftBusClient::OnLeaveLNNResult(const char *networkId, int retCode)
79 {
80 COMM_LOGI(COMM_EVENT, "ipc default impl");
81 return SOFTBUS_OK;
82 }
83
OnLeaveMetaNodeResult(const char * networkId,int retCode)84 int32_t ISoftBusClient::OnLeaveMetaNodeResult(const char *networkId, int retCode)
85 {
86 COMM_LOGI(COMM_EVENT, "ipc default impl");
87 return SOFTBUS_OK;
88 }
89
OnNodeOnlineStateChanged(const char * pkgName,bool isOnline,void * info,uint32_t infoTypeLen)90 int32_t ISoftBusClient::OnNodeOnlineStateChanged(const char *pkgName, bool isOnline, void *info, uint32_t infoTypeLen)
91 {
92 COMM_LOGI(COMM_EVENT, "ipc default impl");
93 return SOFTBUS_OK;
94 }
95
OnNodeBasicInfoChanged(const char * pkgName,void * info,uint32_t infoTypeLen,int32_t type)96 int32_t ISoftBusClient::OnNodeBasicInfoChanged(const char *pkgName, void *info, uint32_t infoTypeLen, int32_t type)
97 {
98 COMM_LOGI(COMM_EVENT, "ipc default impl");
99 return SOFTBUS_OK;
100 }
101
OnNodeStatusChanged(const char * pkgName,void * info,uint32_t infoTypeLen,int32_t type)102 int32_t ISoftBusClient::OnNodeStatusChanged(const char *pkgName, void *info, uint32_t infoTypeLen, int32_t type)
103 {
104 (void)pkgName;
105 (void)info;
106 (void)infoTypeLen;
107 (void)type;
108 COMM_LOGI(COMM_EVENT, "ipc default impl");
109 return SOFTBUS_OK;
110 }
111
OnLocalNetworkIdChanged(const char * pkgName)112 int32_t ISoftBusClient::OnLocalNetworkIdChanged(const char *pkgName)
113 {
114 COMM_LOGI(COMM_EVENT, "ipc default impl");
115 return SOFTBUS_OK;
116 }
117
OnNodeDeviceTrustedChange(const char * pkgName,int32_t type,const char * msg,uint32_t msgLen)118 int32_t ISoftBusClient::OnNodeDeviceTrustedChange(const char *pkgName, int32_t type, const char *msg, uint32_t msgLen)
119 {
120 (void)pkgName;
121 (void)type;
122 (void)msg;
123 (void)msgLen;
124 COMM_LOGI(COMM_EVENT, "ipc default impl");
125 return SOFTBUS_OK;
126 }
127
OnHichainProofException(const char * pkgName,const char * proofInfo,uint32_t proofLen,uint16_t deviceTypeId,int32_t errCode)128 int32_t ISoftBusClient::OnHichainProofException(
129 const char *pkgName, const char *proofInfo, uint32_t proofLen, uint16_t deviceTypeId, int32_t errCode)
130 {
131 (void)pkgName;
132 (void)proofInfo;
133 (void)proofLen;
134 (void)deviceTypeId;
135 (void)errCode;
136 COMM_LOGI(COMM_EVENT, "ipc default impl");
137 return SOFTBUS_OK;
138 }
139
OnTimeSyncResult(const void * info,uint32_t infoTypeLen,int32_t retCode)140 int32_t ISoftBusClient::OnTimeSyncResult(const void *info, uint32_t infoTypeLen, int32_t retCode)
141 {
142 COMM_LOGI(COMM_EVENT, "ipc default impl");
143 return SOFTBUS_OK;
144 }
145
OnPublishLNNResult(int32_t publishId,int32_t reason)146 void ISoftBusClient::OnPublishLNNResult(int32_t publishId, int32_t reason)
147 {
148 COMM_LOGI(COMM_EVENT, "ipc default impl");
149 }
150
OnRefreshLNNResult(int32_t refreshId,int32_t reason)151 void ISoftBusClient::OnRefreshLNNResult(int32_t refreshId, int32_t reason)
152 {
153 COMM_LOGI(COMM_EVENT, "ipc default impl");
154 }
155
OnRefreshDeviceFound(const void * device,uint32_t deviceLen)156 void ISoftBusClient::OnRefreshDeviceFound(const void *device, uint32_t deviceLen)
157 {
158 COMM_LOGI(COMM_EVENT, "ipc default impl");
159 }
160
OnDataLevelChanged(const char * networkId,const DataLevelInfo * dataLevelInfo)161 void ISoftBusClient::OnDataLevelChanged(const char *networkId, const DataLevelInfo *dataLevelInfo)
162 {
163 COMM_LOGI(COMM_EVENT, "ipc default impl");
164 }
165
OnBleRangeDone(const BleRangeInnerInfo * rangeInfo)166 void ISoftBusClient::OnBleRangeDone(const BleRangeInnerInfo *rangeInfo)
167 {
168 COMM_LOGI(COMM_EVENT, "ipc default impl");
169 }
170
OnClientTransLimitChange(int32_t channelId,uint8_t tos)171 int32_t ISoftBusClient::OnClientTransLimitChange(int32_t channelId, uint8_t tos)
172 {
173 COMM_LOGI(COMM_EVENT, "ipc default impl");
174 return SOFTBUS_OK;
175 }
176
OnChannelBind(int32_t channelId,int32_t channelType)177 int32_t ISoftBusClient::OnChannelBind(int32_t channelId, int32_t channelType)
178 {
179 COMM_LOGI(COMM_EVENT, "ipc default impl");
180 return SOFTBUS_OK;
181 }
182
OnClientChannelOnQos(int32_t channelId,int32_t channelType,QoSEvent event,const QosTV * qos,uint32_t count)183 int32_t ISoftBusClient::OnClientChannelOnQos(
184 int32_t channelId, int32_t channelType, QoSEvent event, const QosTV *qos, uint32_t count)
185 {
186 (void)channelId;
187 (void)channelType;
188 (void)event;
189 (void)qos;
190 (void)count;
191 COMM_LOGI(COMM_EVENT, "ipc default impl");
192 return SOFTBUS_OK;
193 }
194
OnCheckCollabRelation(const CollabInfo * sourceInfo,bool isSinkSide,const CollabInfo * sinkInfo,int32_t channelId,int32_t channelType)195 int32_t ISoftBusClient::OnCheckCollabRelation(
196 const CollabInfo *sourceInfo, bool isSinkSide, const CollabInfo *sinkInfo, int32_t channelId, int32_t channelType)
197 {
198 (void)sourceInfo;
199 (void)isSinkSide;
200 (void)sinkInfo;
201 (void)channelId;
202 (void)channelType;
203 COMM_LOGI(COMM_EVENT, "ipc default impl");
204 return SOFTBUS_OK;
205 }
206 } // namespace OHOS
207