Merge "CI: Add silent cmake SonarCloud scan"
[o-du/l2.git] / src / 5gnrmac / rg_ptmi.c
index a7fa99a..397f2fb 100755 (executable)
@@ -54,18 +54,16 @@ extern "C" {
 
 /* portable functions at LRG interface */
 #ifdef PTRGMILRG
-EXTERN S16 PtMiLrgCfgCfm ARGS((Pst *pst, RgMngmt *cfm));
-EXTERN S16 PtMiLrgSchCfgCfm ARGS((Pst *pst, RgMngmt *cfm));
-EXTERN S16 PtMiLrgStsCfm ARGS((Pst *pst, RgMngmt *cfm));
-EXTERN S16 PtMiLrgStaCfm ARGS((Pst *pst, RgMngmt *cfm));
-EXTERN S16 PtMiLrgStaInd ARGS((Pst *pst, RgMngmt *usta));
-EXTERN S16 PtMiLrgSchStaInd ARGS((Pst *pst, RgMngmt *usta));
-EXTERN S16 PtMiLrgCntrlCfm ARGS((Pst *pst, RgMngmt *cfm));
-EXTERN S16 PtMiLrgSchCntrlCfm ARGS((Pst *pst, RgMngmt *cfm));
-EXTERN S16 PtMiLrgTrcInd ARGS((Pst *pst, RgMngmt *trc,Buffer *mBuf));
+S16 PtMiLrgCfgCfm ARGS((Pst *pst, RgMngmt *cfm));
+S16 PtMiLrgSchCfgCfm ARGS((Pst *pst, RgMngmt *cfm));
+S16 PtMiLrgStsCfm ARGS((Pst *pst, RgMngmt *cfm));
+S16 PtMiLrgStaInd ARGS((Pst *pst, RgMngmt *usta));
+S16 PtMiLrgSchStaInd ARGS((Pst *pst, RgMngmt *usta));
+S16 PtMiLrgCntrlCfm ARGS((Pst *pst, RgMngmt *cfm));
+S16 PtMiLrgTrcInd ARGS((Pst *pst, RgMngmt *trc,Buffer *mBuf));
 #ifdef LTE_L2_MEAS
-EXTERN S16 PtMiLrgSchL2MeasCfm ARGS((Pst *pst, LrgSchMeasCfmInfo *cfm));
-EXTERN S16 PtMiLrgSchL2MeasStopCfm ARGS((Pst *pst,LrgSchMeasCfmInfo *cfm ));
+S16 PtMiLrgSchL2MeasCfm ARGS((Pst *pst, LrgSchMeasCfmInfo *cfm));
+S16 PtMiLrgSchL2MeasStopCfm ARGS((Pst *pst,LrgSchMeasCfmInfo *cfm ));
 #endif
 #endif
 
@@ -89,7 +87,7 @@ EXTERN S16 PtMiLrgSchL2MeasStopCfm ARGS((Pst *pst,LrgSchMeasCfmInfo *cfm ));
  *  In a similar fashion, the matrices for Status, Statistics and
  *  Control confirms and, Status and trace indications are defined.
  **/
-PRIVATE CONSTANT LrgCfgCfm RgMiLrgCfgCfmMt[RG_MAX_LRG_USR] =
+static const LrgCfgCfm RgMiLrgCfgCfmMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgCfgCfm,                  /* 0 - loosely coupled */
@@ -104,7 +102,7 @@ PRIVATE CONSTANT LrgCfgCfm RgMiLrgCfgCfmMt[RG_MAX_LRG_USR] =
 };
 
 /** @brief Scheduler Config Confirm primitive Matrix */
-PRIVATE CONSTANT LrgSchCfgCfm RgMiLrgSchCfgCfmMt[RG_MAX_LRG_USR] =
+static const LrgSchCfgCfm RgMiLrgSchCfgCfmMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgSchCfgCfm,                  /* 0 - loosely coupled */
@@ -119,7 +117,7 @@ PRIVATE CONSTANT LrgSchCfgCfm RgMiLrgSchCfgCfmMt[RG_MAX_LRG_USR] =
 };
 
 /** @brief Statistics Confirm primitive Matrix */
-PRIVATE CONSTANT LrgStsCfm RgMiLrgStsCfmMt[RG_MAX_LRG_USR] =
+static const LrgStsCfm RgMiLrgStsCfmMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgStsCfm,                  /* 0 - loosely coupled */
@@ -133,24 +131,8 @@ PRIVATE CONSTANT LrgStsCfm RgMiLrgStsCfmMt[RG_MAX_LRG_USR] =
 #endif
 };
 
-/** @brief Status Confirm primitive Matrix */
-PRIVATE CONSTANT LrgStaCfm RgMiLrgStaCfmMt[RG_MAX_LRG_USR] =
-{
-#ifdef LCRGMILRG
-   cmPkLrgStaCfm,                  /* 0 - loosely coupled */
-#else
-   PtMiLrgStaCfm,                  /* 0 - loosely coupled */
-#endif
-#ifdef SM 
-   SmMiLrgStaCfm,                  /* 1 - Tightly coupled SM */
-#else
-   PtMiLrgStaCfm,                  /* 1 - Tightly coupled SM  */
-#endif
-};
-
-
 /** @brief Status Indication primitive Matrix */
-PRIVATE CONSTANT LrgStaInd RgMiLrgStaIndMt[RG_MAX_LRG_USR] =
+static const LrgStaInd RgMiLrgStaIndMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgStaInd,                  /* 0 - loosely coupled */
@@ -165,7 +147,7 @@ PRIVATE CONSTANT LrgStaInd RgMiLrgStaIndMt[RG_MAX_LRG_USR] =
 };
 
 /** @brief Scheduler  Status Indication primitive Matrix */
-PRIVATE CONSTANT LrgSchStaInd RgMiLrgSchStaIndMt[RG_MAX_LRG_USR] =
+static const LrgSchStaInd RgMiLrgSchStaIndMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgSchStaInd,                  /* 0 - loosely coupled */
@@ -179,54 +161,9 @@ PRIVATE CONSTANT LrgSchStaInd RgMiLrgSchStaIndMt[RG_MAX_LRG_USR] =
 #endif
 };
 
-
-/** @brief Control Confirm primitive Matrix */
-PRIVATE CONSTANT LrgCntrlCfm RgMiLrgCntrlCfmMt[RG_MAX_LRG_USR] =
-{
-#ifdef LCRGMILRG
-   cmPkLrgCntrlCfm,                  /* 0 - loosely coupled */
-#else
-   PtMiLrgCntrlCfm,                  /* 0 - loosely coupled */
-#endif
-#ifdef SM 
-   SmMiLrgCntrlCfm,                  /* 1 - Tightly coupled SM */
-#else
-   PtMiLrgCntrlCfm,                  /* 1 - Tightly coupled SM  */
-#endif
-};
-
-/** @brief Scheduler Control Confirm primitive Matrix */
-PRIVATE CONSTANT LrgSchCntrlCfm RgMiLrgSchCntrlCfmMt[RG_MAX_LRG_USR] =
-{
-#ifdef LCRGMILRG
-   cmPkLrgSchCntrlCfm,                  /* 0 - loosely coupled */
-#else
-   PtMiLrgSchCntrlCfm,                  /* 0 - loosely coupled */
-#endif
-#ifdef SM 
-   SmMiLrgSchCntrlCfm,                  /* 1 - Tightly coupled SM */
-#else
-   PtMiLrgSchCntrlCfm,                  /* 1 - Tightly coupled SM  */
-#endif
-};
-
-/** @brief Trace Indication primitive Matrix */
-PRIVATE CONSTANT LrgTrcInd RgMiLrgTrcIndMt[RG_MAX_LRG_USR] =
-{
-#ifdef LCRGMILRG
-   cmPkLrgTrcInd,                  /* 0 - loosely coupled */
-#else
-   PtMiLrgTrcInd,                  /* 0 - loosely coupled */
-#endif
-#ifdef SM 
-   SmMiLrgTrcInd,                  /* 1 - Tightly coupled SM */
-#else
-   PtMiLrgTrcInd,                  /* 1 - Tightly coupled SM  */
-#endif
-};
 #ifdef LTE_L2_MEAS
 /** @brief L2 Meas Cfm primitive Matrix */
-PRIVATE CONSTANT LrgSchL2MeasCfm RgMiLrgSchL2mMeasCfmMt[RG_MAX_LRG_USR] =
+static const LrgSchL2MeasCfm RgMiLrgSchL2mMeasCfmMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgSchL2MeasCfm,                /* 0 - loosely coupled */
@@ -240,7 +177,7 @@ PRIVATE CONSTANT LrgSchL2MeasCfm RgMiLrgSchL2mMeasCfmMt[RG_MAX_LRG_USR] =
 #endif
 };
 /** @brief L2 Meas Stop Cfm primitive Matrix */
-PRIVATE CONSTANT LrgSchL2MeasStopCfm RgMiLrgSchL2mMeasStopCfmMt[RG_MAX_LRG_USR] =
+static const LrgSchL2MeasStopCfm RgMiLrgSchL2mMeasStopCfmMt[RG_MAX_LRG_USR] =
 {
 #ifdef LCRGMILRG
    cmPkLrgSchL2MeasStopCfm,                /* 0 - loosely coupled */
@@ -279,17 +216,11 @@ PRIVATE CONSTANT LrgSchL2MeasStopCfm RgMiLrgSchL2mMeasStopCfmMt[RG_MAX_LRG_USR]
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 RgMiLrgCfgCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* config confirm structure  */
 )
-#else
-S16 RgMiLrgCfgCfm(pst, cfm)
-Pst      *pst;    /* post structure  */
-RgMngmt  *cfm;    /* config confirm structure  */
-#endif    
 {
    
    (*RgMiLrgCfgCfmMt[pst->selector])(pst, cfm);
@@ -315,17 +246,11 @@ RgMngmt  *cfm;    /* config confirm structure  */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 RgMiLrgSchCfgCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* config confirm structure  */
 )
-#else
-S16 RgMiLrgSchCfgCfm(pst, cfm)
-Pst      *pst;    /* post structure  */
-RgMngmt  *cfm;    /* config confirm structure  */
-#endif    
 {
    
    (*RgMiLrgSchCfgCfmMt[pst->selector])(pst, cfm);
@@ -353,17 +278,11 @@ RgMngmt  *cfm;    /* config confirm structure  */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 RgMiLrgStsCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* statistics confirm structure  */
 )
-#else
-S16 RgMiLrgStsCfm(pst, cfm)
-Pst      *pst;    /* post structure  */
-RgMngmt  *cfm;    /* statistics confirm structure  */
-#endif    
 {
    
    (*RgMiLrgStsCfmMt[pst->selector])(pst, cfm);
@@ -373,116 +292,6 @@ RgMngmt  *cfm;    /* statistics confirm structure  */
 }/*-- RgMiLrgStsCfm --*/
 
 \f
-/**
- * @brief Layer Manager Status confirm handler. 
- *
- * @details
- *
- *     Function : RgMiLrgStaCfm
- *     
- *     This function handles the status
- *     confirm invoked by MAC to Layer Manager.
- *     -# Based on the pst->selector value it invokes one of the
- *        functions cmPkLrgStaCfm() or SmMiLrgStaCfm().
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *cfm, the status confirm structure
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 RgMiLrgStaCfm
-(
-Pst      *pst,    /* post structure  */
-RgMngmt  *cfm     /* status confirm structure  */
-)
-#else
-S16 RgMiLrgStaCfm(pst, cfm)
-Pst      *pst;    /* post structure  */
-RgMngmt  *cfm;    /* status confirm structure  */
-#endif    
-{
-   
-   (*RgMiLrgStaCfmMt[pst->selector])(pst,cfm);
-
-   return ROK;
-   
-}/*-- RgMiLrgStaCfm --*/
-
-\f
-/**
- * @brief Layer Manager Control confirm handler. 
- *
- * @details
- *
- *     Function : RgMiLrgCntrlCfm
- *     
- *     This function handles the control
- *     confirm invoked by MAC to Layer Manager.
- *     -# Based on the pst->selector value it invokes one of the
- *        functions cmPkLrgCntrlCfm() or SmMiLrgCntrlCfm().
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *cfm, the control confirm structure
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 RgMiLrgCntrlCfm
-(
-Pst      *pst,    /* post structure  */
-RgMngmt  *cfm     /* control confirm structure  */
-)
-#else
-S16 RgMiLrgCntrlCfm(pst, cfm)
-Pst      *pst;    /* post structure  */
-RgMngmt  *cfm;    /* control confirm structure  */
-#endif    
-{
-   
-   (*RgMiLrgCntrlCfmMt[pst->selector])(pst,cfm);
-
-   return ROK;
-   
-}/*-- RgMiLrgCntrlCfm --*/
-
-/**
- * @brief Layer Manager scheduler Control confirm handler. 
- *
- * @details
- *
- *     Function : RgMiLrgSchCntrlCfm
- *     
- *     This function handles the control
- *     confirm invoked by scheduler to Layer Manager.
- *     -# Based on the pst->selector value it invokes one of the
- *        functions cmPkLrgSchCntrlCfm() or SmMiLrgSchCntrlCfm().
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *cfm, the control confirm structure
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 RgMiLrgSchCntrlCfm
-(
-Pst      *pst,    /* post structure  */
-RgMngmt  *cfm     /* control confirm structure  */
-)
-#else
-S16 RgMiLrgSchCntrlCfm(pst, cfm)
-Pst      *pst;    /* post structure  */
-RgMngmt  *cfm;    /* control confirm structure  */
-#endif    
-{
-   
-   (*RgMiLrgSchCntrlCfmMt[pst->selector])(pst,cfm);
-
-   return ROK;
-   
-}/*-- RgMiLrgSchCntrlCfm --*/
-
-\f
 /**
  * @brief Layer Manager Unsolicited Status Indication handler. 
  *
@@ -500,17 +309,11 @@ RgMngmt  *cfm;    /* control confirm structure  */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 RgMiLrgStaInd
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *usta    /* status indication structure  */
 )
-#else
-S16 RgMiLrgStaInd(pst, usta)
-Pst      *pst;    /* post structure  */
-RgMngmt  *usta;    /* status indication structure  */
-#endif    
 {
    
    (*RgMiLrgStaIndMt[pst->selector])(pst,usta);
@@ -536,17 +339,11 @@ RgMngmt  *usta;    /* status indication structure  */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 RgMiLrgSchStaInd
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *usta    /* status indication structure  */
 )
-#else
-S16 RgMiLrgSchStaInd(pst, usta)
-Pst      *pst;    /* post structure  */
-RgMngmt  *usta;    /* status indication structure  */
-#endif    
 {
    
    (*RgMiLrgSchStaIndMt[pst->selector])(pst,usta);
@@ -555,60 +352,14 @@ RgMngmt  *usta;    /* status indication structure  */
    
 }/*-- RgMiLrgSchStaInd --*/
 
-\f
-/**
- * @brief Layer Manager Trace Indication handler. 
- *
- * @details
- *
- *     Function : RgMiLrgTrcInd
- *     
- *     This function handles the trace
- *     Indication invoked by MAC to Layer Manager.
- *     -# Based on the pst->selector value it invokes one of the
- *        functions cmPkLrgTrcInd() or SmMiLrgTrcInd().
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *trc, the trace event
- *  @param[in]  Buffer *mBuf, the trace message
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 RgMiLrgTrcInd
-(
-Pst      *pst,    /* post structure  */
-RgMngmt  *trc,    /* Trace event  */
-Buffer   *mBuf    /* Trace message  */
-)
-#else
-S16 RgMiLrgTrcInd(pst, trc, mBuf)
-Pst      *pst;    /* post structure  */
-RgMngmt  *trc;    /* Trace event  */
-Buffer   *mBuf;   /* Trace message  */
-#endif    
-{
-   
-   (*RgMiLrgTrcIndMt[pst->selector])(pst,trc,mBuf);
-
-   return ROK;
-   
-}/*-- RgMiLrgTrcInd --*/
-
 #ifdef LTE_L2_MEAS
 
 /* TODO: Function header */
-#ifdef ANSI
 S16 RgMiLrgSchL2MeasCfm
 (
 Pst               *pst,          /* post structure  */
 LrgSchMeasCfmInfo *cfm       /* Meas Cfm Info */
 )
-#else
-S16 RgMiLrgSchL2MeasCfm(pst, cfm)
-Pst               *pst;          /* post structure  */
-LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
-#endif    
 {
    
    (*RgMiLrgSchL2mMeasCfmMt[pst->selector])(pst,cfm);
@@ -634,17 +385,11 @@ LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
  *      -# ROK
  **/
 
-#ifdef ANSI 
 S16 RgMiLrgSchL2MeasStopCfm
 (        
 Pst               *pst,          /* post structure  */
 LrgSchMeasCfmInfo *cfm       /* Meas Cfm Info */
 )        
-#else    
-S16 RgMiLrgSchL2MeasStopCfm(pst, cfm)
-Pst               *pst;          /* post structure  */
-LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
-#endif    
 {
    (*RgMiLrgSchL2mMeasStopCfmMt[pst->selector])(pst,cfm);
           
@@ -677,17 +422,11 @@ LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgCfgCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Config Confirm */
 )
-#else
-S16 PtMiLrgCfgCfm  (pst, cfm)
-Pst *pst;               /* post structure */
-RgMngmt *cfm;           /* Config Confirm */
-#endif
 {
    return ROK;
 }/* end of PtMiLrgCfgCfm */
@@ -711,17 +450,11 @@ RgMngmt *cfm;           /* Config Confirm */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgSchCfgCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Config Confirm */
 )
-#else
-S16 PtMiLrgSchCfgCfm  (pst, cfm)
-Pst *pst;               /* post structure */
-RgMngmt *cfm;           /* Config Confirm */
-#endif
 {
 
    return ROK;
@@ -748,17 +481,11 @@ RgMngmt *cfm;           /* Config Confirm */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgStsCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Statistics Confirm */
 )
-#else
-S16 PtMiLrgStsCfm  (pst, cfm)
-Pst *pst;               /* post structure */
-RgMngmt *cfm;           /* Statistics Confirm */
-#endif
 {
 
    return ROK;
@@ -766,42 +493,6 @@ RgMngmt *cfm;           /* Statistics Confirm */
 
 
 \f
-/**
- * @brief Portable Function definition for Layer Manager Status 
- *         confirm handler. 
- *
- * @details
- *
- *     Function : PtMiLrgStaCfm 
- *     
- *     This function handles the status 
- *     confirm invoked by MAC to Layer Manager.
- *     Users of MAC who intend to provide a glue logic 
- *     for portability of status Confirm are expected 
- *     to fill in the code in this function definition.
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *cfm, the status confirm structure
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 PtMiLrgStaCfm
-(
-Pst *pst,               /* post structure */
-RgMngmt *cfm            /* Status Confirm */
-)
-#else
-S16 PtMiLrgStaCfm  (pst, cfm)
-Pst *pst;               /* post structure */
-RgMngmt *cfm;           /* Status Confirm */
-#endif
-{
-   return ROK;
-}/* end of PtMiLrgStaCfm */
-
-
-\f
 /**
  * @brief Portable Function definition for Layer Manager Status 
  *        Indication handler. 
@@ -821,17 +512,11 @@ RgMngmt *cfm;           /* Status Confirm */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgStaInd
 (
 Pst *pst,               /* post structure */
 RgMngmt *usta           /* Status Indication */
 )
-#else
-S16 PtMiLrgStaInd  (pst, usta)
-Pst *pst;               /* post structure */
-RgMngmt *usta;          /* Status indication */
-#endif
 {
    return ROK;
 }/* end of PtMiLrgStaInd */
@@ -855,17 +540,11 @@ RgMngmt *usta;          /* Status indication */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgSchStaInd
 (
 Pst *pst,               /* post structure */
 RgMngmt *usta           /* Status Indication */
 )
-#else
-S16 PtMiLrgSchStaInd  (pst, usta)
-Pst *pst;               /* post structure */
-RgMngmt *usta;          /* Status indication */
-#endif
 {
    return ROK;
 }/* end of PtMiLrgSchStaInd */
@@ -890,91 +569,15 @@ RgMngmt *usta;          /* Status indication */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgCntrlCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Control Confirm */
 )
-#else
-S16 PtMiLrgCntrlCfm (pst, cfm)
-Pst *pst;               /* post structure */
-RgMngmt *cfm;           /* Control Confirm */
-#endif
 {
    return ROK;
 }/* end of PtMiLrgCntrlCfm */
 
-/**
- * @brief Portable Function definition for Layer Manager Control 
- *         confirm handler. 
- *
- * @details
- *
- *     Function : PtMiLrgSchCntrlCfm 
- *     
- *     This function handles the control 
- *     confirm invoked by scheduler to Layer Manager.
- *     Users of MAC who intend to provide a glue logic 
- *     for portability of control Confirm are expected 
- *     to fill in the code in this function definition.
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *cfm, the control confirm structure
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 PtMiLrgSchCntrlCfm
-(
-Pst *pst,               /* post structure */
-RgMngmt *cfm            /* Control Confirm */
-)
-#else
-S16 PtMiLrgSchCntrlCfm (pst, cfm)
-Pst *pst;               /* post structure */
-RgMngmt *cfm;           /* Control Confirm */
-#endif
-{
-   return ROK;
-}/* end of PtMiLrgSchCntrlCfm */
-
-\f
-/**
- * @brief Portable Function definition for Layer Manager Trace 
- *        Indication handler. 
- *
- * @details
- *
- *     Function : PtMiLrgTrcInd 
- *     
- *     This function handles the trace 
- *     indication invoked by MAC to Layer Manager.
- *     Users of MAC who intend to provide a glue logic 
- *     for portability of trace indication are expected 
- *     to fill in the code in this function definition.
- *     
- *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  RgMngmt *cfm, the trace indication structure
- *  @return  S16
- *      -# ROK
- **/
-#ifdef ANSI
-S16 PtMiLrgTrcInd
-(
-Pst *pst,               /* post structure */
-RgMngmt *trc,           /* Trace Event */
-Buffer *mBuf            /* Trace message */
-)
-#else
-S16 PtMiLrgTrcInd (pst, trc,mBuf)
-Pst *pst;               /* post structure */
-RgMngmt *trc;           /* Trace Event */
-Buffer *mBuf;           /* Trace message */
-#endif
-{
-   return ROK;
-}/* end of PtMiLrgTrcInd */
 #ifdef LTE_L2_MEAS
 /**
  * @brief Portable Function definition for L2 Measurement Configuration
@@ -990,17 +593,11 @@ Buffer *mBuf;           /* Trace message */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgSchL2MeasCfm
 (
 Pst *pst,               /* post structure */
 LrgSchMeasCfmInfo *cfm  /* Measurement Confirm */
 )
-#else
-S16 PtMiLrgSchL2MeasCfm(pst, cfm)
-Pst *pst;               /* post structure */
-LrgSchMeasCfmInfo *cfm; /* Measurement Confirm */
-#endif
 {
 
    return ROK;
@@ -1020,17 +617,11 @@ LrgSchMeasCfmInfo *cfm; /* Measurement Confirm */
  *  @return  S16
  *      -# ROK
  **/
-#ifdef ANSI
 S16 PtMiLrgSchL2MeasStopCfm
 (
 Pst *pst,               /* post structure */
 LrgSchMeasCfmInfo *cfm  /* Measurement Confirm */
 )
-#else
-S16 PtMiLrgSchL2MeasStopCfm(pst, cfm)
-Pst *pst;               /* post structure */
-LrgSchMeasCfmInfo *cfm; /* Measurement Confirm */
-#endif
 {
 
    return ROK;