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