X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fric_stub%2Fric_e2ap_msg_hdl.h;h=15caa790676d56b7b5de67eefc78d296069b8870;hb=bf5434b9c6c179180c5bc37640ed700b1a4cbfa7;hp=d1ed8a5d15f7d3d530f8f624c4a8d93465588cb9;hpb=bb8df345963bb5ef2e035ead7731c1171e4cbbe0;p=o-du%2Fl2.git diff --git a/src/ric_stub/ric_e2ap_msg_hdl.h b/src/ric_stub/ric_e2ap_msg_hdl.h index d1ed8a5d1..15caa7906 100644 --- a/src/ric_stub/ric_e2ap_msg_hdl.h +++ b/src/ric_stub/ric_e2ap_msg_hdl.h @@ -17,28 +17,6 @@ *******************************************************************************/ /* This file contains all E2AP message handler related functionality */ -#include -#include -#include -#include "ProtocolIE-FieldE2.h" -#include "E2AP-PDU.h" - -#include "envopt.h" /* Environment options */ -#include "envdep.h" /* Environment dependent */ -#include "envind.h" /* Environment independent */ -#include "gen.h" /* General */ -#include "ssi.h" /* System services */ -#include "ss_queue.h" -#include "ss_task.h" -#include "ss_msg.h" - -#include "gen.x" /* General */ -#include "ssi.x" /* System services */ -#include "ss_queue.x" -#include "ss_task.x" -#include "ss_msg.x" - -#include "du_log.h" #define ENCODE_FAIL -1 #define TRANS_ID 1 @@ -52,15 +30,14 @@ #define CRNTI 17017 #define CELL_INDEX 0 - /* allocate and zero out a static buffer */ #define RIC_ALLOC(_datPtr, _size) \ { \ - S16 _ret; \ + uint8_t _ret; \ _ret = SGetSBuf(RIC_APP_MEM_REG, RIC_POOL, \ (Data **)&_datPtr, _size); \ if(_ret == ROK) \ - cmMemset((U8*)_datPtr, 0, _size); \ + memset(_datPtr, 0, _size); \ else \ _datPtr = NULLP; \ } @@ -73,9 +50,11 @@ -void E2APMsgHdlr(Buffer *mBuf); -S16 BuildAndSendE2SetupReq(); -S16 SendE2APMsg(Region , Pool ); + +void E2APMsgHdlr(uint32_t *duId, Buffer *mBuf); +uint8_t BuildAndSendE2SetupRsp(uint32_t duId); +uint8_t BuildAndSendRicSubscriptionReq(uint32_t duId); +uint8_t SendE2APMsg(Region region, Pool pool, uint32_t duId); /********************************************************************** End of file