vlm | 066dc10 | 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; |
| 20 | |
| 21 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 22 | |
| 23 | static asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
| 24 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl), |
| 25 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 26 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 27 | .type = &asn_DEF_INTEGER, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 28 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 29 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 30 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 31 | .name = "ainl" |
| 32 | }, |
| 33 | { ATF_POINTER, 0, offsetof(struct Sequence, aptr), |
| 34 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 35 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 36 | .type = &asn_DEF_INTEGER, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 37 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 38 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 39 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 40 | .name = "aptr" |
| 41 | }, |
| 42 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 43 | static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 44 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 45 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 46 | static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 47 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl at 15 */ |
vlm | 177a5b6 | 2005-09-05 05:17:57 +0000 | [diff] [blame] | 48 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr at 18 */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 49 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 50 | static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 51 | sizeof(struct Sequence), |
| 52 | offsetof(struct Sequence, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 53 | asn_MAP_Sequence_tag2el_1, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 54 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 55 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 56 | -1, /* Start extensions */ |
| 57 | -1 /* Stop extensions */ |
| 58 | }; |
| 59 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 60 | "Sequence", |
| 61 | "Sequence", |
| 62 | SEQUENCE_free, |
| 63 | SEQUENCE_print, |
| 64 | SEQUENCE_constraint, |
| 65 | SEQUENCE_decode_ber, |
| 66 | SEQUENCE_encode_der, |
| 67 | SEQUENCE_decode_xer, |
| 68 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 69 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 70 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 71 | asn_DEF_Sequence_tags_1, |
| 72 | sizeof(asn_DEF_Sequence_tags_1) |
| 73 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 74 | asn_DEF_Sequence_tags_1, /* Same as above */ |
| 75 | sizeof(asn_DEF_Sequence_tags_1) |
| 76 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 77 | 0, /* No PER visible constraints */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 78 | asn_MBR_Sequence_1, |
| 79 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 80 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | |
| 84 | /*** <<< INCLUDES [Set] >>> ***/ |
| 85 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 86 | #include "Sequence.h" |
vlm | 066dc10 | 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 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 124 | #include "Sequence.h" |
vlm | 066dc10 | 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 */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 132 | .type = &asn_DEF_Sequence, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 133 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 134 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 135 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 136 | .name = "ainl" |
| 137 | }, |
| 138 | { ATF_POINTER, 0, offsetof(struct Set, aptr), |
| 139 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 140 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 141 | .type = &asn_DEF_Sequence, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 142 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 143 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 144 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 145 | .name = "aptr" |
| 146 | }, |
| 147 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 148 | static ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 149 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 150 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 151 | static asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = { |
vlm | 177a5b6 | 2005-09-05 05:17:57 +0000 | [diff] [blame] | 152 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl at 21 */ |
| 153 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr at 24 */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 154 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 155 | static uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 156 | (1 << 7) | (1 << 6) |
| 157 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 158 | static asn_SET_specifics_t asn_SPC_Set_specs_1 = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 159 | sizeof(struct Set), |
| 160 | offsetof(struct Set, _asn_ctx), |
| 161 | offsetof(struct Set, _presence_map), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 162 | asn_MAP_Set_tag2el_1, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 163 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 164 | asn_MAP_Set_tag2el_1, /* Same as above */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 165 | 2, /* Count of tags in the CXER map */ |
| 166 | 0, /* Whether extensible */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 167 | (unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 168 | }; |
| 169 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 170 | "Set", |
| 171 | "Set", |
| 172 | SET_free, |
| 173 | SET_print, |
| 174 | SET_constraint, |
| 175 | SET_decode_ber, |
| 176 | SET_encode_der, |
| 177 | SET_decode_xer, |
| 178 | SET_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 179 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 180 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 181 | asn_DEF_Set_tags_1, |
| 182 | sizeof(asn_DEF_Set_tags_1) |
| 183 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 184 | asn_DEF_Set_tags_1, /* Same as above */ |
| 185 | sizeof(asn_DEF_Set_tags_1) |
| 186 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 187 | 0, /* No PER visible constraints */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 188 | asn_MBR_Set_1, |
| 189 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 190 | &asn_SPC_Set_specs_1 /* Additional specs */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 191 | }; |
| 192 | |
| 193 | |
| 194 | /*** <<< INCLUDES [Choice] >>> ***/ |
| 195 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 196 | #include "Sequence.h" |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 197 | #include <INTEGER.h> |
| 198 | #include <asn_SET_OF.h> |
| 199 | #include <constr_SET_OF.h> |
| 200 | #include <constr_CHOICE.h> |
| 201 | |
| 202 | /*** <<< DEPS [Choice] >>> ***/ |
| 203 | |
| 204 | typedef enum Choice_PR { |
| 205 | Choice_PR_NOTHING, /* No components present */ |
| 206 | Choice_PR_setof, |
| 207 | Choice_PR_aptr, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 208 | Choice_PR_ainl |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 209 | } Choice_PR; |
| 210 | |
| 211 | /*** <<< FWD-DECLS [Choice] >>> ***/ |
| 212 | |
| 213 | struct Sequence; |
| 214 | |
| 215 | /*** <<< TYPE-DECLS [Choice] >>> ***/ |
| 216 | |
| 217 | typedef struct Choice { |
| 218 | Choice_PR present; |
| 219 | union Choice_u { |
| 220 | struct setof { |
| 221 | A_SET_OF(INTEGER_t) list; |
| 222 | |
| 223 | /* Context for parsing across buffer boundaries */ |
| 224 | asn_struct_ctx_t _asn_ctx; |
| 225 | } *setof; |
| 226 | struct Sequence *aptr; |
| 227 | Sequence_t ainl; |
| 228 | } choice; |
| 229 | |
| 230 | /* Context for parsing across buffer boundaries */ |
| 231 | asn_struct_ctx_t _asn_ctx; |
| 232 | } Choice_t; |
| 233 | |
| 234 | /*** <<< FUNC-DECLS [Choice] >>> ***/ |
| 235 | |
| 236 | extern asn_TYPE_descriptor_t asn_DEF_Choice; |
| 237 | |
| 238 | /*** <<< POST-INCLUDE [Choice] >>> ***/ |
| 239 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 240 | #include "Sequence.h" |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 241 | |
| 242 | /*** <<< STAT-DEFS [Choice] >>> ***/ |
| 243 | |
| 244 | static asn_TYPE_member_t asn_MBR_setof_2[] = { |
| 245 | { ATF_POINTER, 0, 0, |
| 246 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 247 | .tag_mode = 0, |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 248 | .type = &asn_DEF_INTEGER, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 249 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 250 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 251 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 252 | .name = "" |
| 253 | }, |
| 254 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 255 | static ber_tlv_tag_t asn_DEF_setof_tags_2[] = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 256 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 257 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 258 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 259 | static asn_SET_OF_specifics_t asn_SPC_setof_specs_2 = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 260 | sizeof(struct setof), |
| 261 | offsetof(struct setof, _asn_ctx), |
| 262 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 263 | }; |
| 264 | static /* Use -fall-defs-global to expose */ |
| 265 | asn_TYPE_descriptor_t asn_DEF_setof_2 = { |
| 266 | "setof", |
| 267 | "setof", |
| 268 | SET_OF_free, |
| 269 | SET_OF_print, |
| 270 | SET_OF_constraint, |
| 271 | SET_OF_decode_ber, |
| 272 | SET_OF_encode_der, |
| 273 | SET_OF_decode_xer, |
| 274 | SET_OF_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 275 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 276 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 277 | asn_DEF_setof_tags_2, |
| 278 | sizeof(asn_DEF_setof_tags_2) |
| 279 | /sizeof(asn_DEF_setof_tags_2[0]) - 1, /* 1 */ |
| 280 | asn_DEF_setof_tags_2, /* Same as above */ |
| 281 | sizeof(asn_DEF_setof_tags_2) |
| 282 | /sizeof(asn_DEF_setof_tags_2[0]), /* 2 */ |
| 283 | 0, /* No PER visible constraints */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 284 | asn_MBR_setof_2, |
| 285 | 1, /* Single element */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 286 | &asn_SPC_setof_specs_2 /* Additional specs */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 287 | }; |
| 288 | |
| 289 | static asn_TYPE_member_t asn_MBR_Choice_1[] = { |
| 290 | { ATF_POINTER, 0, offsetof(struct Choice, choice.setof), |
| 291 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 292 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 293 | .type = &asn_DEF_setof_2, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 294 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 295 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 296 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 297 | .name = "setof" |
| 298 | }, |
| 299 | { ATF_POINTER, 0, offsetof(struct Choice, choice.aptr), |
| 300 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 301 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 302 | .type = &asn_DEF_Sequence, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 303 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 304 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 305 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 306 | .name = "aptr" |
| 307 | }, |
| 308 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl), |
| 309 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 310 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 311 | .type = &asn_DEF_Sequence, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 312 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 313 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 314 | .default_value = 0, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 315 | .name = "ainl" |
| 316 | }, |
| 317 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 318 | static asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = { |
vlm | 177a5b6 | 2005-09-05 05:17:57 +0000 | [diff] [blame] | 319 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setof at 28 */ |
| 320 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aptr at 30 */ |
| 321 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ainl at 32 */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 322 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 323 | static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = { |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 324 | sizeof(struct Choice), |
| 325 | offsetof(struct Choice, _asn_ctx), |
| 326 | offsetof(struct Choice, present), |
| 327 | sizeof(((struct Choice *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 328 | asn_MAP_Choice_tag2el_1, |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 329 | 3, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 330 | .canonical_order = 0, |
| 331 | .ext_start = -1 /* Extensions start */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 332 | }; |
| 333 | asn_TYPE_descriptor_t asn_DEF_Choice = { |
| 334 | "Choice", |
| 335 | "Choice", |
| 336 | CHOICE_free, |
| 337 | CHOICE_print, |
| 338 | CHOICE_constraint, |
| 339 | CHOICE_decode_ber, |
| 340 | CHOICE_encode_der, |
| 341 | CHOICE_decode_xer, |
| 342 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 343 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 344 | CHOICE_outmost_tag, |
| 345 | 0, /* No effective tags (pointer) */ |
| 346 | 0, /* No effective tags (count) */ |
| 347 | 0, /* No tags (pointer) */ |
| 348 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 349 | 0, /* No PER visible constraints */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 350 | asn_MBR_Choice_1, |
| 351 | 3, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 352 | &asn_SPC_Choice_specs_1 /* Additional specs */ |
vlm | 066dc10 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 353 | }; |
| 354 | |