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; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 40 | extern asn_SEQUENCE_specifics_t asn_SPC_Test_structure_1_specs_1; |
| 41 | extern asn_TYPE_member_t asn_MBR_Test_structure_1_1[4]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 42 | |
| 43 | /*** <<< POST-INCLUDE [Test-structure-1] >>> ***/ |
| 44 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 45 | #include "Test-structure-1.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 46 | |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 47 | /*** <<< STAT-DEFS [Test-structure-1] >>> ***/ |
| 48 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 49 | static asn_TYPE_member_t asn_MBR_t_member1_2[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 50 | { ATF_POINTER, 0, 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 51 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 52 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 53 | .type = &asn_DEF_Test_structure_1, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 54 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 55 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 56 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 57 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 58 | .name = "" |
| 59 | }, |
| 60 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 61 | static const ber_tlv_tag_t asn_DEF_t_member1_tags_2[] = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 62 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 63 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 64 | static asn_SET_OF_specifics_t asn_SPC_t_member1_specs_2 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 65 | sizeof(struct t_member1), |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 66 | offsetof(struct t_member1, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 67 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 68 | }; |
| 69 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 70 | asn_TYPE_descriptor_t asn_DEF_t_member1_2 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 71 | "t-member1", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 72 | "t-member1", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 73 | SET_OF_free, |
| 74 | SET_OF_print, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 75 | SET_OF_constraint, |
| 76 | SET_OF_decode_ber, |
| 77 | SET_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 78 | SET_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 79 | SET_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 80 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 81 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 82 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 83 | asn_DEF_t_member1_tags_2, |
| 84 | sizeof(asn_DEF_t_member1_tags_2) |
| 85 | /sizeof(asn_DEF_t_member1_tags_2[0]), /* 1 */ |
| 86 | asn_DEF_t_member1_tags_2, /* Same as above */ |
| 87 | sizeof(asn_DEF_t_member1_tags_2) |
| 88 | /sizeof(asn_DEF_t_member1_tags_2[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 89 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 90 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 91 | asn_MBR_t_member1_2, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 92 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 93 | &asn_SPC_t_member1_specs_2 /* Additional specs */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 94 | }; |
| 95 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 96 | static asn_TYPE_member_t asn_MBR_t_member2_4[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 97 | { ATF_POINTER, 0, 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 98 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 99 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 100 | .type = &asn_DEF_Test_structure_1, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 101 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 102 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 103 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 104 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 105 | .name = "" |
| 106 | }, |
| 107 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 108 | static const ber_tlv_tag_t asn_DEF_t_member2_tags_4[] = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 109 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 110 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 111 | static asn_SET_OF_specifics_t asn_SPC_t_member2_specs_4 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 112 | sizeof(struct t_member2), |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 113 | offsetof(struct t_member2, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 114 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 115 | }; |
| 116 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 117 | asn_TYPE_descriptor_t asn_DEF_t_member2_4 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 118 | "t-member2", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 119 | "t-member2", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 120 | SEQUENCE_OF_free, |
| 121 | SEQUENCE_OF_print, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 122 | SEQUENCE_OF_constraint, |
| 123 | SEQUENCE_OF_decode_ber, |
| 124 | SEQUENCE_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 125 | SEQUENCE_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 126 | SEQUENCE_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 127 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 128 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 129 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 130 | asn_DEF_t_member2_tags_4, |
| 131 | sizeof(asn_DEF_t_member2_tags_4) |
| 132 | /sizeof(asn_DEF_t_member2_tags_4[0]), /* 1 */ |
| 133 | asn_DEF_t_member2_tags_4, /* Same as above */ |
| 134 | sizeof(asn_DEF_t_member2_tags_4) |
| 135 | /sizeof(asn_DEF_t_member2_tags_4[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 136 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 137 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 138 | asn_MBR_t_member2_4, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 139 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 140 | &asn_SPC_t_member2_specs_4 /* Additional specs */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 141 | }; |
| 142 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 143 | asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = { |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 144 | { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member1), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 145 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 146 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 147 | .type = &asn_DEF_t_member1_2, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 148 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 149 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 150 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 151 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 152 | .name = "t-member1" |
| 153 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 154 | { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 155 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 156 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 157 | .type = &asn_DEF_t_member2_4, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 158 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 159 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 160 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 161 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 162 | .name = "t-member2" |
| 163 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 164 | { ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 165 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 166 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 167 | .type = &asn_DEF_Test_structure_1, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 168 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 169 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 170 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 171 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 172 | .name = "t-member3" |
| 173 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 174 | { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 175 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 176 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 177 | .type = &asn_DEF_INTEGER, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 178 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 179 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 180 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 181 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 182 | .name = "t-member4" |
| 183 | }, |
| 184 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 185 | static const ber_tlv_tag_t asn_DEF_Test_structure_1_tags_1[] = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 186 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 187 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 188 | static const asn_TYPE_tag2member_t asn_MAP_Test_structure_1_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 189 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, 0, 0 }, /* t-member4 */ |
| 190 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 1 }, /* t-member2 */ |
| 191 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 }, /* t-member3 */ |
| 192 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* t-member1 */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 193 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 194 | asn_SEQUENCE_specifics_t asn_SPC_Test_structure_1_specs_1 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 195 | sizeof(struct Test_structure_1), |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 196 | offsetof(struct Test_structure_1, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 197 | asn_MAP_Test_structure_1_tag2el_1, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 198 | 4, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 199 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 200 | -1, /* Start extensions */ |
| 201 | -1 /* Stop extensions */ |
| 202 | }; |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 203 | asn_TYPE_descriptor_t asn_DEF_Test_structure_1 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 204 | "Test-structure-1", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 205 | "Test-structure-1", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 206 | SEQUENCE_free, |
| 207 | SEQUENCE_print, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 208 | SEQUENCE_constraint, |
| 209 | SEQUENCE_decode_ber, |
| 210 | SEQUENCE_encode_der, |
Lev Walkin | 61b40d8 | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 211 | SEQUENCE_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 212 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 213 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 214 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 215 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 216 | asn_DEF_Test_structure_1_tags_1, |
| 217 | sizeof(asn_DEF_Test_structure_1_tags_1) |
| 218 | /sizeof(asn_DEF_Test_structure_1_tags_1[0]), /* 1 */ |
| 219 | asn_DEF_Test_structure_1_tags_1, /* Same as above */ |
| 220 | sizeof(asn_DEF_Test_structure_1_tags_1) |
| 221 | /sizeof(asn_DEF_Test_structure_1_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 222 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 223 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 224 | asn_MBR_Test_structure_1_1, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 225 | 4, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 226 | &asn_SPC_Test_structure_1_specs_1 /* Additional specs */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 227 | }; |
| 228 | |
| 229 | |
| 230 | /*** <<< INCLUDES [Choice-1] >>> ***/ |
| 231 | |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 232 | #include <INTEGER.h> |
| 233 | #include <asn_SET_OF.h> |
| 234 | #include <constr_SET_OF.h> |
| 235 | #include <constr_CHOICE.h> |
| 236 | |
| 237 | /*** <<< DEPS [Choice-1] >>> ***/ |
| 238 | |
| 239 | typedef enum Choice_1_PR { |
| 240 | Choice_1_PR_NOTHING, /* No components present */ |
| 241 | Choice_1_PR_and, |
| 242 | Choice_1_PR_or, |
| 243 | Choice_1_PR_not, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 244 | Choice_1_PR_other |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 245 | } Choice_1_PR; |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 246 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 247 | /*** <<< FWD-DECLS [Choice-1] >>> ***/ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 248 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 249 | struct Choice_1; |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 250 | |
| 251 | /*** <<< TYPE-DECLS [Choice-1] >>> ***/ |
| 252 | |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 253 | typedef struct Choice_1 { |
| 254 | Choice_1_PR present; |
Lev Walkin | 0f5d74c | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 255 | union Choice_1_u { |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 256 | struct Choice_1 *And; |
| 257 | struct Or { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 258 | A_SET_OF(struct Choice_1) list; |
| 259 | |
| 260 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 261 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 262 | } Or; |
| 263 | struct Choice_1 *Not; |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 264 | INTEGER_t other; |
| 265 | } choice; |
| 266 | |
| 267 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 268 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 269 | } Choice_1_t; |
| 270 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 271 | /*** <<< FUNC-DECLS [Choice-1] >>> ***/ |
| 272 | |
| 273 | extern asn_TYPE_descriptor_t asn_DEF_Choice_1; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 274 | extern asn_CHOICE_specifics_t asn_SPC_Choice_1_specs_1; |
| 275 | extern asn_TYPE_member_t asn_MBR_Choice_1_1[4]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 276 | |
| 277 | /*** <<< POST-INCLUDE [Choice-1] >>> ***/ |
| 278 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 279 | #include "Choice-1.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 280 | |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 281 | /*** <<< STAT-DEFS [Choice-1] >>> ***/ |
| 282 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 283 | static asn_TYPE_member_t asn_MBR_or_3[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 284 | { ATF_POINTER, 0, 0, |
Lev Walkin | b918973 | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 285 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 286 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 287 | .type = &asn_DEF_Choice_1, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 288 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 289 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 290 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 291 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 292 | .name = "" |
| 293 | }, |
| 294 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 295 | static const ber_tlv_tag_t asn_DEF_or_tags_3[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 296 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 297 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 298 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 299 | static asn_SET_OF_specifics_t asn_SPC_or_specs_3 = { |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 300 | sizeof(struct Or), |
| 301 | offsetof(struct Or, _asn_ctx), |
Lev Walkin | d1bfea6 | 2005-11-08 03:06:16 +0000 | [diff] [blame] | 302 | 2, /* XER encoding is XMLValueList */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 303 | }; |
| 304 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 305 | asn_TYPE_descriptor_t asn_DEF_or_3 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 306 | "or", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 307 | "or", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 308 | SET_OF_free, |
| 309 | SET_OF_print, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 310 | SET_OF_constraint, |
| 311 | SET_OF_decode_ber, |
| 312 | SET_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 313 | SET_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 314 | SET_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 315 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 316 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 317 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 318 | asn_DEF_or_tags_3, |
| 319 | sizeof(asn_DEF_or_tags_3) |
| 320 | /sizeof(asn_DEF_or_tags_3[0]) - 1, /* 1 */ |
| 321 | asn_DEF_or_tags_3, /* Same as above */ |
| 322 | sizeof(asn_DEF_or_tags_3) |
| 323 | /sizeof(asn_DEF_or_tags_3[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 324 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 325 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 326 | asn_MBR_or_3, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 327 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 328 | &asn_SPC_or_specs_3 /* Additional specs */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 329 | }; |
| 330 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 331 | asn_TYPE_member_t asn_MBR_Choice_1_1[] = { |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 332 | { ATF_POINTER, 0, offsetof(struct Choice_1, choice.And), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 333 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 334 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 335 | .type = &asn_DEF_Choice_1, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 336 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 337 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 338 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 339 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 340 | .name = "and" |
| 341 | }, |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 342 | { ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.Or), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 343 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 344 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 345 | .type = &asn_DEF_or_3, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 346 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 347 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 348 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 349 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 350 | .name = "or" |
| 351 | }, |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 352 | { ATF_POINTER, 0, offsetof(struct Choice_1, choice.Not), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 353 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 354 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 355 | .type = &asn_DEF_Choice_1, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 356 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 357 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 358 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 359 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 360 | .name = "not" |
| 361 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 362 | { ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 363 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 364 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 365 | .type = &asn_DEF_INTEGER, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 366 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 367 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 368 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 369 | .default_value = 0, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 370 | .name = "other" |
| 371 | }, |
| 372 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 373 | static const asn_TYPE_tag2member_t asn_MAP_Choice_1_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 374 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* and */ |
| 375 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* or */ |
| 376 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* not */ |
| 377 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* other */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 378 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 379 | asn_CHOICE_specifics_t asn_SPC_Choice_1_specs_1 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 380 | sizeof(struct Choice_1), |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 381 | offsetof(struct Choice_1, _asn_ctx), |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 382 | offsetof(struct Choice_1, present), |
| 383 | sizeof(((struct Choice_1 *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 384 | asn_MAP_Choice_1_tag2el_1, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 385 | 4, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 386 | .canonical_order = 0, |
| 387 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 388 | }; |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 389 | asn_TYPE_descriptor_t asn_DEF_Choice_1 = { |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 390 | "Choice-1", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 391 | "Choice-1", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 392 | CHOICE_free, |
| 393 | CHOICE_print, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 394 | CHOICE_constraint, |
| 395 | CHOICE_decode_ber, |
| 396 | CHOICE_encode_der, |
Lev Walkin | 61b40d8 | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 397 | CHOICE_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 398 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 399 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 400 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 401 | CHOICE_outmost_tag, |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 402 | 0, /* No effective tags (pointer) */ |
| 403 | 0, /* No effective tags (count) */ |
| 404 | 0, /* No tags (pointer) */ |
| 405 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 406 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 407 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 408 | asn_MBR_Choice_1_1, |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 409 | 4, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 410 | &asn_SPC_Choice_1_specs_1 /* Additional specs */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 411 | }; |
| 412 | |
| 413 | |
| 414 | /*** <<< INCLUDES [Test-structure-2] >>> ***/ |
| 415 | |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 416 | #include <constr_SET.h> |
| 417 | |
| 418 | /*** <<< DEPS [Test-structure-2] >>> ***/ |
| 419 | |
| 420 | |
| 421 | /* |
| 422 | * Method of determining the components presence |
| 423 | */ |
| 424 | typedef enum Test_structure_2_PR { |
| 425 | Test_structure_2_PR_m1, /* Member m1 is present */ |
| 426 | } Test_structure_2_PR; |
| 427 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 428 | /*** <<< FWD-DECLS [Test-structure-2] >>> ***/ |
| 429 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 430 | struct Test_structure_3; |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 431 | |
| 432 | /*** <<< TYPE-DECLS [Test-structure-2] >>> ***/ |
| 433 | |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 434 | typedef struct Test_structure_2 { |
| 435 | struct Test_structure_3 *m1 /* OPTIONAL */; |
| 436 | |
| 437 | /* Presence bitmask: ASN_SET_ISPRESENT(pTest_structure_2, Test_structure_2_PR_x) */ |
| 438 | unsigned int _presence_map |
| 439 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 440 | |
| 441 | /* Context for parsing across buffer boundaries */ |
| 442 | asn_struct_ctx_t _asn_ctx; |
| 443 | } Test_structure_2_t; |
| 444 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 445 | /*** <<< FUNC-DECLS [Test-structure-2] >>> ***/ |
| 446 | |
| 447 | extern asn_TYPE_descriptor_t asn_DEF_Test_structure_2; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 448 | extern asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1; |
| 449 | extern asn_TYPE_member_t asn_MBR_Test_structure_2_1[1]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 450 | |
| 451 | /*** <<< POST-INCLUDE [Test-structure-2] >>> ***/ |
| 452 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 453 | #include "Test-structure-3.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 454 | |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 455 | /*** <<< STAT-DEFS [Test-structure-2] >>> ***/ |
| 456 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 457 | asn_TYPE_member_t asn_MBR_Test_structure_2_1[] = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 458 | { ATF_POINTER, 1, offsetof(struct Test_structure_2, m1), |
| 459 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 460 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 461 | .type = &asn_DEF_Test_structure_3, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 462 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 463 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 464 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 465 | .default_value = 0, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 466 | .name = "m1" |
| 467 | }, |
| 468 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 469 | static const ber_tlv_tag_t asn_DEF_Test_structure_2_tags_1[] = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 470 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 471 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 472 | static const asn_TYPE_tag2member_t asn_MAP_Test_structure_2_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 473 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 474 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 475 | static const uint8_t asn_MAP_Test_structure_2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 476 | (0 << 7) |
| 477 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 478 | asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1 = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 479 | sizeof(struct Test_structure_2), |
| 480 | offsetof(struct Test_structure_2, _asn_ctx), |
| 481 | offsetof(struct Test_structure_2, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 482 | asn_MAP_Test_structure_2_tag2el_1, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 483 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 484 | asn_MAP_Test_structure_2_tag2el_1, /* Same as above */ |
Lev Walkin | f82138b | 2005-02-25 08:20:32 +0000 | [diff] [blame] | 485 | 1, /* Count of tags in the CXER map */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 486 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 487 | (const unsigned int *)asn_MAP_Test_structure_2_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 488 | }; |
| 489 | asn_TYPE_descriptor_t asn_DEF_Test_structure_2 = { |
| 490 | "Test-structure-2", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 491 | "Test-structure-2", |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 492 | SET_free, |
| 493 | SET_print, |
| 494 | SET_constraint, |
| 495 | SET_decode_ber, |
| 496 | SET_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 497 | SET_decode_xer, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 498 | SET_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 499 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 500 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 501 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 502 | asn_DEF_Test_structure_2_tags_1, |
| 503 | sizeof(asn_DEF_Test_structure_2_tags_1) |
| 504 | /sizeof(asn_DEF_Test_structure_2_tags_1[0]), /* 1 */ |
| 505 | asn_DEF_Test_structure_2_tags_1, /* Same as above */ |
| 506 | sizeof(asn_DEF_Test_structure_2_tags_1) |
| 507 | /sizeof(asn_DEF_Test_structure_2_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 508 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 509 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 510 | asn_MBR_Test_structure_2_1, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 511 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 512 | &asn_SPC_Test_structure_2_specs_1 /* Additional specs */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 513 | }; |
| 514 | |
| 515 | |
| 516 | /*** <<< INCLUDES [Test-structure-3] >>> ***/ |
| 517 | |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 518 | #include <constr_SET.h> |
| 519 | |
| 520 | /*** <<< DEPS [Test-structure-3] >>> ***/ |
| 521 | |
| 522 | |
| 523 | /* |
| 524 | * Method of determining the components presence |
| 525 | */ |
| 526 | typedef enum Test_structure_3_PR { |
| 527 | Test_structure_3_PR_m1, /* Member m1 is present */ |
| 528 | } Test_structure_3_PR; |
| 529 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 530 | /*** <<< FWD-DECLS [Test-structure-3] >>> ***/ |
| 531 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 532 | struct Test_structure_2; |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 533 | |
| 534 | /*** <<< TYPE-DECLS [Test-structure-3] >>> ***/ |
| 535 | |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 536 | typedef struct Test_structure_3 { |
| 537 | struct Test_structure_2 *m1 /* OPTIONAL */; |
| 538 | |
| 539 | /* Presence bitmask: ASN_SET_ISPRESENT(pTest_structure_3, Test_structure_3_PR_x) */ |
| 540 | unsigned int _presence_map |
| 541 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 542 | |
| 543 | /* Context for parsing across buffer boundaries */ |
| 544 | asn_struct_ctx_t _asn_ctx; |
| 545 | } Test_structure_3_t; |
| 546 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 547 | /*** <<< FUNC-DECLS [Test-structure-3] >>> ***/ |
| 548 | |
| 549 | extern asn_TYPE_descriptor_t asn_DEF_Test_structure_3; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 550 | extern asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1; |
| 551 | extern asn_TYPE_member_t asn_MBR_Test_structure_3_1[1]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 552 | |
| 553 | /*** <<< POST-INCLUDE [Test-structure-3] >>> ***/ |
| 554 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 555 | #include "Test-structure-2.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 556 | |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 557 | /*** <<< STAT-DEFS [Test-structure-3] >>> ***/ |
| 558 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 559 | asn_TYPE_member_t asn_MBR_Test_structure_3_1[] = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 560 | { ATF_POINTER, 1, offsetof(struct Test_structure_3, m1), |
| 561 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 562 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 563 | .type = &asn_DEF_Test_structure_2, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 564 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 565 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 566 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 567 | .default_value = 0, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 568 | .name = "m1" |
| 569 | }, |
| 570 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 571 | static const ber_tlv_tag_t asn_DEF_Test_structure_3_tags_1[] = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 572 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 573 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 574 | static const asn_TYPE_tag2member_t asn_MAP_Test_structure_3_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 575 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 576 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 577 | static const uint8_t asn_MAP_Test_structure_3_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 578 | (0 << 7) |
| 579 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 580 | asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1 = { |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 581 | sizeof(struct Test_structure_3), |
| 582 | offsetof(struct Test_structure_3, _asn_ctx), |
| 583 | offsetof(struct Test_structure_3, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 584 | asn_MAP_Test_structure_3_tag2el_1, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 585 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 586 | asn_MAP_Test_structure_3_tag2el_1, /* Same as above */ |
Lev Walkin | f82138b | 2005-02-25 08:20:32 +0000 | [diff] [blame] | 587 | 1, /* Count of tags in the CXER map */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 588 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 589 | (const unsigned int *)asn_MAP_Test_structure_3_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 590 | }; |
| 591 | asn_TYPE_descriptor_t asn_DEF_Test_structure_3 = { |
| 592 | "Test-structure-3", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 593 | "Test-structure-3", |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 594 | SET_free, |
| 595 | SET_print, |
| 596 | SET_constraint, |
| 597 | SET_decode_ber, |
| 598 | SET_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 599 | SET_decode_xer, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 600 | SET_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 601 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 602 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 603 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 604 | asn_DEF_Test_structure_3_tags_1, |
| 605 | sizeof(asn_DEF_Test_structure_3_tags_1) |
| 606 | /sizeof(asn_DEF_Test_structure_3_tags_1[0]), /* 1 */ |
| 607 | asn_DEF_Test_structure_3_tags_1, /* Same as above */ |
| 608 | sizeof(asn_DEF_Test_structure_3_tags_1) |
| 609 | /sizeof(asn_DEF_Test_structure_3_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 610 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 611 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 612 | asn_MBR_Test_structure_3_1, |
Lev Walkin | 1ca6967 | 2004-09-29 13:19:12 +0000 | [diff] [blame] | 613 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 614 | &asn_SPC_Test_structure_3_specs_1 /* Additional specs */ |
Lev Walkin | 67ec209 | 2004-09-08 00:26:56 +0000 | [diff] [blame] | 615 | }; |
| 616 | |