Added debugging and fixes for incorrect messages
[ric-app/admin.git] / asn1c_defs / all-defs / CNTypeRestrictionsItem.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-IEs"
4  *      found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
6  */
7
8 #include "CNTypeRestrictionsItem.h"
9
10 #include "ProtocolExtensionContainer.h"
11 /*
12  * This type is implemented using NativeEnumerated,
13  * so here we adjust the DEF accordingly.
14  */
15 static asn_per_constraints_t asn_PER_type_cn_type_constr_3 CC_NOTUSED = {
16         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
17         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
18         0, 0    /* No PER value map */
19 };
20 static const asn_INTEGER_enum_map_t asn_MAP_cn_type_value2enum_3[] = {
21         { 0,    16,     "fiveGC-forbidden" }
22         /* This list is extensible */
23 };
24 static const unsigned int asn_MAP_cn_type_enum2value_3[] = {
25         0       /* fiveGC-forbidden(0) */
26         /* This list is extensible */
27 };
28 static const asn_INTEGER_specifics_t asn_SPC_cn_type_specs_3 = {
29         asn_MAP_cn_type_value2enum_3,   /* "tag" => N; sorted by tag */
30         asn_MAP_cn_type_enum2value_3,   /* N => "tag"; sorted by N */
31         1,      /* Number of elements in the maps */
32         2,      /* Extensions before this member */
33         1,      /* Strict enumeration */
34         0,      /* Native long size */
35         0
36 };
37 static const ber_tlv_tag_t asn_DEF_cn_type_tags_3[] = {
38         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
40 };
41 static /* Use -fall-defs-global to expose */
42 asn_TYPE_descriptor_t asn_DEF_cn_type_3 = {
43         "cn-type",
44         "cn-type",
45         &asn_OP_NativeEnumerated,
46         asn_DEF_cn_type_tags_3,
47         sizeof(asn_DEF_cn_type_tags_3)
48                 /sizeof(asn_DEF_cn_type_tags_3[0]) - 1, /* 1 */
49         asn_DEF_cn_type_tags_3, /* Same as above */
50         sizeof(asn_DEF_cn_type_tags_3)
51                 /sizeof(asn_DEF_cn_type_tags_3[0]), /* 2 */
52         { 0, &asn_PER_type_cn_type_constr_3, NativeEnumerated_constraint },
53         0, 0,   /* Defined elsewhere */
54         &asn_SPC_cn_type_specs_3        /* Additional specs */
55 };
56
57 asn_TYPE_member_t asn_MBR_CNTypeRestrictionsItem_1[] = {
58         { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, plmn_Id),
59                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
60                 -1,     /* IMPLICIT tag at current level */
61                 &asn_DEF_PLMN_Identity,
62                 0,
63                 { 0, 0, 0 },
64                 0, 0, /* No default value */
65                 "plmn-Id"
66                 },
67         { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, cn_type),
68                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
69                 -1,     /* IMPLICIT tag at current level */
70                 &asn_DEF_cn_type_3,
71                 0,
72                 { 0, 0, 0 },
73                 0, 0, /* No default value */
74                 "cn-type"
75                 },
76         { ATF_POINTER, 1, offsetof(struct CNTypeRestrictionsItem, iE_Extensions),
77                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
78                 -1,     /* IMPLICIT tag at current level */
79                 &asn_DEF_ProtocolExtensionContainer_8231P116,
80                 0,
81                 { 0, 0, 0 },
82                 0, 0, /* No default value */
83                 "iE-Extensions"
84                 },
85 };
86 static const int asn_MAP_CNTypeRestrictionsItem_oms_1[] = { 2 };
87 static const ber_tlv_tag_t asn_DEF_CNTypeRestrictionsItem_tags_1[] = {
88         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
89 };
90 static const asn_TYPE_tag2member_t asn_MAP_CNTypeRestrictionsItem_tag2el_1[] = {
91     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Id */
92     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-type */
93     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
94 };
95 asn_SEQUENCE_specifics_t asn_SPC_CNTypeRestrictionsItem_specs_1 = {
96         sizeof(struct CNTypeRestrictionsItem),
97         offsetof(struct CNTypeRestrictionsItem, _asn_ctx),
98         asn_MAP_CNTypeRestrictionsItem_tag2el_1,
99         3,      /* Count of tags in the map */
100         asn_MAP_CNTypeRestrictionsItem_oms_1,   /* Optional members */
101         1, 0,   /* Root/Additions */
102         3,      /* First extension addition */
103 };
104 asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictionsItem = {
105         "CNTypeRestrictionsItem",
106         "CNTypeRestrictionsItem",
107         &asn_OP_SEQUENCE,
108         asn_DEF_CNTypeRestrictionsItem_tags_1,
109         sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
110                 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
111         asn_DEF_CNTypeRestrictionsItem_tags_1,  /* Same as above */
112         sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
113                 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
114         { 0, 0, SEQUENCE_constraint },
115         asn_MBR_CNTypeRestrictionsItem_1,
116         3,      /* Elements count */
117         &asn_SPC_CNTypeRestrictionsItem_specs_1 /* Additional specs */
118 };
119