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