Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 3 | |
| 4 | #include <INTEGER.h> |
| 5 | #include <constr_SEQUENCE.h> |
| 6 | |
| 7 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 8 | |
| 9 | typedef struct Sequence { |
| 10 | INTEGER_t ainl; |
| 11 | INTEGER_t *aptr; |
| 12 | |
| 13 | /* Context for parsing across buffer boundaries */ |
| 14 | asn_struct_ctx_t _asn_ctx; |
| 15 | } Sequence_t; |
| 16 | |
| 17 | /*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 18 | |
| 19 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 20 | extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1; |
| 21 | extern asn_TYPE_member_t asn_MBR_Sequence_1[2]; |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 22 | |
| 23 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 24 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 25 | asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 26 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl), |
| 27 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 28 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 29 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 30 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 31 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 32 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 33 | .name = "ainl" |
| 34 | }, |
| 35 | { ATF_POINTER, 0, offsetof(struct Sequence, aptr), |
| 36 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 37 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 38 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 39 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 40 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 41 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 42 | .name = "aptr" |
| 43 | }, |
| 44 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 45 | static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 46 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 47 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 48 | static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 49 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */ |
| 50 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 51 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 52 | asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 53 | sizeof(struct Sequence), |
| 54 | offsetof(struct Sequence, _asn_ctx), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 55 | .tag2el = asn_MAP_Sequence_tag2el_1, |
| 56 | .tag2el_count = 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 57 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 58 | -1, /* Start extensions */ |
| 59 | -1 /* Stop extensions */ |
| 60 | }; |
| 61 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 62 | "Sequence", |
| 63 | "Sequence", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 64 | &asn_OP_SEQUENCE, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 65 | asn_DEF_Sequence_tags_1, |
| 66 | sizeof(asn_DEF_Sequence_tags_1) |
| 67 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 68 | asn_DEF_Sequence_tags_1, /* Same as above */ |
| 69 | sizeof(asn_DEF_Sequence_tags_1) |
| 70 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 71 | { 0, 0, SEQUENCE_constraint }, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 72 | asn_MBR_Sequence_1, |
| 73 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 74 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | |
| 78 | /*** <<< INCLUDES [Set] >>> ***/ |
| 79 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 80 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 81 | #include <constr_SET.h> |
| 82 | |
| 83 | /*** <<< DEPS [Set] >>> ***/ |
| 84 | |
| 85 | |
| 86 | /* |
| 87 | * Method of determining the components presence |
| 88 | */ |
| 89 | typedef enum Set_PR { |
| 90 | Set_PR_ainl, /* Member ainl is present */ |
| 91 | Set_PR_aptr, /* Member aptr is present */ |
| 92 | } Set_PR; |
| 93 | |
| 94 | /*** <<< FWD-DECLS [Set] >>> ***/ |
| 95 | |
| 96 | struct Sequence; |
| 97 | |
| 98 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 99 | |
| 100 | typedef struct Set { |
| 101 | Sequence_t ainl; |
| 102 | struct Sequence *aptr; |
| 103 | |
| 104 | /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */ |
| 105 | unsigned int _presence_map |
| 106 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 107 | |
| 108 | /* Context for parsing across buffer boundaries */ |
| 109 | asn_struct_ctx_t _asn_ctx; |
| 110 | } Set_t; |
| 111 | |
| 112 | /*** <<< FUNC-DECLS [Set] >>> ***/ |
| 113 | |
| 114 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 115 | |
| 116 | /*** <<< POST-INCLUDE [Set] >>> ***/ |
| 117 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 118 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 119 | |
| 120 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 121 | |
| 122 | static asn_TYPE_member_t asn_MBR_Set_1[] = { |
| 123 | { ATF_NOFLAGS, 0, offsetof(struct Set, ainl), |
| 124 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 125 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 126 | .type = &asn_DEF_Sequence, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 127 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 128 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 129 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 130 | .name = "ainl" |
| 131 | }, |
| 132 | { ATF_POINTER, 0, offsetof(struct Set, aptr), |
| 133 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 134 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 135 | .type = &asn_DEF_Sequence, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 136 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 137 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 138 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 139 | .name = "aptr" |
| 140 | }, |
| 141 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 142 | static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 143 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 144 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 145 | static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 146 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */ |
| 147 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 148 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 149 | static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 150 | (1 << 7) | (1 << 6) |
| 151 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 152 | static |
| 153 | asn_SET_specifics_t asn_SPC_Set_specs_1 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 154 | sizeof(struct Set), |
| 155 | offsetof(struct Set, _asn_ctx), |
| 156 | offsetof(struct Set, _presence_map), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 157 | .tag2el = asn_MAP_Set_tag2el_1, |
| 158 | .tag2el_count = 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 159 | asn_MAP_Set_tag2el_1, /* Same as above */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 160 | 2, /* Count of tags in the CXER map */ |
| 161 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 162 | (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 163 | }; |
| 164 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 165 | "Set", |
| 166 | "Set", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 167 | &asn_OP_SET, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 168 | asn_DEF_Set_tags_1, |
| 169 | sizeof(asn_DEF_Set_tags_1) |
| 170 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 171 | asn_DEF_Set_tags_1, /* Same as above */ |
| 172 | sizeof(asn_DEF_Set_tags_1) |
| 173 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 174 | { 0, 0, SET_constraint }, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 175 | asn_MBR_Set_1, |
| 176 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 177 | &asn_SPC_Set_specs_1 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | |
| 181 | /*** <<< INCLUDES [Choice] >>> ***/ |
| 182 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 183 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 184 | #include <INTEGER.h> |
| 185 | #include <asn_SET_OF.h> |
| 186 | #include <constr_SET_OF.h> |
| 187 | #include <constr_CHOICE.h> |
| 188 | |
| 189 | /*** <<< DEPS [Choice] >>> ***/ |
| 190 | |
| 191 | typedef enum Choice_PR { |
| 192 | Choice_PR_NOTHING, /* No components present */ |
| 193 | Choice_PR_setof, |
| 194 | Choice_PR_aptr, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 195 | Choice_PR_ainl |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 196 | } Choice_PR; |
| 197 | |
| 198 | /*** <<< FWD-DECLS [Choice] >>> ***/ |
| 199 | |
| 200 | struct Sequence; |
| 201 | |
| 202 | /*** <<< TYPE-DECLS [Choice] >>> ***/ |
| 203 | |
| 204 | typedef struct Choice { |
| 205 | Choice_PR present; |
| 206 | union Choice_u { |
| 207 | struct setof { |
| 208 | A_SET_OF(INTEGER_t) list; |
| 209 | |
| 210 | /* Context for parsing across buffer boundaries */ |
| 211 | asn_struct_ctx_t _asn_ctx; |
| 212 | } *setof; |
| 213 | struct Sequence *aptr; |
| 214 | Sequence_t ainl; |
| 215 | } choice; |
| 216 | |
| 217 | /* Context for parsing across buffer boundaries */ |
| 218 | asn_struct_ctx_t _asn_ctx; |
| 219 | } Choice_t; |
| 220 | |
| 221 | /*** <<< FUNC-DECLS [Choice] >>> ***/ |
| 222 | |
| 223 | extern asn_TYPE_descriptor_t asn_DEF_Choice; |
| 224 | |
| 225 | /*** <<< POST-INCLUDE [Choice] >>> ***/ |
| 226 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 227 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 228 | |
| 229 | /*** <<< STAT-DEFS [Choice] >>> ***/ |
| 230 | |
| 231 | static asn_TYPE_member_t asn_MBR_setof_2[] = { |
| 232 | { ATF_POINTER, 0, 0, |
| 233 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 234 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 235 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 236 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 237 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 238 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 239 | .name = "" |
| 240 | }, |
| 241 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 242 | static const ber_tlv_tag_t asn_DEF_setof_tags_2[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 243 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 244 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 245 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 246 | static asn_SET_OF_specifics_t asn_SPC_setof_specs_2 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 247 | sizeof(struct setof), |
| 248 | offsetof(struct setof, _asn_ctx), |
| 249 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 250 | }; |
| 251 | static /* Use -fall-defs-global to expose */ |
| 252 | asn_TYPE_descriptor_t asn_DEF_setof_2 = { |
| 253 | "setof", |
| 254 | "setof", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 255 | &asn_OP_SET_OF, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 256 | asn_DEF_setof_tags_2, |
| 257 | sizeof(asn_DEF_setof_tags_2) |
| 258 | /sizeof(asn_DEF_setof_tags_2[0]) - 1, /* 1 */ |
| 259 | asn_DEF_setof_tags_2, /* Same as above */ |
| 260 | sizeof(asn_DEF_setof_tags_2) |
| 261 | /sizeof(asn_DEF_setof_tags_2[0]), /* 2 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 262 | { 0, 0, SET_OF_constraint }, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 263 | asn_MBR_setof_2, |
| 264 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 265 | &asn_SPC_setof_specs_2 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 266 | }; |
| 267 | |
| 268 | static asn_TYPE_member_t asn_MBR_Choice_1[] = { |
| 269 | { ATF_POINTER, 0, offsetof(struct Choice, choice.setof), |
| 270 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 271 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 272 | .type = &asn_DEF_setof_2, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 273 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 274 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 275 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 276 | .name = "setof" |
| 277 | }, |
| 278 | { ATF_POINTER, 0, offsetof(struct Choice, choice.aptr), |
| 279 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 280 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 281 | .type = &asn_DEF_Sequence, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 282 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 283 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 284 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 285 | .name = "aptr" |
| 286 | }, |
| 287 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl), |
| 288 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 289 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 290 | .type = &asn_DEF_Sequence, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 291 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 292 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 293 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 294 | .name = "ainl" |
| 295 | }, |
| 296 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 297 | static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 298 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setof */ |
| 299 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aptr */ |
| 300 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ainl */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 301 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 302 | static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 303 | sizeof(struct Choice), |
| 304 | offsetof(struct Choice, _asn_ctx), |
| 305 | offsetof(struct Choice, present), |
| 306 | sizeof(((struct Choice *)0)->present), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 307 | .tag2el = asn_MAP_Choice_tag2el_1, |
| 308 | .tag2el_count = 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 309 | .canonical_order = 0, |
| 310 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 311 | }; |
| 312 | asn_TYPE_descriptor_t asn_DEF_Choice = { |
| 313 | "Choice", |
| 314 | "Choice", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 315 | &asn_OP_CHOICE, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 316 | 0, /* No effective tags (pointer) */ |
| 317 | 0, /* No effective tags (count) */ |
| 318 | 0, /* No tags (pointer) */ |
| 319 | 0, /* No tags (count) */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 320 | { 0, 0, CHOICE_constraint }, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 321 | asn_MBR_Choice_1, |
| 322 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 323 | &asn_SPC_Choice_specs_1 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 324 | }; |
| 325 | |