x2ap_eNB_management_procedures.h 2.15 KB
Newer Older
1 2 3 4 5
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
6
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

22 23 24 25 26 27 28
/*! \file x2ap_eNB_management_procedures.h
 * \brief x2ap tasks for eNB
 * \author Konstantinos Alexandris <Konstantinos.Alexandris@eurecom.fr>, Cedric Roux <Cedric.Roux@eurecom.fr>, Navid Nikaein <Navid.Nikaein@eurecom.fr>
 * \date 2018
 * \version 1.0
 */

29 30
#ifndef X2AP_ENB_MANAGEMENT_PROCEDURES_H_
#define X2AP_ENB_MANAGEMENT_PROCEDURES_H
Lionel Gauthier's avatar
Lionel Gauthier committed
31

32
void x2ap_eNB_prepare_internal_data(void);
Lionel Gauthier's avatar
Lionel Gauthier committed
33

34
void dump_trees(void);
Lionel Gauthier's avatar
Lionel Gauthier committed
35

36
void x2ap_eNB_insert_new_instance(x2ap_eNB_instance_t *new_instance_p);
Lionel Gauthier's avatar
Lionel Gauthier committed
37

38
x2ap_eNB_instance_t *x2ap_eNB_get_instance(uint8_t mod_id);
Lionel Gauthier's avatar
Lionel Gauthier committed
39

40
uint16_t x2ap_eNB_fetch_add_global_cnx_id(void);
Lionel Gauthier's avatar
Lionel Gauthier committed
41

42
void x2ap_eNB_prepare_internal_data(void);
Lionel Gauthier's avatar
Lionel Gauthier committed
43

44 45 46 47
x2ap_eNB_data_t* x2ap_is_eNB_id_in_list(uint32_t eNB_id);

x2ap_eNB_data_t* x2ap_is_eNB_assoc_id_in_list(uint32_t sctp_assoc_id);

48 49
x2ap_eNB_data_t* x2ap_is_eNB_pci_in_list (const uint32_t pci);

50 51 52 53
struct x2ap_eNB_data_s *x2ap_get_eNB(x2ap_eNB_instance_t *instance_p,
                                     int32_t assoc_id,
                                     uint16_t cnx_id);

54
void x2ap_remove_eNB(x2ap_eNB_instance_t *instance_p,x2ap_eNB_data_t *x2ap_enb_data_p);
55
#endif /* X2AP_ENB_MANAGEMENT_PROCEDURES_H_ */