X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_mblk.x;h=85ab72204bb991b0468c6a42580740cfc044fb0e;hb=b580426053b24d64971d6f94571c4ea2c5a09f53;hp=ec460cf462a5a8b426de85ebf7470f52810c74f2;hpb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;p=o-du%2Fl2.git diff --git a/src/cm/cm_mblk.x b/src/cm/cm_mblk.x index ec460cf46..85ab72204 100755 --- a/src/cm/cm_mblk.x +++ b/src/cm/cm_mblk.x @@ -33,7 +33,7 @@ #define __CMMBLKX__ #ifdef __cplusplus -EXTERN "C" { +extern "C" { #endif /************************************************ @@ -44,7 +44,7 @@ typedef struct cmMemCb { Size maxSize; /* Size of memory chunk */ Mem sMem; /* Static memory region and pool */ - U32 memAllocated; /* amount of memory already allocated */ + uint32_t memAllocated; /* amount of memory already allocated */ PTR initPtr; /* Initial pointer */ PTR runPtr; /* Start of avaliable memory chunk */ } CmMemCb; @@ -70,7 +70,7 @@ typedef struct cmMemListCp { CmMemList *first; /* first entry in list */ CmMemList *last; /* last entry in list */ - U32 count; /* number of entries */ + uint32_t count; /* number of entries */ CmMemCb memCb; /* Memory Control Block */ }CmMemListCp; @@ -80,7 +80,7 @@ typedef struct cmMemListCp typedef struct cmMemStatus { Mem sMem; /* Static Memory region,pool */ - U32 memBlkCnt; /* Memory Blocks Count */ + uint32_t memBlkCnt; /* Memory Blocks Count */ Size maxBlkSize; /* Size of memory Block */ Size memAllocated; /* Memory allocated off chunk */ } CmMemStatus; @@ -91,44 +91,44 @@ typedef struct cmMemStatus ***********************************************/ #ifdef TFU_ALLOC_EVENT_NO_INIT -EXTERN S16 cmAllocEvntNoInit ARGS(( + S16 cmAllocEvntNoInit ARGS(( Size evntSize, Size maxBlkSize, Mem *sMem, Ptr *ptr)); #endif #ifdef TFU_ALLOC_EVENT_NO_INIT -EXTERN S16 cmGetMemNoInit ARGS(( + S16 cmGetMemNoInit ARGS(( Ptr memPtr, Size size, Ptr *allocPtr)); #endif -EXTERN S16 cmAllocEvnt ARGS(( + S16 cmAllocEvnt ARGS(( Size evntSize, Size maxBlkSize, Mem *sMem, Ptr *ptr)); -EXTERN Void cmInitMemCp ARGS(( + Void cmInitMemCp ARGS(( CmMemListCp *memCp, Size maxBlkSize, Mem *sMem )); #ifdef TFU_ALLOC_EVENT_NO_INIT -EXTERN S16 cmGetMemNoInit ARGS(( + S16 cmGetMemNoInit ARGS(( Ptr memPtr, Size size, Ptr *allocPtr)); #endif -EXTERN S16 cmGetMem ARGS(( + S16 cmGetMem ARGS(( Ptr memPtr, Size size, Ptr *allocPtr)); -EXTERN Void cmFreeMem ARGS(( + Void cmFreeMem ARGS(( Ptr memPtr)); -EXTERN Void cmGetMemStatus ARGS(( + Void cmGetMemStatus ARGS(( Ptr memPtr, CmMemStatus *status));