X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_inf.c;h=ff633545435a441782b2703b7de45f1b5d4ecdaa;hb=2bd852089c3226f721d83b30f816b90f803237f6;hp=f288719f515ccda8ab840cd7e124c541b7f32b4e;hpb=5d74fef7c9fe6b65a965ceac6bfe812872dab323;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_inf.c b/src/5gnrsch/rg_sch_inf.c index f288719f5..ff6335454 100755 --- a/src/5gnrsch/rg_sch_inf.c +++ b/src/5gnrsch/rg_sch_inf.c @@ -59,20 +59,10 @@ * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchUeDelInd -( -Pst* pst, -RgInfUeDelInd* ueDelInd -) -#else -S16 cmPkMacSchUeDelInd(pst, ueDelInd) -Pst* pst; -RgInfUeDelInd* ueDelInd; -#endif +S16 cmPkMacSchUeDelInd(Pst* pst,RgInfUeDelInd* ueDelInd) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -105,19 +95,7 @@ RgInfUeDelInd* ueDelInd; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchUeDelInd -( -UeDelInd func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchUeDelInd(func, pst, mBuf) -UeDelInd func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchUeDelInd(UeDelInd func,Pst *pst,Buffer *mBuf) { RgInfUeDelInd ueDelInd; @@ -147,21 +125,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchDedBoUpdtReq -( -Pst* pst, -RgInfDedBoRpt* boRpt -) -#else -S16 cmPkMacSchDedBoUpdtReq(pst, boRpt) -Pst* pst; -RgInfDedBoRpt* boRpt; -#endif +S16 cmPkMacSchDedBoUpdtReq(Pst* pst,RgInfDedBoRpt* boRpt) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -193,19 +161,7 @@ RgInfDedBoRpt* boRpt; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchDedBoUpdtReq -( -DedBoUpdtReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchDedBoUpdtReq(func, pst, mBuf) -DedBoUpdtReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchDedBoUpdtReq(DedBoUpdtReq func,Pst *pst,Buffer *mBuf) { RgInfDedBoRpt boRpt; @@ -232,21 +188,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchCmnBoUpdtReq -( -Pst* pst, -RgInfCmnBoRpt* boRpt -) -#else -S16 cmPkMacSchCmnBoUpdtReq(pst, boRpt) -Pst* pst; -RgInfCmnBoRpt* boRpt; -#endif +S16 cmPkMacSchCmnBoUpdtReq(Pst* pst,RgInfCmnBoRpt* boRpt) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -278,19 +224,7 @@ RgInfCmnBoRpt* boRpt; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchCmnBoUpdtReq -( -CmnBoUpdtReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchCmnBoUpdtReq(func, pst, mBuf) -CmnBoUpdtReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchCmnBoUpdtReq(CmnBoUpdtReq func,Pst *pst,Buffer *mBuf) { RgInfCmnBoRpt boRpt; @@ -317,21 +251,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchSfRecpInd -( -Pst* pst, -RgInfSfDatInd* datInd -) -#else -S16 cmPkMacSchSfRecpInd(pst, datInd) -Pst* pst; -RgInfSfDatInd* datInd; -#endif +S16 cmPkMacSchSfRecpInd(Pst* pst,RgInfSfDatInd* datInd) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -360,19 +284,7 @@ RgInfSfDatInd* datInd; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchSfRecpInd -( -SfRecpInd func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchSfRecpInd(func, pst, mBuf) -SfRecpInd func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchSfRecpInd(SfRecpInd func,Pst *pst,Buffer *mBuf) { RgInfSfDatInd* datInd; @@ -400,21 +312,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchSpsRelInd -( -Pst* pst, -RgInfSpsRelInfo* relInfo -) -#else -S16 cmPkMacSchSpsRelInd(pst, relInfo) -Pst* pst; -RgInfSpsRelInfo* relInfo; -#endif +S16 cmPkMacSchSpsRelInd(Pst* pst,RgInfSpsRelInfo* relInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -441,19 +343,7 @@ RgInfSpsRelInfo* relInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchSpsRelInd -( -SpsRelInd func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchSpsRelInd(func, pst, mBuf) -SpsRelInd func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchSpsRelInd(SpsRelInd func,Pst *pst,Buffer *mBuf) { RgInfSpsRelInfo *relInfo; @@ -484,21 +374,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacSfAllocReq -( -Pst* pst, -RgInfSfAlloc* resAllocReq -) -#else -S16 cmPkSchMacSfAllocReq(pst, resAllocReq) -Pst* pst; -RgInfSfAlloc* resAllocReq; -#endif +S16 cmPkSchMacSfAllocReq(Pst* pst,RgInfSfAlloc* resAllocReq) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -527,19 +407,7 @@ RgInfSfAlloc* resAllocReq; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacSfAllocReq -( -SfAllocReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacSfAllocReq(func, pst, mBuf) -SfAllocReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacSfAllocReq(SfAllocReq func,Pst *pst,Buffer *mBuf) { RgInfSfAlloc* resAllocReq; @@ -564,21 +432,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacRstHqEntReq -( -Pst* pst, -RgInfResetHqEnt* hqEntInfo -) -#else -S16 cmPkSchMacRstHqEntReq(pst, sfHqInfo) -Pst* pst, -RgInfResetHqEnt* hqEntInfo -#endif +S16 cmPkSchMacRstHqEntReq(Pst* pst,RgInfResetHqEnt* hqEntInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -604,19 +462,7 @@ RgInfResetHqEnt* hqEntInfo * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacRstHqEntReq -( -RstHqEntReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacRstHqEntReq(func, pst, mBuf) -RstHqEntReq func, -Pst *pst, -Buffer *mBuf -#endif +S16 cmUnpkSchMacRstHqEntReq(RstHqEntReq func,Pst *pst,Buffer *mBuf) { RgInfResetHqEnt* hqEntRstInfo; @@ -644,21 +490,11 @@ Buffer *mBuf * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacRlsHqReq -( -Pst* pst, -RgInfRlsHqInfo* sfHqInfo -) -#else -S16 cmPkSchMacRlsHqReq(pst, sfHqInfo) -Pst* pst; -RgInfRlsHqInfo* sfHqInfo; -#endif +S16 cmPkSchMacRlsHqReq(Pst* pst,RgInfRlsHqInfo* sfHqInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -686,19 +522,7 @@ RgInfRlsHqInfo* sfHqInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacRlsHqReq -( -RlsHqReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacRlsHqReq(func, pst, mBuf) -RlsHqReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacRlsHqReq(RlsHqReq func,Pst *pst,Buffer *mBuf) { RgInfRlsHqInfo* sfHqInfo; @@ -725,21 +549,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacRlsRntiReq -( -Pst* pst, -RgInfRlsRnti* rlsRnti -) -#else -S16 cmPkSchMacRlsRntiReq(pst, rlsRnti) -Pst* pst; -RgInfRlsRnti* rlsRnti; -#endif +S16 cmPkSchMacRlsRntiReq(Pst* pst,RgInfRlsRnti* rlsRnti) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -770,19 +584,7 @@ RgInfRlsRnti* rlsRnti; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacRlsRntiReq -( -RlsRntiReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacRlsRntiReq(func, pst, mBuf) -RlsRntiReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacRlsRntiReq(RlsRntiReq func,Pst *pst,Buffer *mBuf) { RgInfRlsRnti rlsRnti; @@ -810,21 +612,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacCellRegReq -( -Pst* pst, -RgInfCellReg* regReq -) -#else -S16 cmPkSchMacCellRegReq(pst, regReq) -Pst* pst; -RgInfCellReg* regReq; -#endif +S16 cmPkSchMacCellRegReq(Pst* pst,RgInfCellReg* regReq) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -855,19 +647,7 @@ RgInfCellReg* regReq; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacCellRegReq -( -CellRegReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacCellRegReq(func, pst, mBuf) -CellRegReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacCellRegReq(CellRegReq func,Pst *pst,Buffer *mBuf) { RgInfCellReg regReq; @@ -893,21 +673,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacLcgRegReq -( -Pst* pst, -RgInfLcgRegReq *lcgRegReq -) -#else -S16 cmPkSchMacLcgRegReq(pst, lcgRegReq) -Pst* pst; -RgInfLcgRegReq *lcgRegReq; -#endif +S16 cmPkSchMacLcgRegReq(Pst* pst,RgInfLcgRegReq *lcgRegReq) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -934,19 +704,7 @@ RgInfLcgRegReq *lcgRegReq; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacLcgRegReq -( -LcgReg func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacLcgRegReq(func, pst, mBuf) -LcgReg func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacLcgRegReq(LcgReg func,Pst *pst,Buffer *mBuf) { RgInfLcgRegReq *lcgRegReq; @@ -974,21 +732,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacSpsLcRegReq -( -Pst* pst, -RgInfSpsLcInfo *lcInfo -) -#else -S16 cmPkSchMacSpsLcRegReq(pst, lcInfo) -Pst* pst; -RgInfSpsLcInfo *lcInfo; -#endif +S16 cmPkSchMacSpsLcRegReq(Pst* pst,RgInfSpsLcInfo *lcInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -1014,21 +762,11 @@ RgInfSpsLcInfo *lcInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacUlSpsResetReq -( -Pst* pst, -RgInfUlSpsReset *ulSpsResetInfo -) -#else -S16 cmPkSchMacUlSpsResetReq(pst, ulSpsResetInfo) -Pst* pst; -RgInfUlSpsReset *ulSpsResetInfo; -#endif +S16 cmPkSchMacUlSpsResetReq(Pst* pst,RgInfUlSpsReset *ulSpsResetInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -1055,19 +793,7 @@ RgInfUlSpsReset *ulSpsResetInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacSpsLcRegReq -( -SpsLcReg func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacSpsLcRegReq(func, pst, mBuf) -SpsLcReg func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacSpsLcRegReq(SpsLcReg func,Pst *pst,Buffer *mBuf) { RgInfSpsLcInfo *lcInfo; @@ -1096,19 +822,7 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacUlSpsResetReq -( -UlSpsReset func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacUlSpsResetReq(func, pst, mBuf) -UlSpsReset func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacUlSpsResetReq(UlSpsReset func,Pst *pst,Buffer *mBuf) { RgInfUlSpsReset *ulSpsResetInfo; @@ -1137,23 +851,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacSpsLcDeregReq -( -Pst* pst, -CmLteCellId cellId, -CmLteRnti crnti -) -#else -S16 cmPkSchMacSpsLcDeregReq(pst, cellId, crnti) -Pst* pst; -CmLteCellId cellId; -CmLteRnti crnti; -#endif +S16 cmPkSchMacSpsLcDeregReq(Pst* pst,CmLteCellId cellId,CmLteRnti crnti) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -1177,19 +879,7 @@ CmLteRnti crnti; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacSpsLcDeregReq -( -SpsLcDereg func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacSpsLcDeregReq(func, pst, mBuf) -SpsLcDereg func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacSpsLcDeregReq(SpsLcDereg func,Pst *pst, Buffer *mBuf) { CmLteCellId cellId; CmLteRnti crnti; @@ -1216,21 +906,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacL2MeasReq -( -Pst* pst, -RgInfL2MeasReq *measInfo -) -#else -S16 cmPkSchMacL2MeasReq(pst, measInfo) -Pst* pst; -RgInfL2MeasReq *measInfo; -#endif +S16 cmPkSchMacL2MeasReq(Pst* pst,RgInfL2MeasReq *measInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } if(SAddPstMsgMult((Data *)measInfo, sizeof(RgInfL2MeasReq), mBuf) != ROK) @@ -1255,26 +935,16 @@ RgInfL2MeasReq *measInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacL2MeasStopReq -( -Pst* pst, -RgInfL2MeasStopReq *measInfo -) -#else -S16 cmPkSchMacL2MeasStopReq(pst, measInfo) -Pst* pst; -RgInfL2MeasStopReq *measInfo; -#endif +S16 cmPkSchMacL2MeasStopReq(Pst* pst,RgInfL2MeasStopReq *measInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } if(SAddPstMsgMult((Data *)measInfo, sizeof(RgInfL2MeasStopReq), mBuf) != ROK) { - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return RFAILED; } @@ -1293,27 +963,17 @@ RgInfL2MeasStopReq *measInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkSchMacL2MeasSendReq -( -Pst* pst, -RgInfL2MeasSndReq *measInfo -) -#else -S16 cmPkSchMacL2MeasSendReq(pst, measInfo) -Pst* pst; -RgInfL2MeasSndReq *measInfo; -#endif +S16 cmPkSchMacL2MeasSendReq(Pst* pst,RgInfL2MeasSndReq *measInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } if(SAddPstMsgMult((Data *)measInfo, sizeof(RgInfL2MeasSndReq), mBuf) != ROK) { - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return RFAILED; } @@ -1334,19 +994,7 @@ RgInfL2MeasSndReq *measInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacL2MeasReq -( -L2MeasReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacL2MeasReq(func, pst, mBuf) -L2MeasReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacL2MeasReq(L2MeasReq func,Pst *pst,Buffer *mBuf) { RgInfL2MeasReq measInfo; @@ -1373,29 +1021,17 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacL2MeasStopReq -( -L2MeasStopReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacL2MeasStopReq(func, pst, mBuf) -L2MeasStopReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacL2MeasStopReq(L2MeasStopReq func,Pst *pst,Buffer *mBuf) { RgInfL2MeasStopReq measInfo; if(SRemPreMsgMult((Data *)&measInfo, sizeof(RgInfL2MeasStopReq), mBuf) != ROK) { - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return RFAILED; } - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return ((*func)(pst, &measInfo)); } /* end of cmUnpkSchMacL2MeasReq */ /** @@ -1411,29 +1047,17 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkSchMacL2MeasSendReq -( -L2MeasSendReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkSchMacL2MeasSendReq(func, pst, mBuf) -L2MeasSendReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkSchMacL2MeasSendReq(L2MeasSendReq func,Pst *pst,Buffer *mBuf) { RgInfL2MeasSndReq measInfo; if(SRemPreMsgMult((Data *)&measInfo, sizeof(RgInfL2MeasSndReq), mBuf) != ROK) { - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return RFAILED; } - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return ((*func)(pst, &measInfo)); } /* end of cmUnpkSchMacL2MeasSendReq*/ @@ -1449,21 +1073,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchL2MeasCfm -( -Pst* pst, -RgInfL2MeasCfm *measCfm -) -#else -S16 cmPkMacSchL2MeasCfm(pst, measCfm) -Pst* pst; -RgInfL2MeasCfm *measCfm; -#endif +S16 cmPkMacSchL2MeasCfm(Pst* pst,RgInfL2MeasCfm *measCfm) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -1490,27 +1104,17 @@ RgInfL2MeasCfm *measCfm; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkMacSchL2MeasStopCfm -( -Pst* pst, -RgInfL2MeasCfm *measCfm -) -#else -S16 cmPkMacSchL2MeasStopCfm(pst, measCfm) -Pst* pst; -RgInfL2MeasCfm *measCfm; -#endif +S16 cmPkMacSchL2MeasStopCfm(Pst* pst,RgInfL2MeasCfm *measCfm) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } if(SAddPstMsgMult((Data *)measCfm, sizeof(RgInfL2MeasCfm), mBuf) != ROK) { - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return RFAILED; } @@ -1530,19 +1134,7 @@ RgInfL2MeasCfm *measCfm; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchL2MeasCfm -( -L2MeasCfm func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchL2MeasCfm(func, pst, mBuf) -L2MeasCfm func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchL2MeasCfm(L2MeasCfm func,Pst *pst,Buffer *mBuf) { RgInfL2MeasCfm measCfm; @@ -1569,29 +1161,17 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkMacSchL2MeasStopCfm -( -L2MeasCfm func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkMacSchL2MeasStopCfm(func, pst, mBuf) -L2MeasCfm func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkMacSchL2MeasStopCfm(L2MeasCfm func,Pst *pst,Buffer *mBuf) { -RgInfL2MeasCfm measCfm; + RgInfL2MeasCfm measCfm; if(SRemPreMsgMult((Data *)&measCfm, sizeof(RgInfL2MeasCfm), mBuf) != ROK) { - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return RFAILED; } - SPutMsg(mBuf); + ODU_PUT_MSG_BUF(mBuf); return ((*func)(pst, &measCfm)); } /* end of cmUnpkMacSchL2MeasStopCfm */