X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_prg.c;h=ea572fc2e1d7dc8d00048633e67f5f5014cbcee6;hb=f76690adc96d589ab208fbcdef906be32a5abb7d;hp=a8dbcb7634cccb6ad94c205c2a793c5366cb2ed2;hpb=5d74fef7c9fe6b65a965ceac6bfe812872dab323;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_prg.c b/src/5gnrmac/rg_prg.c index a8dbcb763..ea572fc2e 100755 --- a/src/5gnrmac/rg_prg.c +++ b/src/5gnrmac/rg_prg.c @@ -65,21 +65,11 @@ * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkPrgPMacSMacUeSCellCfgReq -( -Pst *pst, -RgPrgUeSCellCfgInfo *ueSCellCfgInfo -) -#else -S16 cmPkPrgPMacSMacUeSCellCfgReq(pst, ueSCellCfgInfo) -Pst *pst; -RgPrgUeSCellCfgInfo *ueSCellCfgInfo; -#endif +S16 cmPkPrgPMacSMacUeSCellCfgReq(Pst *pst,RgPrgUeSCellCfgInfo *ueSCellCfgInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -108,19 +98,7 @@ RgPrgUeSCellCfgInfo *ueSCellCfgInfo; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmUnpkPrgPMacSMacUeSCellCfgReq -( -RgPrgUeSCellCfgReq func, -Pst *pst, -Buffer *mBuf -) -#else -S16 cmUnpkPrgPMacSMacUeSCellCfgReq(func, pst, mBuf) -RgPrgUeSCellCfgReq func; -Pst *pst; -Buffer *mBuf; -#endif +S16 cmUnpkPrgPMacSMacUeSCellCfgReq(RgPrgUeSCellCfgReq func,Pst *pst,Buffer *mBuf) { RgPrgUeSCellCfgInfo ueSCellCfgInfo; @@ -147,21 +125,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkPrgSMacPMacCfgCfm -( -Pst *pst, -RgPrgCfgCfmInfo *cfgCfm -) -#else -S16 cmPkPrgSMacPMacCfgCfm(pst, cfgCfm) -Pst *pst; -RgPrgCfgCfmInfo *cfgCfm; -#endif +S16 cmPkPrgSMacPMacCfgCfm(Pst *pst,RgPrgCfgCfmInfo *cfgCfm) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -211,19 +179,12 @@ RgPrgCfgCfmInfo *cfgCfm; * @return S16 * -# ROK **/ -#ifdef ANSI S16 cmUnpkPrgSMacPMacCfgCfm ( RgSMacPMacCfgCfm func, Pst *pst, Buffer *mBuf ) -#else -S16 cmUnpkPrgSMacPMacCfgCfm(func, pst, mBuf) -RgSMacPMacCfgCfm func; -Pst *pst; -Buffer *mBuf; -#endif { RgPrgCfgCfmInfo cfgCfm; @@ -250,21 +211,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkPrgPMacSMacUeSCellDelReq -( -Pst *pst, -RgPrgUeSCellDelInfo *ueSCellDelInfo -) -#else -S16 cmPkPrgPMacSMacUeSCellDelReq(pst, ueSCellDelInfo) -Pst *pst; -RgPrgUeSCellDelInfo *ueSCellDelInfo; -#endif +S16 cmPkPrgPMacSMacUeSCellDelReq(Pst *pst,RgPrgUeSCellDelInfo *ueSCellDelInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -294,19 +245,12 @@ RgPrgUeSCellDelInfo *ueSCellDelInfo; * @return S16 * -# ROK **/ -#ifdef ANSI S16 cmUnpkPrgPMacSMacUeSCellDelReq ( RgUeSCellDelReq func, Pst *pst, Buffer *mBuf ) -#else -S16 cmUnpkPrgPMacSMacUeSCellDelReq(func, pst, mBuf) -RgUeSCellDelReq func; -Pst *pst; -Buffer *mBuf; -#endif { RgPrgUeSCellDelInfo ueSCellDelInfo; @@ -334,21 +278,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkPrgPMacSMacUeSCellLchAddReq -( -Pst *pst, -RgPrgUeSCellLchAddInfo *lchCfgInfo, -) -#else -S16 cmPkPrgPMacSMacUeSCellLchAddReq(pst, lchCfgInfo) -Pst *pst; -RgPrgUeSCellLchAddInfo *lchCfgInfo; -#endif +S16 cmPkPrgPMacSMacUeSCellLchAddReq(Pst *pst,RgPrgUeSCellLchAddInfo *lchCfgInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -378,19 +312,12 @@ RgPrgUeSCellLchAddInfo *lchCfgInfo; * @return S16 * -# ROK **/ -#ifdef ANSI S16 cmUnpkPrgPMacSMacUeSCellLchAddReq ( RgPrgUeSCellLchAddInfo func, Pst *pst, Buffer *mBuf ) -#else -S16 cmUnpkPrgPMacSMacUeSCellLchAddReq(func, pst, mBuf) -RgPrgUeSCellLchAddInfo func; -Pst *pst; -Buffer *mBuf; -#endif { RgPrgLchRecfgInfo lchCfgInfo; @@ -417,21 +344,11 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkPrgPMacSMacUeSCellLchDelReq -( -Pst *pst, -RgPrgUeSCellLchDelInfo *delLcCb -) -#else -S16 cmPkPrgPMacSMacUeSCellLchDelReq(pst, delLcCb) -Pst *pst; -RgPrgUeSCellLchDelInfo *delLcCb; -#endif +S16 cmPkPrgPMacSMacUeSCellLchDelReq(Pst *pst,RgPrgUeSCellLchDelInfo *delLcCb) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -461,21 +378,11 @@ RgPrgUeSCellLchDelInfo *delLcCb; * @return S16 * -# ROK **/ -#ifdef ANSI -S16 cmPkPrgPMacSMacUeSCellLchModReq -( -Pst *pst, -RgPrgUeSCellLchModInfo *lchCfgInfo -) -#else -S16 cmPkPrgPMacSMacUeSCellLchModReq(pst, lchCfgInfo) -Pst *pst; -RgPrgUeSCellLchModInfo *lchCfgInfo; -#endif +S16 cmPkPrgPMacSMacUeSCellLchModReq(Pst *pst,RgPrgUeSCellLchModInfo *lchCfgInfo) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } @@ -506,19 +413,12 @@ RgPrgUeSCellLchModInfo *lchCfgInfo; * @return S16 * -# ROK **/ -#ifdef ANSI S16 cmUnpkPrgPMacSMacUeSCellLchModReq ( RgPrgUeScellModLchReq func, Pst *pst, Buffer *mBuf ) -#else -S16 cmUnpkPrgPMacSMacAddLchCfgReq(func, pst, mBuf) -RgPrgUeScellModLchReq func; -Pst *pst; -Buffer *mBuf; -#endif { RgPrgUeSCellLchModInfo lchCfgInfo; @@ -547,19 +447,12 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI S16 cmUnpkPrgPMacSMacUeSCellLchDelReq ( RgPrgUeScellDelLchReq func, Pst *pst, Buffer *mBuf ) -#else -S16 cmUnpkPrgPMacSMacUeSCellLchDelReq(func, pst, mBuf) -RgPrgUeScellDelLchReq func; -Pst *pst; -Buffer *mBuf; -#endif { RgPrgUeSCellLchDelInfo lchCfgInfo;