mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-24 17:29:54 +00:00
!6223 feature(trans):add stub for test update
Merge pull request !6223 from 苟文博/subtest
This commit is contained in:
commit
33d2765b92
@ -23,7 +23,7 @@
|
||||
extern "C"{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
void GetExtQosInfo(const SessionParam *param, QosInfo *qosInfo, uint32_t index);
|
||||
void GetExtQosInfo(const SessionParam *param, QosInfo *qosInfo, uint32_t index, AllocExtendInfo *extendInfo);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
@ -760,7 +760,7 @@ static void ModuleLaneAdapter(LanePreferredLinkList *preferred)
|
||||
}
|
||||
}
|
||||
|
||||
static void TransGetQosInfo(const SessionParam *param, QosInfo *qosInfo)
|
||||
static void TransGetQosInfo(const SessionParam *param, QosInfo *qosInfo, AllocExtendInfo *extendInfo)
|
||||
{
|
||||
if (!(param->isQosLane)) {
|
||||
TRANS_LOGD(TRANS_SVC, "not support qos lane");
|
||||
@ -782,7 +782,7 @@ static void TransGetQosInfo(const SessionParam *param, QosInfo *qosInfo)
|
||||
qosInfo->rttLevel = (LaneRttLevel)((param->qos[i].value > 0) ? param->qos[i].value : 0);
|
||||
break;
|
||||
default:
|
||||
GetExtQosInfo(param, qosInfo, i);
|
||||
GetExtQosInfo(param, qosInfo, i, extendInfo);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -832,7 +832,7 @@ static int32_t GetAllocInfoBySessionParam(const SessionParam *param, LaneAllocIn
|
||||
}
|
||||
allocInfo->transType = transType;
|
||||
allocInfo->acceptableProtocols = LNN_PROTOCOL_ALL ^ LNN_PROTOCOL_NIP;
|
||||
TransGetQosInfo(param, &allocInfo->qosRequire);
|
||||
TransGetQosInfo(param, &allocInfo->qosRequire, &(allocInfo->extendInfo));
|
||||
|
||||
if (PeerDeviceIsLegacyOs(param->peerDeviceId, param->sessionName) || IsMeshSync(param->sessionName)) {
|
||||
allocInfo->qosRequire.minBW = MESH_MAGIC_NUMBER;
|
||||
|
@ -15,9 +15,10 @@
|
||||
|
||||
#include "trans_qos_info.h"
|
||||
|
||||
void GetExtQosInfo(const SessionParam *param, QosInfo *qosInfo, uint32_t index)
|
||||
void GetExtQosInfo(const SessionParam *param, QosInfo *qosInfo, uint32_t index, AllocExtendInfo *extendInfo)
|
||||
{
|
||||
(void)param;
|
||||
(void)qosInfo;
|
||||
(void)index;
|
||||
(void)extendInfo;
|
||||
}
|
Loading…
Reference in New Issue
Block a user