vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Test-structure-1] >>> ***/ |
| 3 | |
| 4 | #include <Test-structure-1.h> |
| 5 | #include <INTEGER.h> |
| 6 | #include <asn_SET_OF.h> |
| 7 | #include <constr_SET_OF.h> |
| 8 | #include <asn_SEQUENCE_OF.h> |
| 9 | #include <constr_SEQUENCE_OF.h> |
| 10 | #include <constr_SEQUENCE.h> |
| 11 | |
| 12 | /*** <<< DEPS [Test-structure-1] >>> ***/ |
| 13 | |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 14 | |
| 15 | struct Test_structure_1; /* Forward declaration */ |
| 16 | extern asn_TYPE_descriptor_t asn_DEF_Test_structure_1; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 17 | |
| 18 | /*** <<< TYPE-DECLS [Test-structure-1] >>> ***/ |
| 19 | |
| 20 | |
| 21 | typedef struct Test_structure_1 { |
| 22 | struct t_member1 { |
| 23 | A_SET_OF(struct Test_structure_1) list; |
| 24 | |
| 25 | /* Context for parsing across buffer boundaries */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 26 | asn_struct_ctx_t _asn_ctx; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 27 | } t_member1; |
| 28 | struct t_member2 { |
| 29 | A_SEQUENCE_OF(struct Test_structure_1) list; |
| 30 | |
| 31 | /* Context for parsing across buffer boundaries */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 32 | asn_struct_ctx_t _asn_ctx; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 33 | } t_member2; |
| 34 | struct Test_structure_1 *t_member3 /* OPTIONAL */; |
| 35 | INTEGER_t t_member4; |
| 36 | |
| 37 | /* Context for parsing across buffer boundaries */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 38 | asn_struct_ctx_t _asn_ctx; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 39 | } Test_structure_1_t; |
| 40 | |
| 41 | /*** <<< STAT-DEFS [Test-structure-1] >>> ***/ |
| 42 | |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 43 | static asn_TYPE_member_t asn_MBR_t_member1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 44 | { ATF_NOFLAGS, 0, 0, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 45 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 46 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 47 | .type = (void *)&asn_DEF_Test_structure_1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 48 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 49 | .name = "" |
| 50 | }, |
| 51 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 52 | static ber_tlv_tag_t asn_DEF_t_member1_tags[] = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 53 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 54 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 55 | static asn_SET_OF_specifics_t asn_DEF_t_member1_specs = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 56 | sizeof(struct t_member1), |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 57 | offsetof(struct t_member1, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 58 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 59 | }; |
| 60 | static /* Use -fall-defs-global to expose */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 61 | asn_TYPE_descriptor_t asn_DEF_t_member1 = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 62 | "t-member1", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 63 | "t-member1", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 64 | SET_OF_free, |
| 65 | SET_OF_print, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 66 | SET_OF_constraint, |
| 67 | SET_OF_decode_ber, |
| 68 | SET_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 69 | SET_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 70 | SET_OF_encode_xer, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 71 | 0, /* Use generic outmost tag fetcher */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 72 | asn_DEF_t_member1_tags, |
| 73 | sizeof(asn_DEF_t_member1_tags) |
| 74 | /sizeof(asn_DEF_t_member1_tags[0]), /* 1 */ |
| 75 | asn_DEF_t_member1_tags, /* Same as above */ |
| 76 | sizeof(asn_DEF_t_member1_tags) |
| 77 | /sizeof(asn_DEF_t_member1_tags[0]), /* 1 */ |
| 78 | asn_MBR_t_member1, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 79 | 1, /* Single element */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 80 | &asn_DEF_t_member1_specs /* Additional specs */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 81 | }; |
| 82 | |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 83 | static asn_TYPE_member_t asn_MBR_t_member2[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 84 | { ATF_NOFLAGS, 0, 0, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 85 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 86 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 87 | .type = (void *)&asn_DEF_Test_structure_1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 88 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 89 | .name = "" |
| 90 | }, |
| 91 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 92 | static ber_tlv_tag_t asn_DEF_t_member2_tags[] = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 93 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 94 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 95 | static asn_SET_OF_specifics_t asn_DEF_t_member2_specs = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 96 | sizeof(struct t_member2), |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 97 | offsetof(struct t_member2, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 98 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 99 | }; |
| 100 | static /* Use -fall-defs-global to expose */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 101 | asn_TYPE_descriptor_t asn_DEF_t_member2 = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 102 | "t-member2", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 103 | "t-member2", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 104 | SEQUENCE_OF_free, |
| 105 | SEQUENCE_OF_print, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 106 | SEQUENCE_OF_constraint, |
| 107 | SEQUENCE_OF_decode_ber, |
| 108 | SEQUENCE_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 109 | SEQUENCE_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 110 | SEQUENCE_OF_encode_xer, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 111 | 0, /* Use generic outmost tag fetcher */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 112 | asn_DEF_t_member2_tags, |
| 113 | sizeof(asn_DEF_t_member2_tags) |
| 114 | /sizeof(asn_DEF_t_member2_tags[0]), /* 1 */ |
| 115 | asn_DEF_t_member2_tags, /* Same as above */ |
| 116 | sizeof(asn_DEF_t_member2_tags) |
| 117 | /sizeof(asn_DEF_t_member2_tags[0]), /* 1 */ |
| 118 | asn_MBR_t_member2, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 119 | 1, /* Single element */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 120 | &asn_DEF_t_member2_specs /* Additional specs */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 121 | }; |
| 122 | |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 123 | static asn_TYPE_member_t asn_MBR_Test_structure_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 124 | { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member1), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 125 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 126 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 127 | .type = (void *)&asn_DEF_t_member1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 128 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 129 | .name = "t-member1" |
| 130 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 131 | { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 132 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 133 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 134 | .type = (void *)&asn_DEF_t_member2, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 135 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 136 | .name = "t-member2" |
| 137 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 138 | { ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 139 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 140 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 141 | .type = (void *)&asn_DEF_Test_structure_1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 142 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 143 | .name = "t-member3" |
| 144 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 145 | { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 146 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 147 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 148 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 149 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 150 | .name = "t-member4" |
| 151 | }, |
| 152 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 153 | static ber_tlv_tag_t asn_DEF_Test_structure_1_tags[] = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 154 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 155 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 156 | static asn_TYPE_tag2member_t asn_DEF_Test_structure_1_tag2el[] = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 157 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, 0, 0 }, /* t-member4 at 19 */ |
| 158 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 1 }, /* t-member2 at 16 */ |
| 159 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 }, /* t-member3 at 17 */ |
| 160 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 }, /* t-member1 at 15 */ |
| 161 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 162 | static asn_SEQUENCE_specifics_t asn_DEF_Test_structure_1_specs = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 163 | sizeof(struct Test_structure_1), |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 164 | offsetof(struct Test_structure_1, _asn_ctx), |
| 165 | asn_DEF_Test_structure_1_tag2el, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 166 | 4, /* Count of tags in the map */ |
| 167 | -1, /* Start extensions */ |
| 168 | -1 /* Stop extensions */ |
| 169 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 170 | asn_TYPE_descriptor_t asn_DEF_Test_structure_1 = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 171 | "Test-structure-1", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 172 | "Test-structure-1", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 173 | SEQUENCE_free, |
| 174 | SEQUENCE_print, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 175 | SEQUENCE_constraint, |
| 176 | SEQUENCE_decode_ber, |
| 177 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 178 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 179 | SEQUENCE_encode_xer, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 180 | 0, /* Use generic outmost tag fetcher */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 181 | asn_DEF_Test_structure_1_tags, |
| 182 | sizeof(asn_DEF_Test_structure_1_tags) |
| 183 | /sizeof(asn_DEF_Test_structure_1_tags[0]), /* 1 */ |
| 184 | asn_DEF_Test_structure_1_tags, /* Same as above */ |
| 185 | sizeof(asn_DEF_Test_structure_1_tags) |
| 186 | /sizeof(asn_DEF_Test_structure_1_tags[0]), /* 1 */ |
| 187 | asn_MBR_Test_structure_1, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 188 | 4, /* Elements count */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 189 | &asn_DEF_Test_structure_1_specs /* Additional specs */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | |
| 193 | /*** <<< INCLUDES [Choice-1] >>> ***/ |
| 194 | |
| 195 | #include <Choice-1.h> |
| 196 | #include <INTEGER.h> |
| 197 | #include <asn_SET_OF.h> |
| 198 | #include <constr_SET_OF.h> |
| 199 | #include <constr_CHOICE.h> |
| 200 | |
| 201 | /*** <<< DEPS [Choice-1] >>> ***/ |
| 202 | |
| 203 | typedef enum Choice_1_PR { |
| 204 | Choice_1_PR_NOTHING, /* No components present */ |
| 205 | Choice_1_PR_and, |
| 206 | Choice_1_PR_or, |
| 207 | Choice_1_PR_not, |
| 208 | Choice_1_PR_other, |
| 209 | } Choice_1_PR; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 210 | |
| 211 | struct Choice_1; /* Forward declaration */ |
| 212 | |
| 213 | struct Choice_1; /* Forward declaration */ |
| 214 | extern asn_TYPE_descriptor_t asn_DEF_Choice_1; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 215 | |
| 216 | /*** <<< TYPE-DECLS [Choice-1] >>> ***/ |
| 217 | |
| 218 | |
| 219 | typedef struct Choice_1 { |
| 220 | Choice_1_PR present; |
| 221 | union { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 222 | struct Choice_1 *and; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 223 | struct or { |
| 224 | A_SET_OF(struct Choice_1) list; |
| 225 | |
| 226 | /* Context for parsing across buffer boundaries */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 227 | asn_struct_ctx_t _asn_ctx; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 228 | } or; |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 229 | struct Choice_1 *not; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 230 | INTEGER_t other; |
| 231 | } choice; |
| 232 | |
| 233 | /* Context for parsing across buffer boundaries */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 234 | asn_struct_ctx_t _asn_ctx; |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 235 | } Choice_1_t; |
| 236 | |
| 237 | /*** <<< STAT-DEFS [Choice-1] >>> ***/ |
| 238 | |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 239 | static asn_TYPE_member_t asn_MBR_or[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 240 | { ATF_NOFLAGS, 0, 0, |
vlm | 060fe2a | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 241 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 242 | .tag_mode = 0, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 243 | .type = (void *)&asn_DEF_Choice_1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 244 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 245 | .name = "" |
| 246 | }, |
| 247 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 248 | static ber_tlv_tag_t asn_DEF_or_tags[] = { |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 249 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 250 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 251 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 252 | static asn_SET_OF_specifics_t asn_DEF_or_specs = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 253 | sizeof(struct or), |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 254 | offsetof(struct or, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 255 | 1, /* XER encoding is XMLValueList */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 256 | }; |
| 257 | static /* Use -fall-defs-global to expose */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 258 | asn_TYPE_descriptor_t asn_DEF_or = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 259 | "or", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 260 | "or", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 261 | SET_OF_free, |
| 262 | SET_OF_print, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 263 | SET_OF_constraint, |
| 264 | SET_OF_decode_ber, |
| 265 | SET_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 266 | SET_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 267 | SET_OF_encode_xer, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 268 | 0, /* Use generic outmost tag fetcher */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 269 | asn_DEF_or_tags, |
| 270 | sizeof(asn_DEF_or_tags) |
| 271 | /sizeof(asn_DEF_or_tags[0]) - 1, /* 1 */ |
| 272 | asn_DEF_or_tags, /* Same as above */ |
| 273 | sizeof(asn_DEF_or_tags) |
| 274 | /sizeof(asn_DEF_or_tags[0]), /* 2 */ |
| 275 | asn_MBR_or, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 276 | 1, /* Single element */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 277 | &asn_DEF_or_specs /* Additional specs */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 278 | }; |
| 279 | |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 280 | static asn_TYPE_member_t asn_MBR_Choice_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 281 | { ATF_POINTER, 0, offsetof(struct Choice_1, choice.and), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 282 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 283 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 284 | .type = (void *)&asn_DEF_Choice_1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 285 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 286 | .name = "and" |
| 287 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 288 | { ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.or), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 289 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 290 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 291 | .type = (void *)&asn_DEF_or, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 292 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 293 | .name = "or" |
| 294 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 295 | { ATF_POINTER, 0, offsetof(struct Choice_1, choice.not), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 296 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 297 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 298 | .type = (void *)&asn_DEF_Choice_1, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 299 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 300 | .name = "not" |
| 301 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 302 | { ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 303 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 304 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 305 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 306 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 307 | .name = "other" |
| 308 | }, |
| 309 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 310 | static asn_TYPE_tag2member_t asn_DEF_Choice_1_tag2el[] = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 311 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* and at 22 */ |
| 312 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* or at 23 */ |
| 313 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* not at 24 */ |
| 314 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 }, /* other at 26 */ |
| 315 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 316 | static asn_CHOICE_specifics_t asn_DEF_Choice_1_specs = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 317 | sizeof(struct Choice_1), |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 318 | offsetof(struct Choice_1, _asn_ctx), |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 319 | offsetof(struct Choice_1, present), |
| 320 | sizeof(((struct Choice_1 *)0)->present), |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 321 | asn_DEF_Choice_1_tag2el, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 322 | 4, /* Count of tags in the map */ |
| 323 | 0 /* Whether extensible */ |
| 324 | }; |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 325 | asn_TYPE_descriptor_t asn_DEF_Choice_1 = { |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 326 | "Choice-1", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 327 | "Choice-1", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 328 | CHOICE_free, |
| 329 | CHOICE_print, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 330 | CHOICE_constraint, |
| 331 | CHOICE_decode_ber, |
| 332 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 333 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 334 | CHOICE_encode_xer, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 335 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 336 | 0, /* No effective tags (pointer) */ |
| 337 | 0, /* No effective tags (count) */ |
| 338 | 0, /* No tags (pointer) */ |
| 339 | 0, /* No tags (count) */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 340 | asn_MBR_Choice_1, |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 341 | 4, /* Elements count */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 342 | &asn_DEF_Choice_1_specs /* Additional specs */ |
| 343 | }; |
| 344 | |
| 345 | |
| 346 | /*** <<< INCLUDES [Test-structure-2] >>> ***/ |
| 347 | |
| 348 | #include <Test-structure-3.h> |
| 349 | #include <constr_SET.h> |
| 350 | |
| 351 | /*** <<< DEPS [Test-structure-2] >>> ***/ |
| 352 | |
| 353 | |
| 354 | /* |
| 355 | * Method of determining the components presence |
| 356 | */ |
| 357 | typedef enum Test_structure_2_PR { |
| 358 | Test_structure_2_PR_m1, /* Member m1 is present */ |
| 359 | } Test_structure_2_PR; |
| 360 | |
| 361 | struct Test_structure_3; /* Forward declaration */ |
| 362 | extern asn_TYPE_descriptor_t asn_DEF_Test_structure_2; |
| 363 | |
| 364 | /*** <<< TYPE-DECLS [Test-structure-2] >>> ***/ |
| 365 | |
| 366 | |
| 367 | typedef struct Test_structure_2 { |
| 368 | struct Test_structure_3 *m1 /* OPTIONAL */; |
| 369 | |
| 370 | /* Presence bitmask: ASN_SET_ISPRESENT(pTest_structure_2, Test_structure_2_PR_x) */ |
| 371 | unsigned int _presence_map |
| 372 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 373 | |
| 374 | /* Context for parsing across buffer boundaries */ |
| 375 | asn_struct_ctx_t _asn_ctx; |
| 376 | } Test_structure_2_t; |
| 377 | |
| 378 | /*** <<< STAT-DEFS [Test-structure-2] >>> ***/ |
| 379 | |
| 380 | static asn_TYPE_member_t asn_MBR_Test_structure_2[] = { |
| 381 | { ATF_POINTER, 1, offsetof(struct Test_structure_2, m1), |
| 382 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 383 | .tag_mode = 0, |
| 384 | .type = (void *)&asn_DEF_Test_structure_3, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 385 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 386 | .name = "m1" |
| 387 | }, |
| 388 | }; |
| 389 | static ber_tlv_tag_t asn_DEF_Test_structure_2_tags[] = { |
| 390 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 391 | }; |
| 392 | static asn_TYPE_tag2member_t asn_DEF_Test_structure_2_tag2el[] = { |
| 393 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 }, /* m1 at 28 */ |
| 394 | }; |
| 395 | static uint8_t asn_DEF_Test_structure_2_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 396 | (0 << 7) |
| 397 | }; |
| 398 | static asn_SET_specifics_t asn_DEF_Test_structure_2_specs = { |
| 399 | sizeof(struct Test_structure_2), |
| 400 | offsetof(struct Test_structure_2, _asn_ctx), |
| 401 | offsetof(struct Test_structure_2, _presence_map), |
| 402 | asn_DEF_Test_structure_2_tag2el, |
| 403 | 1, /* Count of tags in the map */ |
vlm | 0789113 | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 404 | asn_DEF_Test_structure_2_tag2el, /* Same as above */ |
| 405 | 1, /* Count of tags in the CANONICAL-XER map */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 406 | 0, /* Whether extensible */ |
| 407 | (unsigned int *)asn_DEF_Test_structure_2_mmap /* Mandatory elements map */ |
| 408 | }; |
| 409 | asn_TYPE_descriptor_t asn_DEF_Test_structure_2 = { |
| 410 | "Test-structure-2", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 411 | "Test-structure-2", |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 412 | SET_free, |
| 413 | SET_print, |
| 414 | SET_constraint, |
| 415 | SET_decode_ber, |
| 416 | SET_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 417 | SET_decode_xer, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 418 | SET_encode_xer, |
| 419 | 0, /* Use generic outmost tag fetcher */ |
| 420 | asn_DEF_Test_structure_2_tags, |
| 421 | sizeof(asn_DEF_Test_structure_2_tags) |
| 422 | /sizeof(asn_DEF_Test_structure_2_tags[0]), /* 1 */ |
| 423 | asn_DEF_Test_structure_2_tags, /* Same as above */ |
| 424 | sizeof(asn_DEF_Test_structure_2_tags) |
| 425 | /sizeof(asn_DEF_Test_structure_2_tags[0]), /* 1 */ |
| 426 | asn_MBR_Test_structure_2, |
| 427 | 1, /* Elements count */ |
| 428 | &asn_DEF_Test_structure_2_specs /* Additional specs */ |
| 429 | }; |
| 430 | |
| 431 | |
| 432 | /*** <<< INCLUDES [Test-structure-3] >>> ***/ |
| 433 | |
| 434 | #include <Test-structure-2.h> |
| 435 | #include <constr_SET.h> |
| 436 | |
| 437 | /*** <<< DEPS [Test-structure-3] >>> ***/ |
| 438 | |
| 439 | |
| 440 | /* |
| 441 | * Method of determining the components presence |
| 442 | */ |
| 443 | typedef enum Test_structure_3_PR { |
| 444 | Test_structure_3_PR_m1, /* Member m1 is present */ |
| 445 | } Test_structure_3_PR; |
| 446 | |
| 447 | struct Test_structure_2; /* Forward declaration */ |
| 448 | extern asn_TYPE_descriptor_t asn_DEF_Test_structure_3; |
| 449 | |
| 450 | /*** <<< TYPE-DECLS [Test-structure-3] >>> ***/ |
| 451 | |
| 452 | |
| 453 | typedef struct Test_structure_3 { |
| 454 | struct Test_structure_2 *m1 /* OPTIONAL */; |
| 455 | |
| 456 | /* Presence bitmask: ASN_SET_ISPRESENT(pTest_structure_3, Test_structure_3_PR_x) */ |
| 457 | unsigned int _presence_map |
| 458 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 459 | |
| 460 | /* Context for parsing across buffer boundaries */ |
| 461 | asn_struct_ctx_t _asn_ctx; |
| 462 | } Test_structure_3_t; |
| 463 | |
| 464 | /*** <<< STAT-DEFS [Test-structure-3] >>> ***/ |
| 465 | |
| 466 | static asn_TYPE_member_t asn_MBR_Test_structure_3[] = { |
| 467 | { ATF_POINTER, 1, offsetof(struct Test_structure_3, m1), |
| 468 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 469 | .tag_mode = 0, |
| 470 | .type = (void *)&asn_DEF_Test_structure_2, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 471 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 472 | .name = "m1" |
| 473 | }, |
| 474 | }; |
| 475 | static ber_tlv_tag_t asn_DEF_Test_structure_3_tags[] = { |
| 476 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 477 | }; |
| 478 | static asn_TYPE_tag2member_t asn_DEF_Test_structure_3_tag2el[] = { |
| 479 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 }, /* m1 at 29 */ |
| 480 | }; |
| 481 | static uint8_t asn_DEF_Test_structure_3_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 482 | (0 << 7) |
| 483 | }; |
| 484 | static asn_SET_specifics_t asn_DEF_Test_structure_3_specs = { |
| 485 | sizeof(struct Test_structure_3), |
| 486 | offsetof(struct Test_structure_3, _asn_ctx), |
| 487 | offsetof(struct Test_structure_3, _presence_map), |
| 488 | asn_DEF_Test_structure_3_tag2el, |
| 489 | 1, /* Count of tags in the map */ |
vlm | 0789113 | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 490 | asn_DEF_Test_structure_3_tag2el, /* Same as above */ |
| 491 | 1, /* Count of tags in the CANONICAL-XER map */ |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 492 | 0, /* Whether extensible */ |
| 493 | (unsigned int *)asn_DEF_Test_structure_3_mmap /* Mandatory elements map */ |
| 494 | }; |
| 495 | asn_TYPE_descriptor_t asn_DEF_Test_structure_3 = { |
| 496 | "Test-structure-3", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 497 | "Test-structure-3", |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 498 | SET_free, |
| 499 | SET_print, |
| 500 | SET_constraint, |
| 501 | SET_decode_ber, |
| 502 | SET_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 503 | SET_decode_xer, |
vlm | 7a5a31a | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 504 | SET_encode_xer, |
| 505 | 0, /* Use generic outmost tag fetcher */ |
| 506 | asn_DEF_Test_structure_3_tags, |
| 507 | sizeof(asn_DEF_Test_structure_3_tags) |
| 508 | /sizeof(asn_DEF_Test_structure_3_tags[0]), /* 1 */ |
| 509 | asn_DEF_Test_structure_3_tags, /* Same as above */ |
| 510 | sizeof(asn_DEF_Test_structure_3_tags) |
| 511 | /sizeof(asn_DEF_Test_structure_3_tags[0]), /* 1 */ |
| 512 | asn_MBR_Test_structure_3, |
| 513 | 1, /* Elements count */ |
| 514 | &asn_DEF_Test_structure_3_specs /* Additional specs */ |
vlm | b71a9d3 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 515 | }; |
| 516 | |