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