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