Moving all common header file into common_def.h file
[o-du/l2.git] / src / cm / cm_gen.c
index a39e3ec..709bb30 100644 (file)
@@ -73,6 +73,7 @@
 /* functions in other modules */
 
 /* public variable declarations */
+U16 gTransId = 0;
 
 /* private variable declarations */
 
@@ -3553,6 +3554,22 @@ Buffer *mBuf;           /* message buffer */
 } /* end of cmUnpkIntf */
 #endif /* TDS_ROLL_UPGRADE_SUPPORT */
 
+/*
+*
+*       Fun:   getTransId
+*
+*       Desc:  This function return the transaction ID used for interface transactions 
+*
+*       Ret: gTransId
+*
+*       File:  cm_gen.c
+*
+*/
+U16 getTransId()
+{
+   gTransId = (gTransId%65535) + 1;
+   return gTransId; 
+}
 /**********************************************************************
          End of file
 **********************************************************************/