Fix for L2 compilation with WLS [Issue-ID: ODUHIGH-240]
[o-du/l2.git] / src / 5gnrrlc / kw_tenb_stats.c
index 0063267..a95e5fb 100755 (executable)
 **********************************************************************/
 
 /* header (.h) include files */
-#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 "cm5.h"           /* common timer defines */
-#include "cm_tkns.h"       /* common tokens defines */
-#include "cm_mblk.h"       /* common memory allocation library defines */
-#include "cm_llist.h"      /* common link list  defines  */
-#include "cm_hash.h"       /* common hash list  defines */
-#include "cm_lte.h"        /* common LTE defines */
+#include "common_def.h"
 #include "lkw.h"           /* LKW defines */
 #include "ckw.h"           /* CKW defines */
 #include "kwu.h"           /* KWU defines */
 #include "kw_ul.h"
 
 /* extern (.x) include files */
-#include "gen.x"           /* general */
-#include "ssi.x"           /* system services */
-
-#include "cm5.x"           /* common timer library */
-#include "cm_tkns.x"       /* common tokens */
-#include "cm_mblk.x"       /* common memory allocation */
-#include "cm_llist.x"      /* common link list */
-#include "cm_hash.x"       /* common hash list */
-#include "cm_lte.x"        /* common LTE includes */
-#include "cm_lib.x"        /* common memory allocation library */
 #include "lkw.x"           /* LKW */
 #include "ckw.x"           /* CKW */
 #include "kwu.x"           /* KWU */
 #endif
 
 #ifdef TENB_STATS
-PUBLIC TSL2CellStatsCb* l2CellStats[L2_STATS_MAX_CELLS];
-PUBLIC TSL2UeStatsCb*   l2UeStats[L2_STATS_MAX_UES];
-PUBLIC CmLListCp        freeL2UeStatsLst; /*!< Free Pool of UE stats Blocks */
-PUBLIC CmLListCp        inUseL2UeStatsLst;/*!< In Use Pool of UE stats Blocks */
+TSL2CellStatsCb* l2CellStats[L2_STATS_MAX_CELLS];
+TSL2UeStatsCb*   l2UeStats[L2_STATS_MAX_UES];
+CmLListCp        freeL2UeStatsLst; /*!< Free Pool of UE stats Blocks */
+CmLListCp        inUseL2UeStatsLst;/*!< In Use Pool of UE stats Blocks */
 
 /*
 *
@@ -91,13 +70,13 @@ PUBLIC CmLListCp        inUseL2UeStatsLst;/*!< In Use Pool of UE stats Blocks */
 *
 */
 #ifdef ANSI
-PUBLIC Void TSL2AllocStatsMem 
+Void TSL2AllocStatsMem 
 (
  Region region,
  Pool   pool 
 )
 #else
-PUBLIC Void TSL2AllocStatsMem(region, pool)
+Void TSL2AllocStatsMem(region, pool)
  Region region;
  Pool   pool;
 #endif
@@ -154,12 +133,12 @@ PUBLIC Void TSL2AllocStatsMem(region, pool)
 *
 */
 #ifdef ANSI
-PUBLIC TSL2UeStatsCb* TSL2AllocUeStatsBlk 
+TSL2UeStatsCb* TSL2AllocUeStatsBlk 
 (
  U16   rnti
 )
 #else
-PUBLIC TSL2UeStatsCb* TSL2AllocUeStatsBlk(rnti)
+TSL2UeStatsCb* TSL2AllocUeStatsBlk(rnti)
  U16   rnti;
 #endif
 {
@@ -180,7 +159,7 @@ PUBLIC TSL2UeStatsCb* TSL2AllocUeStatsBlk(rnti)
    statsCb->stats.rnti = (U32)rnti;
    statsCb->inUse = TRUE;
 
-   RETVALUE(statsCb);
+   return (statsCb);
 }
 
 /*
@@ -196,13 +175,13 @@ PUBLIC TSL2UeStatsCb* TSL2AllocUeStatsBlk(rnti)
 *
 */
 #ifdef ANSI
-PUBLIC Void TSL2DeallocUeStatsBlk 
+Void TSL2DeallocUeStatsBlk 
 (
  U16              rnti,
  TSL2UeStatsCb  *statsCb
 )
 #else
-PUBLIC Void TSL2DeallocUeStatsBlk(rnti, statsCb)
+Void TSL2DeallocUeStatsBlk(rnti, statsCb)
  U16              rnti;
  TSL2UeStatsCb  *statsCb;
 #endif
@@ -230,12 +209,12 @@ PUBLIC Void TSL2DeallocUeStatsBlk(rnti, statsCb)
 *
 */
 #ifdef ANSI
-PUBLIC TSL2CellStatsCb* TSL2AllocCellStatsBlk 
+TSL2CellStatsCb* TSL2AllocCellStatsBlk 
 (
  U32 cellId
 )
 #else
-PUBLIC TSL2CellStatsCb* TSL2AllocCellStatsBlk(cellId)
+TSL2CellStatsCb* TSL2AllocCellStatsBlk(cellId)
  U32 cellId;
 #endif
 {
@@ -246,7 +225,7 @@ PUBLIC TSL2CellStatsCb* TSL2AllocCellStatsBlk(cellId)
       printf("\n STATS Unexpected CellID = %d\n", (int)cellId);
    }
 
-   RETVALUE(l2CellStats[cellId-1]);
+   return (l2CellStats[cellId-1]);
 }
 
 /*
@@ -262,12 +241,12 @@ PUBLIC TSL2CellStatsCb* TSL2AllocCellStatsBlk(cellId)
 *
 */
 #ifdef ANSI
-PUBLIC Void TSL2DeallocCellStatsBlk 
+Void TSL2DeallocCellStatsBlk 
 (
  U32 cellId
 )
 #else
-PUBLIC Void TSL2DeallocCellStatsBlk(cellId)
+Void TSL2DeallocCellStatsBlk(cellId)
  U32 cellId;
 #endif
 {
@@ -292,13 +271,13 @@ PUBLIC Void TSL2DeallocCellStatsBlk(cellId)
 *
 */
 #ifdef ANSI
-PUBLIC Void TSL2SendStatsToApp
+Void TSL2SendStatsToApp
 (
  Pst    *pst,
  SuId   suId
  )
 #else
-PUBLIC Void TSL2SendStatsToApp(pst, suId)
+Void TSL2SendStatsToApp(pst, suId)
  Pst    *pst;
  SuId   suId;
 #endif