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