1 /*****************************************************************************
3 # Copyright 2019 AT&T Intellectual Property *
4 # Copyright 2019 Nokia *
6 # Licensed under the Apache License, Version 2.0 (the "License"); *
7 # you may not use this file except in compliance with the License. *
8 # You may obtain a copy of the License at *
10 # http://www.apache.org/licenses/LICENSE-2.0 *
12 # Unless required by applicable law or agreed to in writing, software *
13 # distributed under the License is distributed on an "AS IS" BASIS, *
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15 # See the License for the specific language governing permissions and *
16 # limitations under the License. *
18 ******************************************************************************/
27 #include "e2ap_config.hpp"
29 typedef struct c__dummy00 x2ap_pdu_t;
31 /*-----------------------------------------------------------------------
33 -------------------------------------------------------------------------
36 x2ap_pdu_t* new_x2ap_pdu(void);
38 void x2ap_asn_print(x2ap_pdu_t* pdu, char* buf, size_t buf_size);
40 int x2ap_asn_per_encode(x2ap_pdu_t* pdu, unsigned char* buf, size_t buf_size,
41 char* err_buf, size_t err_buf_size);
43 int x2ap_asn_per_decode(x2ap_pdu_t* pdu, unsigned char const* buf, size_t buf_size,
44 char* err_buf, size_t err_buf_size);
46 int x2ap_get_index(x2ap_pdu_t* pdu);
48 int x2ap_get_procedureCode(x2ap_pdu_t* pdu);
50 /*-----------------------------------------------------------------------
52 -------------------------------------------------------------------------
55 bool x2ap_init_X2SetupRequest(x2ap_pdu_t* pdu);
57 bool x2ap_create_X2SetupRequest(x2ap_pdu_t* pdu, eNB_config &cfg);
59 bool x2ap_create_X2SetupResponse(x2ap_pdu_t* pdu, eNB_config &cfg);
61 bool x2ap_create_X2SetupFailure(x2ap_pdu_t* pdu);
64 bool x2ap_create_ENDCX2SetupRequest(x2ap_pdu_t* pdu, eNB_config &cfg);
66 /*-----------------------------------------------------------------------
68 -------------------------------------------------------------------------
70 void test_X2Setup_codec(void);