vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 1 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 2 | /*** <<< INCLUDES [T1] >>> ***/ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 3 | |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 4 | #include <INTEGER.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 5 | #include <constr_SET.h> |
| 6 | |
| 7 | /*** <<< DEPS [T1] >>> ***/ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 8 | |
| 9 | |
| 10 | /* |
| 11 | * Method of determining the components presence |
| 12 | */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 13 | typedef enum T1_PR { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 14 | T1_PR_i, /* Member i is present */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 15 | } T1_PR; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 16 | extern asn_TYPE_descriptor_t asn_DEF_T1; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 17 | |
| 18 | /*** <<< TYPE-DECLS [T1] >>> ***/ |
| 19 | |
| 20 | |
| 21 | typedef struct T1 { |
| 22 | INTEGER_t i; |
| 23 | /* |
| 24 | * This type is extensible, |
| 25 | * possible extensions are below. |
| 26 | */ |
| 27 | |
| 28 | /* Presence bitmask: ASN_SET_ISPRESENT(pT1, T1_PR_x) */ |
| 29 | unsigned int _presence_map |
| 30 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 31 | |
| 32 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 33 | asn_struct_ctx_t _asn_ctx; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 34 | } T1_t; |
| 35 | |
| 36 | /*** <<< STAT-DEFS [T1] >>> ***/ |
| 37 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 38 | static asn_TYPE_member_t asn_MBR_T1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 39 | { ATF_NOFLAGS, 0, offsetof(struct T1, i), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 40 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 41 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 42 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 43 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 44 | .name = "i" |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 45 | }, |
| 46 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 47 | static ber_tlv_tag_t asn_DEF_T1_tags[] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 48 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 49 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 50 | static asn_TYPE_tag2member_t asn_DEF_T1_tag2el[] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 51 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 14 */ |
| 52 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 53 | static uint8_t asn_DEF_T1_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 54 | (1 << 7) |
| 55 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 56 | static asn_SET_specifics_t asn_DEF_T1_specs = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 57 | sizeof(struct T1), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 58 | offsetof(struct T1, _asn_ctx), |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 59 | offsetof(struct T1, _presence_map), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 60 | asn_DEF_T1_tag2el, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 61 | 1, /* Count of tags in the map */ |
vlm | 0789113 | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 62 | asn_DEF_T1_tag2el, /* Same as above */ |
| 63 | 1, /* Count of tags in the CANONICAL-XER map */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 64 | 1, /* Whether extensible */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 65 | (unsigned int *)asn_DEF_T1_mmap /* Mandatory elements map */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 66 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 67 | asn_TYPE_descriptor_t asn_DEF_T1 = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 68 | "T1", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 69 | "T1", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 70 | SET_free, |
| 71 | SET_print, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 72 | SET_constraint, |
| 73 | SET_decode_ber, |
| 74 | SET_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 75 | 0, /* Not implemented yet */ |
| 76 | SET_encode_xer, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 77 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 78 | asn_DEF_T1_tags, |
| 79 | sizeof(asn_DEF_T1_tags) |
| 80 | /sizeof(asn_DEF_T1_tags[0]), /* 1 */ |
| 81 | asn_DEF_T1_tags, /* Same as above */ |
| 82 | sizeof(asn_DEF_T1_tags) |
| 83 | /sizeof(asn_DEF_T1_tags[0]), /* 1 */ |
| 84 | asn_MBR_T1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 85 | 1, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 86 | &asn_DEF_T1_specs /* Additional specs */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 90 | /*** <<< INCLUDES [T2] >>> ***/ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 91 | |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 92 | #include <INTEGER.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 93 | #include <constr_SET.h> |
| 94 | |
| 95 | /*** <<< DEPS [T2] >>> ***/ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 96 | |
| 97 | |
| 98 | /* |
| 99 | * Method of determining the components presence |
| 100 | */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 101 | typedef enum T2_PR { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 102 | T2_PR_i, /* Member i is present */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 103 | } T2_PR; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 104 | extern asn_TYPE_descriptor_t asn_DEF_T2; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 105 | |
| 106 | /*** <<< TYPE-DECLS [T2] >>> ***/ |
| 107 | |
| 108 | |
| 109 | typedef struct T2 { |
| 110 | INTEGER_t i; |
| 111 | /* |
| 112 | * This type is extensible, |
| 113 | * possible extensions are below. |
| 114 | */ |
| 115 | |
| 116 | /* Presence bitmask: ASN_SET_ISPRESENT(pT2, T2_PR_x) */ |
| 117 | unsigned int _presence_map |
| 118 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 119 | |
| 120 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 121 | asn_struct_ctx_t _asn_ctx; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 122 | } T2_t; |
| 123 | |
| 124 | /*** <<< STAT-DEFS [T2] >>> ***/ |
| 125 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 126 | static asn_TYPE_member_t asn_MBR_T2[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 127 | { ATF_NOFLAGS, 0, offsetof(struct T2, i), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 128 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 129 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 130 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 131 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 132 | .name = "i" |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 133 | }, |
| 134 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 135 | static ber_tlv_tag_t asn_DEF_T2_tags[] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 136 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 137 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 138 | static asn_TYPE_tag2member_t asn_DEF_T2_tag2el[] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 139 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 15 */ |
| 140 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 141 | static uint8_t asn_DEF_T2_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 142 | (1 << 7) |
| 143 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 144 | static asn_SET_specifics_t asn_DEF_T2_specs = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 145 | sizeof(struct T2), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 146 | offsetof(struct T2, _asn_ctx), |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 147 | offsetof(struct T2, _presence_map), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 148 | asn_DEF_T2_tag2el, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 149 | 1, /* Count of tags in the map */ |
vlm | 0789113 | 2004-10-03 09:14:49 +0000 | [diff] [blame] | 150 | asn_DEF_T2_tag2el, /* Same as above */ |
| 151 | 1, /* Count of tags in the CANONICAL-XER map */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 152 | 1, /* Whether extensible */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 153 | (unsigned int *)asn_DEF_T2_mmap /* Mandatory elements map */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 154 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 155 | asn_TYPE_descriptor_t asn_DEF_T2 = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 156 | "T2", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 157 | "T2", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 158 | SET_free, |
| 159 | SET_print, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 160 | SET_constraint, |
| 161 | SET_decode_ber, |
| 162 | SET_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 163 | 0, /* Not implemented yet */ |
| 164 | SET_encode_xer, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 165 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 166 | asn_DEF_T2_tags, |
| 167 | sizeof(asn_DEF_T2_tags) |
| 168 | /sizeof(asn_DEF_T2_tags[0]), /* 1 */ |
| 169 | asn_DEF_T2_tags, /* Same as above */ |
| 170 | sizeof(asn_DEF_T2_tags) |
| 171 | /sizeof(asn_DEF_T2_tags[0]), /* 1 */ |
| 172 | asn_MBR_T2, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 173 | 1, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 174 | &asn_DEF_T2_specs /* Additional specs */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 175 | }; |
| 176 | |
| 177 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 178 | /*** <<< INCLUDES [T3] >>> ***/ |
| 179 | |
| 180 | #include <INTEGER.h> |
| 181 | #include <constr_CHOICE.h> |
| 182 | |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 183 | /*** <<< DEPS [T3] >>> ***/ |
| 184 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 185 | typedef enum T3_PR { |
| 186 | T3_PR_NOTHING, /* No components present */ |
| 187 | T3_PR_i, |
| 188 | /* Extensions may appear below */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 189 | } T3_PR; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 190 | extern asn_TYPE_descriptor_t asn_DEF_T3; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 191 | |
| 192 | /*** <<< TYPE-DECLS [T3] >>> ***/ |
| 193 | |
| 194 | |
| 195 | typedef struct T3 { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 196 | T3_PR present; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 197 | union { |
| 198 | INTEGER_t i; |
| 199 | /* |
| 200 | * This type is extensible, |
| 201 | * possible extensions are below. |
| 202 | */ |
| 203 | } choice; |
| 204 | |
| 205 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 206 | asn_struct_ctx_t _asn_ctx; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 207 | } T3_t; |
| 208 | |
| 209 | /*** <<< STAT-DEFS [T3] >>> ***/ |
| 210 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 211 | static asn_TYPE_member_t asn_MBR_T3[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 212 | { ATF_NOFLAGS, 0, offsetof(struct T3, choice.i), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 213 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 214 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 215 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 216 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 217 | .name = "i" |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 218 | }, |
| 219 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 220 | static asn_TYPE_tag2member_t asn_DEF_T3_tag2el[] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 221 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 16 */ |
| 222 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 223 | static asn_CHOICE_specifics_t asn_DEF_T3_specs = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 224 | sizeof(struct T3), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 225 | offsetof(struct T3, _asn_ctx), |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 226 | offsetof(struct T3, present), |
| 227 | sizeof(((struct T3 *)0)->present), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 228 | asn_DEF_T3_tag2el, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 229 | 1, /* Count of tags in the map */ |
| 230 | 1 /* Whether extensible */ |
| 231 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 232 | asn_TYPE_descriptor_t asn_DEF_T3 = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 233 | "T3", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 234 | "T3", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 235 | CHOICE_free, |
| 236 | CHOICE_print, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 237 | CHOICE_constraint, |
| 238 | CHOICE_decode_ber, |
| 239 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 240 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 241 | CHOICE_encode_xer, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 242 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 243 | 0, /* No effective tags (pointer) */ |
| 244 | 0, /* No effective tags (count) */ |
| 245 | 0, /* No tags (pointer) */ |
| 246 | 0, /* No tags (count) */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 247 | asn_MBR_T3, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 248 | 1, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 249 | &asn_DEF_T3_specs /* Additional specs */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 250 | }; |
| 251 | |
| 252 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 253 | /*** <<< INCLUDES [T4] >>> ***/ |
| 254 | |
| 255 | #include <INTEGER.h> |
| 256 | #include <constr_CHOICE.h> |
| 257 | |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 258 | /*** <<< DEPS [T4] >>> ***/ |
| 259 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 260 | typedef enum T4_PR { |
| 261 | T4_PR_NOTHING, /* No components present */ |
| 262 | T4_PR_i, |
| 263 | /* Extensions may appear below */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 264 | } T4_PR; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 265 | extern asn_TYPE_descriptor_t asn_DEF_T4; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 266 | |
| 267 | /*** <<< TYPE-DECLS [T4] >>> ***/ |
| 268 | |
| 269 | |
| 270 | typedef struct T4 { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 271 | T4_PR present; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 272 | union { |
| 273 | INTEGER_t i; |
| 274 | /* |
| 275 | * This type is extensible, |
| 276 | * possible extensions are below. |
| 277 | */ |
| 278 | } choice; |
| 279 | |
| 280 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 281 | asn_struct_ctx_t _asn_ctx; |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 282 | } T4_t; |
| 283 | |
| 284 | /*** <<< STAT-DEFS [T4] >>> ***/ |
| 285 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 286 | static asn_TYPE_member_t asn_MBR_T4[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 287 | { ATF_NOFLAGS, 0, offsetof(struct T4, choice.i), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 288 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 289 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 290 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 291 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 292 | .name = "i" |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 293 | }, |
| 294 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 295 | static asn_TYPE_tag2member_t asn_DEF_T4_tag2el[] = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 296 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 17 */ |
| 297 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 298 | static asn_CHOICE_specifics_t asn_DEF_T4_specs = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 299 | sizeof(struct T4), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 300 | offsetof(struct T4, _asn_ctx), |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 301 | offsetof(struct T4, present), |
| 302 | sizeof(((struct T4 *)0)->present), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 303 | asn_DEF_T4_tag2el, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 304 | 1, /* Count of tags in the map */ |
| 305 | 1 /* Whether extensible */ |
| 306 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 307 | asn_TYPE_descriptor_t asn_DEF_T4 = { |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 308 | "T4", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 309 | "T4", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 310 | CHOICE_free, |
| 311 | CHOICE_print, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 312 | CHOICE_constraint, |
| 313 | CHOICE_decode_ber, |
| 314 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 315 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 316 | CHOICE_encode_xer, |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 317 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 318 | 0, /* No effective tags (pointer) */ |
| 319 | 0, /* No effective tags (count) */ |
| 320 | 0, /* No tags (pointer) */ |
| 321 | 0, /* No tags (count) */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 322 | asn_MBR_T4, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 323 | 1, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 324 | &asn_DEF_T4_specs /* Additional specs */ |
vlm | 79b08d5 | 2004-07-01 00:52:50 +0000 | [diff] [blame] | 325 | }; |
| 326 | |