1 /*
2 * Copyright (c) 2021 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 "softbus_qos.h"
17 #include "softbus_errcode.h"
18 #include "trans_log.h"
19
NotifyQosChannelOpened(const ChannelInfo * chanInfo)20 int32_t NotifyQosChannelOpened(const ChannelInfo *chanInfo)
21 {
22 (void)chanInfo;
23 return SOFTBUS_OK;
24 }
25
NotifyQosChannelClosed(int32_t channelId,int32_t channelType)26 void NotifyQosChannelClosed(int32_t channelId, int32_t channelType)
27 {
28 (void)channelId;
29 (void)channelType;
30 }
31
InitQos(void)32 int32_t InitQos(void)
33 {
34 TRANS_LOGE(TRANS_INIT, "InitQos virtual");
35 return SOFTBUS_OK;
36 }
37
SetDefaultQdisc(void)38 int32_t SetDefaultQdisc(void)
39 {
40 return SOFTBUS_OK;
41 }
42
QosReportExecute(int channelId,int chanType,int appType,int quality)43 int32_t QosReportExecute(int channelId, int chanType, int appType, int quality)
44 {
45 (void)channelId;
46 (void)chanType;
47 (void)appType;
48 (void)quality;
49 return SOFTBUS_OK;
50 }