Change RMR version to 4.0.5, start listener in background mode at container startup
[ric-app/mc.git] / mc-core / mc / local / sgnb_release_confirm_from_menb.h
1 #ifndef _SGNB_RELEASE_CONFIRM_FROM_MENB_H__INCLUDED_
2 #define _SGNB_RELEASE_CONFIRM_FROM_MENB_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 _sgnb_release_confirm_from_menb {
30         gs_uint64_t timestamp_ms;
31         gs_sp_t gnb_id;
32         gs_int64_t id_MeNB_UE_X2AP_ID;
33         gs_int64_t id_SgNB_UE_X2AP_ID;
34         gs_uint32_t id_MeNB_UE_X2AP_ID_Extension;
35 };
36
37 static inline void init__sgnb_release_confirm_from_menb(struct _sgnb_release_confirm_from_menb *m){
38 }
39
40 static inline gs_retval_t get_sgnb_release_confirm_from_menb__timestamp_ms(struct packet *p, gs_uint64_t *t){
41         *t = ((struct _sgnb_release_confirm_from_menb *)(p->record.packed.values))->timestamp_ms;
42         return 0;
43 }
44
45 static inline gs_retval_t get_sgnb_release_confirm_from_menb__gnb_id(struct packet *p, struct gs_string *t){
46         t->owner=0;
47         t->data = ((struct _sgnb_release_confirm_from_menb *)(p->record.packed.values))->gnb_id;
48         if( t->data == NULL){
49                 t->length=0;
50                 return 0;
51         }
52         t->length = strlen(t->data);
53 }
54
55 static inline gs_retval_t get_sgnb_release_confirm_from_menb__id_MeNB_UE_X2AP_ID(struct packet *p, gs_int64_t *t){
56         *t = ((struct _sgnb_release_confirm_from_menb *)(p->record.packed.values))->id_MeNB_UE_X2AP_ID;
57         return 0;
58 }
59
60 static inline gs_retval_t get_sgnb_release_confirm_from_menb__id_SgNB_UE_X2AP_ID(struct packet *p, gs_int64_t *t){
61         *t = ((struct _sgnb_release_confirm_from_menb *)(p->record.packed.values))->id_SgNB_UE_X2AP_ID;
62         return 0;
63 }
64
65 static inline gs_retval_t get_sgnb_release_confirm_from_menb__id_MeNB_UE_X2AP_ID_Extension(struct packet *p, gs_uint32_t *t){
66         *t = ((struct _sgnb_release_confirm_from_menb *)(p->record.packed.values))->id_MeNB_UE_X2AP_ID_Extension;
67         return 0;
68 }
69
70 #endif