E2AP Abstraction Changes
[ric-app/hw.git] / src / xapp-formats / e2ap / e2ap_control_helper.hpp
1 /*
2 ==================================================================================
3
4         Copyright (c) 2018-2019 AT&T Intellectual Property.
5
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
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
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.
17 ==================================================================================
18 */
19 /*
20  * ric_indication.h
21  *
22  *  Created on: Jul 11, 2019
23  *      Author: sjana, Ashwin Sridharan
24  */
25
26 #ifndef CONTROL_HELPER_H
27 #define CONTROL_HELPER_H
28
29 // control and indication helper objects are very similar and can be merged into one
30 // currently leaving them as two distnict entities till final design becomes clear
31
32 typedef struct ric_control_helper ric_control_helper;
33
34 struct ric_control_helper{
35   ric_control_helper(void):req_id(1), req_seq_no(1), func_id(0), action_id(1), control_ack(-1), cause(0), sub_cause(0), control_status(1), control_msg(0), control_msg_size(0), control_header(0), control_header_size(0), call_process_id(0), call_process_id_size(0){};
36   
37   long int req_id, req_seq_no, func_id, action_id,  control_ack, cause, sub_cause, control_status;
38   
39   unsigned char* control_msg;
40   size_t control_msg_size;
41   
42   unsigned char* control_header;
43   size_t control_header_size;
44   
45   unsigned char *call_process_id;
46   size_t call_process_id_size;
47   
48 };
49
50 #endif