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