vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [PDU] >>> ***/ |
| 3 | |
| 4 | #include <Sequence.h> |
| 5 | #include <Set.h> |
| 6 | #include <SetOf.h> |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 7 | #include <SequenceOf.h> |
| 8 | #include <ExtensibleSet.h> |
| 9 | #include <ExtensibleSequence.h> |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 10 | #include <constr_CHOICE.h> |
| 11 | |
| 12 | /*** <<< DEPS [PDU] >>> ***/ |
| 13 | |
| 14 | typedef enum PDU_PR { |
| 15 | PDU_PR_NOTHING, /* No components present */ |
| 16 | PDU_PR_sequence, |
| 17 | PDU_PR_set, |
| 18 | PDU_PR_setOf, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 19 | PDU_PR_sequenceOf, |
| 20 | PDU_PR_extensibleSet, |
| 21 | PDU_PR_extensibleSequence, |
| 22 | /* Extensions may appear below */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 23 | } PDU_PR; |
| 24 | extern asn_TYPE_descriptor_t asn_DEF_PDU; |
| 25 | |
| 26 | /*** <<< TYPE-DECLS [PDU] >>> ***/ |
| 27 | |
| 28 | |
| 29 | typedef struct PDU { |
| 30 | PDU_PR present; |
| 31 | union { |
| 32 | Sequence_t sequence; |
| 33 | Set_t set; |
| 34 | SetOf_t setOf; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 35 | SequenceOf_t sequenceOf; |
| 36 | ExtensibleSet_t extensibleSet; |
| 37 | ExtensibleSequence_t extensibleSequence; |
| 38 | /* |
| 39 | * This type is extensible, |
| 40 | * possible extensions are below. |
| 41 | */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 42 | } choice; |
| 43 | |
| 44 | /* Context for parsing across buffer boundaries */ |
| 45 | asn_struct_ctx_t _asn_ctx; |
| 46 | } PDU_t; |
| 47 | |
| 48 | /*** <<< STAT-DEFS [PDU] >>> ***/ |
| 49 | |
| 50 | static asn_TYPE_member_t asn_MBR_PDU[] = { |
| 51 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence), |
| 52 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 53 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 54 | .type = (void *)&asn_DEF_Sequence, |
| 55 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 56 | .name = "sequence" |
| 57 | }, |
| 58 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set), |
| 59 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 60 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 61 | .type = (void *)&asn_DEF_Set, |
| 62 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 63 | .name = "set" |
| 64 | }, |
| 65 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf), |
| 66 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 67 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 68 | .type = (void *)&asn_DEF_SetOf, |
| 69 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 70 | .name = "setOf" |
| 71 | }, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 72 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf), |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 73 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 74 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 75 | .type = (void *)&asn_DEF_SequenceOf, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 76 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 77 | .name = "sequenceOf" |
| 78 | }, |
| 79 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet), |
| 80 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 81 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 82 | .type = (void *)&asn_DEF_ExtensibleSet, |
| 83 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 84 | .name = "extensibleSet" |
| 85 | }, |
| 86 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence), |
| 87 | .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 88 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 89 | .type = (void *)&asn_DEF_ExtensibleSequence, |
| 90 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 91 | .name = "extensibleSequence" |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 92 | }, |
| 93 | }; |
| 94 | static asn_TYPE_tag2member_t asn_DEF_PDU_tag2el[] = { |
| 95 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */ |
| 96 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */ |
| 97 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* setOf at 21 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 98 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sequenceOf at 22 */ |
| 99 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSet at 23 */ |
| 100 | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence at 24 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 101 | }; |
| 102 | static asn_CHOICE_specifics_t asn_DEF_PDU_specs = { |
| 103 | sizeof(struct PDU), |
| 104 | offsetof(struct PDU, _asn_ctx), |
| 105 | offsetof(struct PDU, present), |
| 106 | sizeof(((struct PDU *)0)->present), |
| 107 | asn_DEF_PDU_tag2el, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 108 | 6, /* Count of tags in the map */ |
| 109 | 1 /* Whether extensible */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 110 | }; |
| 111 | asn_TYPE_descriptor_t asn_DEF_PDU = { |
| 112 | "PDU", |
| 113 | "PDU", |
| 114 | CHOICE_free, |
| 115 | CHOICE_print, |
| 116 | CHOICE_constraint, |
| 117 | CHOICE_decode_ber, |
| 118 | CHOICE_encode_der, |
| 119 | CHOICE_decode_xer, |
| 120 | CHOICE_encode_xer, |
| 121 | CHOICE_outmost_tag, |
| 122 | 0, /* No effective tags (pointer) */ |
| 123 | 0, /* No effective tags (count) */ |
| 124 | 0, /* No tags (pointer) */ |
| 125 | 0, /* No tags (count) */ |
| 126 | asn_MBR_PDU, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 127 | 6, /* Elements count */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 128 | &asn_DEF_PDU_specs /* Additional specs */ |
| 129 | }; |
| 130 | |
| 131 | |
| 132 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 133 | |
| 134 | #include <INTEGER.h> |
| 135 | #include <Sequence.h> |
| 136 | #include <BIT_STRING.h> |
| 137 | #include <UTF8String.h> |
| 138 | #include <constr_SEQUENCE.h> |
| 139 | |
| 140 | /*** <<< DEPS [Sequence] >>> ***/ |
| 141 | |
| 142 | |
| 143 | struct Sequence; /* Forward declaration */ |
| 144 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 145 | |
| 146 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 147 | |
| 148 | |
| 149 | typedef struct Sequence { |
| 150 | INTEGER_t integer; |
| 151 | struct Sequence *sequence /* OPTIONAL */; |
| 152 | BIT_STRING_t *bits /* OPTIONAL */; |
| 153 | UTF8String_t string; |
| 154 | |
| 155 | /* Context for parsing across buffer boundaries */ |
| 156 | asn_struct_ctx_t _asn_ctx; |
| 157 | } Sequence_t; |
| 158 | |
| 159 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 160 | |
| 161 | static asn_TYPE_member_t asn_MBR_Sequence[] = { |
| 162 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer), |
| 163 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 164 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 165 | .type = (void *)&asn_DEF_INTEGER, |
| 166 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 167 | .name = "integer" |
| 168 | }, |
| 169 | { ATF_POINTER, 2, offsetof(struct Sequence, sequence), |
| 170 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 171 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 172 | .type = (void *)&asn_DEF_Sequence, |
| 173 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 174 | .name = "sequence" |
| 175 | }, |
| 176 | { ATF_POINTER, 1, offsetof(struct Sequence, bits), |
| 177 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 178 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 179 | .type = (void *)&asn_DEF_BIT_STRING, |
| 180 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 181 | .name = "bits" |
| 182 | }, |
| 183 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, string), |
| 184 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 185 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 186 | .type = (void *)&asn_DEF_UTF8String, |
| 187 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 188 | .name = "string" |
| 189 | }, |
| 190 | }; |
| 191 | static ber_tlv_tag_t asn_DEF_Sequence_tags[] = { |
| 192 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 193 | }; |
| 194 | static asn_TYPE_tag2member_t asn_DEF_Sequence_tag2el[] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 195 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 29 */ |
| 196 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 30 */ |
| 197 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 31 */ |
| 198 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* string at 32 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 199 | }; |
| 200 | static asn_SEQUENCE_specifics_t asn_DEF_Sequence_specs = { |
| 201 | sizeof(struct Sequence), |
| 202 | offsetof(struct Sequence, _asn_ctx), |
| 203 | asn_DEF_Sequence_tag2el, |
| 204 | 4, /* Count of tags in the map */ |
| 205 | -1, /* Start extensions */ |
| 206 | -1 /* Stop extensions */ |
| 207 | }; |
| 208 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 209 | "Sequence", |
| 210 | "Sequence", |
| 211 | SEQUENCE_free, |
| 212 | SEQUENCE_print, |
| 213 | SEQUENCE_constraint, |
| 214 | SEQUENCE_decode_ber, |
| 215 | SEQUENCE_encode_der, |
| 216 | SEQUENCE_decode_xer, |
| 217 | SEQUENCE_encode_xer, |
| 218 | 0, /* Use generic outmost tag fetcher */ |
| 219 | asn_DEF_Sequence_tags, |
| 220 | sizeof(asn_DEF_Sequence_tags) |
| 221 | /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */ |
| 222 | asn_DEF_Sequence_tags, /* Same as above */ |
| 223 | sizeof(asn_DEF_Sequence_tags) |
| 224 | /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */ |
| 225 | asn_MBR_Sequence, |
| 226 | 4, /* Elements count */ |
| 227 | &asn_DEF_Sequence_specs /* Additional specs */ |
| 228 | }; |
| 229 | |
| 230 | |
| 231 | /*** <<< INCLUDES [Set] >>> ***/ |
| 232 | |
| 233 | #include <RELATIVE-OID.h> |
| 234 | #include <OCTET_STRING.h> |
| 235 | #include <constr_SET.h> |
| 236 | |
| 237 | /*** <<< DEPS [Set] >>> ***/ |
| 238 | |
| 239 | |
| 240 | /* |
| 241 | * Method of determining the components presence |
| 242 | */ |
| 243 | typedef enum Set_PR { |
| 244 | Set_PR_roid, /* Member roid is present */ |
| 245 | Set_PR_opaque, /* Member opaque is present */ |
| 246 | } Set_PR; |
| 247 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 248 | |
| 249 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 250 | |
| 251 | |
| 252 | typedef struct Set { |
| 253 | RELATIVE_OID_t roid; |
| 254 | OCTET_STRING_t *opaque /* OPTIONAL */; |
| 255 | |
| 256 | /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */ |
| 257 | unsigned int _presence_map |
| 258 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 259 | |
| 260 | /* Context for parsing across buffer boundaries */ |
| 261 | asn_struct_ctx_t _asn_ctx; |
| 262 | } Set_t; |
| 263 | |
| 264 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 265 | |
| 266 | static asn_TYPE_member_t asn_MBR_Set[] = { |
| 267 | { ATF_NOFLAGS, 0, offsetof(struct Set, roid), |
| 268 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 269 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 270 | .type = (void *)&asn_DEF_RELATIVE_OID, |
| 271 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 272 | .name = "roid" |
| 273 | }, |
| 274 | { ATF_POINTER, 1, offsetof(struct Set, opaque), |
| 275 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 276 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 277 | .type = (void *)&asn_DEF_OCTET_STRING, |
| 278 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 279 | .name = "opaque" |
| 280 | }, |
| 281 | }; |
| 282 | static ber_tlv_tag_t asn_DEF_Set_tags[] = { |
| 283 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 284 | }; |
| 285 | static asn_TYPE_tag2member_t asn_DEF_Set_tag2el[] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 286 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 36 */ |
| 287 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* opaque at 37 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 288 | }; |
| 289 | static uint8_t asn_DEF_Set_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 290 | (1 << 7) | (0 << 6) |
| 291 | }; |
| 292 | static asn_SET_specifics_t asn_DEF_Set_specs = { |
| 293 | sizeof(struct Set), |
| 294 | offsetof(struct Set, _asn_ctx), |
| 295 | offsetof(struct Set, _presence_map), |
| 296 | asn_DEF_Set_tag2el, |
| 297 | 2, /* Count of tags in the map */ |
| 298 | asn_DEF_Set_tag2el, /* Same as above */ |
| 299 | 2, /* Count of tags in the CANONICAL-XER map */ |
| 300 | 0, /* Whether extensible */ |
| 301 | (unsigned int *)asn_DEF_Set_mmap /* Mandatory elements map */ |
| 302 | }; |
| 303 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 304 | "Set", |
| 305 | "Set", |
| 306 | SET_free, |
| 307 | SET_print, |
| 308 | SET_constraint, |
| 309 | SET_decode_ber, |
| 310 | SET_encode_der, |
| 311 | SET_decode_xer, |
| 312 | SET_encode_xer, |
| 313 | 0, /* Use generic outmost tag fetcher */ |
| 314 | asn_DEF_Set_tags, |
| 315 | sizeof(asn_DEF_Set_tags) |
| 316 | /sizeof(asn_DEF_Set_tags[0]), /* 1 */ |
| 317 | asn_DEF_Set_tags, /* Same as above */ |
| 318 | sizeof(asn_DEF_Set_tags) |
| 319 | /sizeof(asn_DEF_Set_tags[0]), /* 1 */ |
| 320 | asn_MBR_Set, |
| 321 | 2, /* Elements count */ |
| 322 | &asn_DEF_Set_specs /* Additional specs */ |
| 323 | }; |
| 324 | |
| 325 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 326 | /*** <<< INCLUDES [ExtensibleSet] >>> ***/ |
| 327 | |
| 328 | #include <UTF8String.h> |
| 329 | #include <constr_SET.h> |
| 330 | |
| 331 | /*** <<< DEPS [ExtensibleSet] >>> ***/ |
| 332 | |
| 333 | |
| 334 | /* |
| 335 | * Method of determining the components presence |
| 336 | */ |
| 337 | typedef enum ExtensibleSet_PR { |
| 338 | ExtensibleSet_PR_string, /* Member string is present */ |
| 339 | } ExtensibleSet_PR; |
| 340 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet; |
| 341 | |
| 342 | /*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/ |
| 343 | |
| 344 | |
| 345 | typedef struct ExtensibleSet { |
| 346 | UTF8String_t *string /* OPTIONAL */; |
| 347 | /* |
| 348 | * This type is extensible, |
| 349 | * possible extensions are below. |
| 350 | */ |
| 351 | |
| 352 | /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */ |
| 353 | unsigned int _presence_map |
| 354 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 355 | |
| 356 | /* Context for parsing across buffer boundaries */ |
| 357 | asn_struct_ctx_t _asn_ctx; |
| 358 | } ExtensibleSet_t; |
| 359 | |
| 360 | /*** <<< STAT-DEFS [ExtensibleSet] >>> ***/ |
| 361 | |
| 362 | static asn_TYPE_member_t asn_MBR_ExtensibleSet[] = { |
| 363 | { ATF_POINTER, 1, offsetof(struct ExtensibleSet, string), |
| 364 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 365 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 366 | .type = (void *)&asn_DEF_UTF8String, |
| 367 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 368 | .name = "string" |
| 369 | }, |
| 370 | }; |
| 371 | static ber_tlv_tag_t asn_DEF_ExtensibleSet_tags[] = { |
| 372 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 373 | }; |
| 374 | static asn_TYPE_tag2member_t asn_DEF_ExtensibleSet_tag2el[] = { |
| 375 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 41 */ |
| 376 | }; |
| 377 | static uint8_t asn_DEF_ExtensibleSet_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 378 | (0 << 7) |
| 379 | }; |
| 380 | static asn_SET_specifics_t asn_DEF_ExtensibleSet_specs = { |
| 381 | sizeof(struct ExtensibleSet), |
| 382 | offsetof(struct ExtensibleSet, _asn_ctx), |
| 383 | offsetof(struct ExtensibleSet, _presence_map), |
| 384 | asn_DEF_ExtensibleSet_tag2el, |
| 385 | 1, /* Count of tags in the map */ |
| 386 | asn_DEF_ExtensibleSet_tag2el, /* Same as above */ |
| 387 | 1, /* Count of tags in the CANONICAL-XER map */ |
| 388 | 1, /* Whether extensible */ |
| 389 | (unsigned int *)asn_DEF_ExtensibleSet_mmap /* Mandatory elements map */ |
| 390 | }; |
| 391 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = { |
| 392 | "ExtensibleSet", |
| 393 | "ExtensibleSet", |
| 394 | SET_free, |
| 395 | SET_print, |
| 396 | SET_constraint, |
| 397 | SET_decode_ber, |
| 398 | SET_encode_der, |
| 399 | SET_decode_xer, |
| 400 | SET_encode_xer, |
| 401 | 0, /* Use generic outmost tag fetcher */ |
| 402 | asn_DEF_ExtensibleSet_tags, |
| 403 | sizeof(asn_DEF_ExtensibleSet_tags) |
| 404 | /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */ |
| 405 | asn_DEF_ExtensibleSet_tags, /* Same as above */ |
| 406 | sizeof(asn_DEF_ExtensibleSet_tags) |
| 407 | /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */ |
| 408 | asn_MBR_ExtensibleSet, |
| 409 | 1, /* Elements count */ |
| 410 | &asn_DEF_ExtensibleSet_specs /* Additional specs */ |
| 411 | }; |
| 412 | |
| 413 | |
| 414 | /*** <<< INCLUDES [ExtensibleSequence] >>> ***/ |
| 415 | |
| 416 | #include <UTF8String.h> |
| 417 | #include <INTEGER.h> |
| 418 | #include <constr_SEQUENCE.h> |
| 419 | |
| 420 | /*** <<< DEPS [ExtensibleSequence] >>> ***/ |
| 421 | |
| 422 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence; |
| 423 | |
| 424 | /*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/ |
| 425 | |
| 426 | |
| 427 | typedef struct ExtensibleSequence { |
| 428 | UTF8String_t *string /* OPTIONAL */; |
| 429 | /* |
| 430 | * This type is extensible, |
| 431 | * possible extensions are below. |
| 432 | */ |
| 433 | INTEGER_t *integer /* OPTIONAL */; |
| 434 | |
| 435 | /* Context for parsing across buffer boundaries */ |
| 436 | asn_struct_ctx_t _asn_ctx; |
| 437 | } ExtensibleSequence_t; |
| 438 | |
| 439 | /*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/ |
| 440 | |
| 441 | static asn_TYPE_member_t asn_MBR_ExtensibleSequence[] = { |
| 442 | { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, string), |
| 443 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 444 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 445 | .type = (void *)&asn_DEF_UTF8String, |
| 446 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 447 | .name = "string" |
| 448 | }, |
| 449 | { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, integer), |
| 450 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 451 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 452 | .type = (void *)&asn_DEF_INTEGER, |
| 453 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 454 | .name = "integer" |
| 455 | }, |
| 456 | }; |
| 457 | static ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags[] = { |
| 458 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 459 | }; |
| 460 | static asn_TYPE_tag2member_t asn_DEF_ExtensibleSequence_tag2el[] = { |
| 461 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 46 */ |
| 462 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer at 48 */ |
| 463 | }; |
| 464 | static asn_SEQUENCE_specifics_t asn_DEF_ExtensibleSequence_specs = { |
| 465 | sizeof(struct ExtensibleSequence), |
| 466 | offsetof(struct ExtensibleSequence, _asn_ctx), |
| 467 | asn_DEF_ExtensibleSequence_tag2el, |
| 468 | 2, /* Count of tags in the map */ |
| 469 | 0, /* Start extensions */ |
| 470 | 3 /* Stop extensions */ |
| 471 | }; |
| 472 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = { |
| 473 | "ExtensibleSequence", |
| 474 | "ExtensibleSequence", |
| 475 | SEQUENCE_free, |
| 476 | SEQUENCE_print, |
| 477 | SEQUENCE_constraint, |
| 478 | SEQUENCE_decode_ber, |
| 479 | SEQUENCE_encode_der, |
| 480 | SEQUENCE_decode_xer, |
| 481 | SEQUENCE_encode_xer, |
| 482 | 0, /* Use generic outmost tag fetcher */ |
| 483 | asn_DEF_ExtensibleSequence_tags, |
| 484 | sizeof(asn_DEF_ExtensibleSequence_tags) |
| 485 | /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */ |
| 486 | asn_DEF_ExtensibleSequence_tags, /* Same as above */ |
| 487 | sizeof(asn_DEF_ExtensibleSequence_tags) |
| 488 | /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */ |
| 489 | asn_MBR_ExtensibleSequence, |
| 490 | 2, /* Elements count */ |
| 491 | &asn_DEF_ExtensibleSequence_specs /* Additional specs */ |
| 492 | }; |
| 493 | |
| 494 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 495 | /*** <<< INCLUDES [SetOf] >>> ***/ |
| 496 | |
| 497 | #include <REAL.h> |
| 498 | #include <asn_SET_OF.h> |
| 499 | #include <constr_SET_OF.h> |
| 500 | |
| 501 | /*** <<< DEPS [SetOf] >>> ***/ |
| 502 | |
| 503 | extern asn_TYPE_descriptor_t asn_DEF_SetOf; |
| 504 | |
| 505 | /*** <<< TYPE-DECLS [SetOf] >>> ***/ |
| 506 | |
| 507 | |
| 508 | typedef struct SetOf { |
| 509 | A_SET_OF(REAL_t) list; |
| 510 | |
| 511 | /* Context for parsing across buffer boundaries */ |
| 512 | asn_struct_ctx_t _asn_ctx; |
| 513 | } SetOf_t; |
| 514 | |
| 515 | /*** <<< STAT-DEFS [SetOf] >>> ***/ |
| 516 | |
| 517 | static asn_TYPE_member_t asn_MBR_SetOf[] = { |
| 518 | { ATF_NOFLAGS, 0, 0, |
| 519 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), |
| 520 | .tag_mode = 0, |
| 521 | .type = (void *)&asn_DEF_REAL, |
| 522 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 523 | .name = "" |
| 524 | }, |
| 525 | }; |
| 526 | static ber_tlv_tag_t asn_DEF_SetOf_tags[] = { |
| 527 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 528 | }; |
| 529 | static asn_SET_OF_specifics_t asn_DEF_SetOf_specs = { |
| 530 | sizeof(struct SetOf), |
| 531 | offsetof(struct SetOf, _asn_ctx), |
| 532 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 533 | }; |
| 534 | asn_TYPE_descriptor_t asn_DEF_SetOf = { |
| 535 | "SetOf", |
| 536 | "SetOf", |
| 537 | SET_OF_free, |
| 538 | SET_OF_print, |
| 539 | SET_OF_constraint, |
| 540 | SET_OF_decode_ber, |
| 541 | SET_OF_encode_der, |
| 542 | SET_OF_decode_xer, |
| 543 | SET_OF_encode_xer, |
| 544 | 0, /* Use generic outmost tag fetcher */ |
| 545 | asn_DEF_SetOf_tags, |
| 546 | sizeof(asn_DEF_SetOf_tags) |
| 547 | /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */ |
| 548 | asn_DEF_SetOf_tags, /* Same as above */ |
| 549 | sizeof(asn_DEF_SetOf_tags) |
| 550 | /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */ |
| 551 | asn_MBR_SetOf, |
| 552 | 1, /* Single element */ |
| 553 | &asn_DEF_SetOf_specs /* Additional specs */ |
| 554 | }; |
| 555 | |
| 556 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 557 | /*** <<< INCLUDES [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 558 | |
| 559 | #include <INTEGER.h> |
| 560 | #include <asn_SEQUENCE_OF.h> |
| 561 | #include <constr_SEQUENCE_OF.h> |
| 562 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 563 | /*** <<< DEPS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 564 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 565 | extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 566 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 567 | /*** <<< TYPE-DECLS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 568 | |
| 569 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 570 | typedef struct SequenceOf { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 571 | A_SEQUENCE_OF(INTEGER_t) list; |
| 572 | |
| 573 | /* Context for parsing across buffer boundaries */ |
| 574 | asn_struct_ctx_t _asn_ctx; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 575 | } SequenceOf_t; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 576 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 577 | /*** <<< STAT-DEFS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 578 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 579 | static asn_TYPE_member_t asn_MBR_SequenceOf[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 580 | { ATF_NOFLAGS, 0, 0, |
| 581 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 582 | .tag_mode = 0, |
| 583 | .type = (void *)&asn_DEF_INTEGER, |
| 584 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 585 | .name = "id" |
| 586 | }, |
| 587 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 588 | static ber_tlv_tag_t asn_DEF_SequenceOf_tags[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 589 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 590 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 591 | static asn_SET_OF_specifics_t asn_DEF_SequenceOf_specs = { |
| 592 | sizeof(struct SequenceOf), |
| 593 | offsetof(struct SequenceOf, _asn_ctx), |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 594 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 595 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 596 | asn_TYPE_descriptor_t asn_DEF_SequenceOf = { |
| 597 | "SequenceOf", |
| 598 | "SequenceOf", |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 599 | SEQUENCE_OF_free, |
| 600 | SEQUENCE_OF_print, |
| 601 | SEQUENCE_OF_constraint, |
| 602 | SEQUENCE_OF_decode_ber, |
| 603 | SEQUENCE_OF_encode_der, |
| 604 | SEQUENCE_OF_decode_xer, |
| 605 | SEQUENCE_OF_encode_xer, |
| 606 | 0, /* Use generic outmost tag fetcher */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 607 | asn_DEF_SequenceOf_tags, |
| 608 | sizeof(asn_DEF_SequenceOf_tags) |
| 609 | /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */ |
| 610 | asn_DEF_SequenceOf_tags, /* Same as above */ |
| 611 | sizeof(asn_DEF_SequenceOf_tags) |
| 612 | /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */ |
| 613 | asn_MBR_SequenceOf, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 614 | 1, /* Single element */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 615 | &asn_DEF_SequenceOf_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 616 | }; |
| 617 | |