Adding new comments for Oran in all files with licenses
[ric-plt/resource-status-manager.git] / RSM / 3rdparty / asn1codec / e2ap_engine / CNTypeRestrictionsItem.c
1 /*
2  * Copyright 2019 AT&T Intellectual Property
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19  * platform project (RICP).
20  */
21
22
23
24 /*
25  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26  * From ASN.1 module "X2AP-IEs"
27  *      found in "../../asnFiles/X2AP-IEs.asn"
28  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
29  */
30
31 #include "CNTypeRestrictionsItem.h"
32
33 #include "ProtocolExtensionContainer.h"
34 /*
35  * This type is implemented using NativeEnumerated,
36  * so here we adjust the DEF accordingly.
37  */
38 static asn_per_constraints_t asn_PER_type_cn_type_constr_3 CC_NOTUSED = {
39         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
40         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
41         0, 0    /* No PER value map */
42 };
43 static const asn_INTEGER_enum_map_t asn_MAP_cn_type_value2enum_3[] = {
44         { 0,    16,     "fiveGC-forbidden" }
45         /* This list is extensible */
46 };
47 static const unsigned int asn_MAP_cn_type_enum2value_3[] = {
48         0       /* fiveGC-forbidden(0) */
49         /* This list is extensible */
50 };
51 static const asn_INTEGER_specifics_t asn_SPC_cn_type_specs_3 = {
52         asn_MAP_cn_type_value2enum_3,   /* "tag" => N; sorted by tag */
53         asn_MAP_cn_type_enum2value_3,   /* N => "tag"; sorted by N */
54         1,      /* Number of elements in the maps */
55         2,      /* Extensions before this member */
56         1,      /* Strict enumeration */
57         0,      /* Native long size */
58         0
59 };
60 static const ber_tlv_tag_t asn_DEF_cn_type_tags_3[] = {
61         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
62         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
63 };
64 static /* Use -fall-defs-global to expose */
65 asn_TYPE_descriptor_t asn_DEF_cn_type_3 = {
66         "cn-type",
67         "cn-type",
68         &asn_OP_NativeEnumerated,
69         asn_DEF_cn_type_tags_3,
70         sizeof(asn_DEF_cn_type_tags_3)
71                 /sizeof(asn_DEF_cn_type_tags_3[0]) - 1, /* 1 */
72         asn_DEF_cn_type_tags_3, /* Same as above */
73         sizeof(asn_DEF_cn_type_tags_3)
74                 /sizeof(asn_DEF_cn_type_tags_3[0]), /* 2 */
75         { 0, &asn_PER_type_cn_type_constr_3, NativeEnumerated_constraint },
76         0, 0,   /* Defined elsewhere */
77         &asn_SPC_cn_type_specs_3        /* Additional specs */
78 };
79
80 asn_TYPE_member_t asn_MBR_CNTypeRestrictionsItem_1[] = {
81         { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, plmn_Id),
82                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
83                 -1,     /* IMPLICIT tag at current level */
84                 &asn_DEF_PLMN_Identity,
85                 0,
86                 { 0, 0, 0 },
87                 0, 0, /* No default value */
88                 "plmn-Id"
89                 },
90         { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, cn_type),
91                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
92                 -1,     /* IMPLICIT tag at current level */
93                 &asn_DEF_cn_type_3,
94                 0,
95                 { 0, 0, 0 },
96                 0, 0, /* No default value */
97                 "cn-type"
98                 },
99         { ATF_POINTER, 1, offsetof(struct CNTypeRestrictionsItem, iE_Extensions),
100                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
101                 -1,     /* IMPLICIT tag at current level */
102                 &asn_DEF_ProtocolExtensionContainer_170P116,
103                 0,
104                 { 0, 0, 0 },
105                 0, 0, /* No default value */
106                 "iE-Extensions"
107                 },
108 };
109 static const int asn_MAP_CNTypeRestrictionsItem_oms_1[] = { 2 };
110 static const ber_tlv_tag_t asn_DEF_CNTypeRestrictionsItem_tags_1[] = {
111         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
112 };
113 static const asn_TYPE_tag2member_t asn_MAP_CNTypeRestrictionsItem_tag2el_1[] = {
114     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Id */
115     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-type */
116     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
117 };
118 asn_SEQUENCE_specifics_t asn_SPC_CNTypeRestrictionsItem_specs_1 = {
119         sizeof(struct CNTypeRestrictionsItem),
120         offsetof(struct CNTypeRestrictionsItem, _asn_ctx),
121         asn_MAP_CNTypeRestrictionsItem_tag2el_1,
122         3,      /* Count of tags in the map */
123         asn_MAP_CNTypeRestrictionsItem_oms_1,   /* Optional members */
124         1, 0,   /* Root/Additions */
125         3,      /* First extension addition */
126 };
127 asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictionsItem = {
128         "CNTypeRestrictionsItem",
129         "CNTypeRestrictionsItem",
130         &asn_OP_SEQUENCE,
131         asn_DEF_CNTypeRestrictionsItem_tags_1,
132         sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
133                 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
134         asn_DEF_CNTypeRestrictionsItem_tags_1,  /* Same as above */
135         sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
136                 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
137         { 0, 0, SEQUENCE_constraint },
138         asn_MBR_CNTypeRestrictionsItem_1,
139         3,      /* Elements count */
140         &asn_SPC_CNTypeRestrictionsItem_specs_1 /* Additional specs */
141 };
142