Modify licenses
[scp/ocu/5gnr.git] / Include / cuupUeIdTransf.h
1 /******************************************************************************
2 *
3 *   Copyright (c) 2020 ICT/CAS.
4 *
5 *   Licensed under the O-RAN Software License, Version 1.0 (the "Software 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 *       https://www.o-ran.org/software
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 #ifndef CUUP_UE_INFO_H
20 #define CUUP_UE_INFO_H
21
22 #include "vos_types.h"
23 #include "vos_lib.h"
24
25 #define FALSE                                                   0
26 #define TRUE                                                    1
27 #define MAX_UE_NUM                                              42
28
29 typedef struct cuupUeIdxInfo
30 {
31         UINT8  isUsed;          /* TRUE:used, FALSE: not used */
32         UINT16 ueIdx;
33         UINT64 ueE1apId;
34 }CuupUeIdxInfo_t;
35
36 typedef struct cuupUeIdxTable
37 {
38         CuupUeIdxInfo_t ueIdxInfo[MAX_UE_NUM];
39 }CuupUeIdxTable_t;
40
41 extern INT32 cuupAddUeE1apid(UINT64 ueE1apId, UINT16 *ueIdx, CuupUeIdxTable_t *pTable);
42 extern INT32 cuupDelUeIdx(UINT16 ueIdx, CuupUeIdxTable_t *pTable);
43 extern INT32 cuupGetUeIdx(UINT64 ueE1apId, UINT16 *ueIdx, CuupUeIdxTable_t *pTable);
44
45
46 #endif /* CUUP_UE_INFO_H */