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