vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Forest] >>> ***/ |
| 3 | |
| 4 | #include <Tree.h> |
| 5 | #include <asn_SET_OF.h> |
| 6 | #include <constr_SET_OF.h> |
| 7 | |
| 8 | /*** <<< DEPS [Forest] >>> ***/ |
| 9 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 10 | extern asn_TYPE_descriptor_t asn_DEF_Forest; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 11 | |
| 12 | /*** <<< TYPE-DECLS [Forest] >>> ***/ |
| 13 | |
| 14 | |
| 15 | typedef struct Forest { |
vlm | b47f48e | 2004-09-17 06:32:12 +0000 | [diff] [blame] | 16 | A_SET_OF(Tree_t) list; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 17 | |
| 18 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 19 | asn_struct_ctx_t _asn_ctx; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 20 | } Forest_t; |
| 21 | |
| 22 | /*** <<< STAT-DEFS [Forest] >>> ***/ |
| 23 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 24 | static asn_TYPE_member_t asn_MBR_Forest[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 25 | { ATF_NOFLAGS, 0, 0, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 26 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 27 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 28 | .type = (void *)&asn_DEF_Tree, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 29 | .memb_constraints = 0, /* Defer to actual type */ |
| 30 | .name = "" |
| 31 | }, |
| 32 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 33 | static ber_tlv_tag_t asn_DEF_Forest_tags[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 34 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 35 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 36 | static asn_SET_OF_specifics_t asn_DEF_Forest_specs = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 37 | sizeof(struct Forest), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 38 | offsetof(struct Forest, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 39 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 40 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 41 | asn_TYPE_descriptor_t asn_DEF_Forest = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 42 | "Forest", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 43 | SET_OF_free, |
| 44 | SET_OF_print, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 45 | SET_OF_constraint, |
| 46 | SET_OF_decode_ber, |
| 47 | SET_OF_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 48 | 0, /* Not implemented yet */ |
| 49 | SET_OF_encode_xer, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 50 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 51 | asn_DEF_Forest_tags, |
| 52 | sizeof(asn_DEF_Forest_tags) |
| 53 | /sizeof(asn_DEF_Forest_tags[0]), /* 1 */ |
| 54 | asn_DEF_Forest_tags, /* Same as above */ |
| 55 | sizeof(asn_DEF_Forest_tags) |
| 56 | /sizeof(asn_DEF_Forest_tags[0]), /* 1 */ |
| 57 | asn_MBR_Forest, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 58 | 1, /* Single element */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 59 | &asn_DEF_Forest_specs /* Additional specs */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | |
| 63 | /*** <<< INCLUDES [Tree] >>> ***/ |
| 64 | |
| 65 | #include <INTEGER.h> |
| 66 | #include <constr_SEQUENCE.h> |
| 67 | |
| 68 | /*** <<< DEPS [Tree] >>> ***/ |
| 69 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 70 | extern asn_TYPE_descriptor_t asn_DEF_Tree; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 71 | |
| 72 | /*** <<< TYPE-DECLS [Tree] >>> ***/ |
| 73 | |
| 74 | |
| 75 | typedef struct Tree { |
| 76 | INTEGER_t height; |
| 77 | INTEGER_t width; |
| 78 | |
| 79 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 80 | asn_struct_ctx_t _asn_ctx; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 81 | } Tree_t; |
| 82 | |
| 83 | /*** <<< STAT-DEFS [Tree] >>> ***/ |
| 84 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 85 | static asn_TYPE_member_t asn_MBR_Tree[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 86 | { ATF_NOFLAGS, 0, offsetof(struct Tree, height), |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 87 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 88 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 89 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 90 | .memb_constraints = 0, /* Defer to actual type */ |
| 91 | .name = "height" |
| 92 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 93 | { ATF_NOFLAGS, 0, offsetof(struct Tree, width), |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 94 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 95 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 96 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 97 | .memb_constraints = 0, /* Defer to actual type */ |
| 98 | .name = "width" |
| 99 | }, |
| 100 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 101 | static ber_tlv_tag_t asn_DEF_Tree_tags[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 102 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 103 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 104 | static asn_TYPE_tag2member_t asn_DEF_Tree_tag2el[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 105 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height at 17 */ |
| 106 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 }, /* width at 19 */ |
| 107 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 108 | static asn_SEQUENCE_specifics_t asn_DEF_Tree_specs = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 109 | sizeof(struct Tree), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 110 | offsetof(struct Tree, _asn_ctx), |
| 111 | asn_DEF_Tree_tag2el, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 112 | 2, /* Count of tags in the map */ |
| 113 | -1, /* Start extensions */ |
| 114 | -1 /* Stop extensions */ |
| 115 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 116 | asn_TYPE_descriptor_t asn_DEF_Tree = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 117 | "Tree", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 118 | SEQUENCE_free, |
| 119 | SEQUENCE_print, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 120 | SEQUENCE_constraint, |
| 121 | SEQUENCE_decode_ber, |
| 122 | SEQUENCE_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 123 | 0, /* Not implemented yet */ |
| 124 | SEQUENCE_encode_xer, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 125 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 126 | asn_DEF_Tree_tags, |
| 127 | sizeof(asn_DEF_Tree_tags) |
| 128 | /sizeof(asn_DEF_Tree_tags[0]), /* 1 */ |
| 129 | asn_DEF_Tree_tags, /* Same as above */ |
| 130 | sizeof(asn_DEF_Tree_tags) |
| 131 | /sizeof(asn_DEF_Tree_tags[0]), /* 1 */ |
| 132 | asn_MBR_Tree, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 133 | 2, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 134 | &asn_DEF_Tree_specs /* Additional specs */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 135 | }; |
| 136 | |
| 137 | |
| 138 | /*** <<< INCLUDES [Stuff] >>> ***/ |
| 139 | |
| 140 | #include <Forest.h> |
| 141 | #include <asn_SET_OF.h> |
| 142 | #include <constr_SET_OF.h> |
| 143 | #include <BIT_STRING.h> |
| 144 | #include <constr_SEQUENCE.h> |
| 145 | #include <constr_SET.h> |
| 146 | |
| 147 | /*** <<< DEPS [Stuff] >>> ***/ |
| 148 | |
| 149 | |
| 150 | /* |
| 151 | * Method of determining the components presence |
| 152 | */ |
| 153 | typedef enum Stuff_PR { |
| 154 | Stuff_PR_trees, /* Member trees is present */ |
| 155 | Stuff_PR_anything, /* Member anything is present */ |
| 156 | } Stuff_PR; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 157 | extern asn_TYPE_descriptor_t asn_DEF_Stuff; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 158 | |
| 159 | /*** <<< TYPE-DECLS [Stuff] >>> ***/ |
| 160 | |
| 161 | |
| 162 | typedef struct Stuff { |
| 163 | struct trees { |
vlm | b47f48e | 2004-09-17 06:32:12 +0000 | [diff] [blame] | 164 | A_SET_OF(Forest_t) list; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 165 | |
| 166 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 167 | asn_struct_ctx_t _asn_ctx; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 168 | } *trees; |
| 169 | struct anything { |
| 170 | A_SET_OF(struct anything_member { |
| 171 | BIT_STRING_t cup_of_coffee; |
| 172 | /* |
| 173 | * This type is extensible, |
| 174 | * possible extensions are below. |
| 175 | */ |
| 176 | |
| 177 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 178 | asn_struct_ctx_t _asn_ctx; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 179 | } ) list; |
| 180 | |
| 181 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 182 | asn_struct_ctx_t _asn_ctx; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 183 | } *anything; |
| 184 | |
| 185 | /* Presence bitmask: ASN_SET_ISPRESENT(pStuff, Stuff_PR_x) */ |
| 186 | unsigned int _presence_map |
| 187 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 188 | |
| 189 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 190 | asn_struct_ctx_t _asn_ctx; |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 191 | } Stuff_t; |
| 192 | |
| 193 | /*** <<< STAT-DEFS [Stuff] >>> ***/ |
| 194 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 195 | static asn_TYPE_member_t asn_MBR_trees[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 196 | { ATF_NOFLAGS, 0, 0, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 197 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 198 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 199 | .type = (void *)&asn_DEF_Forest, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 200 | .memb_constraints = 0, /* Defer to actual type */ |
| 201 | .name = "" |
| 202 | }, |
| 203 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 204 | static ber_tlv_tag_t asn_DEF_trees_tags[] = { |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 205 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 206 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 207 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 208 | static asn_SET_OF_specifics_t asn_DEF_trees_specs = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 209 | sizeof(struct trees), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 210 | offsetof(struct trees, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 211 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 212 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 213 | static /* Use -fall-defs-global to expose */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 214 | asn_TYPE_descriptor_t asn_DEF_trees = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 215 | "trees", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 216 | SET_OF_free, |
| 217 | SET_OF_print, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 218 | SET_OF_constraint, |
| 219 | SET_OF_decode_ber, |
| 220 | SET_OF_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 221 | 0, /* Not implemented yet */ |
| 222 | SET_OF_encode_xer, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 223 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 224 | asn_DEF_trees_tags, |
| 225 | sizeof(asn_DEF_trees_tags) |
| 226 | /sizeof(asn_DEF_trees_tags[0]) - 1, /* 1 */ |
| 227 | asn_DEF_trees_tags, /* Same as above */ |
| 228 | sizeof(asn_DEF_trees_tags) |
| 229 | /sizeof(asn_DEF_trees_tags[0]), /* 2 */ |
| 230 | asn_MBR_trees, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 231 | 1, /* Single element */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 232 | &asn_DEF_trees_specs /* Additional specs */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 233 | }; |
| 234 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 235 | static asn_TYPE_member_t asn_MBR_anything_member[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 236 | { ATF_NOFLAGS, 0, offsetof(struct anything_member, cup_of_coffee), |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 237 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 238 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 239 | .type = (void *)&asn_DEF_BIT_STRING, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 240 | .memb_constraints = 0, /* Defer to actual type */ |
| 241 | .name = "cup-of-coffee" |
| 242 | }, |
| 243 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 244 | static ber_tlv_tag_t asn_DEF_anything_member_tags[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 245 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 246 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 247 | static asn_TYPE_tag2member_t asn_DEF_anything_member_tag2el[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 248 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 }, /* cup-of-coffee at 26 */ |
| 249 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 250 | static asn_SEQUENCE_specifics_t asn_DEF_anything_member_specs = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 251 | sizeof(struct anything_member), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 252 | offsetof(struct anything_member, _asn_ctx), |
| 253 | asn_DEF_anything_member_tag2el, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 254 | 1, /* Count of tags in the map */ |
| 255 | 0, /* Start extensions */ |
| 256 | 2 /* Stop extensions */ |
| 257 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 258 | static /* Use -fall-defs-global to expose */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 259 | asn_TYPE_descriptor_t asn_DEF_anything_member = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 260 | "", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 261 | SEQUENCE_free, |
| 262 | SEQUENCE_print, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 263 | SEQUENCE_constraint, |
| 264 | SEQUENCE_decode_ber, |
| 265 | SEQUENCE_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 266 | 0, /* Not implemented yet */ |
| 267 | SEQUENCE_encode_xer, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 268 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 269 | asn_DEF_anything_member_tags, |
| 270 | sizeof(asn_DEF_anything_member_tags) |
| 271 | /sizeof(asn_DEF_anything_member_tags[0]), /* 1 */ |
| 272 | asn_DEF_anything_member_tags, /* Same as above */ |
| 273 | sizeof(asn_DEF_anything_member_tags) |
| 274 | /sizeof(asn_DEF_anything_member_tags[0]), /* 1 */ |
| 275 | asn_MBR_anything_member, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 276 | 1, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 277 | &asn_DEF_anything_member_specs /* Additional specs */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 278 | }; |
| 279 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 280 | static asn_TYPE_member_t asn_MBR_anything[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 281 | { ATF_NOFLAGS, 0, 0, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 282 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 283 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 284 | .type = (void *)&asn_DEF_anything_member, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 285 | .memb_constraints = 0, /* Defer to actual type */ |
| 286 | .name = "" |
| 287 | }, |
| 288 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 289 | static ber_tlv_tag_t asn_DEF_anything_tags[] = { |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 290 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 291 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 292 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 293 | static asn_SET_OF_specifics_t asn_DEF_anything_specs = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 294 | sizeof(struct anything), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 295 | offsetof(struct anything, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 296 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 297 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 298 | static /* Use -fall-defs-global to expose */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 299 | asn_TYPE_descriptor_t asn_DEF_anything = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 300 | "anything", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 301 | SET_OF_free, |
| 302 | SET_OF_print, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 303 | SET_OF_constraint, |
| 304 | SET_OF_decode_ber, |
| 305 | SET_OF_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 306 | 0, /* Not implemented yet */ |
| 307 | SET_OF_encode_xer, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 308 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 309 | asn_DEF_anything_tags, |
| 310 | sizeof(asn_DEF_anything_tags) |
| 311 | /sizeof(asn_DEF_anything_tags[0]) - 1, /* 1 */ |
| 312 | asn_DEF_anything_tags, /* Same as above */ |
| 313 | sizeof(asn_DEF_anything_tags) |
| 314 | /sizeof(asn_DEF_anything_tags[0]), /* 2 */ |
| 315 | asn_MBR_anything, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 316 | 1, /* Single element */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 317 | &asn_DEF_anything_specs /* Additional specs */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 318 | }; |
| 319 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 320 | static asn_TYPE_member_t asn_MBR_Stuff[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 321 | { ATF_POINTER, 2, offsetof(struct Stuff, trees), |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 322 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 323 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 324 | .type = (void *)&asn_DEF_trees, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 325 | .memb_constraints = 0, /* Defer to actual type */ |
| 326 | .name = "trees" |
| 327 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 328 | { ATF_POINTER, 1, offsetof(struct Stuff, anything), |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 329 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 330 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 331 | .type = (void *)&asn_DEF_anything, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 332 | .memb_constraints = 0, /* Defer to actual type */ |
| 333 | .name = "anything" |
| 334 | }, |
| 335 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 336 | static ber_tlv_tag_t asn_DEF_Stuff_tags[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 337 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 338 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 339 | static asn_TYPE_tag2member_t asn_DEF_Stuff_tag2el[] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 340 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* trees at 23 */ |
| 341 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* anything at 28 */ |
| 342 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 343 | static uint8_t asn_DEF_Stuff_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 344 | (0 << 7) | (0 << 6) |
| 345 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 346 | static asn_SET_specifics_t asn_DEF_Stuff_specs = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 347 | sizeof(struct Stuff), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 348 | offsetof(struct Stuff, _asn_ctx), |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 349 | offsetof(struct Stuff, _presence_map), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 350 | asn_DEF_Stuff_tag2el, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 351 | 2, /* Count of tags in the map */ |
| 352 | 0, /* Whether extensible */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 353 | (unsigned int *)asn_DEF_Stuff_mmap /* Mandatory elements map */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 354 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 355 | asn_TYPE_descriptor_t asn_DEF_Stuff = { |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 356 | "Stuff", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 357 | SET_free, |
| 358 | SET_print, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 359 | SET_constraint, |
| 360 | SET_decode_ber, |
| 361 | SET_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 362 | 0, /* Not implemented yet */ |
| 363 | SET_encode_xer, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 364 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 365 | asn_DEF_Stuff_tags, |
| 366 | sizeof(asn_DEF_Stuff_tags) |
| 367 | /sizeof(asn_DEF_Stuff_tags[0]), /* 1 */ |
| 368 | asn_DEF_Stuff_tags, /* Same as above */ |
| 369 | sizeof(asn_DEF_Stuff_tags) |
| 370 | /sizeof(asn_DEF_Stuff_tags[0]), /* 1 */ |
| 371 | asn_MBR_Stuff, |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 372 | 2, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 373 | &asn_DEF_Stuff_specs /* Additional specs */ |
vlm | 7b9a768 | 2004-08-22 03:18:17 +0000 | [diff] [blame] | 374 | }; |
| 375 | |