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