Moving in e2sim originally from it/test/simulators
[sim/e2-interface.git] / e2sim / ASN1c / E2AP-PDU.c
1 /*****************************************************************************
2 #                                                                            *
3 # Copyright 2019 AT&T Intellectual Property                                  *
4 #                                                                            *
5 # Licensed under the Apache License, Version 2.0 (the "License");            *
6 # you may not use this file except in compliance with the License.           *
7 # You may obtain a copy of the License at                                    *
8 #                                                                            *
9 #      http://www.apache.org/licenses/LICENSE-2.0                            *
10 #                                                                            *
11 # Unless required by applicable law or agreed to in writing, software        *
12 # distributed under the License is distributed on an "AS IS" BASIS,          *
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *
14 # See the License for the specific language governing permissions and        *
15 # limitations under the License.                                             *
16 #                                                                            *
17 ******************************************************************************/
18
19 /*
20  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
21  * From ASN.1 module "E2AP-PDU-Descriptions"
22  *      found in "../../asnFiles/e2ap-v031.asn"
23  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
24  */
25
26 #include "E2AP-PDU.h"
27
28 #include "InitiatingMessage.h"
29 #include "SuccessfulOutcome.h"
30 #include "UnsuccessfulOutcome.h"
31 static asn_per_constraints_t asn_PER_type_E2AP_PDU_constr_1 CC_NOTUSED = {
32         { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  2 }    /* (0..2,...) */,
33         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
34         0, 0    /* No PER value map */
35 };
36 static asn_TYPE_member_t asn_MBR_E2AP_PDU_1[] = {
37         { ATF_POINTER, 0, offsetof(struct E2AP_PDU, choice.initiatingMessage),
38                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
39                 -1,     /* IMPLICIT tag at current level */
40                 &asn_DEF_InitiatingMessage,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "initiatingMessage"
45                 },
46         { ATF_POINTER, 0, offsetof(struct E2AP_PDU, choice.successfulOutcome),
47                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
48                 -1,     /* IMPLICIT tag at current level */
49                 &asn_DEF_SuccessfulOutcome,
50                 0,
51                 { 0, 0, 0 },
52                 0, 0, /* No default value */
53                 "successfulOutcome"
54                 },
55         { ATF_POINTER, 0, offsetof(struct E2AP_PDU, choice.unsuccessfulOutcome),
56                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
57                 -1,     /* IMPLICIT tag at current level */
58                 &asn_DEF_UnsuccessfulOutcome,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 "unsuccessfulOutcome"
63                 },
64 };
65 static const asn_TYPE_tag2member_t asn_MAP_E2AP_PDU_tag2el_1[] = {
66     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* initiatingMessage */
67     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* successfulOutcome */
68     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* unsuccessfulOutcome */
69 };
70 static asn_CHOICE_specifics_t asn_SPC_E2AP_PDU_specs_1 = {
71         sizeof(struct E2AP_PDU),
72         offsetof(struct E2AP_PDU, _asn_ctx),
73         offsetof(struct E2AP_PDU, present),
74         sizeof(((struct E2AP_PDU *)0)->present),
75         asn_MAP_E2AP_PDU_tag2el_1,
76         3,      /* Count of tags in the map */
77         0, 0,
78         3       /* Extensions start */
79 };
80 asn_TYPE_descriptor_t asn_DEF_E2AP_PDU = {
81         "E2AP-PDU",
82         "E2AP-PDU",
83         &asn_OP_CHOICE,
84         0,      /* No effective tags (pointer) */
85         0,      /* No effective tags (count) */
86         0,      /* No tags (pointer) */
87         0,      /* No tags (count) */
88         { 0, &asn_PER_type_E2AP_PDU_constr_1, CHOICE_constraint },
89         asn_MBR_E2AP_PDU_1,
90         3,      /* Elements count */
91         &asn_SPC_E2AP_PDU_specs_1       /* Additional specs */
92 };
93