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