X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcu_stub%2Fcu_stub.h;h=138c788c8cb502a9898c9d957f15e6024eecd345;hb=cfe7ea3ab6cb69d18ed91d79c1bf66b3bc8bdc98;hp=22ae74290f30be971588f8e84a58667f95a4a1be;hpb=105199ef642ffe9736ea24a01d4546578fa25e60;p=o-du%2Fl2.git diff --git a/src/cu_stub/cu_stub.h b/src/cu_stub/cu_stub.h index 22ae74290..138c788c8 100644 --- a/src/cu_stub/cu_stub.h +++ b/src/cu_stub/cu_stub.h @@ -28,19 +28,20 @@ #define DU_PORT 38472 /* allocate and zero out a static buffer */ -#define CU_ALLOC(_datPtr, _size) \ -{ \ - S16 _ret; \ +#define CU_ALLOC(_datPtr, _size) \ +{ \ + S16 _ret; \ _ret = SGetSBuf(CU_APP_MEM_REG, CU_POOL, \ - (Data **)&_datPtr, _size); \ - if(_ret == ROK) \ - cmMemset((U8*)_datPtr, 0, _size); \ - else \ - _datPtr = NULLP; \ + (Data **)&_datPtr, _size); \ + if(_ret == ROK) \ + cmMemset((U8*)_datPtr, 0, _size); \ + else \ + _datPtr = NULLP; \ } /* free a static buffer */ -#define CU_FREE(_datPtr, _size) \ +#define CU_FREE(_datPtr, _size) \ + if(_datPtr) \ SPutSBuf(CU_APP_MEM_REG, CU_POOL, \ (Data *)_datPtr, _size); @@ -91,6 +92,7 @@ CuCfgParams cuCfgParams; //global variable to hold all configs void readCuCfg(); void cuAppInmsgHdlr(Buffer *mBuf); void sctpNtfyInd(CmInetSctpNotification *ntfy); +uint8_t egtpInitReq(); #endif