Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Forest] >>> ***/ |
| 3 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 4 | #include <asn_SET_OF.h> |
| 5 | #include <constr_SET_OF.h> |
| 6 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 7 | /*** <<< FWD-DECLS [Forest] >>> ***/ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 8 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 9 | struct Tree; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 10 | |
| 11 | /*** <<< TYPE-DECLS [Forest] >>> ***/ |
| 12 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 13 | typedef struct Forest { |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 14 | A_SET_OF(struct Tree) list; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 15 | |
| 16 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 17 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 18 | } Forest_t; |
| 19 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 20 | /*** <<< FUNC-DECLS [Forest] >>> ***/ |
| 21 | |
| 22 | extern asn_TYPE_descriptor_t asn_DEF_Forest; |
| 23 | |
| 24 | /*** <<< POST-INCLUDE [Forest] >>> ***/ |
| 25 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 26 | #include "Tree.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 27 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 28 | /*** <<< STAT-DEFS [Forest] >>> ***/ |
| 29 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 30 | static asn_TYPE_member_t asn_MBR_Forest_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 31 | { ATF_POINTER, 0, 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 32 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 33 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 34 | .type = &asn_DEF_Tree, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 35 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 36 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 37 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 38 | .name = "" |
| 39 | }, |
| 40 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 41 | static const ber_tlv_tag_t asn_DEF_Forest_tags_1[] = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 42 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 43 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 44 | static asn_SET_OF_specifics_t asn_SPC_Forest_specs_1 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 45 | sizeof(struct Forest), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 46 | offsetof(struct Forest, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 47 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 48 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 49 | asn_TYPE_descriptor_t asn_DEF_Forest = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 50 | "Forest", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 51 | "Forest", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 52 | SET_OF_free, |
| 53 | SET_OF_print, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 54 | SET_OF_constraint, |
| 55 | SET_OF_decode_ber, |
| 56 | SET_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 57 | SET_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 58 | SET_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 59 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 60 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 61 | asn_DEF_Forest_tags_1, |
| 62 | sizeof(asn_DEF_Forest_tags_1) |
| 63 | /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */ |
| 64 | asn_DEF_Forest_tags_1, /* Same as above */ |
| 65 | sizeof(asn_DEF_Forest_tags_1) |
| 66 | /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */ |
| 67 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 68 | asn_MBR_Forest_1, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 69 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 70 | &asn_SPC_Forest_specs_1 /* Additional specs */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | |
| 74 | /*** <<< INCLUDES [Tree] >>> ***/ |
| 75 | |
| 76 | #include <INTEGER.h> |
| 77 | #include <constr_SEQUENCE.h> |
| 78 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 79 | /*** <<< TYPE-DECLS [Tree] >>> ***/ |
| 80 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 81 | typedef struct Tree { |
| 82 | INTEGER_t height; |
| 83 | INTEGER_t width; |
| 84 | |
| 85 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 86 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 87 | } Tree_t; |
| 88 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 89 | /*** <<< FUNC-DECLS [Tree] >>> ***/ |
| 90 | |
| 91 | extern asn_TYPE_descriptor_t asn_DEF_Tree; |
| 92 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 93 | /*** <<< STAT-DEFS [Tree] >>> ***/ |
| 94 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 95 | static asn_TYPE_member_t asn_MBR_Tree_1[] = { |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 96 | { ATF_NOFLAGS, 0, offsetof(struct Tree, height), |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 97 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 98 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 99 | .type = &asn_DEF_INTEGER, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 100 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 101 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 102 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 103 | .name = "height" |
| 104 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 105 | { ATF_NOFLAGS, 0, offsetof(struct Tree, width), |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 106 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 107 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 108 | .type = &asn_DEF_INTEGER, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 109 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 110 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 111 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 112 | .name = "width" |
| 113 | }, |
| 114 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 115 | static const ber_tlv_tag_t asn_DEF_Tree_tags_1[] = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 116 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 117 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 118 | static const asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 119 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */ |
| 120 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 121 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 122 | static asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 123 | sizeof(struct Tree), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 124 | offsetof(struct Tree, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 125 | asn_MAP_Tree_tag2el_1, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 126 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 127 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 128 | -1, /* Start extensions */ |
| 129 | -1 /* Stop extensions */ |
| 130 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 131 | asn_TYPE_descriptor_t asn_DEF_Tree = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 132 | "Tree", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 133 | "Tree", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 134 | SEQUENCE_free, |
| 135 | SEQUENCE_print, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 136 | SEQUENCE_constraint, |
| 137 | SEQUENCE_decode_ber, |
| 138 | SEQUENCE_encode_der, |
Lev Walkin | 61b40d8 | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 139 | SEQUENCE_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 140 | SEQUENCE_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 141 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 142 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 143 | asn_DEF_Tree_tags_1, |
| 144 | sizeof(asn_DEF_Tree_tags_1) |
| 145 | /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */ |
| 146 | asn_DEF_Tree_tags_1, /* Same as above */ |
| 147 | sizeof(asn_DEF_Tree_tags_1) |
| 148 | /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */ |
| 149 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 150 | asn_MBR_Tree_1, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 151 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 152 | &asn_SPC_Tree_specs_1 /* Additional specs */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 153 | }; |
| 154 | |
| 155 | |
| 156 | /*** <<< INCLUDES [Stuff] >>> ***/ |
| 157 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 158 | #include <asn_SET_OF.h> |
| 159 | #include <constr_SET_OF.h> |
| 160 | #include <BIT_STRING.h> |
| 161 | #include <constr_SEQUENCE.h> |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 162 | #include <INTEGER.h> |
| 163 | #include <constr_CHOICE.h> |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 164 | #include <constr_SET.h> |
| 165 | |
| 166 | /*** <<< DEPS [Stuff] >>> ***/ |
| 167 | |
| 168 | |
| 169 | /* |
| 170 | * Method of determining the components presence |
| 171 | */ |
| 172 | typedef enum Stuff_PR { |
| 173 | Stuff_PR_trees, /* Member trees is present */ |
| 174 | Stuff_PR_anything, /* Member anything is present */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 175 | Stuff_PR_other, /* Member other is present */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 176 | } Stuff_PR; |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 177 | typedef enum other_PR { |
| 178 | other_PR_NOTHING, /* No components present */ |
| 179 | other_PR_a, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 180 | other_PR_b |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 181 | } other_PR; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 182 | |
| 183 | /*** <<< FWD-DECLS [Stuff] >>> ***/ |
| 184 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 185 | struct Forest; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 186 | |
Bi-Ruei, Chiu | 9b87e5b | 2016-06-06 00:23:16 +0800 | [diff] [blame] | 187 | /*** <<< FWD-DEFS [Stuff] >>> ***/ |
| 188 | |
| 189 | typedef struct Member { |
| 190 | BIT_STRING_t cup_of_coffee; |
| 191 | /* |
| 192 | * This type is extensible, |
| 193 | * possible extensions are below. |
| 194 | */ |
| 195 | |
| 196 | /* Context for parsing across buffer boundaries */ |
| 197 | asn_struct_ctx_t _asn_ctx; |
| 198 | } Member; |
| 199 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 200 | /*** <<< TYPE-DECLS [Stuff] >>> ***/ |
| 201 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 202 | typedef struct Stuff { |
| 203 | struct trees { |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 204 | A_SET_OF(struct Forest) list; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 205 | |
| 206 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 207 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 208 | } *trees; |
| 209 | struct anything { |
Bi-Ruei, Chiu | 9b87e5b | 2016-06-06 00:23:16 +0800 | [diff] [blame] | 210 | A_SET_OF(Member) list; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 211 | |
| 212 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 213 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 214 | } *anything; |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 215 | /* |
| 216 | * This type is extensible, |
| 217 | * possible extensions are below. |
| 218 | */ |
| 219 | struct other { |
| 220 | other_PR present; |
Lev Walkin | 0f5d74c | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 221 | union Stuff__other_u { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 222 | INTEGER_t a; |
| 223 | INTEGER_t b; |
| 224 | } choice; |
| 225 | |
| 226 | /* Context for parsing across buffer boundaries */ |
| 227 | asn_struct_ctx_t _asn_ctx; |
| 228 | } *other; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 229 | |
| 230 | /* Presence bitmask: ASN_SET_ISPRESENT(pStuff, Stuff_PR_x) */ |
| 231 | unsigned int _presence_map |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 232 | [((3+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 233 | |
| 234 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 235 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 236 | } Stuff_t; |
| 237 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 238 | /*** <<< FUNC-DECLS [Stuff] >>> ***/ |
| 239 | |
| 240 | extern asn_TYPE_descriptor_t asn_DEF_Stuff; |
| 241 | |
| 242 | /*** <<< POST-INCLUDE [Stuff] >>> ***/ |
| 243 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 244 | #include "Forest.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 245 | |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 246 | /*** <<< STAT-DEFS [Stuff] >>> ***/ |
| 247 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 248 | static asn_TYPE_member_t asn_MBR_trees_2[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 249 | { ATF_POINTER, 0, 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 250 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 251 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 252 | .type = &asn_DEF_Forest, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 253 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 254 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 255 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 256 | .name = "" |
| 257 | }, |
| 258 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 259 | static const ber_tlv_tag_t asn_DEF_trees_tags_2[] = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 260 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 261 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 262 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 263 | static asn_SET_OF_specifics_t asn_SPC_trees_specs_2 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 264 | sizeof(struct trees), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 265 | offsetof(struct trees, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 266 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 267 | }; |
Lev Walkin | d04430c | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 268 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 269 | asn_TYPE_descriptor_t asn_DEF_trees_2 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 270 | "trees", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 271 | "trees", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 272 | SET_OF_free, |
| 273 | SET_OF_print, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 274 | SET_OF_constraint, |
| 275 | SET_OF_decode_ber, |
| 276 | SET_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 277 | SET_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 278 | SET_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 279 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 280 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 281 | asn_DEF_trees_tags_2, |
| 282 | sizeof(asn_DEF_trees_tags_2) |
| 283 | /sizeof(asn_DEF_trees_tags_2[0]) - 1, /* 1 */ |
| 284 | asn_DEF_trees_tags_2, /* Same as above */ |
| 285 | sizeof(asn_DEF_trees_tags_2) |
| 286 | /sizeof(asn_DEF_trees_tags_2[0]), /* 2 */ |
| 287 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 288 | asn_MBR_trees_2, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 289 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 290 | &asn_SPC_trees_specs_2 /* Additional specs */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 291 | }; |
| 292 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 293 | static asn_TYPE_member_t asn_MBR_Member_5[] = { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 294 | { ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee), |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 295 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 296 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 297 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 298 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 299 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 300 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 301 | .name = "cup-of-coffee" |
| 302 | }, |
| 303 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 304 | static const ber_tlv_tag_t asn_DEF_Member_tags_5[] = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 305 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 306 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 307 | static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 308 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 309 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 310 | static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 311 | sizeof(struct Member), |
| 312 | offsetof(struct Member, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 313 | asn_MAP_Member_tag2el_5, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 314 | 1, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 315 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 316 | 0, /* Start extensions */ |
| 317 | 2 /* Stop extensions */ |
| 318 | }; |
Lev Walkin | d04430c | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 319 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 320 | asn_TYPE_descriptor_t asn_DEF_Member_5 = { |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 321 | "SEQUENCE", |
| 322 | "SEQUENCE", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 323 | SEQUENCE_free, |
| 324 | SEQUENCE_print, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 325 | SEQUENCE_constraint, |
| 326 | SEQUENCE_decode_ber, |
| 327 | SEQUENCE_encode_der, |
Lev Walkin | 61b40d8 | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 328 | SEQUENCE_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 329 | SEQUENCE_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 330 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 331 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 332 | asn_DEF_Member_tags_5, |
| 333 | sizeof(asn_DEF_Member_tags_5) |
| 334 | /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */ |
| 335 | asn_DEF_Member_tags_5, /* Same as above */ |
| 336 | sizeof(asn_DEF_Member_tags_5) |
| 337 | /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */ |
| 338 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 339 | asn_MBR_Member_5, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 340 | 1, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 341 | &asn_SPC_Member_specs_5 /* Additional specs */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 342 | }; |
| 343 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 344 | static asn_TYPE_member_t asn_MBR_anything_4[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 345 | { ATF_POINTER, 0, 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 346 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 347 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 348 | .type = &asn_DEF_Member_5, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 349 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 350 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 351 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 352 | .name = "" |
| 353 | }, |
| 354 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 355 | static const ber_tlv_tag_t asn_DEF_anything_tags_4[] = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 356 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 357 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 358 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 359 | static asn_SET_OF_specifics_t asn_SPC_anything_specs_4 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 360 | sizeof(struct anything), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 361 | offsetof(struct anything, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 362 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 363 | }; |
Lev Walkin | d04430c | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 364 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 365 | asn_TYPE_descriptor_t asn_DEF_anything_4 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 366 | "anything", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 367 | "anything", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 368 | SET_OF_free, |
| 369 | SET_OF_print, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 370 | SET_OF_constraint, |
| 371 | SET_OF_decode_ber, |
| 372 | SET_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 373 | SET_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 374 | SET_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 375 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 376 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 377 | asn_DEF_anything_tags_4, |
| 378 | sizeof(asn_DEF_anything_tags_4) |
| 379 | /sizeof(asn_DEF_anything_tags_4[0]) - 1, /* 1 */ |
| 380 | asn_DEF_anything_tags_4, /* Same as above */ |
| 381 | sizeof(asn_DEF_anything_tags_4) |
| 382 | /sizeof(asn_DEF_anything_tags_4[0]), /* 2 */ |
| 383 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 384 | asn_MBR_anything_4, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 385 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 386 | &asn_SPC_anything_specs_4 /* Additional specs */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 387 | }; |
| 388 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 389 | static asn_TYPE_member_t asn_MBR_other_9[] = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 390 | { ATF_NOFLAGS, 0, offsetof(struct other, choice.a), |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 391 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 392 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 393 | .type = &asn_DEF_INTEGER, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 394 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 395 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 396 | .default_value = 0, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 397 | .name = "a" |
| 398 | }, |
| 399 | { ATF_NOFLAGS, 0, offsetof(struct other, choice.b), |
| 400 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 401 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 402 | .type = &asn_DEF_INTEGER, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 403 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 404 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 405 | .default_value = 0, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 406 | .name = "b" |
| 407 | }, |
| 408 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 409 | static const asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 410 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ |
| 411 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 412 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 413 | static asn_CHOICE_specifics_t asn_SPC_other_specs_9 = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 414 | sizeof(struct other), |
| 415 | offsetof(struct other, _asn_ctx), |
| 416 | offsetof(struct other, present), |
| 417 | sizeof(((struct other *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 418 | asn_MAP_other_tag2el_9, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 419 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 420 | .canonical_order = 0, |
| 421 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 422 | }; |
| 423 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 424 | asn_TYPE_descriptor_t asn_DEF_other_9 = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 425 | "other", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 426 | "other", |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 427 | CHOICE_free, |
| 428 | CHOICE_print, |
| 429 | CHOICE_constraint, |
| 430 | CHOICE_decode_ber, |
| 431 | CHOICE_encode_der, |
Lev Walkin | 61b40d8 | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 432 | CHOICE_decode_xer, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 433 | CHOICE_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 434 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 435 | CHOICE_outmost_tag, |
| 436 | 0, /* No effective tags (pointer) */ |
| 437 | 0, /* No effective tags (count) */ |
| 438 | 0, /* No tags (pointer) */ |
| 439 | 0, /* No tags (count) */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 440 | 0, /* No PER visible constraints */ |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 441 | asn_MBR_other_9, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 442 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 443 | &asn_SPC_other_specs_9 /* Additional specs */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 444 | }; |
| 445 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 446 | static asn_TYPE_member_t asn_MBR_Stuff_1[] = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 447 | { ATF_POINTER, 3, offsetof(struct Stuff, trees), |
| 448 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 449 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 450 | .type = &asn_DEF_trees_2, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 451 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 452 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 453 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 454 | .name = "trees" |
| 455 | }, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 456 | { ATF_POINTER, 2, offsetof(struct Stuff, anything), |
| 457 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 458 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 459 | .type = &asn_DEF_anything_4, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 460 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 461 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 462 | .default_value = 0, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 463 | .name = "anything" |
| 464 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 465 | { ATF_POINTER, 1, offsetof(struct Stuff, other), |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 466 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 467 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 468 | .type = &asn_DEF_other_9, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 469 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 470 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 471 | .default_value = 0, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 472 | .name = "other" |
| 473 | }, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 474 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 475 | static const ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 476 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 477 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 478 | static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 479 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a */ |
| 480 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */ |
| 481 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */ |
| 482 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 483 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 484 | static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 485 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */ |
| 486 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */ |
| 487 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 488 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 489 | static const uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 490 | (0 << 7) | (0 << 6) | (0 << 5) |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 491 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 492 | static asn_SET_specifics_t asn_SPC_Stuff_specs_1 = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 493 | sizeof(struct Stuff), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 494 | offsetof(struct Stuff, _asn_ctx), |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 495 | offsetof(struct Stuff, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 496 | asn_MAP_Stuff_tag2el_1, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 497 | 4, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 498 | asn_MAP_Stuff_tag2el_cxer_1, |
Lev Walkin | f82138b | 2005-02-25 08:20:32 +0000 | [diff] [blame] | 499 | 3, /* Count of tags in the CXER map */ |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 500 | 1, /* Whether extensible */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 501 | (unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 502 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 503 | asn_TYPE_descriptor_t asn_DEF_Stuff = { |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 504 | "Stuff", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 505 | "Stuff", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 506 | SET_free, |
| 507 | SET_print, |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 508 | SET_constraint, |
| 509 | SET_decode_ber, |
| 510 | SET_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 511 | SET_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 512 | SET_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 513 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 03ba3e9 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 514 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 515 | asn_DEF_Stuff_tags_1, |
| 516 | sizeof(asn_DEF_Stuff_tags_1) |
| 517 | /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */ |
| 518 | asn_DEF_Stuff_tags_1, /* Same as above */ |
| 519 | sizeof(asn_DEF_Stuff_tags_1) |
| 520 | /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */ |
| 521 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 522 | asn_MBR_Stuff_1, |
Lev Walkin | 2a8672e | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 523 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 524 | &asn_SPC_Stuff_specs_1 /* Additional specs */ |
| 525 | }; |
| 526 | |