feature(trans):add stub for test update

Signed-off-by: gouwenbo <gouwenbo@huawei.com>
This commit is contained in:
gouwenbo 2024-05-23 19:55:42 +08:00
parent 77c37d3568
commit ab270bdd75
3 changed files with 6 additions and 5 deletions

View File

@ -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 */

View File

@ -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;

View File

@ -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;
}