!6223 feature(trans):add stub for test update

Merge pull request !6223 from 苟文博/subtest
This commit is contained in:
openharmony_ci 2024-05-24 09:42:44 +00:00 committed by Gitee
commit 33d2765b92
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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;
}