Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 3 | |
| 4 | #include <INTEGER.h> |
| 5 | #include <constr_SEQUENCE.h> |
| 6 | |
| 7 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 8 | |
| 9 | typedef struct Sequence { |
| 10 | INTEGER_t ainl; |
| 11 | INTEGER_t *aptr; |
| 12 | |
| 13 | /* Context for parsing across buffer boundaries */ |
| 14 | asn_struct_ctx_t _asn_ctx; |
| 15 | } Sequence_t; |
| 16 | |
| 17 | /*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 18 | |
| 19 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 20 | |
| 21 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 22 | |
| 23 | static asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
| 24 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl), |
| 25 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 26 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 27 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 28 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 29 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 30 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 31 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 32 | .name = "ainl" |
| 33 | }, |
| 34 | { ATF_POINTER, 0, offsetof(struct Sequence, aptr), |
| 35 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 36 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 37 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 38 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 39 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 40 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 41 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 42 | .name = "aptr" |
| 43 | }, |
| 44 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 45 | static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 46 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 47 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 48 | static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 49 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */ |
| 50 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 51 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 52 | static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 53 | sizeof(struct Sequence), |
| 54 | offsetof(struct Sequence, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 55 | asn_MAP_Sequence_tag2el_1, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 56 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 57 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 58 | -1, /* Start extensions */ |
| 59 | -1 /* Stop extensions */ |
| 60 | }; |
| 61 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 62 | "Sequence", |
| 63 | "Sequence", |
| 64 | SEQUENCE_free, |
| 65 | SEQUENCE_print, |
| 66 | SEQUENCE_constraint, |
| 67 | SEQUENCE_decode_ber, |
| 68 | SEQUENCE_encode_der, |
| 69 | SEQUENCE_decode_xer, |
| 70 | SEQUENCE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 71 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 72 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 73 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 74 | asn_DEF_Sequence_tags_1, |
| 75 | sizeof(asn_DEF_Sequence_tags_1) |
| 76 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 77 | asn_DEF_Sequence_tags_1, /* Same as above */ |
| 78 | sizeof(asn_DEF_Sequence_tags_1) |
| 79 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 80 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 81 | 0, /* No PER visible constraints */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 82 | asn_MBR_Sequence_1, |
| 83 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 84 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | |
| 88 | /*** <<< INCLUDES [Set] >>> ***/ |
| 89 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 90 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 91 | #include <constr_SET.h> |
| 92 | |
| 93 | /*** <<< DEPS [Set] >>> ***/ |
| 94 | |
| 95 | |
| 96 | /* |
| 97 | * Method of determining the components presence |
| 98 | */ |
| 99 | typedef enum Set_PR { |
| 100 | Set_PR_ainl, /* Member ainl is present */ |
| 101 | Set_PR_aptr, /* Member aptr is present */ |
| 102 | } Set_PR; |
| 103 | |
| 104 | /*** <<< FWD-DECLS [Set] >>> ***/ |
| 105 | |
| 106 | struct Sequence; |
| 107 | |
| 108 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 109 | |
| 110 | typedef struct Set { |
| 111 | Sequence_t ainl; |
| 112 | struct Sequence *aptr; |
| 113 | |
| 114 | /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */ |
| 115 | unsigned int _presence_map |
| 116 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 117 | |
| 118 | /* Context for parsing across buffer boundaries */ |
| 119 | asn_struct_ctx_t _asn_ctx; |
| 120 | } Set_t; |
| 121 | |
| 122 | /*** <<< FUNC-DECLS [Set] >>> ***/ |
| 123 | |
| 124 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 125 | |
| 126 | /*** <<< POST-INCLUDE [Set] >>> ***/ |
| 127 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 128 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 129 | |
| 130 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 131 | |
| 132 | static asn_TYPE_member_t asn_MBR_Set_1[] = { |
| 133 | { ATF_NOFLAGS, 0, offsetof(struct Set, ainl), |
| 134 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 135 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 136 | .type = &asn_DEF_Sequence, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 137 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 138 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 139 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 140 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 141 | .name = "ainl" |
| 142 | }, |
| 143 | { ATF_POINTER, 0, offsetof(struct Set, aptr), |
| 144 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 145 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 146 | .type = &asn_DEF_Sequence, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 147 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 148 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 149 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 150 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 151 | .name = "aptr" |
| 152 | }, |
| 153 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 154 | static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 155 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 156 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 157 | static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 158 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */ |
| 159 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 160 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 161 | static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 162 | (1 << 7) | (1 << 6) |
| 163 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 164 | static asn_SET_specifics_t asn_SPC_Set_specs_1 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 165 | sizeof(struct Set), |
| 166 | offsetof(struct Set, _asn_ctx), |
| 167 | offsetof(struct Set, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 168 | asn_MAP_Set_tag2el_1, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 169 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 170 | asn_MAP_Set_tag2el_1, /* Same as above */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 171 | 2, /* Count of tags in the CXER map */ |
| 172 | 0, /* Whether extensible */ |
Lev Walkin | 46ef3f3 | 2017-07-06 08:47:53 -0700 | [diff] [blame] | 173 | (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 174 | }; |
| 175 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 176 | "Set", |
| 177 | "Set", |
| 178 | SET_free, |
| 179 | SET_print, |
| 180 | SET_constraint, |
| 181 | SET_decode_ber, |
| 182 | SET_encode_der, |
| 183 | SET_decode_xer, |
| 184 | SET_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 | 4696c74 | 2005-08-22 12:23:54 +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_Set_tags_1, |
| 189 | sizeof(asn_DEF_Set_tags_1) |
| 190 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 191 | asn_DEF_Set_tags_1, /* Same as above */ |
| 192 | sizeof(asn_DEF_Set_tags_1) |
| 193 | /sizeof(asn_DEF_Set_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 | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 196 | asn_MBR_Set_1, |
| 197 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 198 | &asn_SPC_Set_specs_1 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | |
| 202 | /*** <<< INCLUDES [Choice] >>> ***/ |
| 203 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 204 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 205 | #include <INTEGER.h> |
| 206 | #include <asn_SET_OF.h> |
| 207 | #include <constr_SET_OF.h> |
| 208 | #include <constr_CHOICE.h> |
| 209 | |
| 210 | /*** <<< DEPS [Choice] >>> ***/ |
| 211 | |
| 212 | typedef enum Choice_PR { |
| 213 | Choice_PR_NOTHING, /* No components present */ |
| 214 | Choice_PR_setof, |
| 215 | Choice_PR_aptr, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 216 | Choice_PR_ainl |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 217 | } Choice_PR; |
| 218 | |
| 219 | /*** <<< FWD-DECLS [Choice] >>> ***/ |
| 220 | |
| 221 | struct Sequence; |
| 222 | |
| 223 | /*** <<< TYPE-DECLS [Choice] >>> ***/ |
| 224 | |
| 225 | typedef struct Choice { |
| 226 | Choice_PR present; |
| 227 | union Choice_u { |
| 228 | struct setof { |
| 229 | A_SET_OF(INTEGER_t) list; |
| 230 | |
| 231 | /* Context for parsing across buffer boundaries */ |
| 232 | asn_struct_ctx_t _asn_ctx; |
| 233 | } *setof; |
| 234 | struct Sequence *aptr; |
| 235 | Sequence_t ainl; |
| 236 | } choice; |
| 237 | |
| 238 | /* Context for parsing across buffer boundaries */ |
| 239 | asn_struct_ctx_t _asn_ctx; |
| 240 | } Choice_t; |
| 241 | |
| 242 | /*** <<< FUNC-DECLS [Choice] >>> ***/ |
| 243 | |
| 244 | extern asn_TYPE_descriptor_t asn_DEF_Choice; |
| 245 | |
| 246 | /*** <<< POST-INCLUDE [Choice] >>> ***/ |
| 247 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 248 | #include "Sequence.h" |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 249 | |
| 250 | /*** <<< STAT-DEFS [Choice] >>> ***/ |
| 251 | |
| 252 | static asn_TYPE_member_t asn_MBR_setof_2[] = { |
| 253 | { ATF_POINTER, 0, 0, |
| 254 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 255 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 256 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 257 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 258 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 259 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 260 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 261 | .name = "" |
| 262 | }, |
| 263 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 264 | static const ber_tlv_tag_t asn_DEF_setof_tags_2[] = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 265 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 266 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 267 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 268 | static asn_SET_OF_specifics_t asn_SPC_setof_specs_2 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 269 | sizeof(struct setof), |
| 270 | offsetof(struct setof, _asn_ctx), |
| 271 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 272 | }; |
| 273 | static /* Use -fall-defs-global to expose */ |
| 274 | asn_TYPE_descriptor_t asn_DEF_setof_2 = { |
| 275 | "setof", |
| 276 | "setof", |
| 277 | SET_OF_free, |
| 278 | SET_OF_print, |
| 279 | SET_OF_constraint, |
| 280 | SET_OF_decode_ber, |
| 281 | SET_OF_encode_der, |
| 282 | SET_OF_decode_xer, |
| 283 | SET_OF_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 284 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 285 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 286 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 287 | asn_DEF_setof_tags_2, |
| 288 | sizeof(asn_DEF_setof_tags_2) |
| 289 | /sizeof(asn_DEF_setof_tags_2[0]) - 1, /* 1 */ |
| 290 | asn_DEF_setof_tags_2, /* Same as above */ |
| 291 | sizeof(asn_DEF_setof_tags_2) |
| 292 | /sizeof(asn_DEF_setof_tags_2[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 293 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 294 | 0, /* No PER visible constraints */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 295 | asn_MBR_setof_2, |
| 296 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 297 | &asn_SPC_setof_specs_2 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 298 | }; |
| 299 | |
| 300 | static asn_TYPE_member_t asn_MBR_Choice_1[] = { |
| 301 | { ATF_POINTER, 0, offsetof(struct Choice, choice.setof), |
| 302 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 303 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 304 | .type = &asn_DEF_setof_2, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 305 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 306 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 307 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 308 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 309 | .name = "setof" |
| 310 | }, |
| 311 | { ATF_POINTER, 0, offsetof(struct Choice, choice.aptr), |
| 312 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 313 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 314 | .type = &asn_DEF_Sequence, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 315 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 316 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 317 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 318 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 319 | .name = "aptr" |
| 320 | }, |
| 321 | { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl), |
| 322 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 323 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 324 | .type = &asn_DEF_Sequence, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 325 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 326 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 327 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 328 | .default_value = 0, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 329 | .name = "ainl" |
| 330 | }, |
| 331 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 332 | static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 333 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setof */ |
| 334 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aptr */ |
| 335 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ainl */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 336 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 337 | static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = { |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 338 | sizeof(struct Choice), |
| 339 | offsetof(struct Choice, _asn_ctx), |
| 340 | offsetof(struct Choice, present), |
| 341 | sizeof(((struct Choice *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 342 | asn_MAP_Choice_tag2el_1, |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 343 | 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 344 | .canonical_order = 0, |
| 345 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 346 | }; |
| 347 | asn_TYPE_descriptor_t asn_DEF_Choice = { |
| 348 | "Choice", |
| 349 | "Choice", |
| 350 | CHOICE_free, |
| 351 | CHOICE_print, |
| 352 | CHOICE_constraint, |
| 353 | CHOICE_decode_ber, |
| 354 | CHOICE_encode_der, |
| 355 | CHOICE_decode_xer, |
| 356 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 357 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 358 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 359 | CHOICE_outmost_tag, |
| 360 | 0, /* No effective tags (pointer) */ |
| 361 | 0, /* No effective tags (count) */ |
| 362 | 0, /* No tags (pointer) */ |
| 363 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 364 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 365 | 0, /* No PER visible constraints */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 366 | asn_MBR_Choice_1, |
| 367 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 368 | &asn_SPC_Choice_specs_1 /* Additional specs */ |
Lev Walkin | 4696c74 | 2005-08-22 12:23:54 +0000 | [diff] [blame] | 369 | }; |
| 370 | |