Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Everything] >>> ***/ |
| 3 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 4 | #include "Set.h" |
| 5 | #include "Alpha.h" |
| 6 | #include "Beta.h" |
| 7 | #include "Gamma.h" |
| 8 | #include "OneTwo.h" |
| 9 | #include "TwoThree.h" |
| 10 | #include "ThreeOne.h" |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 11 | #include <constr_SEQUENCE.h> |
| 12 | |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 13 | /*** <<< FWD-DECLS [Everything] >>> ***/ |
| 14 | |
| 15 | struct Choice1; |
| 16 | struct Choice2; |
| 17 | struct Choice3; |
| 18 | |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 19 | /*** <<< TYPE-DECLS [Everything] >>> ***/ |
| 20 | |
| 21 | typedef struct Everything { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 22 | struct Choice1 *ch1; |
| 23 | struct Choice2 *ch2; |
| 24 | struct Choice3 *ch3; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 25 | Set_t set; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 26 | Alpha_t a; |
| 27 | Beta_t b; |
| 28 | Gamma_t g; |
| 29 | OneTwo_t ot; |
| 30 | TwoThree_t tt; |
| 31 | ThreeOne_t to; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 32 | |
| 33 | /* Context for parsing across buffer boundaries */ |
| 34 | asn_struct_ctx_t _asn_ctx; |
| 35 | } Everything_t; |
| 36 | |
| 37 | /*** <<< FUNC-DECLS [Everything] >>> ***/ |
| 38 | |
| 39 | extern asn_TYPE_descriptor_t asn_DEF_Everything; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 40 | extern asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1; |
| 41 | extern asn_TYPE_member_t asn_MBR_Everything_1[10]; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 42 | |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 43 | /*** <<< POST-INCLUDE [Everything] >>> ***/ |
| 44 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 45 | #include "Choice1.h" |
| 46 | #include "Choice2.h" |
| 47 | #include "Choice3.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 48 | |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 49 | /*** <<< STAT-DEFS [Everything] >>> ***/ |
| 50 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 51 | asn_TYPE_member_t asn_MBR_Everything_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 52 | { ATF_POINTER, 0, offsetof(struct Everything, ch1), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 53 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 54 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 55 | .type = &asn_DEF_Choice1, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 56 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 57 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 58 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 59 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 60 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 61 | .name = "ch1" |
| 62 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 63 | { ATF_POINTER, 0, offsetof(struct Everything, ch2), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 64 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 65 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 66 | .type = &asn_DEF_Choice2, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 67 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 68 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 69 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 70 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 71 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 72 | .name = "ch2" |
| 73 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 74 | { ATF_POINTER, 0, offsetof(struct Everything, ch3), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 75 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 76 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 77 | .type = &asn_DEF_Choice3, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 78 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 79 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 80 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 81 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 82 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 83 | .name = "ch3" |
| 84 | }, |
| 85 | { ATF_NOFLAGS, 0, offsetof(struct Everything, set), |
| 86 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 87 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 88 | .type = &asn_DEF_Set, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 89 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 90 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 91 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 92 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 93 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 94 | .name = "set" |
| 95 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 96 | { ATF_NOFLAGS, 0, offsetof(struct Everything, a), |
| 97 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 98 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 99 | .type = &asn_DEF_Alpha, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 100 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38: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 | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 105 | .name = "a" |
| 106 | }, |
| 107 | { ATF_NOFLAGS, 0, offsetof(struct Everything, b), |
| 108 | .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 109 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 110 | .type = &asn_DEF_Beta, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 111 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 112 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 113 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 114 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 115 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 116 | .name = "b" |
| 117 | }, |
| 118 | { ATF_NOFLAGS, 0, offsetof(struct Everything, g), |
| 119 | .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
| 120 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 121 | .type = &asn_DEF_Gamma, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 122 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 123 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 124 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 125 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 126 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 127 | .name = "g" |
| 128 | }, |
| 129 | { ATF_NOFLAGS, 0, offsetof(struct Everything, ot), |
| 130 | .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)), |
| 131 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 132 | .type = &asn_DEF_OneTwo, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 133 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 134 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 135 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 136 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 137 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 138 | .name = "ot" |
| 139 | }, |
| 140 | { ATF_NOFLAGS, 0, offsetof(struct Everything, tt), |
| 141 | .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)), |
| 142 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 143 | .type = &asn_DEF_TwoThree, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 144 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 145 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 146 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 147 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 148 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 149 | .name = "tt" |
| 150 | }, |
| 151 | { ATF_NOFLAGS, 0, offsetof(struct Everything, to), |
| 152 | .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)), |
| 153 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 154 | .type = &asn_DEF_ThreeOne, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 155 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38: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 | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 160 | .name = "to" |
| 161 | }, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 162 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 163 | static const ber_tlv_tag_t asn_DEF_Everything_tags_1[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 164 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 165 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 166 | static const asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 167 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */ |
| 168 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */ |
| 169 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */ |
| 170 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set */ |
| 171 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* a */ |
| 172 | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* b */ |
| 173 | { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* g */ |
| 174 | { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ot */ |
| 175 | { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* tt */ |
| 176 | { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* to */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 177 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 178 | asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1 = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 179 | sizeof(struct Everything), |
| 180 | offsetof(struct Everything, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 181 | asn_MAP_Everything_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 182 | 10, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 183 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 184 | -1, /* Start extensions */ |
| 185 | -1 /* Stop extensions */ |
| 186 | }; |
| 187 | asn_TYPE_descriptor_t asn_DEF_Everything = { |
| 188 | "Everything", |
| 189 | "Everything", |
| 190 | SEQUENCE_free, |
| 191 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 192 | SEQUENCE_compare, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 193 | SEQUENCE_constraint, |
| 194 | SEQUENCE_decode_ber, |
| 195 | SEQUENCE_encode_der, |
| 196 | SEQUENCE_decode_xer, |
| 197 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 198 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 199 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 200 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 201 | asn_DEF_Everything_tags_1, |
| 202 | sizeof(asn_DEF_Everything_tags_1) |
| 203 | /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */ |
| 204 | asn_DEF_Everything_tags_1, /* Same as above */ |
| 205 | sizeof(asn_DEF_Everything_tags_1) |
| 206 | /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 207 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 208 | 0, /* No PER visible constraints */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 209 | asn_MBR_Everything_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 210 | 10, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 211 | &asn_SPC_Everything_specs_1 /* Additional specs */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 212 | }; |
| 213 | |
| 214 | |
| 215 | /*** <<< INCLUDES [Choice1] >>> ***/ |
| 216 | |
| 217 | #include <constr_CHOICE.h> |
| 218 | |
| 219 | /*** <<< DEPS [Choice1] >>> ***/ |
| 220 | |
| 221 | typedef enum Choice1_PR { |
| 222 | Choice1_PR_NOTHING, /* No components present */ |
| 223 | Choice1_PR_something, |
| 224 | /* Extensions may appear below */ |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 225 | Choice1_PR_some2 |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 226 | } Choice1_PR; |
| 227 | |
| 228 | /*** <<< FWD-DECLS [Choice1] >>> ***/ |
| 229 | |
| 230 | struct Everything; |
| 231 | |
| 232 | /*** <<< TYPE-DECLS [Choice1] >>> ***/ |
| 233 | |
| 234 | typedef struct Choice1 { |
| 235 | Choice1_PR present; |
| 236 | union Choice1_u { |
| 237 | struct Everything *something; |
| 238 | /* |
| 239 | * This type is extensible, |
| 240 | * possible extensions are below. |
| 241 | */ |
| 242 | struct Everything *some2; |
| 243 | } choice; |
| 244 | |
| 245 | /* Context for parsing across buffer boundaries */ |
| 246 | asn_struct_ctx_t _asn_ctx; |
| 247 | } Choice1_t; |
| 248 | |
| 249 | /*** <<< FUNC-DECLS [Choice1] >>> ***/ |
| 250 | |
| 251 | extern asn_TYPE_descriptor_t asn_DEF_Choice1; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 252 | extern asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1; |
| 253 | extern asn_TYPE_member_t asn_MBR_Choice1_1[2]; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 254 | |
| 255 | /*** <<< POST-INCLUDE [Choice1] >>> ***/ |
| 256 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 257 | #include "Everything.h" |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 258 | |
| 259 | /*** <<< STAT-DEFS [Choice1] >>> ***/ |
| 260 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 261 | asn_TYPE_member_t asn_MBR_Choice1_1[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 262 | { ATF_POINTER, 0, offsetof(struct Choice1, choice.something), |
| 263 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 264 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 265 | .type = &asn_DEF_Everything, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 266 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 267 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 268 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 269 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 270 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 271 | .name = "something" |
| 272 | }, |
| 273 | { ATF_POINTER, 0, offsetof(struct Choice1, choice.some2), |
| 274 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 275 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 276 | .type = &asn_DEF_Everything, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 277 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 278 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 279 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 280 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 281 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 282 | .name = "some2" |
| 283 | }, |
| 284 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 285 | static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 286 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something */ |
| 287 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 288 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 289 | asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 290 | sizeof(struct Choice1), |
| 291 | offsetof(struct Choice1, _asn_ctx), |
| 292 | offsetof(struct Choice1, present), |
| 293 | sizeof(((struct Choice1 *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 294 | asn_MAP_Choice1_tag2el_1, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 295 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 296 | .canonical_order = 0, |
| 297 | .ext_start = 1 /* Extensions start */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 298 | }; |
| 299 | asn_TYPE_descriptor_t asn_DEF_Choice1 = { |
| 300 | "Choice1", |
| 301 | "Choice1", |
| 302 | CHOICE_free, |
| 303 | CHOICE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 304 | CHOICE_compare, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 305 | CHOICE_constraint, |
| 306 | CHOICE_decode_ber, |
| 307 | CHOICE_encode_der, |
| 308 | CHOICE_decode_xer, |
| 309 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 310 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 311 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 312 | CHOICE_outmost_tag, |
| 313 | 0, /* No effective tags (pointer) */ |
| 314 | 0, /* No effective tags (count) */ |
| 315 | 0, /* No tags (pointer) */ |
| 316 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 317 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 318 | 0, /* No PER visible constraints */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 319 | asn_MBR_Choice1_1, |
| 320 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 321 | &asn_SPC_Choice1_specs_1 /* Additional specs */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 322 | }; |
| 323 | |
| 324 | |
| 325 | /*** <<< INCLUDES [Choice2] >>> ***/ |
| 326 | |
| 327 | #include <constr_CHOICE.h> |
| 328 | |
| 329 | /*** <<< DEPS [Choice2] >>> ***/ |
| 330 | |
| 331 | typedef enum Choice2_PR { |
| 332 | Choice2_PR_NOTHING, /* No components present */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 333 | Choice2_PR_typeref, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 334 | /* Extensions may appear below */ |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 335 | Choice2_PR_some3 |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 336 | } Choice2_PR; |
| 337 | |
| 338 | /*** <<< FWD-DECLS [Choice2] >>> ***/ |
| 339 | |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 340 | struct Sequence; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 341 | struct Everything; |
| 342 | |
| 343 | /*** <<< TYPE-DECLS [Choice2] >>> ***/ |
| 344 | |
| 345 | typedef struct Choice2 { |
| 346 | Choice2_PR present; |
| 347 | union Choice2_u { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 348 | struct Sequence *typeref; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 349 | /* |
| 350 | * This type is extensible, |
| 351 | * possible extensions are below. |
| 352 | */ |
| 353 | struct Everything *some3; |
| 354 | } choice; |
| 355 | |
| 356 | /* Context for parsing across buffer boundaries */ |
| 357 | asn_struct_ctx_t _asn_ctx; |
| 358 | } Choice2_t; |
| 359 | |
| 360 | /*** <<< FUNC-DECLS [Choice2] >>> ***/ |
| 361 | |
| 362 | extern asn_TYPE_descriptor_t asn_DEF_Choice2; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 363 | extern asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1; |
| 364 | extern asn_TYPE_member_t asn_MBR_Choice2_1[2]; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 365 | |
| 366 | /*** <<< POST-INCLUDE [Choice2] >>> ***/ |
| 367 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 368 | #include "TypeRef.h" |
| 369 | #include "Everything.h" |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 370 | |
| 371 | /*** <<< STAT-DEFS [Choice2] >>> ***/ |
| 372 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 373 | asn_TYPE_member_t asn_MBR_Choice2_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 374 | { ATF_POINTER, 0, offsetof(struct Choice2, choice.typeref), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 375 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 376 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 377 | .type = &asn_DEF_TypeRef, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 378 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 379 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 380 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 381 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 382 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 383 | .name = "typeref" |
| 384 | }, |
| 385 | { ATF_POINTER, 0, offsetof(struct Choice2, choice.some3), |
| 386 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 387 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 388 | .type = &asn_DEF_Everything, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 389 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 390 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 391 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 392 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 393 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 394 | .name = "some3" |
| 395 | }, |
| 396 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 397 | static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 398 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref */ |
| 399 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 400 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 401 | asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 402 | sizeof(struct Choice2), |
| 403 | offsetof(struct Choice2, _asn_ctx), |
| 404 | offsetof(struct Choice2, present), |
| 405 | sizeof(((struct Choice2 *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 406 | asn_MAP_Choice2_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 407 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 408 | .canonical_order = 0, |
| 409 | .ext_start = 1 /* Extensions start */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 410 | }; |
| 411 | asn_TYPE_descriptor_t asn_DEF_Choice2 = { |
| 412 | "Choice2", |
| 413 | "Choice2", |
| 414 | CHOICE_free, |
| 415 | CHOICE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 416 | CHOICE_compare, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 417 | CHOICE_constraint, |
| 418 | CHOICE_decode_ber, |
| 419 | CHOICE_encode_der, |
| 420 | CHOICE_decode_xer, |
| 421 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 422 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 423 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 424 | CHOICE_outmost_tag, |
| 425 | 0, /* No effective tags (pointer) */ |
| 426 | 0, /* No effective tags (count) */ |
| 427 | 0, /* No tags (pointer) */ |
| 428 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 429 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 430 | 0, /* No PER visible constraints */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 431 | asn_MBR_Choice2_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 432 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 433 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 434 | }; |
| 435 | |
| 436 | |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 437 | /*** <<< INCLUDES [Choice3] >>> ***/ |
| 438 | |
| 439 | #include <constr_SEQUENCE.h> |
| 440 | #include <asn_SEQUENCE_OF.h> |
| 441 | #include <constr_SEQUENCE_OF.h> |
| 442 | #include <constr_CHOICE.h> |
| 443 | |
| 444 | /*** <<< DEPS [Choice3] >>> ***/ |
| 445 | |
| 446 | typedef enum Choice3_PR { |
| 447 | Choice3_PR_NOTHING, /* No components present */ |
| 448 | Choice3_PR_a, |
| 449 | Choice3_PR_b, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 450 | Choice3_PR_c |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 451 | } Choice3_PR; |
| 452 | |
| 453 | /*** <<< FWD-DECLS [Choice3] >>> ***/ |
| 454 | |
| 455 | struct Everything; |
| 456 | struct Choice3; |
| 457 | |
| 458 | /*** <<< TYPE-DECLS [Choice3] >>> ***/ |
| 459 | |
| 460 | typedef struct Choice3 { |
| 461 | Choice3_PR present; |
| 462 | union Choice3_u { |
| 463 | struct a { |
| 464 | struct Everything *aa; |
| 465 | |
| 466 | /* Context for parsing across buffer boundaries */ |
| 467 | asn_struct_ctx_t _asn_ctx; |
| 468 | } *a; |
| 469 | struct Everything *b; |
| 470 | struct c { |
| 471 | A_SEQUENCE_OF(struct Choice3) list; |
| 472 | |
| 473 | /* Context for parsing across buffer boundaries */ |
| 474 | asn_struct_ctx_t _asn_ctx; |
| 475 | } *c; |
| 476 | } choice; |
| 477 | |
| 478 | /* Context for parsing across buffer boundaries */ |
| 479 | asn_struct_ctx_t _asn_ctx; |
| 480 | } Choice3_t; |
| 481 | |
| 482 | /*** <<< FUNC-DECLS [Choice3] >>> ***/ |
| 483 | |
| 484 | extern asn_TYPE_descriptor_t asn_DEF_Choice3; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 485 | extern asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1; |
| 486 | extern asn_TYPE_member_t asn_MBR_Choice3_1[3]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 487 | |
| 488 | /*** <<< POST-INCLUDE [Choice3] >>> ***/ |
| 489 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 490 | #include "Everything.h" |
| 491 | #include "Choice3.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 492 | |
| 493 | /*** <<< STAT-DEFS [Choice3] >>> ***/ |
| 494 | |
| 495 | static asn_TYPE_member_t asn_MBR_a_2[] = { |
| 496 | { ATF_POINTER, 0, offsetof(struct a, aa), |
| 497 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 498 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 499 | .type = &asn_DEF_Everything, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 500 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 501 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 502 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 503 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 504 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 505 | .name = "aa" |
| 506 | }, |
| 507 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 508 | static const ber_tlv_tag_t asn_DEF_a_tags_2[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 509 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 510 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 511 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 512 | static const asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 513 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 514 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 515 | static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 516 | sizeof(struct a), |
| 517 | offsetof(struct a, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 518 | asn_MAP_a_tag2el_2, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 519 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 520 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 521 | -1, /* Start extensions */ |
| 522 | -1 /* Stop extensions */ |
| 523 | }; |
| 524 | static /* Use -fall-defs-global to expose */ |
| 525 | asn_TYPE_descriptor_t asn_DEF_a_2 = { |
| 526 | "a", |
| 527 | "a", |
| 528 | SEQUENCE_free, |
| 529 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 530 | SEQUENCE_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 531 | SEQUENCE_constraint, |
| 532 | SEQUENCE_decode_ber, |
| 533 | SEQUENCE_encode_der, |
| 534 | SEQUENCE_decode_xer, |
| 535 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 536 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 537 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 538 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 539 | asn_DEF_a_tags_2, |
| 540 | sizeof(asn_DEF_a_tags_2) |
| 541 | /sizeof(asn_DEF_a_tags_2[0]) - 1, /* 1 */ |
| 542 | asn_DEF_a_tags_2, /* Same as above */ |
| 543 | sizeof(asn_DEF_a_tags_2) |
| 544 | /sizeof(asn_DEF_a_tags_2[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 545 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 546 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 547 | asn_MBR_a_2, |
| 548 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 549 | &asn_SPC_a_specs_2 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 550 | }; |
| 551 | |
| 552 | static asn_TYPE_member_t asn_MBR_c_5[] = { |
| 553 | { ATF_POINTER, 0, 0, |
| 554 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 555 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 556 | .type = &asn_DEF_Choice3, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 557 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 558 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 559 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 560 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 561 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 562 | .name = "" |
| 563 | }, |
| 564 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 565 | static const ber_tlv_tag_t asn_DEF_c_tags_5[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 566 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 567 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 568 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 569 | static asn_SET_OF_specifics_t asn_SPC_c_specs_5 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 570 | sizeof(struct c), |
| 571 | offsetof(struct c, _asn_ctx), |
Lev Walkin | d1bfea6 | 2005-11-08 03:06:16 +0000 | [diff] [blame] | 572 | 2, /* XER encoding is XMLValueList */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 573 | }; |
| 574 | static /* Use -fall-defs-global to expose */ |
| 575 | asn_TYPE_descriptor_t asn_DEF_c_5 = { |
| 576 | "c", |
| 577 | "c", |
| 578 | SEQUENCE_OF_free, |
| 579 | SEQUENCE_OF_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 580 | SEQUENCE_OF_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 581 | SEQUENCE_OF_constraint, |
| 582 | SEQUENCE_OF_decode_ber, |
| 583 | SEQUENCE_OF_encode_der, |
| 584 | SEQUENCE_OF_decode_xer, |
| 585 | SEQUENCE_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 586 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 587 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 588 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 589 | asn_DEF_c_tags_5, |
| 590 | sizeof(asn_DEF_c_tags_5) |
| 591 | /sizeof(asn_DEF_c_tags_5[0]) - 1, /* 1 */ |
| 592 | asn_DEF_c_tags_5, /* Same as above */ |
| 593 | sizeof(asn_DEF_c_tags_5) |
| 594 | /sizeof(asn_DEF_c_tags_5[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 595 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 596 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 597 | asn_MBR_c_5, |
| 598 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 599 | &asn_SPC_c_specs_5 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 600 | }; |
| 601 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 602 | asn_TYPE_member_t asn_MBR_Choice3_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 603 | { ATF_POINTER, 0, offsetof(struct Choice3, choice.a), |
| 604 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 605 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 606 | .type = &asn_DEF_a_2, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 607 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 608 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 609 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 610 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 611 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 612 | .name = "a" |
| 613 | }, |
| 614 | { ATF_POINTER, 0, offsetof(struct Choice3, choice.b), |
| 615 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 616 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 617 | .type = &asn_DEF_Everything, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 618 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 619 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 620 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 621 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 622 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 623 | .name = "b" |
| 624 | }, |
| 625 | { ATF_POINTER, 0, offsetof(struct Choice3, choice.c), |
| 626 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 627 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 628 | .type = &asn_DEF_c_5, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 629 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 630 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 631 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 632 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 633 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 634 | .name = "c" |
| 635 | }, |
| 636 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 637 | static const asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 638 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ |
| 639 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b */ |
| 640 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 641 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 642 | asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 643 | sizeof(struct Choice3), |
| 644 | offsetof(struct Choice3, _asn_ctx), |
| 645 | offsetof(struct Choice3, present), |
| 646 | sizeof(((struct Choice3 *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 647 | asn_MAP_Choice3_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 648 | 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 649 | .canonical_order = 0, |
| 650 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 651 | }; |
| 652 | asn_TYPE_descriptor_t asn_DEF_Choice3 = { |
| 653 | "Choice3", |
| 654 | "Choice3", |
| 655 | CHOICE_free, |
| 656 | CHOICE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 657 | CHOICE_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 658 | CHOICE_constraint, |
| 659 | CHOICE_decode_ber, |
| 660 | CHOICE_encode_der, |
| 661 | CHOICE_decode_xer, |
| 662 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 663 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 664 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 665 | CHOICE_outmost_tag, |
| 666 | 0, /* No effective tags (pointer) */ |
| 667 | 0, /* No effective tags (count) */ |
| 668 | 0, /* No tags (pointer) */ |
| 669 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 670 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 671 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 672 | asn_MBR_Choice3_1, |
| 673 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 674 | &asn_SPC_Choice3_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 675 | }; |
| 676 | |
| 677 | |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 678 | /*** <<< INCLUDES [Set] >>> ***/ |
| 679 | |
| 680 | #include <asn_SET_OF.h> |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 681 | #include <NativeInteger.h> |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 682 | #include <constr_SEQUENCE.h> |
| 683 | #include <constr_SET_OF.h> |
| 684 | |
| 685 | /*** <<< FWD-DECLS [Set] >>> ***/ |
| 686 | |
| 687 | struct Set; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 688 | struct Sequence; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 689 | |
Bi-Ruei, Chiu | 9b87e5b | 2016-06-06 00:23:16 +0800 | [diff] [blame] | 690 | /*** <<< FWD-DEFS [Set] >>> ***/ |
| 691 | |
| 692 | typedef struct Member { |
| 693 | long Int; |
| 694 | struct Set *set; |
| 695 | struct Sequence *seq; |
| 696 | struct Set *set2 /* OPTIONAL */; |
| 697 | /* |
| 698 | * This type is extensible, |
| 699 | * possible extensions are below. |
| 700 | */ |
| 701 | struct Set *set3; |
| 702 | |
| 703 | /* Context for parsing across buffer boundaries */ |
| 704 | asn_struct_ctx_t _asn_ctx; |
| 705 | } Member; |
| 706 | |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 707 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 708 | |
| 709 | typedef struct Set { |
Bi-Ruei, Chiu | 9b87e5b | 2016-06-06 00:23:16 +0800 | [diff] [blame] | 710 | A_SET_OF(Member) list; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 711 | |
| 712 | /* Context for parsing across buffer boundaries */ |
| 713 | asn_struct_ctx_t _asn_ctx; |
| 714 | } Set_t; |
| 715 | |
| 716 | /*** <<< FUNC-DECLS [Set] >>> ***/ |
| 717 | |
| 718 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 719 | extern asn_SET_OF_specifics_t asn_SPC_Set_specs_1; |
| 720 | extern asn_TYPE_member_t asn_MBR_Set_1[1]; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 721 | |
| 722 | /*** <<< POST-INCLUDE [Set] >>> ***/ |
| 723 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 724 | #include "Set.h" |
| 725 | #include "Sequence.h" |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 726 | |
| 727 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 728 | |
| 729 | static asn_TYPE_member_t asn_MBR_Member_2[] = { |
| 730 | { ATF_NOFLAGS, 0, offsetof(struct Member, Int), |
| 731 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 732 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 733 | .type = &asn_DEF_NativeInteger, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 734 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 735 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 736 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 737 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 738 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 739 | .name = "int" |
| 740 | }, |
| 741 | { ATF_POINTER, 0, offsetof(struct Member, set), |
| 742 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 743 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 744 | .type = &asn_DEF_Set, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 745 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 746 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 747 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 748 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 749 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 750 | .name = "set" |
| 751 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 752 | { ATF_POINTER, 0, offsetof(struct Member, seq), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 753 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 754 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 755 | .type = &asn_DEF_Sequence, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 756 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 757 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 758 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 759 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 760 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 761 | .name = "seq" |
| 762 | }, |
| 763 | { ATF_POINTER, 2, offsetof(struct Member, set2), |
| 764 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 765 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 766 | .type = &asn_DEF_Set, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 767 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 768 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 769 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 770 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 771 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 772 | .name = "set2" |
| 773 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 774 | { ATF_POINTER, 1, offsetof(struct Member, set3), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 775 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 776 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 777 | .type = &asn_DEF_Set, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 778 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 779 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 780 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 781 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 782 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 783 | .name = "set3" |
| 784 | }, |
| 785 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 786 | static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 787 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 788 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 789 | static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 790 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int */ |
| 791 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */ |
| 792 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq */ |
| 793 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set2 */ |
| 794 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* set3 */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 795 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 796 | static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 797 | sizeof(struct Member), |
| 798 | offsetof(struct Member, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 799 | asn_MAP_Member_tag2el_2, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 800 | 5, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 801 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 802 | 3, /* Start extensions */ |
| 803 | 6 /* Stop extensions */ |
| 804 | }; |
| 805 | static /* Use -fall-defs-global to expose */ |
| 806 | asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 807 | "SEQUENCE", |
| 808 | "SEQUENCE", |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 809 | SEQUENCE_free, |
| 810 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 811 | SEQUENCE_compare, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 812 | SEQUENCE_constraint, |
| 813 | SEQUENCE_decode_ber, |
| 814 | SEQUENCE_encode_der, |
| 815 | SEQUENCE_decode_xer, |
| 816 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 817 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 818 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 819 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 820 | asn_DEF_Member_tags_2, |
| 821 | sizeof(asn_DEF_Member_tags_2) |
| 822 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 823 | asn_DEF_Member_tags_2, /* Same as above */ |
| 824 | sizeof(asn_DEF_Member_tags_2) |
| 825 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 826 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 827 | 0, /* No PER visible constraints */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 828 | asn_MBR_Member_2, |
| 829 | 5, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 830 | &asn_SPC_Member_specs_2 /* Additional specs */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 831 | }; |
| 832 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 833 | asn_TYPE_member_t asn_MBR_Set_1[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 834 | { ATF_POINTER, 0, 0, |
| 835 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 836 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 837 | .type = &asn_DEF_Member_2, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 838 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 839 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 840 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 841 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 842 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 843 | .name = "" |
| 844 | }, |
| 845 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 846 | static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 847 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 848 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 849 | asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 850 | sizeof(struct Set), |
| 851 | offsetof(struct Set, _asn_ctx), |
| 852 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 853 | }; |
| 854 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 855 | "Set", |
| 856 | "Set", |
| 857 | SET_OF_free, |
| 858 | SET_OF_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 859 | SET_OF_compare, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 860 | SET_OF_constraint, |
| 861 | SET_OF_decode_ber, |
| 862 | SET_OF_encode_der, |
| 863 | SET_OF_decode_xer, |
| 864 | SET_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 865 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 866 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 867 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 868 | asn_DEF_Set_tags_1, |
| 869 | sizeof(asn_DEF_Set_tags_1) |
| 870 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 871 | asn_DEF_Set_tags_1, /* Same as above */ |
| 872 | sizeof(asn_DEF_Set_tags_1) |
| 873 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 874 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 875 | 0, /* No PER visible constraints */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 876 | asn_MBR_Set_1, |
| 877 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 878 | &asn_SPC_Set_specs_1 /* Additional specs */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 879 | }; |
| 880 | |
| 881 | |
| 882 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 883 | |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 884 | #include <NativeInteger.h> |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 885 | #include <constr_SEQUENCE.h> |
| 886 | |
| 887 | /*** <<< FWD-DECLS [Sequence] >>> ***/ |
| 888 | |
| 889 | struct Sequence; |
| 890 | struct Set; |
| 891 | |
| 892 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 893 | |
| 894 | typedef struct Sequence { |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 895 | long a; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 896 | struct Sequence *seq /* OPTIONAL */; |
| 897 | /* |
| 898 | * This type is extensible, |
| 899 | * possible extensions are below. |
| 900 | */ |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 901 | long *b; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 902 | struct Set *set /* OPTIONAL */; |
| 903 | |
| 904 | /* Context for parsing across buffer boundaries */ |
| 905 | asn_struct_ctx_t _asn_ctx; |
| 906 | } Sequence_t; |
| 907 | |
| 908 | /*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 909 | |
| 910 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 911 | extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1; |
| 912 | extern asn_TYPE_member_t asn_MBR_Sequence_1[4]; |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 913 | |
| 914 | /*** <<< POST-INCLUDE [Sequence] >>> ***/ |
| 915 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 916 | #include "Sequence.h" |
| 917 | #include "Set.h" |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 918 | |
| 919 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 920 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 921 | asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 922 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, a), |
| 923 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 924 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 925 | .type = &asn_DEF_NativeInteger, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 926 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 927 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 928 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 929 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 930 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 931 | .name = "a" |
| 932 | }, |
| 933 | { ATF_POINTER, 3, offsetof(struct Sequence, seq), |
| 934 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 935 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 936 | .type = &asn_DEF_Sequence, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 937 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 938 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 939 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 940 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 941 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 942 | .name = "seq" |
| 943 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 944 | { ATF_POINTER, 2, offsetof(struct Sequence, b), |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 945 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 946 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | 2a744a7 | 2013-03-27 01:56:23 -0700 | [diff] [blame] | 947 | .type = &asn_DEF_NativeInteger, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 948 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 949 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 950 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 951 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 952 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 953 | .name = "b" |
| 954 | }, |
| 955 | { ATF_POINTER, 1, offsetof(struct Sequence, set), |
| 956 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 957 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 958 | .type = &asn_DEF_Set, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 959 | .type_selector = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 960 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 961 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 962 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 963 | .default_value = 0, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 964 | .name = "set" |
| 965 | }, |
| 966 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 967 | static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 968 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 969 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 970 | static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 971 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ |
| 972 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq */ |
| 973 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b */ |
| 974 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* set */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 975 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 976 | asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 977 | sizeof(struct Sequence), |
| 978 | offsetof(struct Sequence, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 979 | asn_MAP_Sequence_tag2el_1, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 980 | 4, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 981 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 982 | 1, /* Start extensions */ |
| 983 | 5 /* Stop extensions */ |
| 984 | }; |
| 985 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 986 | "Sequence", |
| 987 | "Sequence", |
| 988 | SEQUENCE_free, |
| 989 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 990 | SEQUENCE_compare, |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 991 | SEQUENCE_constraint, |
| 992 | SEQUENCE_decode_ber, |
| 993 | SEQUENCE_encode_der, |
| 994 | SEQUENCE_decode_xer, |
| 995 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 996 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 997 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 998 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 999 | asn_DEF_Sequence_tags_1, |
| 1000 | sizeof(asn_DEF_Sequence_tags_1) |
| 1001 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 1002 | asn_DEF_Sequence_tags_1, /* Same as above */ |
| 1003 | sizeof(asn_DEF_Sequence_tags_1) |
| 1004 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1005 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1006 | 0, /* No PER visible constraints */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 1007 | asn_MBR_Sequence_1, |
| 1008 | 4, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1009 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
Lev Walkin | cee931e | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 1010 | }; |
| 1011 | |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1012 | |
| 1013 | /*** <<< INCLUDES [TypeRef] >>> ***/ |
| 1014 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1015 | #include "Sequence.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1016 | |
| 1017 | /*** <<< TYPE-DECLS [TypeRef] >>> ***/ |
| 1018 | |
| 1019 | typedef Sequence_t TypeRef_t; |
| 1020 | |
| 1021 | /*** <<< FUNC-DECLS [TypeRef] >>> ***/ |
| 1022 | |
| 1023 | extern asn_TYPE_descriptor_t asn_DEF_TypeRef; |
| 1024 | asn_struct_free_f TypeRef_free; |
| 1025 | asn_struct_print_f TypeRef_print; |
| 1026 | asn_constr_check_f TypeRef_constraint; |
| 1027 | ber_type_decoder_f TypeRef_decode_ber; |
| 1028 | der_type_encoder_f TypeRef_encode_der; |
| 1029 | xer_type_decoder_f TypeRef_decode_xer; |
| 1030 | xer_type_encoder_f TypeRef_encode_xer; |
| 1031 | |
| 1032 | /*** <<< CODE [TypeRef] >>> ***/ |
| 1033 | |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1034 | /* |
| 1035 | * This type is implemented using Sequence, |
| 1036 | * so here we adjust the DEF accordingly. |
| 1037 | */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1038 | |
| 1039 | /*** <<< STAT-DEFS [TypeRef] >>> ***/ |
| 1040 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1041 | static const ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1042 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1043 | }; |
| 1044 | asn_TYPE_descriptor_t asn_DEF_TypeRef = { |
| 1045 | "TypeRef", |
| 1046 | "TypeRef", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1047 | SEQUENCE_free, |
| 1048 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1049 | SEQUENCE_compare, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1050 | SEQUENCE_constraint, |
| 1051 | SEQUENCE_decode_ber, |
| 1052 | SEQUENCE_encode_der, |
| 1053 | SEQUENCE_decode_xer, |
| 1054 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1055 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1056 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1057 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1058 | asn_DEF_TypeRef_tags_1, |
| 1059 | sizeof(asn_DEF_TypeRef_tags_1) |
| 1060 | /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */ |
| 1061 | asn_DEF_TypeRef_tags_1, /* Same as above */ |
| 1062 | sizeof(asn_DEF_TypeRef_tags_1) |
| 1063 | /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1064 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1065 | 0, /* No PER visible constraints */ |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1066 | asn_MBR_Sequence_1, |
| 1067 | 4, /* Elements count */ |
| 1068 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1069 | }; |
| 1070 | |
| 1071 | |
| 1072 | /*** <<< INCLUDES [Alpha] >>> ***/ |
| 1073 | |
| 1074 | #include <constr_SEQUENCE.h> |
| 1075 | |
| 1076 | /*** <<< FWD-DECLS [Alpha] >>> ***/ |
| 1077 | |
| 1078 | struct Beta; |
| 1079 | |
| 1080 | /*** <<< TYPE-DECLS [Alpha] >>> ***/ |
| 1081 | |
| 1082 | typedef struct Alpha { |
| 1083 | struct Beta *a; |
| 1084 | struct b { |
| 1085 | struct Beta *b /* OPTIONAL */; |
| 1086 | |
| 1087 | /* Context for parsing across buffer boundaries */ |
| 1088 | asn_struct_ctx_t _asn_ctx; |
| 1089 | } b; |
| 1090 | |
| 1091 | /* Context for parsing across buffer boundaries */ |
| 1092 | asn_struct_ctx_t _asn_ctx; |
| 1093 | } Alpha_t; |
| 1094 | |
| 1095 | /*** <<< FUNC-DECLS [Alpha] >>> ***/ |
| 1096 | |
| 1097 | extern asn_TYPE_descriptor_t asn_DEF_Alpha; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1098 | extern asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1; |
| 1099 | extern asn_TYPE_member_t asn_MBR_Alpha_1[2]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1100 | |
| 1101 | /*** <<< POST-INCLUDE [Alpha] >>> ***/ |
| 1102 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1103 | #include "Beta.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1104 | |
| 1105 | /*** <<< STAT-DEFS [Alpha] >>> ***/ |
| 1106 | |
| 1107 | static asn_TYPE_member_t asn_MBR_b_3[] = { |
| 1108 | { ATF_POINTER, 1, offsetof(struct b, b), |
| 1109 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1110 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1111 | .type = &asn_DEF_Beta, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1112 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1113 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1114 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1115 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1116 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1117 | .name = "b" |
| 1118 | }, |
| 1119 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1120 | static const ber_tlv_tag_t asn_DEF_b_tags_3[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1121 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1122 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1123 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1124 | static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1125 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* b */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1126 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1127 | static asn_SEQUENCE_specifics_t asn_SPC_b_specs_3 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1128 | sizeof(struct b), |
| 1129 | offsetof(struct b, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1130 | asn_MAP_b_tag2el_3, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1131 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1132 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1133 | -1, /* Start extensions */ |
| 1134 | -1 /* Stop extensions */ |
| 1135 | }; |
| 1136 | static /* Use -fall-defs-global to expose */ |
| 1137 | asn_TYPE_descriptor_t asn_DEF_b_3 = { |
| 1138 | "b", |
| 1139 | "b", |
| 1140 | SEQUENCE_free, |
| 1141 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1142 | SEQUENCE_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1143 | SEQUENCE_constraint, |
| 1144 | SEQUENCE_decode_ber, |
| 1145 | SEQUENCE_encode_der, |
| 1146 | SEQUENCE_decode_xer, |
| 1147 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1148 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1149 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1150 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1151 | asn_DEF_b_tags_3, |
| 1152 | sizeof(asn_DEF_b_tags_3) |
| 1153 | /sizeof(asn_DEF_b_tags_3[0]) - 1, /* 1 */ |
| 1154 | asn_DEF_b_tags_3, /* Same as above */ |
| 1155 | sizeof(asn_DEF_b_tags_3) |
| 1156 | /sizeof(asn_DEF_b_tags_3[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1157 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1158 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1159 | asn_MBR_b_3, |
| 1160 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1161 | &asn_SPC_b_specs_3 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1162 | }; |
| 1163 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1164 | asn_TYPE_member_t asn_MBR_Alpha_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1165 | { ATF_POINTER, 0, offsetof(struct Alpha, a), |
| 1166 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1167 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1168 | .type = &asn_DEF_Beta, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1169 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1170 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1171 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1172 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1173 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1174 | .name = "a" |
| 1175 | }, |
| 1176 | { ATF_NOFLAGS, 0, offsetof(struct Alpha, b), |
| 1177 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 1178 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1179 | .type = &asn_DEF_b_3, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1180 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1181 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1182 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1183 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1184 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1185 | .name = "b" |
| 1186 | }, |
| 1187 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1188 | static const ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1189 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1190 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1191 | static const asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1192 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ |
| 1193 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1194 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1195 | asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1196 | sizeof(struct Alpha), |
| 1197 | offsetof(struct Alpha, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1198 | asn_MAP_Alpha_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1199 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1200 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1201 | -1, /* Start extensions */ |
| 1202 | -1 /* Stop extensions */ |
| 1203 | }; |
| 1204 | asn_TYPE_descriptor_t asn_DEF_Alpha = { |
| 1205 | "Alpha", |
| 1206 | "Alpha", |
| 1207 | SEQUENCE_free, |
| 1208 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1209 | SEQUENCE_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1210 | SEQUENCE_constraint, |
| 1211 | SEQUENCE_decode_ber, |
| 1212 | SEQUENCE_encode_der, |
| 1213 | SEQUENCE_decode_xer, |
| 1214 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1215 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1216 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1217 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1218 | asn_DEF_Alpha_tags_1, |
| 1219 | sizeof(asn_DEF_Alpha_tags_1) |
| 1220 | /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */ |
| 1221 | asn_DEF_Alpha_tags_1, /* Same as above */ |
| 1222 | sizeof(asn_DEF_Alpha_tags_1) |
| 1223 | /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1224 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1225 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1226 | asn_MBR_Alpha_1, |
| 1227 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1228 | &asn_SPC_Alpha_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1229 | }; |
| 1230 | |
| 1231 | |
| 1232 | /*** <<< INCLUDES [Beta] >>> ***/ |
| 1233 | |
| 1234 | #include <constr_SEQUENCE.h> |
| 1235 | |
| 1236 | /*** <<< FWD-DECLS [Beta] >>> ***/ |
| 1237 | |
| 1238 | struct Alpha; |
| 1239 | struct Gamma; |
| 1240 | |
| 1241 | /*** <<< TYPE-DECLS [Beta] >>> ***/ |
| 1242 | |
| 1243 | typedef struct Beta { |
| 1244 | struct Alpha *b /* OPTIONAL */; |
| 1245 | struct Gamma *g /* OPTIONAL */; |
| 1246 | |
| 1247 | /* Context for parsing across buffer boundaries */ |
| 1248 | asn_struct_ctx_t _asn_ctx; |
| 1249 | } Beta_t; |
| 1250 | |
| 1251 | /*** <<< FUNC-DECLS [Beta] >>> ***/ |
| 1252 | |
| 1253 | extern asn_TYPE_descriptor_t asn_DEF_Beta; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1254 | extern asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1; |
| 1255 | extern asn_TYPE_member_t asn_MBR_Beta_1[2]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1256 | |
| 1257 | /*** <<< POST-INCLUDE [Beta] >>> ***/ |
| 1258 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1259 | #include "Alpha.h" |
| 1260 | #include "Gamma.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1261 | |
| 1262 | /*** <<< STAT-DEFS [Beta] >>> ***/ |
| 1263 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1264 | asn_TYPE_member_t asn_MBR_Beta_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1265 | { ATF_POINTER, 2, offsetof(struct Beta, b), |
| 1266 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1267 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1268 | .type = &asn_DEF_Alpha, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1269 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1270 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1271 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1272 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1273 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1274 | .name = "b" |
| 1275 | }, |
| 1276 | { ATF_POINTER, 1, offsetof(struct Beta, g), |
| 1277 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1278 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1279 | .type = &asn_DEF_Gamma, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1280 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1281 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1282 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1283 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1284 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1285 | .name = "g" |
| 1286 | }, |
| 1287 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1288 | static const ber_tlv_tag_t asn_DEF_Beta_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1289 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1290 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1291 | static const asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1292 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b */ |
| 1293 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1294 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1295 | asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1296 | sizeof(struct Beta), |
| 1297 | offsetof(struct Beta, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1298 | asn_MAP_Beta_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1299 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1300 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1301 | -1, /* Start extensions */ |
| 1302 | -1 /* Stop extensions */ |
| 1303 | }; |
| 1304 | asn_TYPE_descriptor_t asn_DEF_Beta = { |
| 1305 | "Beta", |
| 1306 | "Beta", |
| 1307 | SEQUENCE_free, |
| 1308 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1309 | SEQUENCE_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1310 | SEQUENCE_constraint, |
| 1311 | SEQUENCE_decode_ber, |
| 1312 | SEQUENCE_encode_der, |
| 1313 | SEQUENCE_decode_xer, |
| 1314 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1315 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1316 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1317 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1318 | asn_DEF_Beta_tags_1, |
| 1319 | sizeof(asn_DEF_Beta_tags_1) |
| 1320 | /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */ |
| 1321 | asn_DEF_Beta_tags_1, /* Same as above */ |
| 1322 | sizeof(asn_DEF_Beta_tags_1) |
| 1323 | /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1324 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1325 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1326 | asn_MBR_Beta_1, |
| 1327 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1328 | &asn_SPC_Beta_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1329 | }; |
| 1330 | |
| 1331 | |
| 1332 | /*** <<< INCLUDES [Gamma] >>> ***/ |
| 1333 | |
| 1334 | #include <constr_SEQUENCE.h> |
| 1335 | |
| 1336 | /*** <<< FWD-DECLS [Gamma] >>> ***/ |
| 1337 | |
| 1338 | struct TwoThree; |
| 1339 | struct Alpha; |
| 1340 | struct Beta; |
| 1341 | |
| 1342 | /*** <<< TYPE-DECLS [Gamma] >>> ***/ |
| 1343 | |
| 1344 | typedef struct Gamma { |
| 1345 | struct TwoThree *o; |
| 1346 | struct Alpha *a; |
| 1347 | struct Beta *b; |
| 1348 | |
| 1349 | /* Context for parsing across buffer boundaries */ |
| 1350 | asn_struct_ctx_t _asn_ctx; |
| 1351 | } Gamma_t; |
| 1352 | |
| 1353 | /*** <<< FUNC-DECLS [Gamma] >>> ***/ |
| 1354 | |
| 1355 | extern asn_TYPE_descriptor_t asn_DEF_Gamma; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1356 | extern asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1; |
| 1357 | extern asn_TYPE_member_t asn_MBR_Gamma_1[3]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1358 | |
| 1359 | /*** <<< POST-INCLUDE [Gamma] >>> ***/ |
| 1360 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1361 | #include "TwoThree.h" |
| 1362 | #include "Alpha.h" |
| 1363 | #include "Beta.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1364 | |
| 1365 | /*** <<< STAT-DEFS [Gamma] >>> ***/ |
| 1366 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1367 | asn_TYPE_member_t asn_MBR_Gamma_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1368 | { ATF_POINTER, 0, offsetof(struct Gamma, o), |
| 1369 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1370 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1371 | .type = &asn_DEF_TwoThree, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1372 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1373 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1374 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1375 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1376 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1377 | .name = "o" |
| 1378 | }, |
| 1379 | { ATF_POINTER, 0, offsetof(struct Gamma, a), |
| 1380 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1381 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1382 | .type = &asn_DEF_Alpha, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1383 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1384 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1385 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1386 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1387 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1388 | .name = "a" |
| 1389 | }, |
| 1390 | { ATF_POINTER, 0, offsetof(struct Gamma, b), |
| 1391 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 1392 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1393 | .type = &asn_DEF_Beta, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1394 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1395 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1396 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1397 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1398 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1399 | .name = "b" |
| 1400 | }, |
| 1401 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1402 | static const ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1403 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1404 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1405 | static const asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1406 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o */ |
| 1407 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a */ |
| 1408 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1409 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1410 | asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1411 | sizeof(struct Gamma), |
| 1412 | offsetof(struct Gamma, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1413 | asn_MAP_Gamma_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1414 | 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1415 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1416 | -1, /* Start extensions */ |
| 1417 | -1 /* Stop extensions */ |
| 1418 | }; |
| 1419 | asn_TYPE_descriptor_t asn_DEF_Gamma = { |
| 1420 | "Gamma", |
| 1421 | "Gamma", |
| 1422 | SEQUENCE_free, |
| 1423 | SEQUENCE_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1424 | SEQUENCE_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1425 | SEQUENCE_constraint, |
| 1426 | SEQUENCE_decode_ber, |
| 1427 | SEQUENCE_encode_der, |
| 1428 | SEQUENCE_decode_xer, |
| 1429 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1430 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1431 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1432 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1433 | asn_DEF_Gamma_tags_1, |
| 1434 | sizeof(asn_DEF_Gamma_tags_1) |
| 1435 | /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */ |
| 1436 | asn_DEF_Gamma_tags_1, /* Same as above */ |
| 1437 | sizeof(asn_DEF_Gamma_tags_1) |
| 1438 | /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1439 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1440 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1441 | asn_MBR_Gamma_1, |
| 1442 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1443 | &asn_SPC_Gamma_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1444 | }; |
| 1445 | |
| 1446 | |
| 1447 | /*** <<< INCLUDES [OneTwo] >>> ***/ |
| 1448 | |
| 1449 | #include <constr_SET.h> |
| 1450 | |
| 1451 | /*** <<< DEPS [OneTwo] >>> ***/ |
| 1452 | |
| 1453 | |
| 1454 | /* |
| 1455 | * Method of determining the components presence |
| 1456 | */ |
| 1457 | typedef enum OneTwo_PR { |
| 1458 | OneTwo_PR_m12, /* Member m12 is present */ |
| 1459 | } OneTwo_PR; |
| 1460 | |
| 1461 | /*** <<< FWD-DECLS [OneTwo] >>> ***/ |
| 1462 | |
| 1463 | struct TwoThree; |
| 1464 | |
| 1465 | /*** <<< TYPE-DECLS [OneTwo] >>> ***/ |
| 1466 | |
| 1467 | typedef struct OneTwo { |
| 1468 | struct TwoThree *m12; |
| 1469 | |
| 1470 | /* Presence bitmask: ASN_SET_ISPRESENT(pOneTwo, OneTwo_PR_x) */ |
| 1471 | unsigned int _presence_map |
| 1472 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 1473 | |
| 1474 | /* Context for parsing across buffer boundaries */ |
| 1475 | asn_struct_ctx_t _asn_ctx; |
| 1476 | } OneTwo_t; |
| 1477 | |
| 1478 | /*** <<< FUNC-DECLS [OneTwo] >>> ***/ |
| 1479 | |
| 1480 | extern asn_TYPE_descriptor_t asn_DEF_OneTwo; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1481 | extern asn_SET_specifics_t asn_SPC_OneTwo_specs_1; |
| 1482 | extern asn_TYPE_member_t asn_MBR_OneTwo_1[1]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1483 | |
| 1484 | /*** <<< POST-INCLUDE [OneTwo] >>> ***/ |
| 1485 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1486 | #include "TwoThree.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1487 | |
| 1488 | /*** <<< STAT-DEFS [OneTwo] >>> ***/ |
| 1489 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1490 | asn_TYPE_member_t asn_MBR_OneTwo_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1491 | { ATF_POINTER, 0, offsetof(struct OneTwo, m12), |
| 1492 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1493 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1494 | .type = &asn_DEF_TwoThree, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1495 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1496 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1497 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1498 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1499 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1500 | .name = "m12" |
| 1501 | }, |
| 1502 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1503 | static const ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1504 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1505 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1506 | static const asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1507 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1508 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1509 | static const uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1510 | (1 << 7) |
| 1511 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1512 | asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1513 | sizeof(struct OneTwo), |
| 1514 | offsetof(struct OneTwo, _asn_ctx), |
| 1515 | offsetof(struct OneTwo, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1516 | asn_MAP_OneTwo_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1517 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1518 | asn_MAP_OneTwo_tag2el_1, /* Same as above */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1519 | 1, /* Count of tags in the CXER map */ |
| 1520 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 1521 | (const unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1522 | }; |
| 1523 | asn_TYPE_descriptor_t asn_DEF_OneTwo = { |
| 1524 | "OneTwo", |
| 1525 | "OneTwo", |
| 1526 | SET_free, |
| 1527 | SET_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1528 | SET_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1529 | SET_constraint, |
| 1530 | SET_decode_ber, |
| 1531 | SET_encode_der, |
| 1532 | SET_decode_xer, |
| 1533 | SET_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1534 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1535 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1536 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1537 | asn_DEF_OneTwo_tags_1, |
| 1538 | sizeof(asn_DEF_OneTwo_tags_1) |
| 1539 | /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */ |
| 1540 | asn_DEF_OneTwo_tags_1, /* Same as above */ |
| 1541 | sizeof(asn_DEF_OneTwo_tags_1) |
| 1542 | /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1543 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1544 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1545 | asn_MBR_OneTwo_1, |
| 1546 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1547 | &asn_SPC_OneTwo_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1548 | }; |
| 1549 | |
| 1550 | |
| 1551 | /*** <<< INCLUDES [TwoThree] >>> ***/ |
| 1552 | |
| 1553 | #include <constr_SET.h> |
| 1554 | |
| 1555 | /*** <<< DEPS [TwoThree] >>> ***/ |
| 1556 | |
| 1557 | |
| 1558 | /* |
| 1559 | * Method of determining the components presence |
| 1560 | */ |
| 1561 | typedef enum TwoThree_PR { |
| 1562 | TwoThree_PR_m23, /* Member m23 is present */ |
| 1563 | } TwoThree_PR; |
| 1564 | |
| 1565 | /*** <<< FWD-DECLS [TwoThree] >>> ***/ |
| 1566 | |
| 1567 | struct ThreeOne; |
| 1568 | |
| 1569 | /*** <<< TYPE-DECLS [TwoThree] >>> ***/ |
| 1570 | |
| 1571 | typedef struct TwoThree { |
| 1572 | struct ThreeOne *m23; |
| 1573 | |
| 1574 | /* Presence bitmask: ASN_SET_ISPRESENT(pTwoThree, TwoThree_PR_x) */ |
| 1575 | unsigned int _presence_map |
| 1576 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 1577 | |
| 1578 | /* Context for parsing across buffer boundaries */ |
| 1579 | asn_struct_ctx_t _asn_ctx; |
| 1580 | } TwoThree_t; |
| 1581 | |
| 1582 | /*** <<< FUNC-DECLS [TwoThree] >>> ***/ |
| 1583 | |
| 1584 | extern asn_TYPE_descriptor_t asn_DEF_TwoThree; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1585 | extern asn_SET_specifics_t asn_SPC_TwoThree_specs_1; |
| 1586 | extern asn_TYPE_member_t asn_MBR_TwoThree_1[1]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1587 | |
| 1588 | /*** <<< POST-INCLUDE [TwoThree] >>> ***/ |
| 1589 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1590 | #include "ThreeOne.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1591 | |
| 1592 | /*** <<< STAT-DEFS [TwoThree] >>> ***/ |
| 1593 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1594 | asn_TYPE_member_t asn_MBR_TwoThree_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1595 | { ATF_POINTER, 0, offsetof(struct TwoThree, m23), |
| 1596 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1597 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1598 | .type = &asn_DEF_ThreeOne, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1599 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1600 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1601 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1602 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1603 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1604 | .name = "m23" |
| 1605 | }, |
| 1606 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1607 | static const ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1608 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1609 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1610 | static const asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1611 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1612 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1613 | static const uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1614 | (1 << 7) |
| 1615 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1616 | asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1617 | sizeof(struct TwoThree), |
| 1618 | offsetof(struct TwoThree, _asn_ctx), |
| 1619 | offsetof(struct TwoThree, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1620 | asn_MAP_TwoThree_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1621 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1622 | asn_MAP_TwoThree_tag2el_1, /* Same as above */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1623 | 1, /* Count of tags in the CXER map */ |
| 1624 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 1625 | (const unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1626 | }; |
| 1627 | asn_TYPE_descriptor_t asn_DEF_TwoThree = { |
| 1628 | "TwoThree", |
| 1629 | "TwoThree", |
| 1630 | SET_free, |
| 1631 | SET_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1632 | SET_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1633 | SET_constraint, |
| 1634 | SET_decode_ber, |
| 1635 | SET_encode_der, |
| 1636 | SET_decode_xer, |
| 1637 | SET_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1638 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1639 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1640 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1641 | asn_DEF_TwoThree_tags_1, |
| 1642 | sizeof(asn_DEF_TwoThree_tags_1) |
| 1643 | /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */ |
| 1644 | asn_DEF_TwoThree_tags_1, /* Same as above */ |
| 1645 | sizeof(asn_DEF_TwoThree_tags_1) |
| 1646 | /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1647 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1648 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1649 | asn_MBR_TwoThree_1, |
| 1650 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1651 | &asn_SPC_TwoThree_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1652 | }; |
| 1653 | |
| 1654 | |
| 1655 | /*** <<< INCLUDES [ThreeOne] >>> ***/ |
| 1656 | |
| 1657 | #include <constr_SET.h> |
| 1658 | |
| 1659 | /*** <<< DEPS [ThreeOne] >>> ***/ |
| 1660 | |
| 1661 | |
| 1662 | /* |
| 1663 | * Method of determining the components presence |
| 1664 | */ |
| 1665 | typedef enum ThreeOne_PR { |
| 1666 | ThreeOne_PR_m31, /* Member m31 is present */ |
| 1667 | ThreeOne_PR_g, /* Member g is present */ |
| 1668 | } ThreeOne_PR; |
| 1669 | |
| 1670 | /*** <<< FWD-DECLS [ThreeOne] >>> ***/ |
| 1671 | |
| 1672 | struct OneTwo; |
| 1673 | struct Gamma; |
| 1674 | |
| 1675 | /*** <<< TYPE-DECLS [ThreeOne] >>> ***/ |
| 1676 | |
| 1677 | typedef struct ThreeOne { |
| 1678 | struct OneTwo *m31; |
| 1679 | struct Gamma *g; |
| 1680 | |
| 1681 | /* Presence bitmask: ASN_SET_ISPRESENT(pThreeOne, ThreeOne_PR_x) */ |
| 1682 | unsigned int _presence_map |
| 1683 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 1684 | |
| 1685 | /* Context for parsing across buffer boundaries */ |
| 1686 | asn_struct_ctx_t _asn_ctx; |
| 1687 | } ThreeOne_t; |
| 1688 | |
| 1689 | /*** <<< FUNC-DECLS [ThreeOne] >>> ***/ |
| 1690 | |
| 1691 | extern asn_TYPE_descriptor_t asn_DEF_ThreeOne; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1692 | extern asn_SET_specifics_t asn_SPC_ThreeOne_specs_1; |
| 1693 | extern asn_TYPE_member_t asn_MBR_ThreeOne_1[2]; |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1694 | |
| 1695 | /*** <<< POST-INCLUDE [ThreeOne] >>> ***/ |
| 1696 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1697 | #include "OneTwo.h" |
| 1698 | #include "Gamma.h" |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1699 | |
| 1700 | /*** <<< STAT-DEFS [ThreeOne] >>> ***/ |
| 1701 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1702 | asn_TYPE_member_t asn_MBR_ThreeOne_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1703 | { ATF_POINTER, 0, offsetof(struct ThreeOne, m31), |
| 1704 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1705 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1706 | .type = &asn_DEF_OneTwo, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1707 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1708 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1709 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1710 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1711 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1712 | .name = "m31" |
| 1713 | }, |
| 1714 | { ATF_POINTER, 0, offsetof(struct ThreeOne, g), |
| 1715 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1716 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1717 | .type = &asn_DEF_Gamma, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 1718 | .type_selector = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1719 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1720 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1721 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1722 | .default_value = 0, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1723 | .name = "g" |
| 1724 | }, |
| 1725 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1726 | static const ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1727 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1728 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1729 | static const asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 1730 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 */ |
| 1731 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1732 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 1733 | static const uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1734 | (1 << 7) | (1 << 6) |
| 1735 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 1736 | asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = { |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1737 | sizeof(struct ThreeOne), |
| 1738 | offsetof(struct ThreeOne, _asn_ctx), |
| 1739 | offsetof(struct ThreeOne, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1740 | asn_MAP_ThreeOne_tag2el_1, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1741 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1742 | asn_MAP_ThreeOne_tag2el_1, /* Same as above */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1743 | 2, /* Count of tags in the CXER map */ |
| 1744 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 1745 | (const unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1746 | }; |
| 1747 | asn_TYPE_descriptor_t asn_DEF_ThreeOne = { |
| 1748 | "ThreeOne", |
| 1749 | "ThreeOne", |
| 1750 | SET_free, |
| 1751 | SET_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 1752 | SET_compare, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1753 | SET_constraint, |
| 1754 | SET_decode_ber, |
| 1755 | SET_encode_der, |
| 1756 | SET_decode_xer, |
| 1757 | SET_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 1758 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1759 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1760 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1761 | asn_DEF_ThreeOne_tags_1, |
| 1762 | sizeof(asn_DEF_ThreeOne_tags_1) |
| 1763 | /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */ |
| 1764 | asn_DEF_ThreeOne_tags_1, /* Same as above */ |
| 1765 | sizeof(asn_DEF_ThreeOne_tags_1) |
| 1766 | /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 1767 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1768 | 0, /* No PER visible constraints */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1769 | asn_MBR_ThreeOne_1, |
| 1770 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1771 | &asn_SPC_ThreeOne_specs_1 /* Additional specs */ |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1772 | }; |
| 1773 | |