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