Memory handling fixes
[o-du/l2.git] / src / cm / l2_tenb_stats.x
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 *******************************************************************************/
18
19 /**********************************************************************
20  
21     Name:  
22  
23     Type:  
24  
25     Desc:  
26  
27     File:  l2_tenb_stats.x 
28  
29 **********************************************************************/
30  
31 /** @file l2_tenb_stats.x
32 */
33
34 #ifdef TENB_STATS
35 #ifndef __TENBSTATSL2X__
36 #define __TENBSTATSL2X__
37
38 #include "cm_tenb_stats.x"
39 #include "l2_tenb_stats.h"
40  
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
44
45 typedef TSInfL2CellStats TSL2CellStatsCb;
46
47 typedef struct tSL2UeStatsCb
48 {
49    CmLList         lnk;
50    uint32_t             inUse;
51
52    TSInfL2UeStats  stats;
53 }TSL2UeStatsCb;
54
55 Void TSL2AllocStatsMem ARGS((
56   Inst inst
57 ));
58 TSL2UeStatsCb* TSL2AllocUeStatsBlk ARGS((
59  uint16_t   rnti
60 ));
61 Void TSL2DeallocUeStatsBlk ARGS((
62  uint16_t         rnti,
63  TSL2UeStatsCb   *statsCb
64 ));
65 TSL2CellStatsCb* TSL2AllocCellStatsBlk ARGS((
66  uint32_t cellId
67 ));
68 Void TSL2DeallocCellStatsBlk ARGS((
69  uint32_t cellId
70 ));
71 Void TSL2SendStatsToApp ARGS((
72  Pst    *pst,
73  SuId   suId
74 ));
75
76 #ifdef __cplusplus
77 }
78 #endif /* __cplusplus */
79 #endif /* __TENBSTATSL2X__ */
80 #endif /* TENB_STATS */
81
82 /**********************************************************************
83          End of file
84 **********************************************************************/