Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Choice] >>> ***/ |
| 3 | |
| 4 | #include <RELATIVE-OID.h> |
| 5 | #include <BIT_STRING.h> |
| 6 | #include <BOOLEAN.h> |
| 7 | #include <NULL.h> |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 8 | #include <NativeInteger.h> |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 9 | #include <constr_CHOICE.h> |
| 10 | |
| 11 | /*** <<< DEPS [Choice] >>> ***/ |
| 12 | |
| 13 | typedef enum Choice_PR { |
| 14 | Choice_PR_NOTHING, /* No components present */ |
| 15 | Choice_PR_roid, |
| 16 | Choice_PR_bitstr, |
| 17 | Choice_PR_ch, |
| 18 | /* Extensions may appear below */ |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 19 | Choice_PR_bool |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 20 | } Choice_PR; |
| 21 | typedef enum ch_PR { |
| 22 | ch_PR_NOTHING, /* No components present */ |
| 23 | ch_PR_null, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 24 | ch_PR_int |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 25 | } ch_PR; |
| 26 | |
| 27 | /*** <<< TYPE-DECLS [Choice] >>> ***/ |
| 28 | |
| 29 | typedef struct Choice { |
| 30 | Choice_PR present; |
| 31 | union Choice_u { |
| 32 | RELATIVE_OID_t roid; |
| 33 | BIT_STRING_t bitstr; |
| 34 | struct ch { |
| 35 | ch_PR present; |
| 36 | union Choice__ch_u { |
| 37 | NULL_t null; |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 38 | long Int; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 39 | } choice; |
| 40 | |
| 41 | /* Context for parsing across buffer boundaries */ |
| 42 | asn_struct_ctx_t _asn_ctx; |
| 43 | } ch; |
| 44 | /* |
| 45 | * This type is extensible, |
| 46 | * possible extensions are below. |
| 47 | */ |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 48 | BOOLEAN_t Bool; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 49 | } choice; |
| 50 | |
| 51 | /* Context for parsing across buffer boundaries */ |
| 52 | asn_struct_ctx_t _asn_ctx; |
| 53 | } Choice_t; |
| 54 | |
| 55 | /*** <<< FUNC-DECLS [Choice] >>> ***/ |
| 56 | |
| 57 | extern asn_TYPE_descriptor_t asn_DEF_Choice; |
| 58 | |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 59 | /*** <<< CTDEFS [Choice] >>> ***/ |
| 60 | |
Lev Walkin | 2fce55d | 2013-03-28 05:00:39 -0700 | [diff] [blame] | 61 | static asn_per_constraints_t asn_PER_type_ch_constr_4 GCC_NOTUSED = { |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 62 | { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, |
| 63 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 64 | 0, 0 /* No PER value map */ |
| 65 | }; |
Lev Walkin | 2fce55d | 2013-03-28 05:00:39 -0700 | [diff] [blame] | 66 | static asn_per_constraints_t asn_PER_type_Choice_constr_1 GCC_NOTUSED = { |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 67 | { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, |
| 68 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 69 | 0, 0 /* No PER value map */ |
| 70 | }; |
| 71 | |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 72 | /*** <<< STAT-DEFS [Choice] >>> ***/ |
| 73 | |
| 74 | static asn_TYPE_member_t asn_MBR_ch_4[] = { |
| 75 | { ATF_NOFLAGS, 0, offsetof(struct ch, choice.null), |
| 76 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 77 | .tag_mode = 0, |
| 78 | .type = &asn_DEF_NULL, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 79 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 80 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 81 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 82 | .per_constraints = 0, /* No PER visible constraints */ |
| 83 | .default_value = 0, |
| 84 | .name = "null" |
| 85 | }, |
| 86 | { ATF_NOFLAGS, 0, offsetof(struct ch, choice.Int), |
| 87 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 88 | .tag_mode = 0, |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 89 | .type = &asn_DEF_NativeInteger, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 90 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 91 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 92 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 93 | .per_constraints = 0, /* No PER visible constraints */ |
| 94 | .default_value = 0, |
| 95 | .name = "int" |
| 96 | }, |
| 97 | }; |
Lev Walkin | 18660d2 | 2017-08-12 20:45:23 -0700 | [diff] [blame] | 98 | static const unsigned asn_MAP_ch_cmap_4[] = { 1, 0 }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 99 | static const asn_TYPE_tag2member_t asn_MAP_ch_tag2el_4[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 100 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* int */ |
| 101 | { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 0, 0, 0 } /* null */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 102 | }; |
| 103 | static asn_CHOICE_specifics_t asn_SPC_ch_specs_4 = { |
| 104 | sizeof(struct ch), |
| 105 | offsetof(struct ch, _asn_ctx), |
| 106 | offsetof(struct ch, present), |
| 107 | sizeof(((struct ch *)0)->present), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 108 | .tag2el = asn_MAP_ch_tag2el_4, |
| 109 | .tag2el_count = 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 110 | .canonical_order = asn_MAP_ch_cmap_4, /* Canonically sorted */ |
| 111 | .ext_start = -1 /* Extensions start */ |
| 112 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 113 | static /* Use -fall-defs-global to expose */ |
| 114 | asn_TYPE_descriptor_t asn_DEF_ch_4 = { |
| 115 | "ch", |
| 116 | "ch", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 117 | &asn_OP_CHOICE, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 118 | CHOICE_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 119 | 0, /* No effective tags (pointer) */ |
| 120 | 0, /* No effective tags (count) */ |
| 121 | 0, /* No tags (pointer) */ |
| 122 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 123 | 0, /* No OER visible constraints */ |
Lev Walkin | 4b5dae3 | 2006-10-09 12:27:44 +0000 | [diff] [blame] | 124 | &asn_PER_type_ch_constr_4, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 125 | asn_MBR_ch_4, |
| 126 | 2, /* Elements count */ |
| 127 | &asn_SPC_ch_specs_4 /* Additional specs */ |
| 128 | }; |
| 129 | |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 130 | static asn_TYPE_member_t asn_MBR_Choice_1[] = { |
| 131 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.roid), |
| 132 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (13 << 2)), |
| 133 | .tag_mode = 0, |
| 134 | .type = &asn_DEF_RELATIVE_OID, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 135 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 136 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 137 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 138 | .per_constraints = 0, /* No PER visible constraints */ |
| 139 | .default_value = 0, |
| 140 | .name = "roid" |
| 141 | }, |
| 142 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.bitstr), |
| 143 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 144 | .tag_mode = 0, |
| 145 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 146 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 147 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 148 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 149 | .per_constraints = 0, /* No PER visible constraints */ |
| 150 | .default_value = 0, |
| 151 | .name = "bitstr" |
| 152 | }, |
| 153 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ch), |
| 154 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 155 | .tag_mode = 0, |
| 156 | .type = &asn_DEF_ch_4, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 157 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 158 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 159 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 07aaa34 | 2006-10-09 12:52:15 +0000 | [diff] [blame] | 160 | .per_constraints = 0, /* No PER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 161 | .default_value = 0, |
| 162 | .name = "ch" |
| 163 | }, |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 164 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.Bool), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 165 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), |
| 166 | .tag_mode = 0, |
| 167 | .type = &asn_DEF_BOOLEAN, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 168 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 169 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 170 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 171 | .per_constraints = 0, /* No PER visible constraints */ |
| 172 | .default_value = 0, |
| 173 | .name = "bool" |
| 174 | }, |
| 175 | }; |
Lev Walkin | 18660d2 | 2017-08-12 20:45:23 -0700 | [diff] [blame] | 176 | static const unsigned asn_MAP_Choice_cmap_1[] = { 2, 1, 0, 3 }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 177 | static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 178 | { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 3, 0, 0 }, /* bool */ |
| 179 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 0 }, /* int */ |
| 180 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 1, 0, 0 }, /* bitstr */ |
| 181 | { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 2, 0, 0 }, /* null */ |
| 182 | { (ASN_TAG_CLASS_UNIVERSAL | (13 << 2)), 0, 0, 0 } /* roid */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 183 | }; |
| 184 | static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = { |
| 185 | sizeof(struct Choice), |
| 186 | offsetof(struct Choice, _asn_ctx), |
| 187 | offsetof(struct Choice, present), |
| 188 | sizeof(((struct Choice *)0)->present), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 189 | .tag2el = asn_MAP_Choice_tag2el_1, |
| 190 | .tag2el_count = 5, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 191 | .canonical_order = asn_MAP_Choice_cmap_1, /* Canonically sorted */ |
| 192 | .ext_start = 3 /* Extensions start */ |
| 193 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 194 | asn_TYPE_descriptor_t asn_DEF_Choice = { |
| 195 | "Choice", |
| 196 | "Choice", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 197 | &asn_OP_CHOICE, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 198 | CHOICE_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 199 | 0, /* No effective tags (pointer) */ |
| 200 | 0, /* No effective tags (count) */ |
| 201 | 0, /* No tags (pointer) */ |
| 202 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 203 | 0, /* No OER visible constraints */ |
Lev Walkin | 4b5dae3 | 2006-10-09 12:27:44 +0000 | [diff] [blame] | 204 | &asn_PER_type_Choice_constr_1, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 205 | asn_MBR_Choice_1, |
| 206 | 4, /* Elements count */ |
| 207 | &asn_SPC_Choice_specs_1 /* Additional specs */ |
| 208 | }; |
| 209 | |
| 210 | |
| 211 | /*** <<< INCLUDES [Choice2] >>> ***/ |
| 212 | |
| 213 | #include <BIT_STRING.h> |
| 214 | #include <RELATIVE-OID.h> |
| 215 | #include <constr_CHOICE.h> |
| 216 | |
| 217 | /*** <<< DEPS [Choice2] >>> ***/ |
| 218 | |
| 219 | typedef enum Choice2_PR { |
| 220 | Choice2_PR_NOTHING, /* No components present */ |
| 221 | Choice2_PR_bitstr, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 222 | Choice2_PR_roid |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 223 | } Choice2_PR; |
| 224 | |
| 225 | /*** <<< TYPE-DECLS [Choice2] >>> ***/ |
| 226 | |
| 227 | typedef struct Choice2 { |
| 228 | Choice2_PR present; |
| 229 | union Choice2_u { |
| 230 | BIT_STRING_t bitstr; |
| 231 | RELATIVE_OID_t roid; |
| 232 | } choice; |
| 233 | |
| 234 | /* Context for parsing across buffer boundaries */ |
| 235 | asn_struct_ctx_t _asn_ctx; |
| 236 | } Choice2_t; |
| 237 | |
| 238 | /*** <<< FUNC-DECLS [Choice2] >>> ***/ |
| 239 | |
| 240 | extern asn_TYPE_descriptor_t asn_DEF_Choice2; |
| 241 | |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 242 | /*** <<< CTDEFS [Choice2] >>> ***/ |
| 243 | |
Lev Walkin | 2fce55d | 2013-03-28 05:00:39 -0700 | [diff] [blame] | 244 | static asn_per_constraints_t asn_PER_type_Choice2_constr_1 GCC_NOTUSED = { |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 245 | { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, |
| 246 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 247 | 0, 0 /* No PER value map */ |
| 248 | }; |
| 249 | |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 250 | /*** <<< STAT-DEFS [Choice2] >>> ***/ |
| 251 | |
| 252 | static asn_TYPE_member_t asn_MBR_Choice2_1[] = { |
| 253 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.bitstr), |
| 254 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 255 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
| 256 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 257 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 258 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 259 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 260 | .per_constraints = 0, /* No PER visible constraints */ |
| 261 | .default_value = 0, |
| 262 | .name = "bitstr" |
| 263 | }, |
| 264 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.roid), |
| 265 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 266 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
| 267 | .type = &asn_DEF_RELATIVE_OID, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 268 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 269 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 270 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 271 | .per_constraints = 0, /* No PER visible constraints */ |
| 272 | .default_value = 0, |
| 273 | .name = "roid" |
| 274 | }, |
| 275 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 276 | static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 277 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bitstr */ |
| 278 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* roid */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 279 | }; |
| 280 | static asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = { |
| 281 | sizeof(struct Choice2), |
| 282 | offsetof(struct Choice2, _asn_ctx), |
| 283 | offsetof(struct Choice2, present), |
| 284 | sizeof(((struct Choice2 *)0)->present), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 285 | .tag2el = asn_MAP_Choice2_tag2el_1, |
| 286 | .tag2el_count = 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 287 | .canonical_order = 0, |
| 288 | .ext_start = -1 /* Extensions start */ |
| 289 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 290 | asn_TYPE_descriptor_t asn_DEF_Choice2 = { |
| 291 | "Choice2", |
| 292 | "Choice2", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 293 | &asn_OP_CHOICE, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 294 | CHOICE_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 295 | 0, /* No effective tags (pointer) */ |
| 296 | 0, /* No effective tags (count) */ |
| 297 | 0, /* No tags (pointer) */ |
| 298 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 299 | 0, /* No OER visible constraints */ |
Lev Walkin | 4b5dae3 | 2006-10-09 12:27:44 +0000 | [diff] [blame] | 300 | &asn_PER_type_Choice2_constr_1, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 301 | asn_MBR_Choice2_1, |
| 302 | 2, /* Elements count */ |
| 303 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
| 304 | }; |
| 305 | |