Bump up mc-core image release tag
[ric-app/mc.git] / mc-core / mc / local / lte_rb_thpt.h
1 #ifndef _LTE_RB_THPT_H__INCLUDED_
2 #define _LTE_RB_THPT_H__INCLUDED_
3
4 /*
5 ==============================================================================
6
7         Copyright (c) 2018-2019 AT&T Intellectual Property.
8
9    Licensed under the Apache License, Version 2.0 (the "License");
10    you may not use this file except in compliance with the License.
11    You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15    Unless required by applicable law or agreed to in writing, software
16    distributed under the License is distributed on an "AS IS" BASIS,
17    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18    See the License for the specific language governing permissions and
19    limitations under the License.
20 =============================================================================
21 */
22
23
24 #include "packet.h"
25
26
27 #include "/usr/local/include/protobuf-c/protobuf-c.h"
28
29 struct _lte_rb_thpt {
30         gs_uint64_t timestamp_ms;
31         gs_uint32_t eci;
32         gs_uint32_t plmn;
33         gs_uint64_t eutran_trace_id;
34         gs_uint32_t crnti;
35         gs_int64_t imei;
36         gs_int64_t imsi;
37         gs_int64_t dataCollectionDuration;
38         gs_int64_t numOfPdcpPduRcvdForTx;
39         gs_int64_t numOfPdcpPduDiscarded;
40         gs_int64_t drb_Id;
41 };
42
43 static inline void init__lte_rb_thpt(struct _lte_rb_thpt *m){
44 }
45
46 static inline gs_retval_t get_lte_rb_thpt__timestamp_ms(struct packet *p, gs_uint64_t *t){
47         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->timestamp_ms;
48         return 0;
49 }
50
51 static inline gs_retval_t get_lte_rb_thpt__eci(struct packet *p, gs_uint32_t *t){
52         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->eci;
53         return 0;
54 }
55
56 static inline gs_retval_t get_lte_rb_thpt__plmn(struct packet *p, gs_uint32_t *t){
57         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->plmn;
58         return 0;
59 }
60
61 static inline gs_retval_t get_lte_rb_thpt__eutran_trace_id(struct packet *p, gs_uint64_t *t){
62         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->eutran_trace_id;
63         return 0;
64 }
65
66 static inline gs_retval_t get_lte_rb_thpt__crnti(struct packet *p, gs_uint32_t *t){
67         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->crnti;
68         return 0;
69 }
70
71 static inline gs_retval_t get_lte_rb_thpt__imei(struct packet *p, gs_int64_t *t){
72         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->imei;
73         return 0;
74 }
75
76 static inline gs_retval_t get_lte_rb_thpt__imsi(struct packet *p, gs_int64_t *t){
77         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->imsi;
78         return 0;
79 }
80
81 static inline gs_retval_t get_lte_rb_thpt__dataCollectionDuration(struct packet *p, gs_int64_t *t){
82         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->dataCollectionDuration;
83         return 0;
84 }
85
86 static inline gs_retval_t get_lte_rb_thpt__numOfPdcpPduRcvdForTx(struct packet *p, gs_int64_t *t){
87         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->numOfPdcpPduRcvdForTx;
88         return 0;
89 }
90
91 static inline gs_retval_t get_lte_rb_thpt__numOfPdcpPduDiscarded(struct packet *p, gs_int64_t *t){
92         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->numOfPdcpPduDiscarded;
93         return 0;
94 }
95
96 static inline gs_retval_t get_lte_rb_thpt__drb_Id(struct packet *p, gs_int64_t *t){
97         *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->drb_Id;
98         return 0;
99 }
100
101 #endif