Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame^] | 1 | |
| 2 | /*** <<< INCLUDES [Type] >>> ***/ |
| 3 | |
| 4 | #include <asn_SEQUENCE_OF.h> |
| 5 | #include <constr_SEQUENCE_OF.h> |
| 6 | #include <constr_SEQUENCE.h> |
| 7 | |
| 8 | /*** <<< FWD-DECLS [Type] >>> ***/ |
| 9 | |
| 10 | struct Epyt; /* Forward declaration */ |
| 11 | |
| 12 | /*** <<< TYPE-DECLS [Type] >>> ***/ |
| 13 | |
| 14 | typedef struct Type { |
| 15 | struct data { |
| 16 | A_SEQUENCE_OF(struct Epyt) list; |
| 17 | |
| 18 | /* Context for parsing across buffer boundaries */ |
| 19 | asn_struct_ctx_t _asn_ctx; |
| 20 | } data; |
| 21 | |
| 22 | /* Context for parsing across buffer boundaries */ |
| 23 | asn_struct_ctx_t _asn_ctx; |
| 24 | } Type_t; |
| 25 | |
| 26 | /*** <<< FUNC-DECLS [Type] >>> ***/ |
| 27 | |
| 28 | extern asn_TYPE_descriptor_t asn_DEF_Type; |
| 29 | |
| 30 | /*** <<< POST-INCLUDE [Type] >>> ***/ |
| 31 | |
| 32 | #include <Epyt.h> |
| 33 | |
| 34 | /*** <<< STAT-DEFS [Type] >>> ***/ |
| 35 | |
| 36 | static asn_TYPE_member_t asn_MBR_data_2[] = { |
| 37 | { ATF_NOFLAGS, 0, 0, |
| 38 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 39 | .tag_mode = 0, |
| 40 | .type = (void *)&asn_DEF_Epyt, |
| 41 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 42 | .name = "" |
| 43 | }, |
| 44 | }; |
| 45 | static ber_tlv_tag_t asn_DEF_data_2_tags[] = { |
| 46 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 47 | }; |
| 48 | static asn_SET_OF_specifics_t asn_SPC_data_2_specs = { |
| 49 | sizeof(struct data), |
| 50 | offsetof(struct data, _asn_ctx), |
| 51 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 52 | }; |
| 53 | static /* Use -fall-defs-global to expose */ |
| 54 | asn_TYPE_descriptor_t asn_DEF_data_2 = { |
| 55 | "data", |
| 56 | "data", |
| 57 | SEQUENCE_OF_free, |
| 58 | SEQUENCE_OF_print, |
| 59 | SEQUENCE_OF_constraint, |
| 60 | SEQUENCE_OF_decode_ber, |
| 61 | SEQUENCE_OF_encode_der, |
| 62 | SEQUENCE_OF_decode_xer, |
| 63 | SEQUENCE_OF_encode_xer, |
| 64 | 0, /* Use generic outmost tag fetcher */ |
| 65 | asn_DEF_data_2_tags, |
| 66 | sizeof(asn_DEF_data_2_tags) |
| 67 | /sizeof(asn_DEF_data_2_tags[0]), /* 1 */ |
| 68 | asn_DEF_data_2_tags, /* Same as above */ |
| 69 | sizeof(asn_DEF_data_2_tags) |
| 70 | /sizeof(asn_DEF_data_2_tags[0]), /* 1 */ |
| 71 | asn_MBR_data_2, |
| 72 | 1, /* Single element */ |
| 73 | &asn_SPC_data_2_specs /* Additional specs */ |
| 74 | }; |
| 75 | |
| 76 | static asn_TYPE_member_t asn_MBR_Type_1[] = { |
| 77 | { ATF_NOFLAGS, 0, offsetof(struct Type, data), |
| 78 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 79 | .tag_mode = 0, |
| 80 | .type = (void *)&asn_DEF_data_2, |
| 81 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 82 | .name = "data" |
| 83 | }, |
| 84 | }; |
| 85 | static ber_tlv_tag_t asn_DEF_Type_1_tags[] = { |
| 86 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 87 | }; |
| 88 | static asn_TYPE_tag2member_t asn_MAP_Type_1_tag2el[] = { |
| 89 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* data at 16 */ |
| 90 | }; |
| 91 | static asn_SEQUENCE_specifics_t asn_SPC_Type_1_specs = { |
| 92 | sizeof(struct Type), |
| 93 | offsetof(struct Type, _asn_ctx), |
| 94 | asn_MAP_Type_1_tag2el, |
| 95 | 1, /* Count of tags in the map */ |
| 96 | -1, /* Start extensions */ |
| 97 | -1 /* Stop extensions */ |
| 98 | }; |
| 99 | asn_TYPE_descriptor_t asn_DEF_Type = { |
| 100 | "Type", |
| 101 | "Type", |
| 102 | SEQUENCE_free, |
| 103 | SEQUENCE_print, |
| 104 | SEQUENCE_constraint, |
| 105 | SEQUENCE_decode_ber, |
| 106 | SEQUENCE_encode_der, |
| 107 | SEQUENCE_decode_xer, |
| 108 | SEQUENCE_encode_xer, |
| 109 | 0, /* Use generic outmost tag fetcher */ |
| 110 | asn_DEF_Type_1_tags, |
| 111 | sizeof(asn_DEF_Type_1_tags) |
| 112 | /sizeof(asn_DEF_Type_1_tags[0]), /* 1 */ |
| 113 | asn_DEF_Type_1_tags, /* Same as above */ |
| 114 | sizeof(asn_DEF_Type_1_tags) |
| 115 | /sizeof(asn_DEF_Type_1_tags[0]), /* 1 */ |
| 116 | asn_MBR_Type_1, |
| 117 | 1, /* Elements count */ |
| 118 | &asn_SPC_Type_1_specs /* Additional specs */ |
| 119 | }; |
| 120 | |
| 121 | |
| 122 | /*** <<< INCLUDES [Epyt] >>> ***/ |
| 123 | |
| 124 | #include <asn_SET_OF.h> |
| 125 | #include <constr_SET_OF.h> |
| 126 | #include <constr_SEQUENCE.h> |
| 127 | |
| 128 | /*** <<< FWD-DECLS [Epyt] >>> ***/ |
| 129 | |
| 130 | struct Type; /* Forward declaration */ |
| 131 | struct Ypet; /* Forward declaration */ |
| 132 | |
| 133 | /*** <<< TYPE-DECLS [Epyt] >>> ***/ |
| 134 | |
| 135 | typedef struct Epyt { |
| 136 | struct stype { |
| 137 | A_SET_OF(struct Type) list; |
| 138 | |
| 139 | /* Context for parsing across buffer boundaries */ |
| 140 | asn_struct_ctx_t _asn_ctx; |
| 141 | } stype; |
| 142 | struct Type *type /* OPTIONAL */; |
| 143 | struct Ypet *ypet /* OPTIONAL */; |
| 144 | |
| 145 | /* Context for parsing across buffer boundaries */ |
| 146 | asn_struct_ctx_t _asn_ctx; |
| 147 | } Epyt_t; |
| 148 | |
| 149 | /*** <<< FUNC-DECLS [Epyt] >>> ***/ |
| 150 | |
| 151 | extern asn_TYPE_descriptor_t asn_DEF_Epyt; |
| 152 | |
| 153 | /*** <<< POST-INCLUDE [Epyt] >>> ***/ |
| 154 | |
| 155 | #include <Type.h> |
| 156 | #include <Ypet.h> |
| 157 | |
| 158 | /*** <<< STAT-DEFS [Epyt] >>> ***/ |
| 159 | |
| 160 | static asn_TYPE_member_t asn_MBR_stype_2[] = { |
| 161 | { ATF_NOFLAGS, 0, 0, |
| 162 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 163 | .tag_mode = 0, |
| 164 | .type = (void *)&asn_DEF_Type, |
| 165 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 166 | .name = "" |
| 167 | }, |
| 168 | }; |
| 169 | static ber_tlv_tag_t asn_DEF_stype_2_tags[] = { |
| 170 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 171 | }; |
| 172 | static asn_SET_OF_specifics_t asn_SPC_stype_2_specs = { |
| 173 | sizeof(struct stype), |
| 174 | offsetof(struct stype, _asn_ctx), |
| 175 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 176 | }; |
| 177 | static /* Use -fall-defs-global to expose */ |
| 178 | asn_TYPE_descriptor_t asn_DEF_stype_2 = { |
| 179 | "stype", |
| 180 | "stype", |
| 181 | SET_OF_free, |
| 182 | SET_OF_print, |
| 183 | SET_OF_constraint, |
| 184 | SET_OF_decode_ber, |
| 185 | SET_OF_encode_der, |
| 186 | SET_OF_decode_xer, |
| 187 | SET_OF_encode_xer, |
| 188 | 0, /* Use generic outmost tag fetcher */ |
| 189 | asn_DEF_stype_2_tags, |
| 190 | sizeof(asn_DEF_stype_2_tags) |
| 191 | /sizeof(asn_DEF_stype_2_tags[0]), /* 1 */ |
| 192 | asn_DEF_stype_2_tags, /* Same as above */ |
| 193 | sizeof(asn_DEF_stype_2_tags) |
| 194 | /sizeof(asn_DEF_stype_2_tags[0]), /* 1 */ |
| 195 | asn_MBR_stype_2, |
| 196 | 1, /* Single element */ |
| 197 | &asn_SPC_stype_2_specs /* Additional specs */ |
| 198 | }; |
| 199 | |
| 200 | static asn_TYPE_member_t asn_MBR_Epyt_1[] = { |
| 201 | { ATF_NOFLAGS, 0, offsetof(struct Epyt, stype), |
| 202 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 203 | .tag_mode = 0, |
| 204 | .type = (void *)&asn_DEF_stype_2, |
| 205 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 206 | .name = "stype" |
| 207 | }, |
| 208 | { ATF_POINTER, 2, offsetof(struct Epyt, type), |
| 209 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 210 | .tag_mode = 0, |
| 211 | .type = (void *)&asn_DEF_Type, |
| 212 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 213 | .name = "type" |
| 214 | }, |
| 215 | { ATF_POINTER, 1, offsetof(struct Epyt, ypet), |
| 216 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 217 | .tag_mode = 0, |
| 218 | .type = (void *)&asn_DEF_Ypet, |
| 219 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 220 | .name = "ypet" |
| 221 | }, |
| 222 | }; |
| 223 | static ber_tlv_tag_t asn_DEF_Epyt_1_tags[] = { |
| 224 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 225 | }; |
| 226 | static asn_TYPE_tag2member_t asn_MAP_Epyt_1_tag2el[] = { |
| 227 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* type at 22 */ |
| 228 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 1 }, /* stype at 21 */ |
| 229 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 2, -1, 0 } /* ypet at 23 */ |
| 230 | }; |
| 231 | static asn_SEQUENCE_specifics_t asn_SPC_Epyt_1_specs = { |
| 232 | sizeof(struct Epyt), |
| 233 | offsetof(struct Epyt, _asn_ctx), |
| 234 | asn_MAP_Epyt_1_tag2el, |
| 235 | 3, /* Count of tags in the map */ |
| 236 | -1, /* Start extensions */ |
| 237 | -1 /* Stop extensions */ |
| 238 | }; |
| 239 | asn_TYPE_descriptor_t asn_DEF_Epyt = { |
| 240 | "Epyt", |
| 241 | "Epyt", |
| 242 | SEQUENCE_free, |
| 243 | SEQUENCE_print, |
| 244 | SEQUENCE_constraint, |
| 245 | SEQUENCE_decode_ber, |
| 246 | SEQUENCE_encode_der, |
| 247 | SEQUENCE_decode_xer, |
| 248 | SEQUENCE_encode_xer, |
| 249 | 0, /* Use generic outmost tag fetcher */ |
| 250 | asn_DEF_Epyt_1_tags, |
| 251 | sizeof(asn_DEF_Epyt_1_tags) |
| 252 | /sizeof(asn_DEF_Epyt_1_tags[0]), /* 1 */ |
| 253 | asn_DEF_Epyt_1_tags, /* Same as above */ |
| 254 | sizeof(asn_DEF_Epyt_1_tags) |
| 255 | /sizeof(asn_DEF_Epyt_1_tags[0]), /* 1 */ |
| 256 | asn_MBR_Epyt_1, |
| 257 | 3, /* Elements count */ |
| 258 | &asn_SPC_Epyt_1_specs /* Additional specs */ |
| 259 | }; |
| 260 | |
| 261 | |
| 262 | /*** <<< INCLUDES [Ypet] >>> ***/ |
| 263 | |
| 264 | #include <Epyt.h> |
| 265 | #include <INTEGER.h> |
| 266 | #include <constr_SET.h> |
| 267 | |
| 268 | /*** <<< DEPS [Ypet] >>> ***/ |
| 269 | |
| 270 | |
| 271 | /* |
| 272 | * Method of determining the components presence |
| 273 | */ |
| 274 | typedef enum Ypet_PR { |
| 275 | Ypet_PR_epyt, /* Member epyt is present */ |
| 276 | Ypet_PR_plain, /* Member plain is present */ |
| 277 | } Ypet_PR; |
| 278 | |
| 279 | /*** <<< TYPE-DECLS [Ypet] >>> ***/ |
| 280 | |
| 281 | typedef struct Ypet { |
| 282 | Epyt_t epyt; |
| 283 | INTEGER_t *plain /* DEFAULT 7 */; |
| 284 | |
| 285 | /* Presence bitmask: ASN_SET_ISPRESENT(pYpet, Ypet_PR_x) */ |
| 286 | unsigned int _presence_map |
| 287 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 288 | |
| 289 | /* Context for parsing across buffer boundaries */ |
| 290 | asn_struct_ctx_t _asn_ctx; |
| 291 | } Ypet_t; |
| 292 | |
| 293 | /*** <<< FUNC-DECLS [Ypet] >>> ***/ |
| 294 | |
| 295 | extern asn_TYPE_descriptor_t asn_DEF_Ypet; |
| 296 | |
| 297 | /*** <<< STAT-DEFS [Ypet] >>> ***/ |
| 298 | |
| 299 | static asn_TYPE_member_t asn_MBR_Ypet_1[] = { |
| 300 | { ATF_NOFLAGS, 0, offsetof(struct Ypet, epyt), |
| 301 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 302 | .tag_mode = 0, |
| 303 | .type = (void *)&asn_DEF_Epyt, |
| 304 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 305 | .name = "epyt" |
| 306 | }, |
| 307 | { ATF_POINTER, 1, offsetof(struct Ypet, plain), |
| 308 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 309 | .tag_mode = 0, |
| 310 | .type = (void *)&asn_DEF_INTEGER, |
| 311 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 312 | .name = "plain" |
| 313 | }, |
| 314 | }; |
| 315 | static ber_tlv_tag_t asn_DEF_Ypet_1_tags[] = { |
| 316 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 317 | }; |
| 318 | static asn_TYPE_tag2member_t asn_MAP_Ypet_1_tag2el[] = { |
| 319 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* plain at 28 */ |
| 320 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* epyt at 27 */ |
| 321 | }; |
| 322 | static uint8_t asn_MAP_Ypet_1_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 323 | (1 << 7) | (0 << 6) |
| 324 | }; |
| 325 | static asn_SET_specifics_t asn_SPC_Ypet_1_specs = { |
| 326 | sizeof(struct Ypet), |
| 327 | offsetof(struct Ypet, _asn_ctx), |
| 328 | offsetof(struct Ypet, _presence_map), |
| 329 | asn_MAP_Ypet_1_tag2el, |
| 330 | 2, /* Count of tags in the map */ |
| 331 | asn_MAP_Ypet_1_tag2el, /* Same as above */ |
| 332 | 2, /* Count of tags in the CXER map */ |
| 333 | 0, /* Whether extensible */ |
| 334 | (unsigned int *)asn_MAP_Ypet_1_mmap /* Mandatory elements map */ |
| 335 | }; |
| 336 | asn_TYPE_descriptor_t asn_DEF_Ypet = { |
| 337 | "Ypet", |
| 338 | "Ypet", |
| 339 | SET_free, |
| 340 | SET_print, |
| 341 | SET_constraint, |
| 342 | SET_decode_ber, |
| 343 | SET_encode_der, |
| 344 | SET_decode_xer, |
| 345 | SET_encode_xer, |
| 346 | 0, /* Use generic outmost tag fetcher */ |
| 347 | asn_DEF_Ypet_1_tags, |
| 348 | sizeof(asn_DEF_Ypet_1_tags) |
| 349 | /sizeof(asn_DEF_Ypet_1_tags[0]), /* 1 */ |
| 350 | asn_DEF_Ypet_1_tags, /* Same as above */ |
| 351 | sizeof(asn_DEF_Ypet_1_tags) |
| 352 | /sizeof(asn_DEF_Ypet_1_tags[0]), /* 1 */ |
| 353 | asn_MBR_Ypet_1, |
| 354 | 2, /* Elements count */ |
| 355 | &asn_SPC_Ypet_1_specs /* Additional specs */ |
| 356 | }; |
| 357 | |