[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-414] Support at CU and RIC stub for SCTP...
[o-du/l2.git] / src / ric_stub / ric_e2ap_msg_hdl.h
index 7891086..47ebf52 100644 (file)
 *******************************************************************************/
 
 /* This file contains all E2AP message handler related functionality */
-#include<stdio.h>
-#include<sys/types.h>
-#include<string.h>
-#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
 #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;                                          \
 }
 
 
 
-extern char encBuf[ENC_BUF_MAX_LEN];
-int  encBufSize;
-
 void E2APMsgHdlr(Buffer *mBuf);
 S16 BuildAndSendE2SetupReq();
+S16 SendE2APMsg(Region , Pool );
 
 /**********************************************************************
          End of file