blob: 477509cc9dfa6c1ba99ea1cf3f2a5448dbfee4d3 [file] [log] [blame]
Ron Shacham3ebf9322020-07-20 10:44:37 -04001
2#ifndef ENCODE_E2APV1_HPP
3#define ENCODE_E2APV1_HPP
4/*
5#include <stdio.h>
6#include <unistd.h>
7#include <assert.h>
8*/
9
10//#include <stdio>
11//#include <unistd.h>
12//#include <assert.h>
13
14//#include "e2sim_sctp.hpp"
15//#include "e2ap_message_handler.hpp"
16#include "encode_kpm.hpp"
17
18
19extern "C" {
20 //#include "e2sim_defs.h"
21#include "E2AP-PDU.h"
22
23
24}
25
26long get_function_id_from_subscription(E2AP_PDU_t *e2ap_pdu);
27
28void buildSubsReq(E2AP_PDU_t *pdu);
29
30void generate_e2apv1_setup_request(E2AP_PDU_t *setup_req_pdu);
31
32void generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *setup_req_pdu, long ranFuncId, uint8_t* ranFuncDesc, int ranFuncLength);
33
34void generate_e2apv1_setup_response(E2AP_PDU_t *setup_resp_pdu);
35
36void generate_e2apv1_subscription_request(E2AP_PDU_t *sub_req_pdu);
37
38void generate_e2apv1_subscription_response(E2AP_PDU_t *sub_resp_pdu, E2AP_PDU_t *sub_req_pdu);
39
40void generate_e2apv1_indication_request(E2AP_PDU_t *ind_req_pdu);
41
42void generate_e2apv1_subscription_response_success(E2AP_PDU *e2ap_pdu, long reqActionIdsAccepted[], long reqActionIdsRejected[], int accept_size, int reject_size, long reqRequestorId, long reqInstanceId);
43
44void generate_e2apv1_indication_request_parameterized(E2AP_PDU *e2ap_pdu, long requestorId, long instanceId, long ranFunctionId, long actionId, long seqNum, uint8_t *ind_header_buf, int header_length, uint8_t *ind_message_buf, int message_length);
45
46#endif