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 | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 10 | #include <SetOfNULL.h> |
| 11 | #include <SetOfEnums.h> |
| 12 | #include <SeqOfZuka.h> |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 13 | #include <constr_CHOICE.h> |
| 14 | |
| 15 | /*** <<< DEPS [PDU] >>> ***/ |
| 16 | |
| 17 | typedef enum PDU_PR { |
| 18 | PDU_PR_NOTHING, /* No components present */ |
| 19 | PDU_PR_sequence, |
| 20 | PDU_PR_set, |
| 21 | PDU_PR_setOf, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 22 | PDU_PR_sequenceOf, |
| 23 | PDU_PR_extensibleSet, |
| 24 | PDU_PR_extensibleSequence, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 25 | PDU_PR_setOfNULL, |
| 26 | PDU_PR_setOfEnums, |
| 27 | PDU_PR_seqOfZuka, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 28 | /* Extensions may appear below */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 29 | } PDU_PR; |
| 30 | extern asn_TYPE_descriptor_t asn_DEF_PDU; |
| 31 | |
| 32 | /*** <<< TYPE-DECLS [PDU] >>> ***/ |
| 33 | |
| 34 | |
| 35 | typedef struct PDU { |
| 36 | PDU_PR present; |
| 37 | union { |
| 38 | Sequence_t sequence; |
| 39 | Set_t set; |
| 40 | SetOf_t setOf; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 41 | SequenceOf_t sequenceOf; |
| 42 | ExtensibleSet_t extensibleSet; |
| 43 | ExtensibleSequence_t extensibleSequence; |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 44 | SetOfNULL_t setOfNULL; |
| 45 | SetOfEnums_t setOfEnums; |
| 46 | SeqOfZuka_t seqOfZuka; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 47 | /* |
| 48 | * This type is extensible, |
| 49 | * possible extensions are below. |
| 50 | */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 51 | } choice; |
| 52 | |
| 53 | /* Context for parsing across buffer boundaries */ |
| 54 | asn_struct_ctx_t _asn_ctx; |
| 55 | } PDU_t; |
| 56 | |
| 57 | /*** <<< STAT-DEFS [PDU] >>> ***/ |
| 58 | |
| 59 | static asn_TYPE_member_t asn_MBR_PDU[] = { |
| 60 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence), |
| 61 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 62 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 63 | .type = (void *)&asn_DEF_Sequence, |
| 64 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 65 | .name = "sequence" |
| 66 | }, |
| 67 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set), |
| 68 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 69 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 70 | .type = (void *)&asn_DEF_Set, |
| 71 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 72 | .name = "set" |
| 73 | }, |
| 74 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf), |
| 75 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 76 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 77 | .type = (void *)&asn_DEF_SetOf, |
| 78 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 79 | .name = "setOf" |
| 80 | }, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 81 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf), |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 82 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 83 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 84 | .type = (void *)&asn_DEF_SequenceOf, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 85 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 86 | .name = "sequenceOf" |
| 87 | }, |
| 88 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet), |
| 89 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 90 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 91 | .type = (void *)&asn_DEF_ExtensibleSet, |
| 92 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 93 | .name = "extensibleSet" |
| 94 | }, |
| 95 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence), |
| 96 | .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 97 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 98 | .type = (void *)&asn_DEF_ExtensibleSequence, |
| 99 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 100 | .name = "extensibleSequence" |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 101 | }, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 102 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL), |
| 103 | .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
| 104 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 105 | .type = (void *)&asn_DEF_SetOfNULL, |
| 106 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 107 | .name = "setOfNULL" |
| 108 | }, |
| 109 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums), |
| 110 | .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)), |
| 111 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 112 | .type = (void *)&asn_DEF_SetOfEnums, |
| 113 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 114 | .name = "setOfEnums" |
| 115 | }, |
| 116 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka), |
| 117 | .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)), |
| 118 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 119 | .type = (void *)&asn_DEF_SeqOfZuka, |
| 120 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 121 | .name = "seqOfZuka" |
| 122 | }, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 123 | }; |
| 124 | static asn_TYPE_tag2member_t asn_DEF_PDU_tag2el[] = { |
| 125 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */ |
| 126 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */ |
| 127 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* setOf at 21 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 128 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sequenceOf at 22 */ |
| 129 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSet at 23 */ |
| 130 | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence at 24 */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 131 | { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL at 25 */ |
| 132 | { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfEnums at 26 */ |
| 133 | { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* seqOfZuka at 27 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 134 | }; |
| 135 | static asn_CHOICE_specifics_t asn_DEF_PDU_specs = { |
| 136 | sizeof(struct PDU), |
| 137 | offsetof(struct PDU, _asn_ctx), |
| 138 | offsetof(struct PDU, present), |
| 139 | sizeof(((struct PDU *)0)->present), |
| 140 | asn_DEF_PDU_tag2el, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 141 | 9, /* Count of tags in the map */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 142 | 1 /* Whether extensible */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 143 | }; |
| 144 | asn_TYPE_descriptor_t asn_DEF_PDU = { |
| 145 | "PDU", |
| 146 | "PDU", |
| 147 | CHOICE_free, |
| 148 | CHOICE_print, |
| 149 | CHOICE_constraint, |
| 150 | CHOICE_decode_ber, |
| 151 | CHOICE_encode_der, |
| 152 | CHOICE_decode_xer, |
| 153 | CHOICE_encode_xer, |
| 154 | CHOICE_outmost_tag, |
| 155 | 0, /* No effective tags (pointer) */ |
| 156 | 0, /* No effective tags (count) */ |
| 157 | 0, /* No tags (pointer) */ |
| 158 | 0, /* No tags (count) */ |
| 159 | asn_MBR_PDU, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 160 | 9, /* Elements count */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 161 | &asn_DEF_PDU_specs /* Additional specs */ |
| 162 | }; |
| 163 | |
| 164 | |
| 165 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 166 | |
| 167 | #include <INTEGER.h> |
| 168 | #include <Sequence.h> |
| 169 | #include <BIT_STRING.h> |
| 170 | #include <UTF8String.h> |
| 171 | #include <constr_SEQUENCE.h> |
| 172 | |
| 173 | /*** <<< DEPS [Sequence] >>> ***/ |
| 174 | |
| 175 | |
| 176 | struct Sequence; /* Forward declaration */ |
| 177 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 178 | |
| 179 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 180 | |
| 181 | |
| 182 | typedef struct Sequence { |
| 183 | INTEGER_t integer; |
| 184 | struct Sequence *sequence /* OPTIONAL */; |
| 185 | BIT_STRING_t *bits /* OPTIONAL */; |
| 186 | UTF8String_t string; |
| 187 | |
| 188 | /* Context for parsing across buffer boundaries */ |
| 189 | asn_struct_ctx_t _asn_ctx; |
| 190 | } Sequence_t; |
| 191 | |
| 192 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 193 | |
| 194 | static asn_TYPE_member_t asn_MBR_Sequence[] = { |
| 195 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer), |
| 196 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 197 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 198 | .type = (void *)&asn_DEF_INTEGER, |
| 199 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 200 | .name = "integer" |
| 201 | }, |
| 202 | { ATF_POINTER, 2, offsetof(struct Sequence, sequence), |
| 203 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 204 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 205 | .type = (void *)&asn_DEF_Sequence, |
| 206 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 207 | .name = "sequence" |
| 208 | }, |
| 209 | { ATF_POINTER, 1, offsetof(struct Sequence, bits), |
| 210 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 211 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 212 | .type = (void *)&asn_DEF_BIT_STRING, |
| 213 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 214 | .name = "bits" |
| 215 | }, |
| 216 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, string), |
| 217 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 218 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 219 | .type = (void *)&asn_DEF_UTF8String, |
| 220 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 221 | .name = "string" |
| 222 | }, |
| 223 | }; |
| 224 | static ber_tlv_tag_t asn_DEF_Sequence_tags[] = { |
| 225 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 226 | }; |
| 227 | static asn_TYPE_tag2member_t asn_DEF_Sequence_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 228 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 32 */ |
| 229 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 33 */ |
| 230 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 34 */ |
| 231 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* string at 35 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 232 | }; |
| 233 | static asn_SEQUENCE_specifics_t asn_DEF_Sequence_specs = { |
| 234 | sizeof(struct Sequence), |
| 235 | offsetof(struct Sequence, _asn_ctx), |
| 236 | asn_DEF_Sequence_tag2el, |
| 237 | 4, /* Count of tags in the map */ |
| 238 | -1, /* Start extensions */ |
| 239 | -1 /* Stop extensions */ |
| 240 | }; |
| 241 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 242 | "Sequence", |
| 243 | "Sequence", |
| 244 | SEQUENCE_free, |
| 245 | SEQUENCE_print, |
| 246 | SEQUENCE_constraint, |
| 247 | SEQUENCE_decode_ber, |
| 248 | SEQUENCE_encode_der, |
| 249 | SEQUENCE_decode_xer, |
| 250 | SEQUENCE_encode_xer, |
| 251 | 0, /* Use generic outmost tag fetcher */ |
| 252 | asn_DEF_Sequence_tags, |
| 253 | sizeof(asn_DEF_Sequence_tags) |
| 254 | /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */ |
| 255 | asn_DEF_Sequence_tags, /* Same as above */ |
| 256 | sizeof(asn_DEF_Sequence_tags) |
| 257 | /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */ |
| 258 | asn_MBR_Sequence, |
| 259 | 4, /* Elements count */ |
| 260 | &asn_DEF_Sequence_specs /* Additional specs */ |
| 261 | }; |
| 262 | |
| 263 | |
| 264 | /*** <<< INCLUDES [Set] >>> ***/ |
| 265 | |
| 266 | #include <RELATIVE-OID.h> |
| 267 | #include <OCTET_STRING.h> |
| 268 | #include <constr_SET.h> |
| 269 | |
| 270 | /*** <<< DEPS [Set] >>> ***/ |
| 271 | |
| 272 | |
| 273 | /* |
| 274 | * Method of determining the components presence |
| 275 | */ |
| 276 | typedef enum Set_PR { |
| 277 | Set_PR_roid, /* Member roid is present */ |
| 278 | Set_PR_opaque, /* Member opaque is present */ |
| 279 | } Set_PR; |
| 280 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 281 | |
| 282 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 283 | |
| 284 | |
| 285 | typedef struct Set { |
| 286 | RELATIVE_OID_t roid; |
| 287 | OCTET_STRING_t *opaque /* OPTIONAL */; |
| 288 | |
| 289 | /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */ |
| 290 | unsigned int _presence_map |
| 291 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 292 | |
| 293 | /* Context for parsing across buffer boundaries */ |
| 294 | asn_struct_ctx_t _asn_ctx; |
| 295 | } Set_t; |
| 296 | |
| 297 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 298 | |
| 299 | static asn_TYPE_member_t asn_MBR_Set[] = { |
| 300 | { ATF_NOFLAGS, 0, offsetof(struct Set, roid), |
| 301 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 302 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 303 | .type = (void *)&asn_DEF_RELATIVE_OID, |
| 304 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 305 | .name = "roid" |
| 306 | }, |
| 307 | { ATF_POINTER, 1, offsetof(struct Set, opaque), |
| 308 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 309 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 310 | .type = (void *)&asn_DEF_OCTET_STRING, |
| 311 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 312 | .name = "opaque" |
| 313 | }, |
| 314 | }; |
| 315 | static ber_tlv_tag_t asn_DEF_Set_tags[] = { |
| 316 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 317 | }; |
| 318 | static asn_TYPE_tag2member_t asn_DEF_Set_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 319 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 39 */ |
| 320 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* opaque at 40 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 321 | }; |
| 322 | static uint8_t asn_DEF_Set_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 323 | (1 << 7) | (0 << 6) |
| 324 | }; |
| 325 | static asn_SET_specifics_t asn_DEF_Set_specs = { |
| 326 | sizeof(struct Set), |
| 327 | offsetof(struct Set, _asn_ctx), |
| 328 | offsetof(struct Set, _presence_map), |
| 329 | asn_DEF_Set_tag2el, |
| 330 | 2, /* Count of tags in the map */ |
| 331 | asn_DEF_Set_tag2el, /* Same as above */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 332 | 2, /* Count of tags in the CXER map */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 333 | 0, /* Whether extensible */ |
| 334 | (unsigned int *)asn_DEF_Set_mmap /* Mandatory elements map */ |
| 335 | }; |
| 336 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 337 | "Set", |
| 338 | "Set", |
| 339 | SET_free, |
| 340 | SET_print, |
| 341 | SET_constraint, |
| 342 | SET_decode_ber, |
| 343 | SET_encode_der, |
| 344 | SET_decode_xer, |
| 345 | SET_encode_xer, |
| 346 | 0, /* Use generic outmost tag fetcher */ |
| 347 | asn_DEF_Set_tags, |
| 348 | sizeof(asn_DEF_Set_tags) |
| 349 | /sizeof(asn_DEF_Set_tags[0]), /* 1 */ |
| 350 | asn_DEF_Set_tags, /* Same as above */ |
| 351 | sizeof(asn_DEF_Set_tags) |
| 352 | /sizeof(asn_DEF_Set_tags[0]), /* 1 */ |
| 353 | asn_MBR_Set, |
| 354 | 2, /* Elements count */ |
| 355 | &asn_DEF_Set_specs /* Additional specs */ |
| 356 | }; |
| 357 | |
| 358 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 359 | /*** <<< INCLUDES [ExtensibleSet] >>> ***/ |
| 360 | |
| 361 | #include <UTF8String.h> |
| 362 | #include <constr_SET.h> |
| 363 | |
| 364 | /*** <<< DEPS [ExtensibleSet] >>> ***/ |
| 365 | |
| 366 | |
| 367 | /* |
| 368 | * Method of determining the components presence |
| 369 | */ |
| 370 | typedef enum ExtensibleSet_PR { |
| 371 | ExtensibleSet_PR_string, /* Member string is present */ |
| 372 | } ExtensibleSet_PR; |
| 373 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet; |
| 374 | |
| 375 | /*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/ |
| 376 | |
| 377 | |
| 378 | typedef struct ExtensibleSet { |
| 379 | UTF8String_t *string /* OPTIONAL */; |
| 380 | /* |
| 381 | * This type is extensible, |
| 382 | * possible extensions are below. |
| 383 | */ |
| 384 | |
| 385 | /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */ |
| 386 | unsigned int _presence_map |
| 387 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 388 | |
| 389 | /* Context for parsing across buffer boundaries */ |
| 390 | asn_struct_ctx_t _asn_ctx; |
| 391 | } ExtensibleSet_t; |
| 392 | |
| 393 | /*** <<< STAT-DEFS [ExtensibleSet] >>> ***/ |
| 394 | |
| 395 | static asn_TYPE_member_t asn_MBR_ExtensibleSet[] = { |
| 396 | { ATF_POINTER, 1, offsetof(struct ExtensibleSet, string), |
| 397 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 398 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 399 | .type = (void *)&asn_DEF_UTF8String, |
| 400 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 401 | .name = "string" |
| 402 | }, |
| 403 | }; |
| 404 | static ber_tlv_tag_t asn_DEF_ExtensibleSet_tags[] = { |
| 405 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 406 | }; |
| 407 | static asn_TYPE_tag2member_t asn_DEF_ExtensibleSet_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 408 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 44 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 409 | }; |
| 410 | static uint8_t asn_DEF_ExtensibleSet_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 411 | (0 << 7) |
| 412 | }; |
| 413 | static asn_SET_specifics_t asn_DEF_ExtensibleSet_specs = { |
| 414 | sizeof(struct ExtensibleSet), |
| 415 | offsetof(struct ExtensibleSet, _asn_ctx), |
| 416 | offsetof(struct ExtensibleSet, _presence_map), |
| 417 | asn_DEF_ExtensibleSet_tag2el, |
| 418 | 1, /* Count of tags in the map */ |
| 419 | asn_DEF_ExtensibleSet_tag2el, /* Same as above */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 420 | 1, /* Count of tags in the CXER map */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 421 | 1, /* Whether extensible */ |
| 422 | (unsigned int *)asn_DEF_ExtensibleSet_mmap /* Mandatory elements map */ |
| 423 | }; |
| 424 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = { |
| 425 | "ExtensibleSet", |
| 426 | "ExtensibleSet", |
| 427 | SET_free, |
| 428 | SET_print, |
| 429 | SET_constraint, |
| 430 | SET_decode_ber, |
| 431 | SET_encode_der, |
| 432 | SET_decode_xer, |
| 433 | SET_encode_xer, |
| 434 | 0, /* Use generic outmost tag fetcher */ |
| 435 | asn_DEF_ExtensibleSet_tags, |
| 436 | sizeof(asn_DEF_ExtensibleSet_tags) |
| 437 | /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */ |
| 438 | asn_DEF_ExtensibleSet_tags, /* Same as above */ |
| 439 | sizeof(asn_DEF_ExtensibleSet_tags) |
| 440 | /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */ |
| 441 | asn_MBR_ExtensibleSet, |
| 442 | 1, /* Elements count */ |
| 443 | &asn_DEF_ExtensibleSet_specs /* Additional specs */ |
| 444 | }; |
| 445 | |
| 446 | |
| 447 | /*** <<< INCLUDES [ExtensibleSequence] >>> ***/ |
| 448 | |
| 449 | #include <UTF8String.h> |
| 450 | #include <INTEGER.h> |
| 451 | #include <constr_SEQUENCE.h> |
| 452 | |
| 453 | /*** <<< DEPS [ExtensibleSequence] >>> ***/ |
| 454 | |
| 455 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence; |
| 456 | |
| 457 | /*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/ |
| 458 | |
| 459 | |
| 460 | typedef struct ExtensibleSequence { |
| 461 | UTF8String_t *string /* OPTIONAL */; |
| 462 | /* |
| 463 | * This type is extensible, |
| 464 | * possible extensions are below. |
| 465 | */ |
| 466 | INTEGER_t *integer /* OPTIONAL */; |
| 467 | |
| 468 | /* Context for parsing across buffer boundaries */ |
| 469 | asn_struct_ctx_t _asn_ctx; |
| 470 | } ExtensibleSequence_t; |
| 471 | |
| 472 | /*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/ |
| 473 | |
| 474 | static asn_TYPE_member_t asn_MBR_ExtensibleSequence[] = { |
| 475 | { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, string), |
| 476 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 477 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 478 | .type = (void *)&asn_DEF_UTF8String, |
| 479 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 480 | .name = "string" |
| 481 | }, |
| 482 | { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, integer), |
| 483 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 484 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 485 | .type = (void *)&asn_DEF_INTEGER, |
| 486 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 487 | .name = "integer" |
| 488 | }, |
| 489 | }; |
| 490 | static ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags[] = { |
| 491 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 492 | }; |
| 493 | static asn_TYPE_tag2member_t asn_DEF_ExtensibleSequence_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 494 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 49 */ |
| 495 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer at 51 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 496 | }; |
| 497 | static asn_SEQUENCE_specifics_t asn_DEF_ExtensibleSequence_specs = { |
| 498 | sizeof(struct ExtensibleSequence), |
| 499 | offsetof(struct ExtensibleSequence, _asn_ctx), |
| 500 | asn_DEF_ExtensibleSequence_tag2el, |
| 501 | 2, /* Count of tags in the map */ |
| 502 | 0, /* Start extensions */ |
| 503 | 3 /* Stop extensions */ |
| 504 | }; |
| 505 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = { |
| 506 | "ExtensibleSequence", |
| 507 | "ExtensibleSequence", |
| 508 | SEQUENCE_free, |
| 509 | SEQUENCE_print, |
| 510 | SEQUENCE_constraint, |
| 511 | SEQUENCE_decode_ber, |
| 512 | SEQUENCE_encode_der, |
| 513 | SEQUENCE_decode_xer, |
| 514 | SEQUENCE_encode_xer, |
| 515 | 0, /* Use generic outmost tag fetcher */ |
| 516 | asn_DEF_ExtensibleSequence_tags, |
| 517 | sizeof(asn_DEF_ExtensibleSequence_tags) |
| 518 | /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */ |
| 519 | asn_DEF_ExtensibleSequence_tags, /* Same as above */ |
| 520 | sizeof(asn_DEF_ExtensibleSequence_tags) |
| 521 | /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */ |
| 522 | asn_MBR_ExtensibleSequence, |
| 523 | 2, /* Elements count */ |
| 524 | &asn_DEF_ExtensibleSequence_specs /* Additional specs */ |
| 525 | }; |
| 526 | |
| 527 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 528 | /*** <<< INCLUDES [SetOf] >>> ***/ |
| 529 | |
| 530 | #include <REAL.h> |
| 531 | #include <asn_SET_OF.h> |
| 532 | #include <constr_SET_OF.h> |
| 533 | |
| 534 | /*** <<< DEPS [SetOf] >>> ***/ |
| 535 | |
| 536 | extern asn_TYPE_descriptor_t asn_DEF_SetOf; |
| 537 | |
| 538 | /*** <<< TYPE-DECLS [SetOf] >>> ***/ |
| 539 | |
| 540 | |
| 541 | typedef struct SetOf { |
| 542 | A_SET_OF(REAL_t) list; |
| 543 | |
| 544 | /* Context for parsing across buffer boundaries */ |
| 545 | asn_struct_ctx_t _asn_ctx; |
| 546 | } SetOf_t; |
| 547 | |
| 548 | /*** <<< STAT-DEFS [SetOf] >>> ***/ |
| 549 | |
| 550 | static asn_TYPE_member_t asn_MBR_SetOf[] = { |
| 551 | { ATF_NOFLAGS, 0, 0, |
| 552 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), |
| 553 | .tag_mode = 0, |
| 554 | .type = (void *)&asn_DEF_REAL, |
| 555 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 556 | .name = "" |
| 557 | }, |
| 558 | }; |
| 559 | static ber_tlv_tag_t asn_DEF_SetOf_tags[] = { |
| 560 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 561 | }; |
| 562 | static asn_SET_OF_specifics_t asn_DEF_SetOf_specs = { |
| 563 | sizeof(struct SetOf), |
| 564 | offsetof(struct SetOf, _asn_ctx), |
| 565 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 566 | }; |
| 567 | asn_TYPE_descriptor_t asn_DEF_SetOf = { |
| 568 | "SetOf", |
| 569 | "SetOf", |
| 570 | SET_OF_free, |
| 571 | SET_OF_print, |
| 572 | SET_OF_constraint, |
| 573 | SET_OF_decode_ber, |
| 574 | SET_OF_encode_der, |
| 575 | SET_OF_decode_xer, |
| 576 | SET_OF_encode_xer, |
| 577 | 0, /* Use generic outmost tag fetcher */ |
| 578 | asn_DEF_SetOf_tags, |
| 579 | sizeof(asn_DEF_SetOf_tags) |
| 580 | /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */ |
| 581 | asn_DEF_SetOf_tags, /* Same as above */ |
| 582 | sizeof(asn_DEF_SetOf_tags) |
| 583 | /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */ |
| 584 | asn_MBR_SetOf, |
| 585 | 1, /* Single element */ |
| 586 | &asn_DEF_SetOf_specs /* Additional specs */ |
| 587 | }; |
| 588 | |
| 589 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 590 | /*** <<< INCLUDES [SetOfNULL] >>> ***/ |
| 591 | |
| 592 | #include <NULL.h> |
| 593 | #include <asn_SET_OF.h> |
| 594 | #include <constr_SET_OF.h> |
| 595 | |
| 596 | /*** <<< DEPS [SetOfNULL] >>> ***/ |
| 597 | |
| 598 | extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL; |
| 599 | |
| 600 | /*** <<< TYPE-DECLS [SetOfNULL] >>> ***/ |
| 601 | |
| 602 | |
| 603 | typedef struct SetOfNULL { |
| 604 | A_SET_OF(NULL_t) list; |
| 605 | |
| 606 | /* Context for parsing across buffer boundaries */ |
| 607 | asn_struct_ctx_t _asn_ctx; |
| 608 | } SetOfNULL_t; |
| 609 | |
| 610 | /*** <<< STAT-DEFS [SetOfNULL] >>> ***/ |
| 611 | |
| 612 | static asn_TYPE_member_t asn_MBR_SetOfNULL[] = { |
| 613 | { ATF_NOFLAGS, 0, 0, |
| 614 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 615 | .tag_mode = 0, |
| 616 | .type = (void *)&asn_DEF_NULL, |
| 617 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 618 | .name = "" |
| 619 | }, |
| 620 | }; |
| 621 | static ber_tlv_tag_t asn_DEF_SetOfNULL_tags[] = { |
| 622 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 623 | }; |
| 624 | static asn_SET_OF_specifics_t asn_DEF_SetOfNULL_specs = { |
| 625 | sizeof(struct SetOfNULL), |
| 626 | offsetof(struct SetOfNULL, _asn_ctx), |
| 627 | 1, /* XER encoding is XMLValueList */ |
| 628 | }; |
| 629 | asn_TYPE_descriptor_t asn_DEF_SetOfNULL = { |
| 630 | "SetOfNULL", |
| 631 | "SetOfNULL", |
| 632 | SET_OF_free, |
| 633 | SET_OF_print, |
| 634 | SET_OF_constraint, |
| 635 | SET_OF_decode_ber, |
| 636 | SET_OF_encode_der, |
| 637 | SET_OF_decode_xer, |
| 638 | SET_OF_encode_xer, |
| 639 | 0, /* Use generic outmost tag fetcher */ |
| 640 | asn_DEF_SetOfNULL_tags, |
| 641 | sizeof(asn_DEF_SetOfNULL_tags) |
| 642 | /sizeof(asn_DEF_SetOfNULL_tags[0]), /* 1 */ |
| 643 | asn_DEF_SetOfNULL_tags, /* Same as above */ |
| 644 | sizeof(asn_DEF_SetOfNULL_tags) |
| 645 | /sizeof(asn_DEF_SetOfNULL_tags[0]), /* 1 */ |
| 646 | asn_MBR_SetOfNULL, |
| 647 | 1, /* Single element */ |
| 648 | &asn_DEF_SetOfNULL_specs /* Additional specs */ |
| 649 | }; |
| 650 | |
| 651 | |
| 652 | /*** <<< INCLUDES [SetOfEnums] >>> ***/ |
| 653 | |
| 654 | #include <ENUMERATED.h> |
| 655 | #include <asn_SET_OF.h> |
| 656 | #include <constr_SET_OF.h> |
| 657 | |
| 658 | /*** <<< DEPS [SetOfEnums] >>> ***/ |
| 659 | |
| 660 | extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums; |
| 661 | |
| 662 | /*** <<< TYPE-DECLS [SetOfEnums] >>> ***/ |
| 663 | |
| 664 | |
| 665 | typedef struct SetOfEnums { |
| 666 | A_SET_OF(ENUMERATED_t) list; |
| 667 | |
| 668 | /* Context for parsing across buffer boundaries */ |
| 669 | asn_struct_ctx_t _asn_ctx; |
| 670 | } SetOfEnums_t; |
| 671 | |
| 672 | /*** <<< STAT-DEFS [SetOfEnums] >>> ***/ |
| 673 | |
| 674 | static asn_TYPE_member_t asn_MBR_SetOfEnums[] = { |
| 675 | { ATF_NOFLAGS, 0, 0, |
| 676 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 677 | .tag_mode = 0, |
| 678 | .type = (void *)&asn_DEF_ENUMERATED, |
| 679 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 680 | .name = "" |
| 681 | }, |
| 682 | }; |
| 683 | static ber_tlv_tag_t asn_DEF_SetOfEnums_tags[] = { |
| 684 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 685 | }; |
| 686 | static asn_SET_OF_specifics_t asn_DEF_SetOfEnums_specs = { |
| 687 | sizeof(struct SetOfEnums), |
| 688 | offsetof(struct SetOfEnums, _asn_ctx), |
| 689 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 690 | }; |
| 691 | asn_TYPE_descriptor_t asn_DEF_SetOfEnums = { |
| 692 | "SetOfEnums", |
| 693 | "SetOfEnums", |
| 694 | SET_OF_free, |
| 695 | SET_OF_print, |
| 696 | SET_OF_constraint, |
| 697 | SET_OF_decode_ber, |
| 698 | SET_OF_encode_der, |
| 699 | SET_OF_decode_xer, |
| 700 | SET_OF_encode_xer, |
| 701 | 0, /* Use generic outmost tag fetcher */ |
| 702 | asn_DEF_SetOfEnums_tags, |
| 703 | sizeof(asn_DEF_SetOfEnums_tags) |
| 704 | /sizeof(asn_DEF_SetOfEnums_tags[0]), /* 1 */ |
| 705 | asn_DEF_SetOfEnums_tags, /* Same as above */ |
| 706 | sizeof(asn_DEF_SetOfEnums_tags) |
| 707 | /sizeof(asn_DEF_SetOfEnums_tags[0]), /* 1 */ |
| 708 | asn_MBR_SetOfEnums, |
| 709 | 1, /* Single element */ |
| 710 | &asn_DEF_SetOfEnums_specs /* Additional specs */ |
| 711 | }; |
| 712 | |
| 713 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 714 | /*** <<< INCLUDES [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 715 | |
| 716 | #include <INTEGER.h> |
| 717 | #include <asn_SEQUENCE_OF.h> |
| 718 | #include <constr_SEQUENCE_OF.h> |
| 719 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 720 | /*** <<< DEPS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 721 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 722 | extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 723 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 724 | /*** <<< TYPE-DECLS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 725 | |
| 726 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 727 | typedef struct SequenceOf { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 728 | A_SEQUENCE_OF(INTEGER_t) list; |
| 729 | |
| 730 | /* Context for parsing across buffer boundaries */ |
| 731 | asn_struct_ctx_t _asn_ctx; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 732 | } SequenceOf_t; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 733 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 734 | /*** <<< STAT-DEFS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 735 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 736 | static asn_TYPE_member_t asn_MBR_SequenceOf[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 737 | { ATF_NOFLAGS, 0, 0, |
| 738 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 739 | .tag_mode = 0, |
| 740 | .type = (void *)&asn_DEF_INTEGER, |
| 741 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 742 | .name = "id" |
| 743 | }, |
| 744 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 745 | static ber_tlv_tag_t asn_DEF_SequenceOf_tags[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 746 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 747 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 748 | static asn_SET_OF_specifics_t asn_DEF_SequenceOf_specs = { |
| 749 | sizeof(struct SequenceOf), |
| 750 | offsetof(struct SequenceOf, _asn_ctx), |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 751 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 752 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 753 | asn_TYPE_descriptor_t asn_DEF_SequenceOf = { |
| 754 | "SequenceOf", |
| 755 | "SequenceOf", |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 756 | SEQUENCE_OF_free, |
| 757 | SEQUENCE_OF_print, |
| 758 | SEQUENCE_OF_constraint, |
| 759 | SEQUENCE_OF_decode_ber, |
| 760 | SEQUENCE_OF_encode_der, |
| 761 | SEQUENCE_OF_decode_xer, |
| 762 | SEQUENCE_OF_encode_xer, |
| 763 | 0, /* Use generic outmost tag fetcher */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 764 | asn_DEF_SequenceOf_tags, |
| 765 | sizeof(asn_DEF_SequenceOf_tags) |
| 766 | /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */ |
| 767 | asn_DEF_SequenceOf_tags, /* Same as above */ |
| 768 | sizeof(asn_DEF_SequenceOf_tags) |
| 769 | /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */ |
| 770 | asn_MBR_SequenceOf, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 771 | 1, /* Single element */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 772 | &asn_DEF_SequenceOf_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 773 | }; |
| 774 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 775 | |
| 776 | /*** <<< INCLUDES [SeqOfZuka] >>> ***/ |
| 777 | |
| 778 | #include <NULL.h> |
| 779 | #include <asn_SEQUENCE_OF.h> |
| 780 | #include <constr_SEQUENCE_OF.h> |
| 781 | |
| 782 | /*** <<< DEPS [SeqOfZuka] >>> ***/ |
| 783 | |
| 784 | extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka; |
| 785 | |
| 786 | /*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/ |
| 787 | |
| 788 | |
| 789 | typedef struct SeqOfZuka { |
| 790 | A_SEQUENCE_OF(NULL_t) list; |
| 791 | |
| 792 | /* Context for parsing across buffer boundaries */ |
| 793 | asn_struct_ctx_t _asn_ctx; |
| 794 | } SeqOfZuka_t; |
| 795 | |
| 796 | /*** <<< STAT-DEFS [SeqOfZuka] >>> ***/ |
| 797 | |
| 798 | static asn_TYPE_member_t asn_MBR_SeqOfZuka[] = { |
| 799 | { ATF_NOFLAGS, 0, 0, |
| 800 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 801 | .tag_mode = 0, |
| 802 | .type = (void *)&asn_DEF_NULL, |
| 803 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 804 | .name = "zuka" |
| 805 | }, |
| 806 | }; |
| 807 | static ber_tlv_tag_t asn_DEF_SeqOfZuka_tags[] = { |
| 808 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 809 | }; |
| 810 | static asn_SET_OF_specifics_t asn_DEF_SeqOfZuka_specs = { |
| 811 | sizeof(struct SeqOfZuka), |
| 812 | offsetof(struct SeqOfZuka, _asn_ctx), |
| 813 | 1, /* XER encoding is XMLValueList */ |
| 814 | }; |
| 815 | asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = { |
| 816 | "SeqOfZuka", |
| 817 | "SeqOfZuka", |
| 818 | SEQUENCE_OF_free, |
| 819 | SEQUENCE_OF_print, |
| 820 | SEQUENCE_OF_constraint, |
| 821 | SEQUENCE_OF_decode_ber, |
| 822 | SEQUENCE_OF_encode_der, |
| 823 | SEQUENCE_OF_decode_xer, |
| 824 | SEQUENCE_OF_encode_xer, |
| 825 | 0, /* Use generic outmost tag fetcher */ |
| 826 | asn_DEF_SeqOfZuka_tags, |
| 827 | sizeof(asn_DEF_SeqOfZuka_tags) |
| 828 | /sizeof(asn_DEF_SeqOfZuka_tags[0]), /* 1 */ |
| 829 | asn_DEF_SeqOfZuka_tags, /* Same as above */ |
| 830 | sizeof(asn_DEF_SeqOfZuka_tags) |
| 831 | /sizeof(asn_DEF_SeqOfZuka_tags[0]), /* 1 */ |
| 832 | asn_MBR_SeqOfZuka, |
| 833 | 1, /* Single element */ |
| 834 | &asn_DEF_SeqOfZuka_specs /* Additional specs */ |
| 835 | }; |
| 836 | |