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; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 30 | |
| 31 | /*** <<< TYPE-DECLS [PDU] >>> ***/ |
| 32 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 33 | typedef struct PDU { |
| 34 | PDU_PR present; |
| 35 | union { |
| 36 | Sequence_t sequence; |
| 37 | Set_t set; |
| 38 | SetOf_t setOf; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 39 | SequenceOf_t sequenceOf; |
| 40 | ExtensibleSet_t extensibleSet; |
| 41 | ExtensibleSequence_t extensibleSequence; |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 42 | SetOfNULL_t setOfNULL; |
| 43 | SetOfEnums_t setOfEnums; |
| 44 | SeqOfZuka_t seqOfZuka; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 45 | /* |
| 46 | * This type is extensible, |
| 47 | * possible extensions are below. |
| 48 | */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 49 | } choice; |
| 50 | |
| 51 | /* Context for parsing across buffer boundaries */ |
| 52 | asn_struct_ctx_t _asn_ctx; |
| 53 | } PDU_t; |
| 54 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 55 | /*** <<< FUNC-DECLS [PDU] >>> ***/ |
| 56 | |
| 57 | extern asn_TYPE_descriptor_t asn_DEF_PDU; |
| 58 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 59 | /*** <<< STAT-DEFS [PDU] >>> ***/ |
| 60 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 61 | static asn_TYPE_member_t asn_MBR_PDU_1[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 62 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence), |
| 63 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 64 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 65 | .type = (void *)&asn_DEF_Sequence, |
| 66 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 67 | .name = "sequence" |
| 68 | }, |
| 69 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set), |
| 70 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 71 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 72 | .type = (void *)&asn_DEF_Set, |
| 73 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 74 | .name = "set" |
| 75 | }, |
| 76 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf), |
| 77 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 78 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 79 | .type = (void *)&asn_DEF_SetOf, |
| 80 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 81 | .name = "setOf" |
| 82 | }, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 83 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf), |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 84 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 85 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 86 | .type = (void *)&asn_DEF_SequenceOf, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 87 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 88 | .name = "sequenceOf" |
| 89 | }, |
| 90 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet), |
| 91 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 92 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 93 | .type = (void *)&asn_DEF_ExtensibleSet, |
| 94 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 95 | .name = "extensibleSet" |
| 96 | }, |
| 97 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence), |
| 98 | .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 99 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 100 | .type = (void *)&asn_DEF_ExtensibleSequence, |
| 101 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 102 | .name = "extensibleSequence" |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 103 | }, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 104 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL), |
| 105 | .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
| 106 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 107 | .type = (void *)&asn_DEF_SetOfNULL, |
| 108 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 109 | .name = "setOfNULL" |
| 110 | }, |
| 111 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums), |
| 112 | .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)), |
| 113 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 114 | .type = (void *)&asn_DEF_SetOfEnums, |
| 115 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 116 | .name = "setOfEnums" |
| 117 | }, |
| 118 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka), |
| 119 | .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)), |
| 120 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 121 | .type = (void *)&asn_DEF_SeqOfZuka, |
| 122 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 123 | .name = "seqOfZuka" |
| 124 | }, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 125 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 126 | static asn_TYPE_tag2member_t asn_MAP_PDU_1_tag2el[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 127 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */ |
| 128 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */ |
| 129 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* setOf at 21 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 130 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sequenceOf at 22 */ |
| 131 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSet at 23 */ |
| 132 | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence at 24 */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 133 | { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL at 25 */ |
| 134 | { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfEnums at 26 */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 135 | { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* seqOfZuka at 27 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 136 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 137 | static asn_CHOICE_specifics_t asn_SPC_PDU_1_specs = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 138 | sizeof(struct PDU), |
| 139 | offsetof(struct PDU, _asn_ctx), |
| 140 | offsetof(struct PDU, present), |
| 141 | sizeof(((struct PDU *)0)->present), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 142 | asn_MAP_PDU_1_tag2el, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 143 | 9, /* Count of tags in the map */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 144 | 1 /* Whether extensible */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 145 | }; |
| 146 | asn_TYPE_descriptor_t asn_DEF_PDU = { |
| 147 | "PDU", |
| 148 | "PDU", |
| 149 | CHOICE_free, |
| 150 | CHOICE_print, |
| 151 | CHOICE_constraint, |
| 152 | CHOICE_decode_ber, |
| 153 | CHOICE_encode_der, |
| 154 | CHOICE_decode_xer, |
| 155 | CHOICE_encode_xer, |
| 156 | CHOICE_outmost_tag, |
| 157 | 0, /* No effective tags (pointer) */ |
| 158 | 0, /* No effective tags (count) */ |
| 159 | 0, /* No tags (pointer) */ |
| 160 | 0, /* No tags (count) */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 161 | asn_MBR_PDU_1, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 162 | 9, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 163 | &asn_SPC_PDU_1_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 164 | }; |
| 165 | |
| 166 | |
| 167 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 168 | |
| 169 | #include <INTEGER.h> |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 170 | #include <BIT_STRING.h> |
| 171 | #include <UTF8String.h> |
| 172 | #include <constr_SEQUENCE.h> |
| 173 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 174 | /*** <<< FWD-DECLS [Sequence] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 175 | |
| 176 | struct Sequence; /* Forward declaration */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 177 | |
| 178 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 179 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 180 | typedef struct Sequence { |
| 181 | INTEGER_t integer; |
| 182 | struct Sequence *sequence /* OPTIONAL */; |
| 183 | BIT_STRING_t *bits /* OPTIONAL */; |
| 184 | UTF8String_t string; |
| 185 | |
| 186 | /* Context for parsing across buffer boundaries */ |
| 187 | asn_struct_ctx_t _asn_ctx; |
| 188 | } Sequence_t; |
| 189 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 190 | /*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 191 | |
| 192 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 193 | |
| 194 | /*** <<< POST-INCLUDE [Sequence] >>> ***/ |
| 195 | |
| 196 | #include <Sequence.h> |
| 197 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 198 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 199 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 200 | static asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 201 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer), |
| 202 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 203 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 204 | .type = (void *)&asn_DEF_INTEGER, |
| 205 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 206 | .name = "integer" |
| 207 | }, |
| 208 | { ATF_POINTER, 2, offsetof(struct Sequence, sequence), |
| 209 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 210 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 211 | .type = (void *)&asn_DEF_Sequence, |
| 212 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 213 | .name = "sequence" |
| 214 | }, |
| 215 | { ATF_POINTER, 1, offsetof(struct Sequence, bits), |
| 216 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 217 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 218 | .type = (void *)&asn_DEF_BIT_STRING, |
| 219 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 220 | .name = "bits" |
| 221 | }, |
| 222 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, string), |
| 223 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 224 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 225 | .type = (void *)&asn_DEF_UTF8String, |
| 226 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 227 | .name = "string" |
| 228 | }, |
| 229 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 230 | static ber_tlv_tag_t asn_DEF_Sequence_1_tags[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 231 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 232 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 233 | static asn_TYPE_tag2member_t asn_MAP_Sequence_1_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 234 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 32 */ |
| 235 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 33 */ |
| 236 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 34 */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 237 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string at 35 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 238 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 239 | static asn_SEQUENCE_specifics_t asn_SPC_Sequence_1_specs = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 240 | sizeof(struct Sequence), |
| 241 | offsetof(struct Sequence, _asn_ctx), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 242 | asn_MAP_Sequence_1_tag2el, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 243 | 4, /* Count of tags in the map */ |
| 244 | -1, /* Start extensions */ |
| 245 | -1 /* Stop extensions */ |
| 246 | }; |
| 247 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 248 | "Sequence", |
| 249 | "Sequence", |
| 250 | SEQUENCE_free, |
| 251 | SEQUENCE_print, |
| 252 | SEQUENCE_constraint, |
| 253 | SEQUENCE_decode_ber, |
| 254 | SEQUENCE_encode_der, |
| 255 | SEQUENCE_decode_xer, |
| 256 | SEQUENCE_encode_xer, |
| 257 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 258 | asn_DEF_Sequence_1_tags, |
| 259 | sizeof(asn_DEF_Sequence_1_tags) |
| 260 | /sizeof(asn_DEF_Sequence_1_tags[0]), /* 1 */ |
| 261 | asn_DEF_Sequence_1_tags, /* Same as above */ |
| 262 | sizeof(asn_DEF_Sequence_1_tags) |
| 263 | /sizeof(asn_DEF_Sequence_1_tags[0]), /* 1 */ |
| 264 | asn_MBR_Sequence_1, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 265 | 4, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 266 | &asn_SPC_Sequence_1_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 267 | }; |
| 268 | |
| 269 | |
| 270 | /*** <<< INCLUDES [Set] >>> ***/ |
| 271 | |
| 272 | #include <RELATIVE-OID.h> |
| 273 | #include <OCTET_STRING.h> |
| 274 | #include <constr_SET.h> |
| 275 | |
| 276 | /*** <<< DEPS [Set] >>> ***/ |
| 277 | |
| 278 | |
| 279 | /* |
| 280 | * Method of determining the components presence |
| 281 | */ |
| 282 | typedef enum Set_PR { |
| 283 | Set_PR_roid, /* Member roid is present */ |
| 284 | Set_PR_opaque, /* Member opaque is present */ |
| 285 | } Set_PR; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 286 | |
| 287 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 288 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 289 | typedef struct Set { |
| 290 | RELATIVE_OID_t roid; |
| 291 | OCTET_STRING_t *opaque /* OPTIONAL */; |
| 292 | |
| 293 | /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */ |
| 294 | unsigned int _presence_map |
| 295 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 296 | |
| 297 | /* Context for parsing across buffer boundaries */ |
| 298 | asn_struct_ctx_t _asn_ctx; |
| 299 | } Set_t; |
| 300 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 301 | /*** <<< FUNC-DECLS [Set] >>> ***/ |
| 302 | |
| 303 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 304 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 305 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 306 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 307 | static asn_TYPE_member_t asn_MBR_Set_1[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 308 | { ATF_NOFLAGS, 0, offsetof(struct Set, roid), |
| 309 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 310 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 311 | .type = (void *)&asn_DEF_RELATIVE_OID, |
| 312 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 313 | .name = "roid" |
| 314 | }, |
| 315 | { ATF_POINTER, 1, offsetof(struct Set, opaque), |
| 316 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 317 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 318 | .type = (void *)&asn_DEF_OCTET_STRING, |
| 319 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 320 | .name = "opaque" |
| 321 | }, |
| 322 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 323 | static ber_tlv_tag_t asn_DEF_Set_1_tags[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 324 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 325 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 326 | static asn_TYPE_tag2member_t asn_MAP_Set_1_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 327 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 39 */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 328 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque at 40 */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 329 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 330 | static uint8_t asn_MAP_Set_1_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 331 | (1 << 7) | (0 << 6) |
| 332 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 333 | static asn_SET_specifics_t asn_SPC_Set_1_specs = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 334 | sizeof(struct Set), |
| 335 | offsetof(struct Set, _asn_ctx), |
| 336 | offsetof(struct Set, _presence_map), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 337 | asn_MAP_Set_1_tag2el, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 338 | 2, /* Count of tags in the map */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 339 | asn_MAP_Set_1_tag2el, /* Same as above */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 340 | 2, /* Count of tags in the CXER map */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 341 | 0, /* Whether extensible */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 342 | (unsigned int *)asn_MAP_Set_1_mmap /* Mandatory elements map */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 343 | }; |
| 344 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 345 | "Set", |
| 346 | "Set", |
| 347 | SET_free, |
| 348 | SET_print, |
| 349 | SET_constraint, |
| 350 | SET_decode_ber, |
| 351 | SET_encode_der, |
| 352 | SET_decode_xer, |
| 353 | SET_encode_xer, |
| 354 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 355 | asn_DEF_Set_1_tags, |
| 356 | sizeof(asn_DEF_Set_1_tags) |
| 357 | /sizeof(asn_DEF_Set_1_tags[0]), /* 1 */ |
| 358 | asn_DEF_Set_1_tags, /* Same as above */ |
| 359 | sizeof(asn_DEF_Set_1_tags) |
| 360 | /sizeof(asn_DEF_Set_1_tags[0]), /* 1 */ |
| 361 | asn_MBR_Set_1, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 362 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 363 | &asn_SPC_Set_1_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 364 | }; |
| 365 | |
| 366 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 367 | /*** <<< INCLUDES [ExtensibleSet] >>> ***/ |
| 368 | |
| 369 | #include <UTF8String.h> |
| 370 | #include <constr_SET.h> |
| 371 | |
| 372 | /*** <<< DEPS [ExtensibleSet] >>> ***/ |
| 373 | |
| 374 | |
| 375 | /* |
| 376 | * Method of determining the components presence |
| 377 | */ |
| 378 | typedef enum ExtensibleSet_PR { |
| 379 | ExtensibleSet_PR_string, /* Member string is present */ |
| 380 | } ExtensibleSet_PR; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 381 | |
| 382 | /*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/ |
| 383 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 384 | typedef struct ExtensibleSet { |
| 385 | UTF8String_t *string /* OPTIONAL */; |
| 386 | /* |
| 387 | * This type is extensible, |
| 388 | * possible extensions are below. |
| 389 | */ |
| 390 | |
| 391 | /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */ |
| 392 | unsigned int _presence_map |
| 393 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 394 | |
| 395 | /* Context for parsing across buffer boundaries */ |
| 396 | asn_struct_ctx_t _asn_ctx; |
| 397 | } ExtensibleSet_t; |
| 398 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 399 | /*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/ |
| 400 | |
| 401 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet; |
| 402 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 403 | /*** <<< STAT-DEFS [ExtensibleSet] >>> ***/ |
| 404 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 405 | static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 406 | { ATF_POINTER, 1, offsetof(struct ExtensibleSet, string), |
| 407 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 408 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 409 | .type = (void *)&asn_DEF_UTF8String, |
| 410 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 411 | .name = "string" |
| 412 | }, |
| 413 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 414 | static ber_tlv_tag_t asn_DEF_ExtensibleSet_1_tags[] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 415 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 416 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 417 | static asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_1_tag2el[] = { |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 418 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* string at 44 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 419 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 420 | static uint8_t asn_MAP_ExtensibleSet_1_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 421 | (0 << 7) |
| 422 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 423 | static asn_SET_specifics_t asn_SPC_ExtensibleSet_1_specs = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 424 | sizeof(struct ExtensibleSet), |
| 425 | offsetof(struct ExtensibleSet, _asn_ctx), |
| 426 | offsetof(struct ExtensibleSet, _presence_map), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 427 | asn_MAP_ExtensibleSet_1_tag2el, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 428 | 1, /* Count of tags in the map */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 429 | asn_MAP_ExtensibleSet_1_tag2el, /* Same as above */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 430 | 1, /* Count of tags in the CXER map */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 431 | 1, /* Whether extensible */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 432 | (unsigned int *)asn_MAP_ExtensibleSet_1_mmap /* Mandatory elements map */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 433 | }; |
| 434 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = { |
| 435 | "ExtensibleSet", |
| 436 | "ExtensibleSet", |
| 437 | SET_free, |
| 438 | SET_print, |
| 439 | SET_constraint, |
| 440 | SET_decode_ber, |
| 441 | SET_encode_der, |
| 442 | SET_decode_xer, |
| 443 | SET_encode_xer, |
| 444 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 445 | asn_DEF_ExtensibleSet_1_tags, |
| 446 | sizeof(asn_DEF_ExtensibleSet_1_tags) |
| 447 | /sizeof(asn_DEF_ExtensibleSet_1_tags[0]), /* 1 */ |
| 448 | asn_DEF_ExtensibleSet_1_tags, /* Same as above */ |
| 449 | sizeof(asn_DEF_ExtensibleSet_1_tags) |
| 450 | /sizeof(asn_DEF_ExtensibleSet_1_tags[0]), /* 1 */ |
| 451 | asn_MBR_ExtensibleSet_1, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 452 | 1, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 453 | &asn_SPC_ExtensibleSet_1_specs /* Additional specs */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 454 | }; |
| 455 | |
| 456 | |
| 457 | /*** <<< INCLUDES [ExtensibleSequence] >>> ***/ |
| 458 | |
| 459 | #include <UTF8String.h> |
| 460 | #include <INTEGER.h> |
| 461 | #include <constr_SEQUENCE.h> |
| 462 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 463 | /*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/ |
| 464 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 465 | typedef struct ExtensibleSequence { |
| 466 | UTF8String_t *string /* OPTIONAL */; |
| 467 | /* |
| 468 | * This type is extensible, |
| 469 | * possible extensions are below. |
| 470 | */ |
| 471 | INTEGER_t *integer /* OPTIONAL */; |
| 472 | |
| 473 | /* Context for parsing across buffer boundaries */ |
| 474 | asn_struct_ctx_t _asn_ctx; |
| 475 | } ExtensibleSequence_t; |
| 476 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 477 | /*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/ |
| 478 | |
| 479 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence; |
| 480 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 481 | /*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/ |
| 482 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 483 | static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 484 | { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, string), |
| 485 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 486 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 487 | .type = (void *)&asn_DEF_UTF8String, |
| 488 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 489 | .name = "string" |
| 490 | }, |
| 491 | { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, integer), |
| 492 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 493 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 494 | .type = (void *)&asn_DEF_INTEGER, |
| 495 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 496 | .name = "integer" |
| 497 | }, |
| 498 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 499 | static ber_tlv_tag_t asn_DEF_ExtensibleSequence_1_tags[] = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 500 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 501 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 502 | static asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_1_tag2el[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 503 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 49 */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 504 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer at 51 */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 505 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 506 | static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_1_specs = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 507 | sizeof(struct ExtensibleSequence), |
| 508 | offsetof(struct ExtensibleSequence, _asn_ctx), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 509 | asn_MAP_ExtensibleSequence_1_tag2el, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 510 | 2, /* Count of tags in the map */ |
| 511 | 0, /* Start extensions */ |
| 512 | 3 /* Stop extensions */ |
| 513 | }; |
| 514 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = { |
| 515 | "ExtensibleSequence", |
| 516 | "ExtensibleSequence", |
| 517 | SEQUENCE_free, |
| 518 | SEQUENCE_print, |
| 519 | SEQUENCE_constraint, |
| 520 | SEQUENCE_decode_ber, |
| 521 | SEQUENCE_encode_der, |
| 522 | SEQUENCE_decode_xer, |
| 523 | SEQUENCE_encode_xer, |
| 524 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 525 | asn_DEF_ExtensibleSequence_1_tags, |
| 526 | sizeof(asn_DEF_ExtensibleSequence_1_tags) |
| 527 | /sizeof(asn_DEF_ExtensibleSequence_1_tags[0]), /* 1 */ |
| 528 | asn_DEF_ExtensibleSequence_1_tags, /* Same as above */ |
| 529 | sizeof(asn_DEF_ExtensibleSequence_1_tags) |
| 530 | /sizeof(asn_DEF_ExtensibleSequence_1_tags[0]), /* 1 */ |
| 531 | asn_MBR_ExtensibleSequence_1, |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 532 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 533 | &asn_SPC_ExtensibleSequence_1_specs /* Additional specs */ |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 534 | }; |
| 535 | |
| 536 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 537 | /*** <<< INCLUDES [SetOf] >>> ***/ |
| 538 | |
| 539 | #include <REAL.h> |
| 540 | #include <asn_SET_OF.h> |
| 541 | #include <constr_SET_OF.h> |
| 542 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 543 | /*** <<< TYPE-DECLS [SetOf] >>> ***/ |
| 544 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 545 | typedef struct SetOf { |
| 546 | A_SET_OF(REAL_t) list; |
| 547 | |
| 548 | /* Context for parsing across buffer boundaries */ |
| 549 | asn_struct_ctx_t _asn_ctx; |
| 550 | } SetOf_t; |
| 551 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 552 | /*** <<< FUNC-DECLS [SetOf] >>> ***/ |
| 553 | |
| 554 | extern asn_TYPE_descriptor_t asn_DEF_SetOf; |
| 555 | |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 556 | /*** <<< STAT-DEFS [SetOf] >>> ***/ |
| 557 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 558 | static asn_TYPE_member_t asn_MBR_SetOf_1[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 559 | { ATF_NOFLAGS, 0, 0, |
| 560 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), |
| 561 | .tag_mode = 0, |
| 562 | .type = (void *)&asn_DEF_REAL, |
| 563 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 564 | .name = "" |
| 565 | }, |
| 566 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 567 | static ber_tlv_tag_t asn_DEF_SetOf_1_tags[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 568 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 569 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 570 | static asn_SET_OF_specifics_t asn_SPC_SetOf_1_specs = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 571 | sizeof(struct SetOf), |
| 572 | offsetof(struct SetOf, _asn_ctx), |
| 573 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 574 | }; |
| 575 | asn_TYPE_descriptor_t asn_DEF_SetOf = { |
| 576 | "SetOf", |
| 577 | "SetOf", |
| 578 | SET_OF_free, |
| 579 | SET_OF_print, |
| 580 | SET_OF_constraint, |
| 581 | SET_OF_decode_ber, |
| 582 | SET_OF_encode_der, |
| 583 | SET_OF_decode_xer, |
| 584 | SET_OF_encode_xer, |
| 585 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 586 | asn_DEF_SetOf_1_tags, |
| 587 | sizeof(asn_DEF_SetOf_1_tags) |
| 588 | /sizeof(asn_DEF_SetOf_1_tags[0]), /* 1 */ |
| 589 | asn_DEF_SetOf_1_tags, /* Same as above */ |
| 590 | sizeof(asn_DEF_SetOf_1_tags) |
| 591 | /sizeof(asn_DEF_SetOf_1_tags[0]), /* 1 */ |
| 592 | asn_MBR_SetOf_1, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 593 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 594 | &asn_SPC_SetOf_1_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 595 | }; |
| 596 | |
| 597 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 598 | /*** <<< INCLUDES [SetOfNULL] >>> ***/ |
| 599 | |
| 600 | #include <NULL.h> |
| 601 | #include <asn_SET_OF.h> |
| 602 | #include <constr_SET_OF.h> |
| 603 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 604 | /*** <<< TYPE-DECLS [SetOfNULL] >>> ***/ |
| 605 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 606 | typedef struct SetOfNULL { |
| 607 | A_SET_OF(NULL_t) list; |
| 608 | |
| 609 | /* Context for parsing across buffer boundaries */ |
| 610 | asn_struct_ctx_t _asn_ctx; |
| 611 | } SetOfNULL_t; |
| 612 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 613 | /*** <<< FUNC-DECLS [SetOfNULL] >>> ***/ |
| 614 | |
| 615 | extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL; |
| 616 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 617 | /*** <<< STAT-DEFS [SetOfNULL] >>> ***/ |
| 618 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 619 | static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 620 | { ATF_NOFLAGS, 0, 0, |
| 621 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 622 | .tag_mode = 0, |
| 623 | .type = (void *)&asn_DEF_NULL, |
| 624 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 625 | .name = "" |
| 626 | }, |
| 627 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 628 | static ber_tlv_tag_t asn_DEF_SetOfNULL_1_tags[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 629 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 630 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 631 | static asn_SET_OF_specifics_t asn_SPC_SetOfNULL_1_specs = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 632 | sizeof(struct SetOfNULL), |
| 633 | offsetof(struct SetOfNULL, _asn_ctx), |
| 634 | 1, /* XER encoding is XMLValueList */ |
| 635 | }; |
| 636 | asn_TYPE_descriptor_t asn_DEF_SetOfNULL = { |
| 637 | "SetOfNULL", |
| 638 | "SetOfNULL", |
| 639 | SET_OF_free, |
| 640 | SET_OF_print, |
| 641 | SET_OF_constraint, |
| 642 | SET_OF_decode_ber, |
| 643 | SET_OF_encode_der, |
| 644 | SET_OF_decode_xer, |
| 645 | SET_OF_encode_xer, |
| 646 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 647 | asn_DEF_SetOfNULL_1_tags, |
| 648 | sizeof(asn_DEF_SetOfNULL_1_tags) |
| 649 | /sizeof(asn_DEF_SetOfNULL_1_tags[0]), /* 1 */ |
| 650 | asn_DEF_SetOfNULL_1_tags, /* Same as above */ |
| 651 | sizeof(asn_DEF_SetOfNULL_1_tags) |
| 652 | /sizeof(asn_DEF_SetOfNULL_1_tags[0]), /* 1 */ |
| 653 | asn_MBR_SetOfNULL_1, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 654 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 655 | &asn_SPC_SetOfNULL_1_specs /* Additional specs */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 656 | }; |
| 657 | |
| 658 | |
| 659 | /*** <<< INCLUDES [SetOfEnums] >>> ***/ |
| 660 | |
| 661 | #include <ENUMERATED.h> |
| 662 | #include <asn_SET_OF.h> |
| 663 | #include <constr_SET_OF.h> |
| 664 | |
| 665 | /*** <<< DEPS [SetOfEnums] >>> ***/ |
| 666 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 667 | typedef enum Member { |
| 668 | Member_one = 0, |
| 669 | Member_oneMore = 1 |
| 670 | } Member_e; |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 671 | |
| 672 | /*** <<< TYPE-DECLS [SetOfEnums] >>> ***/ |
| 673 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 674 | typedef struct SetOfEnums { |
| 675 | A_SET_OF(ENUMERATED_t) list; |
| 676 | |
| 677 | /* Context for parsing across buffer boundaries */ |
| 678 | asn_struct_ctx_t _asn_ctx; |
| 679 | } SetOfEnums_t; |
| 680 | |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 681 | /*** <<< FUNC-DECLS [SetOfEnums] >>> ***/ |
| 682 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 683 | /* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */ |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 684 | extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums; |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 685 | |
| 686 | /*** <<< CODE [SetOfEnums] >>> ***/ |
| 687 | |
| 688 | static int |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 689 | Member_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 690 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 691 | /* Replace with underlying type checker */ |
| 692 | td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 693 | return td->check_constraints(td, sptr, app_errlog, app_key); |
| 694 | } |
| 695 | |
| 696 | /* |
| 697 | * This type is implemented using ENUMERATED, |
| 698 | * so here we adjust the DEF accordingly. |
| 699 | */ |
| 700 | static void |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 701 | Member_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 702 | td->free_struct = asn_DEF_ENUMERATED.free_struct; |
| 703 | td->print_struct = asn_DEF_ENUMERATED.print_struct; |
| 704 | td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder; |
| 705 | td->der_encoder = asn_DEF_ENUMERATED.der_encoder; |
| 706 | td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder; |
| 707 | td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder; |
| 708 | td->elements = asn_DEF_ENUMERATED.elements; |
| 709 | td->elements_count = asn_DEF_ENUMERATED.elements_count; |
vlm | 2f80608 | 2005-02-25 10:24:53 +0000 | [diff] [blame] | 710 | /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 711 | } |
| 712 | |
| 713 | static void |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 714 | Member_2_free(asn_TYPE_descriptor_t *td, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 715 | void *struct_ptr, int contents_only) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 716 | Member_2_inherit_TYPE_descriptor(td); |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 717 | td->free_struct(td, struct_ptr, contents_only); |
| 718 | } |
| 719 | |
| 720 | static int |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 721 | Member_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 722 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 723 | Member_2_inherit_TYPE_descriptor(td); |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 724 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 725 | } |
| 726 | |
| 727 | static asn_dec_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 728 | Member_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 729 | void **structure, void *bufptr, size_t size, int tag_mode) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 730 | Member_2_inherit_TYPE_descriptor(td); |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 731 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 732 | } |
| 733 | |
| 734 | static asn_enc_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 735 | Member_2_encode_der(asn_TYPE_descriptor_t *td, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 736 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 737 | asn_app_consume_bytes_f *cb, void *app_key) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 738 | Member_2_inherit_TYPE_descriptor(td); |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 739 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 740 | } |
| 741 | |
| 742 | static asn_dec_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 743 | Member_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 744 | void **structure, const char *opt_mname, void *bufptr, size_t size) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 745 | Member_2_inherit_TYPE_descriptor(td); |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 746 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 747 | } |
| 748 | |
| 749 | static asn_enc_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 750 | Member_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 751 | int ilevel, enum xer_encoder_flags_e flags, |
| 752 | asn_app_consume_bytes_f *cb, void *app_key) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 753 | Member_2_inherit_TYPE_descriptor(td); |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 754 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 755 | } |
| 756 | |
| 757 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 758 | /*** <<< STAT-DEFS [SetOfEnums] >>> ***/ |
| 759 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 760 | static asn_INTEGER_enum_map_t asn_MAP_Member_2_value2enum[] = { |
vlm | 56a1f3e | 2005-02-25 11:08:02 +0000 | [diff] [blame] | 761 | { 0, 3, "one" }, |
| 762 | { 1, 7, "oneMore" } |
| 763 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 764 | static unsigned int asn_MAP_Member_2_enum2value[] = { |
vlm | 56a1f3e | 2005-02-25 11:08:02 +0000 | [diff] [blame] | 765 | 0, /* one(0) */ |
| 766 | 1 /* oneMore(1) */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 767 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 768 | static asn_INTEGER_specifics_t asn_SPC_Member_2_specs = { |
| 769 | asn_MAP_Member_2_value2enum, /* "tag" => N; sorted by tag */ |
| 770 | asn_MAP_Member_2_enum2value, /* N => "tag"; sorted by N */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 771 | 2, /* Number of elements in the maps */ |
vlm | c018f36 | 2005-02-25 11:47:59 +0000 | [diff] [blame] | 772 | 0, /* Enumeration is not extensible */ |
| 773 | 1 /* Strict enumeration */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 774 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 775 | static ber_tlv_tag_t asn_DEF_Member_2_tags[] = { |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 776 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 777 | }; |
| 778 | static /* Use -fall-defs-global to expose */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 779 | asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 780 | "", |
| 781 | "", |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 782 | Member_2_free, |
| 783 | Member_2_print, |
| 784 | Member_2_constraint, |
| 785 | Member_2_decode_ber, |
| 786 | Member_2_encode_der, |
| 787 | Member_2_decode_xer, |
| 788 | Member_2_encode_xer, |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 789 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 790 | asn_DEF_Member_2_tags, |
| 791 | sizeof(asn_DEF_Member_2_tags) |
| 792 | /sizeof(asn_DEF_Member_2_tags[0]), /* 1 */ |
| 793 | asn_DEF_Member_2_tags, /* Same as above */ |
| 794 | sizeof(asn_DEF_Member_2_tags) |
| 795 | /sizeof(asn_DEF_Member_2_tags[0]), /* 1 */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 796 | 0, 0, /* Defined elsewhere */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 797 | &asn_SPC_Member_2_specs /* Additional specs */ |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 798 | }; |
| 799 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 800 | static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 801 | { ATF_NOFLAGS, 0, 0, |
| 802 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 803 | .tag_mode = 0, |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 804 | .type = (void *)&asn_DEF_Member_2, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 805 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 806 | .name = "" |
| 807 | }, |
| 808 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 809 | static ber_tlv_tag_t asn_DEF_SetOfEnums_1_tags[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 810 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 811 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 812 | static asn_SET_OF_specifics_t asn_SPC_SetOfEnums_1_specs = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 813 | sizeof(struct SetOfEnums), |
| 814 | offsetof(struct SetOfEnums, _asn_ctx), |
vlm | 82e33fb | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 815 | 1, /* XER encoding is XMLValueList */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 816 | }; |
| 817 | asn_TYPE_descriptor_t asn_DEF_SetOfEnums = { |
| 818 | "SetOfEnums", |
| 819 | "SetOfEnums", |
| 820 | SET_OF_free, |
| 821 | SET_OF_print, |
| 822 | SET_OF_constraint, |
| 823 | SET_OF_decode_ber, |
| 824 | SET_OF_encode_der, |
| 825 | SET_OF_decode_xer, |
| 826 | SET_OF_encode_xer, |
| 827 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 828 | asn_DEF_SetOfEnums_1_tags, |
| 829 | sizeof(asn_DEF_SetOfEnums_1_tags) |
| 830 | /sizeof(asn_DEF_SetOfEnums_1_tags[0]), /* 1 */ |
| 831 | asn_DEF_SetOfEnums_1_tags, /* Same as above */ |
| 832 | sizeof(asn_DEF_SetOfEnums_1_tags) |
| 833 | /sizeof(asn_DEF_SetOfEnums_1_tags[0]), /* 1 */ |
| 834 | asn_MBR_SetOfEnums_1, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 835 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 836 | &asn_SPC_SetOfEnums_1_specs /* Additional specs */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 837 | }; |
| 838 | |
| 839 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 840 | /*** <<< INCLUDES [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 841 | |
| 842 | #include <INTEGER.h> |
| 843 | #include <asn_SEQUENCE_OF.h> |
| 844 | #include <constr_SEQUENCE_OF.h> |
| 845 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 846 | /*** <<< TYPE-DECLS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 847 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 848 | typedef struct SequenceOf { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 849 | A_SEQUENCE_OF(INTEGER_t) list; |
| 850 | |
| 851 | /* Context for parsing across buffer boundaries */ |
| 852 | asn_struct_ctx_t _asn_ctx; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 853 | } SequenceOf_t; |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 854 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 855 | /*** <<< FUNC-DECLS [SequenceOf] >>> ***/ |
| 856 | |
| 857 | extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; |
| 858 | |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 859 | /*** <<< STAT-DEFS [SequenceOf] >>> ***/ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 860 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 861 | static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 862 | { ATF_NOFLAGS, 0, 0, |
| 863 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 864 | .tag_mode = 0, |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 865 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 866 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 867 | .name = "id" |
| 868 | }, |
| 869 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 870 | static ber_tlv_tag_t asn_DEF_SequenceOf_1_tags[] = { |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 871 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 872 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 873 | static asn_SET_OF_specifics_t asn_SPC_SequenceOf_1_specs = { |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 874 | sizeof(struct SequenceOf), |
| 875 | offsetof(struct SequenceOf, _asn_ctx), |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 876 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 877 | }; |
vlm | 422e4ce | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 878 | asn_TYPE_descriptor_t asn_DEF_SequenceOf = { |
| 879 | "SequenceOf", |
| 880 | "SequenceOf", |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 881 | SEQUENCE_OF_free, |
| 882 | SEQUENCE_OF_print, |
| 883 | SEQUENCE_OF_constraint, |
| 884 | SEQUENCE_OF_decode_ber, |
| 885 | SEQUENCE_OF_encode_der, |
| 886 | SEQUENCE_OF_decode_xer, |
| 887 | SEQUENCE_OF_encode_xer, |
| 888 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 889 | asn_DEF_SequenceOf_1_tags, |
| 890 | sizeof(asn_DEF_SequenceOf_1_tags) |
| 891 | /sizeof(asn_DEF_SequenceOf_1_tags[0]), /* 1 */ |
| 892 | asn_DEF_SequenceOf_1_tags, /* Same as above */ |
| 893 | sizeof(asn_DEF_SequenceOf_1_tags) |
| 894 | /sizeof(asn_DEF_SequenceOf_1_tags[0]), /* 1 */ |
| 895 | asn_MBR_SequenceOf_1, |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 896 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 897 | &asn_SPC_SequenceOf_1_specs /* Additional specs */ |
vlm | 0d9046e | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 898 | }; |
| 899 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 900 | |
| 901 | /*** <<< INCLUDES [SeqOfZuka] >>> ***/ |
| 902 | |
| 903 | #include <NULL.h> |
| 904 | #include <asn_SEQUENCE_OF.h> |
| 905 | #include <constr_SEQUENCE_OF.h> |
| 906 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 907 | /*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/ |
| 908 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 909 | typedef struct SeqOfZuka { |
| 910 | A_SEQUENCE_OF(NULL_t) list; |
| 911 | |
| 912 | /* Context for parsing across buffer boundaries */ |
| 913 | asn_struct_ctx_t _asn_ctx; |
| 914 | } SeqOfZuka_t; |
| 915 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 916 | /*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/ |
| 917 | |
| 918 | extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka; |
| 919 | |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 920 | /*** <<< STAT-DEFS [SeqOfZuka] >>> ***/ |
| 921 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 922 | static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 923 | { ATF_NOFLAGS, 0, 0, |
| 924 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 925 | .tag_mode = 0, |
| 926 | .type = (void *)&asn_DEF_NULL, |
| 927 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 928 | .name = "zuka" |
| 929 | }, |
| 930 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 931 | static ber_tlv_tag_t asn_DEF_SeqOfZuka_1_tags[] = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 932 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 933 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 934 | static asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_1_specs = { |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 935 | sizeof(struct SeqOfZuka), |
| 936 | offsetof(struct SeqOfZuka, _asn_ctx), |
| 937 | 1, /* XER encoding is XMLValueList */ |
| 938 | }; |
| 939 | asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = { |
| 940 | "SeqOfZuka", |
| 941 | "SeqOfZuka", |
| 942 | SEQUENCE_OF_free, |
| 943 | SEQUENCE_OF_print, |
| 944 | SEQUENCE_OF_constraint, |
| 945 | SEQUENCE_OF_decode_ber, |
| 946 | SEQUENCE_OF_encode_der, |
| 947 | SEQUENCE_OF_decode_xer, |
| 948 | SEQUENCE_OF_encode_xer, |
| 949 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 950 | asn_DEF_SeqOfZuka_1_tags, |
| 951 | sizeof(asn_DEF_SeqOfZuka_1_tags) |
| 952 | /sizeof(asn_DEF_SeqOfZuka_1_tags[0]), /* 1 */ |
| 953 | asn_DEF_SeqOfZuka_1_tags, /* Same as above */ |
| 954 | sizeof(asn_DEF_SeqOfZuka_1_tags) |
| 955 | /sizeof(asn_DEF_SeqOfZuka_1_tags[0]), /* 1 */ |
| 956 | asn_MBR_SeqOfZuka_1, |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 957 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 958 | &asn_SPC_SeqOfZuka_1_specs /* Additional specs */ |
vlm | 6d5cb6b | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 959 | }; |
| 960 | |