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