本文整理汇总了C++中PS_ALLOC_MSG_WITH_HEADER_LEN函数的典型用法代码示例。如果您正苦于以下问题:C++ PS_ALLOC_MSG_WITH_HEADER_LEN函数的具体用法?C++ PS_ALLOC_MSG_WITH_HEADER_LEN怎么用?C++ PS_ALLOC_MSG_WITH_HEADER_LEN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PS_ALLOC_MSG_WITH_HEADER_LEN函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TAF_CALL_ProcSupsCmdReq
VOS_VOID TAF_CALL_ProcSupsCmdReq(SPM_IMSA_CALL_SUPS_CMD_REQ_STRU *pstSupsCmdReq)
{
MN_APP_CALL_SUPS_REQ_STRU *pstDstMsg = VOS_NULL_PTR;
/* 申请消息内存 */
pstDstMsg = (MN_APP_CALL_SUPS_REQ_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(
WUEPS_PID_TAF,
sizeof(MN_APP_CALL_SUPS_REQ_STRU));
if (VOS_NULL_PTR == pstDstMsg)
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_CALL_ProcSupsCmdReq: ERROR:Memory Alloc is fail!");
return;
}
PS_MEM_SET(pstDstMsg, 0, sizeof(MN_APP_CALL_SUPS_REQ_STRU));
/* 首先转换消息类型到call可处理的内部消息 */
TAF_CALL_ConvertSupsCmdReqMsg(pstSupsCmdReq, pstDstMsg);
/* 调用call模块SupsCmdReq消息处理函数 */
MN_CALL_CallSupsCmdReqProc((struct MsgCB *)pstDstMsg);
/* 释放分配的内存空间 */
PS_FREE_MSG(WUEPS_PID_TAF, pstDstMsg);
}
示例2: IMM_MntnReportMemLeakMsg
VOS_UINT32 IMM_MntnReportMemLeakMsg( VOS_UINT32 ulPid )
{
IMM_MEM_LEAK_INFO_IND_MSG *pstImmMemLeakInfoInd;
/*申请消息 */
pstImmMemLeakInfoInd = (IMM_MEM_LEAK_INFO_IND_MSG *)PS_ALLOC_MSG_WITH_HEADER_LEN(
ulPid,
sizeof(IMM_MEM_LEAK_INFO_IND_MSG));
/* 内存申请失败,返回 */
if ( VOS_NULL_PTR == pstImmMemLeakInfoInd )
{
return VOS_ERR;
}
/*填写消息内容*/
pstImmMemLeakInfoInd->ulReceiverPid = ulPid;
pstImmMemLeakInfoInd->enMsgID = ID_IMM_MEM_LEAK_INFO_IND;
/* 发送消息 */
PS_SEND_MSG(ulPid, pstImmMemLeakInfoInd);
return VOS_OK;
}
示例3: TAF_CALL_ProcOrigReq
VOS_VOID TAF_CALL_ProcOrigReq(SPM_IMSA_CALL_ORIG_REQ_STRU *pstOrigReq)
{
MN_CALL_APP_REQ_MSG_STRU *pstDstMsg = VOS_NULL_PTR;
/* 申请消息内存 */
pstDstMsg = (MN_CALL_APP_REQ_MSG_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(
WUEPS_PID_TAF,
sizeof(MN_CALL_APP_REQ_MSG_STRU));
if (VOS_NULL_PTR == pstDstMsg)
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_CALL_ProcOrigReq: ERROR:Memory Alloc is fail!");
return;
}
PS_MEM_SET(pstDstMsg, 0, sizeof(MN_CALL_APP_REQ_MSG_STRU));
/* 首先转换消息类型到call可处理的内部消息 */
TAF_CALL_ConvertOrigReqMsg(pstOrigReq, pstDstMsg);
/* 调用call模块Orig Req消息处理函数 */
MN_CALL_CallOrigReqProc(pstDstMsg->clientId,
pstDstMsg->opId,
pstDstMsg->callId,
(MN_CALL_ORIG_PARAM_STRU*)&(pstDstMsg->unParm));
/* 释放分配的内存空间 */
PS_FREE_MSG(WUEPS_PID_TAF, pstDstMsg);
}
示例4: TAF_APS_SndDhcpDnsIpv6Req
VOS_VOID TAF_APS_SndDhcpDnsIpv6Req(
VOS_UINT8 ucPdpId
)
{
APS_DHCP_DNS_IPV6_REQ_STRU *pstDnsIpv6Req = VOS_NULL_PTR;
APS_PDP_CONTEXT_ENTITY_ST *pstPdpEntity;
/* 获取消息内容 */
pstPdpEntity = TAF_APS_GetPdpEntInfoAddr(ucPdpId);
pstDnsIpv6Req = (APS_DHCP_DNS_IPV6_REQ_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(WUEPS_PID_TAF,
sizeof(APS_DHCP_DNS_IPV6_REQ_STRU));
if (VOS_NULL_PTR == pstDnsIpv6Req)
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndDhcpDnsIpv6Req: Memory alloc failed");
return;
}
PS_MEM_SET((VOS_UINT8*)pstDnsIpv6Req + VOS_MSG_HEAD_LENGTH, 0,
sizeof(APS_DHCP_DNS_IPV6_REQ_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写参数 */
pstDnsIpv6Req->ulReceiverPid = UEPS_PID_DHCP;
pstDnsIpv6Req->enMsgId = ID_APS_DHCP_GET_DNS_IPV6_REQ;
pstDnsIpv6Req->usOpId = 0;
pstDnsIpv6Req->ucRabId = pstPdpEntity->ucNsapi;
PS_MEM_CPY((VOS_CHAR *)pstDnsIpv6Req->aucIdentifierId,
(VOS_CHAR *)pstPdpEntity->PdpAddr.aucIpV6Addr + TAF_APS_DHCP_IPV6_IFID_LEN,
TAF_APS_DHCP_IPV6_IFID_LEN);
PS_SEND_MSG(WUEPS_PID_TAF, pstDnsIpv6Req);
return;
}
示例5: TAF_SPM_SendMsgSmmaRsp
VOS_VOID TAF_SPM_SendMsgSmmaRsp(
TAF_MSG_SIGNALLING_TYPE_ENUM_UINT32 enMsgSignallingType
)
{
TAF_SPM_SMMA_RSP_STRU *pstSmmaRsp = VOS_NULL_PTR;
pstSmmaRsp = (TAF_SPM_SMMA_RSP_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(WUEPS_PID_TAF,sizeof(TAF_SPM_SMMA_RSP_STRU));
if (VOS_NULL_PTR == pstSmmaRsp)
{
MN_WARN_LOG("TAF_SPM_SendMsgSmmaRsp:ERROR: VOS_AllocMsg fail.");
return;
}
PS_MEM_SET(pstSmmaRsp, 0, sizeof(TAF_SPM_SMMA_RSP_STRU));
pstSmmaRsp->ulSenderCpuId = VOS_LOCAL_CPUID;
pstSmmaRsp->ulSenderPid = WUEPS_PID_TAF;
pstSmmaRsp->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstSmmaRsp->ulReceiverPid = WUEPS_PID_TAF;
pstSmmaRsp->ulLength = sizeof(TAF_SPM_SMMA_RSP_STRU) - VOS_MSG_HEAD_LENGTH;
pstSmmaRsp->ulMsgId = ID_TAF_SPM_SMMA_RSP;
pstSmmaRsp->enMsgSignallingType = enMsgSignallingType;
if ( VOS_OK != PS_SEND_MSG( WUEPS_PID_TAF, pstSmmaRsp ) )
{
MN_WARN_LOG( "TAF_SPM_SendMsgSmmaRsp:WARNING:SEND ID_TAF_SPM_SMMA_RSP msg FAIL!" );
}
return;
}
示例6: TAF_APS_SndDhcpDeactInd
VOS_VOID TAF_APS_SndDhcpDeactInd(
VOS_UINT8 ucPdpId
)
{
APS_DHCP_DEACT_IND_STRU *pstDnsDeactInd = VOS_NULL_PTR;
APS_PDP_CONTEXT_ENTITY_ST *pstPdpEntity;
VOS_UINT8 ucCid;
/* 获取消息内容 */
ucCid = TAF_APS_GetPdpEntCurrCid(ucPdpId);
pstPdpEntity = TAF_APS_GetPdpEntInfoAddr(ucPdpId);
pstDnsDeactInd = (APS_DHCP_DEACT_IND_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(WUEPS_PID_TAF,
sizeof(APS_DHCP_DEACT_IND_STRU));
if (VOS_NULL_PTR == pstDnsDeactInd)
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndDhcpDnsReqReq: Memory alloc failed");
return;
}
PS_MEM_SET((VOS_UINT8*)pstDnsDeactInd + VOS_MSG_HEAD_LENGTH, 0,
sizeof(APS_DHCP_DEACT_IND_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写参数 */
pstDnsDeactInd->ulReceiverPid = UEPS_PID_DHCP;
pstDnsDeactInd->enMsgId = ID_APS_DHCP_DEACT_IND;
pstDnsDeactInd->usOpId = 0;
pstDnsDeactInd->ucRabId = pstPdpEntity->ucNsapi;
pstDnsDeactInd->enPdnType = TAF_APS_GetPdpEntDialPdpType(ucPdpId, ucCid);
PS_SEND_MSG(WUEPS_PID_TAF, pstDnsDeactInd);
return;
}
示例7: CNAS_XCC_SndApsDataCallSuspendInd
VOS_VOID CNAS_XCC_SndApsDataCallSuspendInd(
VOS_UINT8 ucConnectId,
CNAS_XCC_SERVICE_TYPE_ENUM_UINT32 enServiceType
)
{
XCC_APS_DATA_CALL_SUSPEND_IND_STRU *pstMsg = VOS_NULL_PTR;
XCC_APS_SERVICE_TYPE_ENUM_UINT8 enTmpSrvType;
enTmpSrvType = XCC_APS_SERVICE_TYPE_BUTT;
if (CNAS_XCC_SERVICE_TYPE_VOICE_CALL == enServiceType)
{
enTmpSrvType = XCC_APS_SERVICE_TYPE_VOICE_CALL;
}
else if (CNAS_XCC_SERVICE_TYPE_SMS == enServiceType)
{
enTmpSrvType = XCC_APS_SERVICE_TYPE_SMS;
}
else if (CNAS_XCC_SERVICE_TYPE_AGPS_CALL == enServiceType)
{
enTmpSrvType = XCC_APS_SERVICE_TYPE_AGPS;
}
else
{
return;
}
pstMsg = (XCC_APS_DATA_CALL_SUSPEND_IND_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(UEPS_PID_XCC,
sizeof(XCC_APS_DATA_CALL_SUSPEND_IND_STRU));
if (VOS_NULL_PTR == pstMsg)
{
return;
}
NAS_MEM_SET_S((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH,
sizeof(XCC_APS_DATA_CALL_SUSPEND_IND_STRU) - VOS_MSG_HEAD_LENGTH,
0,
sizeof(XCC_APS_DATA_CALL_SUSPEND_IND_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填充消息 */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_XCC;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = CNAS_CCB_ConvertPidBasedOnModemId(CNAS_CCB_GetCdmaModeModemId(), WUEPS_PID_TAF);
pstMsg->enMsgId = ID_XCC_APS_DATA_CALL_SUSPEND_IND;
pstMsg->usOpId = 0;
pstMsg->ulLength = sizeof(XCC_APS_DATA_CALL_SUSPEND_IND_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->ucConnectId = ucConnectId;
pstMsg->enServiceType = enTmpSrvType;
CNAS_MNTN_LogMsgInfo((MSG_HEADER_STRU*)pstMsg);
/* 发送消息 */
(VOS_VOID)PS_SEND_MSG(UEPS_PID_XCC, pstMsg);
}
示例8: CNAS_XCC_SndApsHangupDataCallCnf
VOS_VOID CNAS_XCC_SndApsHangupDataCallCnf(
VOS_UINT8 ucCallId
)
{
XCC_APS_HANGUP_DATA_CALL_CNF_STRU *pstMsg = VOS_NULL_PTR;
pstMsg = (XCC_APS_HANGUP_DATA_CALL_CNF_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(UEPS_PID_XCC,
sizeof(XCC_APS_HANGUP_DATA_CALL_CNF_STRU));
if (VOS_NULL_PTR == pstMsg)
{
return;
}
NAS_MEM_SET_S((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH,
sizeof(XCC_APS_HANGUP_DATA_CALL_CNF_STRU) - VOS_MSG_HEAD_LENGTH,
0,
sizeof(XCC_APS_HANGUP_DATA_CALL_CNF_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填充消息 */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_XCC;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = CNAS_CCB_ConvertPidBasedOnModemId(CNAS_CCB_GetCdmaModeModemId(), WUEPS_PID_TAF);
pstMsg->ulLength = sizeof(XCC_APS_HANGUP_DATA_CALL_CNF_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enMsgId = ID_XCC_APS_HANGUP_DATA_CALL_CNF;
pstMsg->usOpId = 0;
pstMsg->ucCallId = ucCallId;
CNAS_MNTN_LogMsgInfo((MSG_HEADER_STRU*)pstMsg);
/* 发送消息 */
(VOS_VOID)PS_SEND_MSG(UEPS_PID_XCC, pstMsg);
}
示例9: TAF_MMA_SndInterPowerInitReq
VOS_VOID TAF_MMA_SndInterPowerInitReq(VOS_VOID)
{
TAF_MMA_INTER_POWER_INIT_REQ_STRU *pstPowerInitMsg = VOS_NULL_PTR;
pstPowerInitMsg = (TAF_MMA_INTER_POWER_INIT_REQ_STRU*)PS_ALLOC_MSG_WITH_HEADER_LEN(WUEPS_PID_MMA,
sizeof(TAF_MMA_INTER_POWER_INIT_REQ_STRU));
if (VOS_NULL_PTR == pstPowerInitMsg)
{
TAF_ERROR_LOG(WUEPS_PID_MMA,
"TAF_MMA_SndMmaPowerInitReq: ERROR:Memory Alloc Error for pstMsg!");
return;
}
PS_MEM_SET((VOS_UINT8*)pstPowerInitMsg + VOS_MSG_HEAD_LENGTH, 0,
sizeof(TAF_MMA_INTER_POWER_INIT_REQ_STRU) - VOS_MSG_HEAD_LENGTH);
pstPowerInitMsg->MsgHeader.ulSenderCpuId = VOS_LOCAL_CPUID;
pstPowerInitMsg->MsgHeader.ulSenderPid = WUEPS_PID_MMA;
pstPowerInitMsg->MsgHeader.ulReceiverCpuId = VOS_LOCAL_CPUID;
pstPowerInitMsg->MsgHeader.ulReceiverPid = WUEPS_PID_MMA;
pstPowerInitMsg->MsgHeader.ulMsgName = MMA_MMA_INTER_POWER_INIT;
pstPowerInitMsg->MsgHeader.ulLength = sizeof(TAF_MMA_INTER_POWER_INIT_REQ_STRU) - VOS_MSG_HEAD_LENGTH;
/* 需要发送外部消息,因为上电时无外部消息触发内部消息 */
if (VOS_OK != PS_SEND_MSG(WUEPS_PID_MMA, pstPowerInitMsg))
{
TAF_ERROR_LOG(WUEPS_PID_MMA,
"TAF_MMA_SndMmaPowerInitReq: Send message failed.");
}
return;
}
示例10: bastet_comm_write
int bastet_comm_write(u8 *msg, u32 len)
{
BASTET_MSG_STRU *pMsg = NULL;
VOS_UINT32 ulLength = 0;
if (NULL == msg) {
return -1;
}
ulLength = sizeof(BASTET_MSG_STRU) + BST_MAX_WRITE_PAYLOAD - 4;
pMsg = (BASTET_MSG_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(ACPU_PID_BASTET_COMM, ulLength);
if (NULL == pMsg) {
BASTET_LOGE("PS_ALLOC_MSG_WITH_HEADER_LEN failed");
return -1;
}
pMsg->ulReceiverPid = UEPS_PID_BASTET;
PS_MEM_CPY((VOS_VOID*)pMsg->aucValue, msg, len);
pMsg->usLen = len;
if (PS_SEND_MSG(ACPU_PID_BASTET_COMM, pMsg) != 0) {
BASTET_LOGE("PS_SEND_MSG failed");
return -1;
}
return 0;
}
示例11: TAF_SPM_SendImsaCallOrigReq
VOS_UINT32 TAF_SPM_SendImsaCallOrigReq(
MN_CALL_APP_REQ_MSG_STRU *pstAppMsg
)
{
SPM_IMSA_CALL_ORIG_REQ_STRU *pstSendImsaMsg = VOS_NULL_PTR;
/* 构造消息 */
pstSendImsaMsg = (SPM_IMSA_CALL_ORIG_REQ_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(
WUEPS_PID_TAF,
sizeof(SPM_IMSA_CALL_ORIG_REQ_STRU));
if (VOS_NULL_PTR == pstSendImsaMsg)
{
TAF_ERROR_LOG(WUEPS_PID_TAF,
"TAF_SPM_SendImsaCallOrigReq: ERROR:Memory Alloc Error for pstMsg!");
return VOS_FALSE;
}
/* 初始化消息 */
PS_MEM_SET(((VOS_UINT8*)pstSendImsaMsg) + VOS_MSG_HEAD_LENGTH,
0x00,
sizeof(SPM_IMSA_CALL_ORIG_REQ_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写消息头 */
pstSendImsaMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstSendImsaMsg->ulSenderPid = WUEPS_PID_TAF;
pstSendImsaMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstSendImsaMsg->ulReceiverPid = PS_PID_IMSA;
pstSendImsaMsg->ulLength = sizeof(SPM_IMSA_CALL_ORIG_REQ_STRU) - VOS_MSG_HEAD_LENGTH;
/* 填写消息内容 */
pstSendImsaMsg->ulMsgId = ID_SPM_IMSA_CALL_ORIG_REQ;
pstSendImsaMsg->usClientId = pstAppMsg->clientId;
pstSendImsaMsg->ucOpId = pstAppMsg->opId;
PS_MEM_CPY(&(pstSendImsaMsg->stOrig),
&(pstAppMsg->unParm.stOrig),
sizeof(MN_CALL_ORIG_PARAM_STRU));
pstSendImsaMsg->stOrig.enCallType = pstAppMsg->unParm.stOrig.enCallType;
/* VOLTE PhaseI认为CS域不需要再尝试,后续阶段维护 */
pstSendImsaMsg->stOrig.ucCsCallRetryFlg = VOS_FALSE;
PS_MEM_CPY(&(pstSendImsaMsg->stOrig.stEmergencyCat),
&(pstAppMsg->unParm.stOrig.stEmergencyCat),
sizeof(MN_CALL_EMERGENCY_CAT_STRU));
/* 发送消息 */
if (VOS_OK != PS_SEND_MSG(WUEPS_PID_TAF, pstSendImsaMsg))
{
TAF_ERROR_LOG(WUEPS_PID_TAF,
"TAF_SPM_SendImsaCallOrigReq: Send message failed.");
return VOS_FALSE;
}
return VOS_TRUE;
}
示例12: TAF_SPM_SendImsaCallInviteNewPtptReq
VOS_UINT32 TAF_SPM_SendImsaCallInviteNewPtptReq(
MN_CALL_APP_REQ_MSG_STRU *pstAppMsg
)
{
SPM_IMSA_CALL_INVITE_NEW_PTPT_REQ_STRU *pstSendImsaMsg = VOS_NULL_PTR;
/* 构造消息 */
pstSendImsaMsg = (SPM_IMSA_CALL_INVITE_NEW_PTPT_REQ_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(
WUEPS_PID_TAF,
sizeof(SPM_IMSA_CALL_INVITE_NEW_PTPT_REQ_STRU));
if (VOS_NULL_PTR == pstSendImsaMsg)
{
TAF_ERROR_LOG(WUEPS_PID_TAF,
"TAF_SPM_SendImsaCallInviteNewPtptReq: ERROR:Memory Alloc Error for pstMsg!");
return VOS_FALSE;
}
/* 初始化消息 */
PS_MEM_SET(((VOS_UINT8*)pstSendImsaMsg) + VOS_MSG_HEAD_LENGTH,
0x00,
sizeof(SPM_IMSA_CALL_INVITE_NEW_PTPT_REQ_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写消息头 */
pstSendImsaMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstSendImsaMsg->ulSenderPid = WUEPS_PID_TAF;
pstSendImsaMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstSendImsaMsg->ulReceiverPid = PS_PID_IMSA;
pstSendImsaMsg->ulLength = sizeof(SPM_IMSA_CALL_INVITE_NEW_PTPT_REQ_STRU) - VOS_MSG_HEAD_LENGTH;
/* 填写消息内容 */
pstSendImsaMsg->ulMsgId = ID_SPM_IMSA_CALL_INVITE_NEW_PTPT_REQ;
pstSendImsaMsg->usClientId = pstAppMsg->clientId;
pstSendImsaMsg->ucOpId = pstAppMsg->opId;
/* 填写对方号码及呼叫类型 */
pstSendImsaMsg->stNewPtptNumber.enNumType = pstAppMsg->unParm.stOrig.stDialNumber.enNumType;
pstSendImsaMsg->stNewPtptNumber.ucNumLen = pstAppMsg->unParm.stOrig.stDialNumber.ucNumLen;
if (MN_CALL_MAX_CALLED_BCD_NUM_LEN < pstSendImsaMsg->stNewPtptNumber.ucNumLen)
{
pstSendImsaMsg->stNewPtptNumber.ucNumLen = MN_CALL_MAX_CALLED_BCD_NUM_LEN;
}
PS_MEM_CPY(&(pstSendImsaMsg->stNewPtptNumber.aucBcdNum[0]),
&(pstAppMsg->unParm.stOrig.stDialNumber.aucBcdNum[0]),
pstSendImsaMsg->stNewPtptNumber.ucNumLen);
/* 发送消息 */
if (VOS_OK != PS_SEND_MSG(WUEPS_PID_TAF, pstSendImsaMsg))
{
TAF_ERROR_LOG(WUEPS_PID_TAF,
"TAF_SPM_SendImsaCallInviteNewPtptReq: Send message failed.");
return VOS_FALSE;
}
return VOS_TRUE;
}
示例13: TAF_APS_SndL4aSetCgscontrdpReq
VOS_VOID TAF_APS_SndL4aSetCgscontrdpReq(
VOS_VOID *pMsgData
)
{
TAF_PS_GET_DYNAMIC_SEC_PDP_CONTEXT_INFO_REQ_STRU *pstDynamicPdpReq;
APS_L4A_SET_CGSCONTRDP_REQ_STRU *pstCgscontrdpReq;
/* 参数初始化 */
pstDynamicPdpReq = (TAF_PS_GET_DYNAMIC_SEC_PDP_CONTEXT_INFO_REQ_STRU*)(pMsgData);
/* 构造消息 */
pstCgscontrdpReq = (APS_L4A_SET_CGSCONTRDP_REQ_STRU*)PS_ALLOC_MSG_WITH_HEADER_LEN(
WUEPS_PID_TAF,
sizeof(APS_L4A_SET_CGSCONTRDP_REQ_STRU));
if (VOS_NULL_PTR == pstCgscontrdpReq)
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndL4aSetCgscontrdpReq: Memory alloc failed.");
return;
}
/* 初始化消息 */
PS_MEM_SET((VOS_CHAR*)pstCgscontrdpReq + VOS_MSG_HEAD_LENGTH,
0x00,
sizeof(APS_L4A_SET_CGSCONTRDP_REQ_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写消息头 */
pstCgscontrdpReq->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstCgscontrdpReq->ulReceiverPid = MSP_L4_L4A_PID;
pstCgscontrdpReq->enMsgId = ID_APS_L4A_SET_CGSCONTRDP_REQ;
/* 填写消息内容 */
pstCgscontrdpReq->stCtrl.ulPid = pstDynamicPdpReq->stCtrl.ulModuleId;
pstCgscontrdpReq->stCtrl.ulClientId = pstDynamicPdpReq->stCtrl.usClientId;
pstCgscontrdpReq->stCtrl.ulOpId = pstDynamicPdpReq->stCtrl.ucOpId;
if(0xff == pstDynamicPdpReq->ucCid)
{
if(VOS_ERR == TAF_APS_GetActivedCid(pstCgscontrdpReq->aucCid))
{
PS_MEM_FREE(WUEPS_PID_TAF, pstCgscontrdpReq);
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndL4aSetCgcontrdpReq: Get actived cid failed.");
return;
}
}
else
{
pstCgscontrdpReq->aucCid[pstDynamicPdpReq->ucCid] = 1;
}
/* 发送消息 */
if (VOS_OK != PS_SEND_MSG(WUEPS_PID_TAF, pstCgscontrdpReq))
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndL4aSetCgscontrdpReq: Send message failed.");
return;
}
return;
}
示例14: TAF_APS_SndL4aIpv6InfoNotifyInd
VOS_UINT32 TAF_APS_SndL4aIpv6InfoNotifyInd(
VOS_UINT8 ucRabId,
TAF_PDP_IPV6_RA_INFO_STRU *pstIpv6RaInfo
)
{
VOS_UINT32 i;
APS_L4A_IPV6_INFO_NOTIFY_IND_STRU *pstL4aIpv6InfoNotifyInd;
if (VOS_FALSE == TAF_SDC_IsPlatformSupportLte())
{
TAF_ERROR_LOG(WUEPS_PID_TAF,
"TAF_APS_SndL4aIpv6InfoNotifyInd: Platform don't support LTE.");
return VOS_ERR;
}
/* 构造消息 */
pstL4aIpv6InfoNotifyInd = (APS_L4A_IPV6_INFO_NOTIFY_IND_STRU*)PS_ALLOC_MSG_WITH_HEADER_LEN(
WUEPS_PID_TAF,
sizeof(APS_L4A_IPV6_INFO_NOTIFY_IND_STRU));
if (VOS_NULL_PTR == pstL4aIpv6InfoNotifyInd)
{
TAF_ERROR_LOG(WUEPS_PID_TAF,
"TAF_APS_SndL4aIpv6InfoNotifyInd: Memory alloc failed.");
return VOS_ERR;
}
/* 初始化消息 */
PS_MEM_SET((VOS_CHAR*)pstL4aIpv6InfoNotifyInd + VOS_MSG_HEAD_LENGTH,
0x00,
sizeof(APS_L4A_IPV6_INFO_NOTIFY_IND_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写消息头 */
pstL4aIpv6InfoNotifyInd->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstL4aIpv6InfoNotifyInd->ulReceiverPid = MSP_L4_L4A_PID;
pstL4aIpv6InfoNotifyInd->enMsgId = ID_APS_L4A_IPV6_INFO_NOTIFY_IND;
/* 填写消息内容 */
pstL4aIpv6InfoNotifyInd->ucRabId = ucRabId;
pstL4aIpv6InfoNotifyInd->ucIpv6PrefixNum = (VOS_UINT8)pstIpv6RaInfo->ulPrefixNum;
for (i = 0; i < pstIpv6RaInfo->ulPrefixNum; i++)
{
pstL4aIpv6InfoNotifyInd->astIpv6PrefixArray[i].ucPrefixLen
= pstIpv6RaInfo->astPrefixList[i].ulBitPrefixLen/8;
PS_MEM_CPY(pstL4aIpv6InfoNotifyInd->astIpv6PrefixArray[i].aucPrefix,
pstIpv6RaInfo->astPrefixList[i].aucPrefix,
APS_L4A_MAX_IPV6_ADDR_LEN);
}
/* 发送消息 */
if (VOS_OK != PS_SEND_MSG(WUEPS_PID_TAF, pstL4aIpv6InfoNotifyInd))
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndL4aIpv6InfoNotifyInd: Send message failed.");
return VOS_ERR;
}
return VOS_OK;
}
示例15: TAF_APS_SndXccOrigDataCallReq
VOS_VOID TAF_APS_SndXccOrigDataCallReq(
VOS_UINT8 ucPdpId,
VOS_UINT8 ucHrpdHandOff1xFlg
)
{
APS_XCC_ORIG_DATA_CALL_REQ_STRU *pstOrigReq = VOS_NULL_PTR;
APS_PDP_CONTEXT_ENTITY_ST *pstPdpEntity = VOS_NULL_PTR;
TAF_APS_CDATA_HRPD_EPDSZID_CTX_STRU *pstHrpdActInfo = VOS_NULL_PTR;
pstPdpEntity = TAF_APS_GetPdpEntInfoAddr(ucPdpId);
pstOrigReq = (APS_XCC_ORIG_DATA_CALL_REQ_STRU *)PS_ALLOC_MSG_WITH_HEADER_LEN(WUEPS_PID_TAF,
sizeof(APS_XCC_ORIG_DATA_CALL_REQ_STRU));
if (VOS_NULL_PTR == pstOrigReq)
{
TAF_ERROR_LOG(WUEPS_PID_TAF, "TAF_APS_SndXccOrigDataCallReq: Memory alloc failed");
return;
}
PS_MEM_SET((VOS_UINT8*)pstOrigReq + VOS_MSG_HEAD_LENGTH, 0,
sizeof(APS_XCC_ORIG_DATA_CALL_REQ_STRU) - VOS_MSG_HEAD_LENGTH);
/* 填写参数 */
pstOrigReq->ulReceiverPid = UEPS_PID_XCC;
pstOrigReq->enMsgId = ID_APS_XCC_ORIG_DATA_CALL_REQ;
pstOrigReq->enSo = pstPdpEntity->stCdataInfo.enSo;
pstOrigReq->ucCallId = pstPdpEntity->stCdataInfo.ucCallId;
pstOrigReq->ucDrsFlg = pstPdpEntity->stCdataInfo.ucDrsFlg;
pstOrigReq->ucIsDormDataCall = pstPdpEntity->stCdataInfo.ucIsDormDataCall;
pstOrigReq->ucReOrigCount = pstPdpEntity->stCdataInfo.ucReOrigCount;
pstOrigReq->ucIsL2ErrReOrig = pstPdpEntity->stCdataInfo.ucIsL2ErrReOrig;
pstOrigReq->ucSrId = pstPdpEntity->stCdataInfo.ucSrId;
/* TODO:QOS */
/* num filed默认值为DTMF编码格式的: #777 */
pstOrigReq->stDialNumInfo.enDigitMode = XCC_APS_DIGIT_MODE_DTMF;
pstOrigReq->stDialNumInfo.ucDigitNum = 4;
pstOrigReq->stDialNumInfo.aucDigit[0] = 0x0c;
pstOrigReq->stDialNumInfo.aucDigit[1] = 0x07;
pstOrigReq->stDialNumInfo.aucDigit[2] = 0x07;
pstOrigReq->stDialNumInfo.aucDigit[3] = 0x07;
if (VOS_TRUE == ucHrpdHandOff1xFlg)
{
pstHrpdActInfo = TAF_APS_GetHrpdEpdszidInfo();
pstOrigReq->ulIsPrevHrpdMode = VOS_TRUE;
pstOrigReq->stPrevHrpdActInfo.usSid = pstHrpdActInfo->usSid;
pstOrigReq->stPrevHrpdActInfo.usNid = pstHrpdActInfo->usNid;
pstOrigReq->stPrevHrpdActInfo.usPzid = pstHrpdActInfo->ucPzid;
}
PS_SEND_MSG(WUEPS_PID_TAF, pstOrigReq);
return;
}