Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Type] >>> ***/ |
| 3 | |
| 4 | #include <asn_SET_OF.h> |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 5 | #include "Type1.h" |
| 6 | #include "Type2.h" |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 7 | #include <constr_SEQUENCE.h> |
| 8 | #include <constr_SET_OF.h> |
| 9 | |
Bi-Ruei, Chiu | 9b87e5b | 2016-06-06 00:23:16 +0800 | [diff] [blame] | 10 | /*** <<< FWD-DEFS [Type] >>> ***/ |
| 11 | |
| 12 | typedef struct Member { |
| 13 | Type1_t t1; |
| 14 | Type2_t t2; |
| 15 | |
| 16 | /* Context for parsing across buffer boundaries */ |
| 17 | asn_struct_ctx_t _asn_ctx; |
| 18 | } Member; |
| 19 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 20 | /*** <<< TYPE-DECLS [Type] >>> ***/ |
| 21 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 22 | typedef struct Type { |
Bi-Ruei, Chiu | 9b87e5b | 2016-06-06 00:23:16 +0800 | [diff] [blame] | 23 | A_SET_OF(Member) list; |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 24 | |
| 25 | /* Context for parsing across buffer boundaries */ |
| 26 | asn_struct_ctx_t _asn_ctx; |
| 27 | } Type_t; |
| 28 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 29 | /*** <<< FUNC-DECLS [Type] >>> ***/ |
| 30 | |
| 31 | extern asn_TYPE_descriptor_t asn_DEF_Type; |
| 32 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 33 | /*** <<< STAT-DEFS [Type] >>> ***/ |
| 34 | |
| 35 | static asn_TYPE_member_t asn_MBR_Member_2[] = { |
| 36 | { ATF_NOFLAGS, 0, offsetof(struct Member, t1), |
| 37 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 38 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 39 | .type = &asn_DEF_Type1, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 40 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 41 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 42 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 43 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 44 | .name = "t1" |
| 45 | }, |
| 46 | { ATF_NOFLAGS, 0, offsetof(struct Member, t2), |
| 47 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 48 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 49 | .type = &asn_DEF_Type2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 50 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 51 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 52 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 53 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 54 | .name = "t2" |
| 55 | }, |
| 56 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 57 | static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 58 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 59 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 60 | static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 61 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* t1 */ |
| 62 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 }, /* one-name */ |
| 63 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* two-name */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 64 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 65 | static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 66 | sizeof(struct Member), |
| 67 | offsetof(struct Member, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 68 | asn_MAP_Member_tag2el_2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 69 | 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 70 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 71 | -1, /* Start extensions */ |
| 72 | -1 /* Stop extensions */ |
| 73 | }; |
| 74 | static /* Use -fall-defs-global to expose */ |
| 75 | asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 76 | "SEQUENCE", |
| 77 | "SEQUENCE", |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 78 | SEQUENCE_free, |
| 79 | SEQUENCE_print, |
| 80 | SEQUENCE_constraint, |
| 81 | SEQUENCE_decode_ber, |
| 82 | SEQUENCE_encode_der, |
| 83 | SEQUENCE_decode_xer, |
| 84 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 85 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 86 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 87 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 88 | asn_DEF_Member_tags_2, |
| 89 | sizeof(asn_DEF_Member_tags_2) |
| 90 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 91 | asn_DEF_Member_tags_2, /* Same as above */ |
| 92 | sizeof(asn_DEF_Member_tags_2) |
| 93 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 94 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 95 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 96 | asn_MBR_Member_2, |
| 97 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 98 | &asn_SPC_Member_specs_2 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 99 | }; |
| 100 | |
| 101 | static asn_TYPE_member_t asn_MBR_Type_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 102 | { ATF_POINTER, 0, 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 103 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 104 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 105 | .type = &asn_DEF_Member_2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 106 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 107 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 108 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 109 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 110 | .name = "" |
| 111 | }, |
| 112 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 113 | static const ber_tlv_tag_t asn_DEF_Type_tags_1[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 114 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 115 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 116 | static asn_SET_OF_specifics_t asn_SPC_Type_specs_1 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 117 | sizeof(struct Type), |
| 118 | offsetof(struct Type, _asn_ctx), |
| 119 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 120 | }; |
| 121 | asn_TYPE_descriptor_t asn_DEF_Type = { |
| 122 | "Type", |
| 123 | "Type", |
| 124 | SET_OF_free, |
| 125 | SET_OF_print, |
| 126 | SET_OF_constraint, |
| 127 | SET_OF_decode_ber, |
| 128 | SET_OF_encode_der, |
| 129 | SET_OF_decode_xer, |
| 130 | SET_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 131 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 132 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 133 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 134 | asn_DEF_Type_tags_1, |
| 135 | sizeof(asn_DEF_Type_tags_1) |
| 136 | /sizeof(asn_DEF_Type_tags_1[0]), /* 1 */ |
| 137 | asn_DEF_Type_tags_1, /* Same as above */ |
| 138 | sizeof(asn_DEF_Type_tags_1) |
| 139 | /sizeof(asn_DEF_Type_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 140 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 141 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 142 | asn_MBR_Type_1, |
| 143 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 144 | &asn_SPC_Type_specs_1 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 145 | }; |
| 146 | |
| 147 | |
| 148 | /*** <<< INCLUDES [Type1] >>> ***/ |
| 149 | |
| 150 | #include <INTEGER.h> |
| 151 | #include <constr_SEQUENCE.h> |
| 152 | #include <constr_CHOICE.h> |
| 153 | |
| 154 | /*** <<< DEPS [Type1] >>> ***/ |
| 155 | |
| 156 | typedef enum one_name_PR { |
| 157 | one_name_PR_NOTHING, /* No components present */ |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 158 | one_name_PR_another_name |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 159 | } one_name_PR; |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 160 | |
| 161 | /*** <<< TYPE-DECLS [Type1] >>> ***/ |
| 162 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 163 | typedef struct Type1 { |
| 164 | struct one_name { |
| 165 | one_name_PR present; |
Lev Walkin | 0f5d74c | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 166 | union Type1__one_name_u { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 167 | struct another_name { |
| 168 | INTEGER_t a; |
| 169 | INTEGER_t b; |
| 170 | |
| 171 | /* Context for parsing across buffer boundaries */ |
| 172 | asn_struct_ctx_t _asn_ctx; |
| 173 | } another_name; |
| 174 | } choice; |
| 175 | |
| 176 | /* Context for parsing across buffer boundaries */ |
| 177 | asn_struct_ctx_t _asn_ctx; |
| 178 | } one_name; |
| 179 | |
| 180 | /* Context for parsing across buffer boundaries */ |
| 181 | asn_struct_ctx_t _asn_ctx; |
| 182 | } Type1_t; |
| 183 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 184 | /*** <<< FUNC-DECLS [Type1] >>> ***/ |
| 185 | |
| 186 | extern asn_TYPE_descriptor_t asn_DEF_Type1; |
| 187 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 188 | /*** <<< STAT-DEFS [Type1] >>> ***/ |
| 189 | |
| 190 | static asn_TYPE_member_t asn_MBR_another_name_3[] = { |
| 191 | { ATF_NOFLAGS, 0, offsetof(struct another_name, a), |
| 192 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 193 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 194 | .type = &asn_DEF_INTEGER, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 195 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 196 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 197 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 198 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 199 | .name = "a" |
| 200 | }, |
| 201 | { ATF_NOFLAGS, 0, offsetof(struct another_name, b), |
| 202 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 203 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 204 | .type = &asn_DEF_INTEGER, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 205 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 206 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 207 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 208 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 209 | .name = "b" |
| 210 | }, |
| 211 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 212 | static const ber_tlv_tag_t asn_DEF_another_name_tags_3[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 213 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 214 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 215 | static const asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_3[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 216 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* a */ |
| 217 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* b */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 218 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 219 | static asn_SEQUENCE_specifics_t asn_SPC_another_name_specs_3 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 220 | sizeof(struct another_name), |
| 221 | offsetof(struct another_name, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 222 | asn_MAP_another_name_tag2el_3, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 223 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 224 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 225 | -1, /* Start extensions */ |
| 226 | -1 /* Stop extensions */ |
| 227 | }; |
| 228 | static /* Use -fall-defs-global to expose */ |
| 229 | asn_TYPE_descriptor_t asn_DEF_another_name_3 = { |
| 230 | "another-name", |
| 231 | "another-name", |
| 232 | SEQUENCE_free, |
| 233 | SEQUENCE_print, |
| 234 | SEQUENCE_constraint, |
| 235 | SEQUENCE_decode_ber, |
| 236 | SEQUENCE_encode_der, |
| 237 | SEQUENCE_decode_xer, |
| 238 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 239 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 240 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 241 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 242 | asn_DEF_another_name_tags_3, |
| 243 | sizeof(asn_DEF_another_name_tags_3) |
| 244 | /sizeof(asn_DEF_another_name_tags_3[0]), /* 1 */ |
| 245 | asn_DEF_another_name_tags_3, /* Same as above */ |
| 246 | sizeof(asn_DEF_another_name_tags_3) |
| 247 | /sizeof(asn_DEF_another_name_tags_3[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 248 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 249 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 250 | asn_MBR_another_name_3, |
| 251 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 252 | &asn_SPC_another_name_specs_3 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 253 | }; |
| 254 | |
| 255 | static asn_TYPE_member_t asn_MBR_one_name_2[] = { |
| 256 | { ATF_NOFLAGS, 0, offsetof(struct one_name, choice.another_name), |
| 257 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 258 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 259 | .type = &asn_DEF_another_name_3, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 260 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 261 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 262 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 263 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 264 | .name = "another-name" |
| 265 | }, |
| 266 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 267 | static const asn_TYPE_tag2member_t asn_MAP_one_name_tag2el_2[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 268 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 269 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 270 | static asn_CHOICE_specifics_t asn_SPC_one_name_specs_2 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 271 | sizeof(struct one_name), |
| 272 | offsetof(struct one_name, _asn_ctx), |
| 273 | offsetof(struct one_name, present), |
| 274 | sizeof(((struct one_name *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 275 | asn_MAP_one_name_tag2el_2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 276 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 277 | .canonical_order = 0, |
| 278 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 279 | }; |
| 280 | static /* Use -fall-defs-global to expose */ |
| 281 | asn_TYPE_descriptor_t asn_DEF_one_name_2 = { |
| 282 | "one-name", |
| 283 | "one-name", |
| 284 | CHOICE_free, |
| 285 | CHOICE_print, |
| 286 | CHOICE_constraint, |
| 287 | CHOICE_decode_ber, |
| 288 | CHOICE_encode_der, |
| 289 | CHOICE_decode_xer, |
| 290 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 291 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 292 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 293 | CHOICE_outmost_tag, |
| 294 | 0, /* No effective tags (pointer) */ |
| 295 | 0, /* No effective tags (count) */ |
| 296 | 0, /* No tags (pointer) */ |
| 297 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 298 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 299 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 300 | asn_MBR_one_name_2, |
| 301 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 302 | &asn_SPC_one_name_specs_2 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 303 | }; |
| 304 | |
| 305 | static asn_TYPE_member_t asn_MBR_Type1_1[] = { |
| 306 | { ATF_NOFLAGS, 0, offsetof(struct Type1, one_name), |
| 307 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 308 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 309 | .type = &asn_DEF_one_name_2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 310 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 311 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 312 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 313 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 314 | .name = "one-name" |
| 315 | }, |
| 316 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 317 | static const ber_tlv_tag_t asn_DEF_Type1_tags_1[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 318 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 319 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 320 | static const asn_TYPE_tag2member_t asn_MAP_Type1_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 321 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 322 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 323 | static asn_SEQUENCE_specifics_t asn_SPC_Type1_specs_1 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 324 | sizeof(struct Type1), |
| 325 | offsetof(struct Type1, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 326 | asn_MAP_Type1_tag2el_1, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 327 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 328 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 329 | -1, /* Start extensions */ |
| 330 | -1 /* Stop extensions */ |
| 331 | }; |
| 332 | asn_TYPE_descriptor_t asn_DEF_Type1 = { |
| 333 | "Type1", |
| 334 | "Type1", |
| 335 | SEQUENCE_free, |
| 336 | SEQUENCE_print, |
| 337 | SEQUENCE_constraint, |
| 338 | SEQUENCE_decode_ber, |
| 339 | SEQUENCE_encode_der, |
| 340 | SEQUENCE_decode_xer, |
| 341 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 342 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 343 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 344 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 345 | asn_DEF_Type1_tags_1, |
| 346 | sizeof(asn_DEF_Type1_tags_1) |
| 347 | /sizeof(asn_DEF_Type1_tags_1[0]), /* 1 */ |
| 348 | asn_DEF_Type1_tags_1, /* Same as above */ |
| 349 | sizeof(asn_DEF_Type1_tags_1) |
| 350 | /sizeof(asn_DEF_Type1_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 351 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 352 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 353 | asn_MBR_Type1_1, |
| 354 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 355 | &asn_SPC_Type1_specs_1 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 356 | }; |
| 357 | |
| 358 | |
| 359 | /*** <<< INCLUDES [Type2] >>> ***/ |
| 360 | |
| 361 | #include <BIT_STRING.h> |
| 362 | #include <INTEGER.h> |
| 363 | #include <constr_SEQUENCE.h> |
| 364 | #include <constr_SET.h> |
| 365 | #include <constr_CHOICE.h> |
| 366 | |
| 367 | /*** <<< DEPS [Type2] >>> ***/ |
| 368 | |
| 369 | typedef enum Type2_PR { |
| 370 | Type2_PR_NOTHING, /* No components present */ |
| 371 | Type2_PR_one_name, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 372 | Type2_PR_two_name |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 373 | } Type2_PR; |
Lev Walkin | b02a883 | 2005-08-13 23:51:47 +0000 | [diff] [blame] | 374 | typedef enum a { |
| 375 | a_one = 0 |
Lev Walkin | 171487e | 2006-03-21 07:25:18 +0000 | [diff] [blame] | 376 | } e_a; |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 377 | |
| 378 | /* |
| 379 | * Method of determining the components presence |
| 380 | */ |
| 381 | typedef enum two_name_PR { |
| 382 | two_name_PR_another_name, /* Member another_name is present */ |
| 383 | } two_name_PR; |
Lev Walkin | b02a883 | 2005-08-13 23:51:47 +0000 | [diff] [blame] | 384 | typedef enum a { |
| 385 | a_one = 0 |
Lev Walkin | 171487e | 2006-03-21 07:25:18 +0000 | [diff] [blame] | 386 | } e_a; |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 387 | |
| 388 | /*** <<< TYPE-DECLS [Type2] >>> ***/ |
| 389 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 390 | typedef struct Type2 { |
| 391 | Type2_PR present; |
Lev Walkin | 0f5d74c | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 392 | union Type2_u { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 393 | struct one_name { |
| 394 | struct another_name { |
| 395 | BIT_STRING_t a; |
| 396 | INTEGER_t b; |
| 397 | |
| 398 | /* Context for parsing across buffer boundaries */ |
| 399 | asn_struct_ctx_t _asn_ctx; |
| 400 | } another_name; |
| 401 | |
| 402 | /* Context for parsing across buffer boundaries */ |
| 403 | asn_struct_ctx_t _asn_ctx; |
| 404 | } one_name; |
| 405 | struct two_name { |
| 406 | struct another_name { |
| 407 | BIT_STRING_t a; |
| 408 | INTEGER_t b; |
| 409 | |
| 410 | /* Context for parsing across buffer boundaries */ |
| 411 | asn_struct_ctx_t _asn_ctx; |
| 412 | } another_name; |
| 413 | |
| 414 | /* Presence bitmask: ASN_SET_ISPRESENT(ptwo_name, two_name_PR_x) */ |
| 415 | unsigned int _presence_map |
| 416 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 417 | |
| 418 | /* Context for parsing across buffer boundaries */ |
| 419 | asn_struct_ctx_t _asn_ctx; |
| 420 | } two_name; |
| 421 | } choice; |
| 422 | |
| 423 | /* Context for parsing across buffer boundaries */ |
| 424 | asn_struct_ctx_t _asn_ctx; |
| 425 | } Type2_t; |
| 426 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 427 | /*** <<< FUNC-DECLS [Type2] >>> ***/ |
| 428 | |
| 429 | extern asn_TYPE_descriptor_t asn_DEF_Type2; |
| 430 | |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 431 | /*** <<< CODE [Type2] >>> ***/ |
| 432 | |
| 433 | static int |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 434 | memb_a_constraint_3(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 435 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 436 | const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; |
| 437 | size_t size; |
| 438 | |
| 439 | if(!sptr) { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 440 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 441 | "%s: value not given (%s:%d)", |
| 442 | td->name, __FILE__, __LINE__); |
| 443 | return -1; |
| 444 | } |
| 445 | |
| 446 | if(st->size > 0) { |
| 447 | /* Size in bits */ |
Lev Walkin | 1b1c5fc | 2006-09-08 19:38:11 +0000 | [diff] [blame] | 448 | size = 8 * st->size - (st->bits_unused & 0x07); |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 449 | } else { |
| 450 | size = 0; |
| 451 | } |
| 452 | |
| 453 | if((size == 2)) { |
| 454 | /* Constraint check succeeded */ |
| 455 | return 0; |
| 456 | } else { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 457 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 458 | "%s: constraint failed (%s:%d)", |
| 459 | td->name, __FILE__, __LINE__); |
| 460 | return -1; |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | static int |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 465 | memb_a_constraint_8(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 466 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 467 | const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; |
| 468 | size_t size; |
| 469 | |
| 470 | if(!sptr) { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 471 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 472 | "%s: value not given (%s:%d)", |
| 473 | td->name, __FILE__, __LINE__); |
| 474 | return -1; |
| 475 | } |
| 476 | |
| 477 | if(st->size > 0) { |
| 478 | /* Size in bits */ |
Lev Walkin | 1b1c5fc | 2006-09-08 19:38:11 +0000 | [diff] [blame] | 479 | size = 8 * st->size - (st->bits_unused & 0x07); |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 480 | } else { |
| 481 | size = 0; |
| 482 | } |
| 483 | |
| 484 | if((size == 2)) { |
| 485 | /* Constraint check succeeded */ |
| 486 | return 0; |
| 487 | } else { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 488 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 489 | "%s: constraint failed (%s:%d)", |
| 490 | td->name, __FILE__, __LINE__); |
| 491 | return -1; |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | |
| 496 | /*** <<< STAT-DEFS [Type2] >>> ***/ |
| 497 | |
| 498 | static asn_TYPE_member_t asn_MBR_another_name_3[] = { |
| 499 | { ATF_NOFLAGS, 0, offsetof(struct another_name, a), |
| 500 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 501 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 502 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 503 | .memb_constraints = memb_a_constraint_3, |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 504 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 505 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 506 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 507 | .name = "a" |
| 508 | }, |
| 509 | { ATF_NOFLAGS, 0, offsetof(struct another_name, b), |
| 510 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 511 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 512 | .type = &asn_DEF_INTEGER, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 513 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 514 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 515 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 516 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 517 | .name = "b" |
| 518 | }, |
| 519 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 520 | static const ber_tlv_tag_t asn_DEF_another_name_tags_3[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 521 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 522 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 523 | static const asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_3[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 524 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b */ |
| 525 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 526 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 527 | static asn_SEQUENCE_specifics_t asn_SPC_another_name_specs_3 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 528 | sizeof(struct another_name), |
| 529 | offsetof(struct another_name, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 530 | asn_MAP_another_name_tag2el_3, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 531 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 532 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 533 | -1, /* Start extensions */ |
| 534 | -1 /* Stop extensions */ |
| 535 | }; |
| 536 | static /* Use -fall-defs-global to expose */ |
| 537 | asn_TYPE_descriptor_t asn_DEF_another_name_3 = { |
| 538 | "another-name", |
| 539 | "another-name", |
| 540 | SEQUENCE_free, |
| 541 | SEQUENCE_print, |
| 542 | SEQUENCE_constraint, |
| 543 | SEQUENCE_decode_ber, |
| 544 | SEQUENCE_encode_der, |
| 545 | SEQUENCE_decode_xer, |
| 546 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 547 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 548 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 549 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 550 | asn_DEF_another_name_tags_3, |
| 551 | sizeof(asn_DEF_another_name_tags_3) |
| 552 | /sizeof(asn_DEF_another_name_tags_3[0]), /* 1 */ |
| 553 | asn_DEF_another_name_tags_3, /* Same as above */ |
| 554 | sizeof(asn_DEF_another_name_tags_3) |
| 555 | /sizeof(asn_DEF_another_name_tags_3[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 556 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 557 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 558 | asn_MBR_another_name_3, |
| 559 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 560 | &asn_SPC_another_name_specs_3 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 561 | }; |
| 562 | |
| 563 | static asn_TYPE_member_t asn_MBR_one_name_2[] = { |
| 564 | { ATF_NOFLAGS, 0, offsetof(struct one_name, another_name), |
| 565 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 566 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 567 | .type = &asn_DEF_another_name_3, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 568 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 569 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 570 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 571 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 572 | .name = "another-name" |
| 573 | }, |
| 574 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 575 | static const ber_tlv_tag_t asn_DEF_one_name_tags_2[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 576 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 577 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 578 | static const asn_TYPE_tag2member_t asn_MAP_one_name_tag2el_2[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 579 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 580 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 581 | static asn_SEQUENCE_specifics_t asn_SPC_one_name_specs_2 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 582 | sizeof(struct one_name), |
| 583 | offsetof(struct one_name, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 584 | asn_MAP_one_name_tag2el_2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 585 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 586 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 587 | -1, /* Start extensions */ |
| 588 | -1 /* Stop extensions */ |
| 589 | }; |
| 590 | static /* Use -fall-defs-global to expose */ |
| 591 | asn_TYPE_descriptor_t asn_DEF_one_name_2 = { |
| 592 | "one-name", |
| 593 | "one-name", |
| 594 | SEQUENCE_free, |
| 595 | SEQUENCE_print, |
| 596 | SEQUENCE_constraint, |
| 597 | SEQUENCE_decode_ber, |
| 598 | SEQUENCE_encode_der, |
| 599 | SEQUENCE_decode_xer, |
| 600 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 601 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 602 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 603 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 604 | asn_DEF_one_name_tags_2, |
| 605 | sizeof(asn_DEF_one_name_tags_2) |
| 606 | /sizeof(asn_DEF_one_name_tags_2[0]), /* 1 */ |
| 607 | asn_DEF_one_name_tags_2, /* Same as above */ |
| 608 | sizeof(asn_DEF_one_name_tags_2) |
| 609 | /sizeof(asn_DEF_one_name_tags_2[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 610 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 611 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 612 | asn_MBR_one_name_2, |
| 613 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 614 | &asn_SPC_one_name_specs_2 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 615 | }; |
| 616 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 617 | static asn_TYPE_member_t asn_MBR_another_name_8[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 618 | { ATF_NOFLAGS, 0, offsetof(struct another_name, a), |
| 619 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 620 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 621 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 622 | .memb_constraints = memb_a_constraint_8, |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 623 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 624 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 625 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 626 | .name = "a" |
| 627 | }, |
| 628 | { ATF_NOFLAGS, 0, offsetof(struct another_name, b), |
| 629 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 630 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 631 | .type = &asn_DEF_INTEGER, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 632 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 633 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 634 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 635 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 636 | .name = "b" |
| 637 | }, |
| 638 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 639 | static const ber_tlv_tag_t asn_DEF_another_name_tags_8[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 640 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 641 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 642 | static const asn_TYPE_tag2member_t asn_MAP_another_name_tag2el_8[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 643 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b */ |
| 644 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 645 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 646 | static asn_SEQUENCE_specifics_t asn_SPC_another_name_specs_8 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 647 | sizeof(struct another_name), |
| 648 | offsetof(struct another_name, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 649 | asn_MAP_another_name_tag2el_8, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 650 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 651 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 652 | -1, /* Start extensions */ |
| 653 | -1 /* Stop extensions */ |
| 654 | }; |
| 655 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 656 | asn_TYPE_descriptor_t asn_DEF_another_name_8 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 657 | "another-name", |
| 658 | "another-name", |
| 659 | SEQUENCE_free, |
| 660 | SEQUENCE_print, |
| 661 | SEQUENCE_constraint, |
| 662 | SEQUENCE_decode_ber, |
| 663 | SEQUENCE_encode_der, |
| 664 | SEQUENCE_decode_xer, |
| 665 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 666 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 667 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 668 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 669 | asn_DEF_another_name_tags_8, |
| 670 | sizeof(asn_DEF_another_name_tags_8) |
| 671 | /sizeof(asn_DEF_another_name_tags_8[0]), /* 1 */ |
| 672 | asn_DEF_another_name_tags_8, /* Same as above */ |
| 673 | sizeof(asn_DEF_another_name_tags_8) |
| 674 | /sizeof(asn_DEF_another_name_tags_8[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 675 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 676 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 677 | asn_MBR_another_name_8, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 678 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 679 | &asn_SPC_another_name_specs_8 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 680 | }; |
| 681 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 682 | static asn_TYPE_member_t asn_MBR_two_name_7[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 683 | { ATF_NOFLAGS, 0, offsetof(struct two_name, another_name), |
| 684 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 685 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 686 | .type = &asn_DEF_another_name_8, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 687 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 688 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 689 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 690 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 691 | .name = "another-name" |
| 692 | }, |
| 693 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 694 | static const ber_tlv_tag_t asn_DEF_two_name_tags_7[] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 695 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 696 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 697 | static const asn_TYPE_tag2member_t asn_MAP_two_name_tag2el_7[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 698 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 699 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 700 | static const uint8_t asn_MAP_two_name_mmap_7[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 701 | (1 << 7) |
| 702 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 703 | static asn_SET_specifics_t asn_SPC_two_name_specs_7 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 704 | sizeof(struct two_name), |
| 705 | offsetof(struct two_name, _asn_ctx), |
| 706 | offsetof(struct two_name, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 707 | asn_MAP_two_name_tag2el_7, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 708 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 709 | asn_MAP_two_name_tag2el_7, /* Same as above */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 710 | 1, /* Count of tags in the CXER map */ |
| 711 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 712 | (const unsigned int *)asn_MAP_two_name_mmap_7 /* Mandatory elements map */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 713 | }; |
| 714 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 715 | asn_TYPE_descriptor_t asn_DEF_two_name_7 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 716 | "two-name", |
| 717 | "two-name", |
| 718 | SET_free, |
| 719 | SET_print, |
| 720 | SET_constraint, |
| 721 | SET_decode_ber, |
| 722 | SET_encode_der, |
| 723 | SET_decode_xer, |
| 724 | SET_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 725 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 726 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 727 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 728 | asn_DEF_two_name_tags_7, |
| 729 | sizeof(asn_DEF_two_name_tags_7) |
| 730 | /sizeof(asn_DEF_two_name_tags_7[0]), /* 1 */ |
| 731 | asn_DEF_two_name_tags_7, /* Same as above */ |
| 732 | sizeof(asn_DEF_two_name_tags_7) |
| 733 | /sizeof(asn_DEF_two_name_tags_7[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 734 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 735 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 736 | asn_MBR_two_name_7, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 737 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 738 | &asn_SPC_two_name_specs_7 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 739 | }; |
| 740 | |
| 741 | static asn_TYPE_member_t asn_MBR_Type2_1[] = { |
| 742 | { ATF_NOFLAGS, 0, offsetof(struct Type2, choice.one_name), |
| 743 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 744 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 745 | .type = &asn_DEF_one_name_2, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 746 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 747 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 748 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 749 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 750 | .name = "one-name" |
| 751 | }, |
| 752 | { ATF_NOFLAGS, 0, offsetof(struct Type2, choice.two_name), |
| 753 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 754 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 755 | .type = &asn_DEF_two_name_7, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 756 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 757 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 758 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 759 | .default_value = 0, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 760 | .name = "two-name" |
| 761 | }, |
| 762 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 763 | static const asn_TYPE_tag2member_t asn_MAP_Type2_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 764 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* one-name */ |
| 765 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* two-name */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 766 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 767 | static asn_CHOICE_specifics_t asn_SPC_Type2_specs_1 = { |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 768 | sizeof(struct Type2), |
| 769 | offsetof(struct Type2, _asn_ctx), |
| 770 | offsetof(struct Type2, present), |
| 771 | sizeof(((struct Type2 *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 772 | asn_MAP_Type2_tag2el_1, |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 773 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 774 | .canonical_order = 0, |
| 775 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 776 | }; |
| 777 | asn_TYPE_descriptor_t asn_DEF_Type2 = { |
| 778 | "Type2", |
| 779 | "Type2", |
| 780 | CHOICE_free, |
| 781 | CHOICE_print, |
| 782 | CHOICE_constraint, |
| 783 | CHOICE_decode_ber, |
| 784 | CHOICE_encode_der, |
| 785 | CHOICE_decode_xer, |
| 786 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 787 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 788 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 789 | CHOICE_outmost_tag, |
| 790 | 0, /* No effective tags (pointer) */ |
| 791 | 0, /* No effective tags (count) */ |
| 792 | 0, /* No tags (pointer) */ |
| 793 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 794 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 795 | 0, /* No PER visible constraints */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 796 | asn_MBR_Type2_1, |
| 797 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 798 | &asn_SPC_Type2_specs_1 /* Additional specs */ |
Lev Walkin | b7f1797 | 2005-03-04 09:10:19 +0000 | [diff] [blame] | 799 | }; |
| 800 | |