vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 2 | /*** <<< INCLUDES [LogLine] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | #include <IA5String.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5 | #include <asn_SEQUENCE_OF.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 6 | #include <constr_SEQUENCE_OF.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7 | #include <constr_SEQUENCE.h> |
| 8 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 9 | /*** <<< FWD-DECLS [LogLine] >>> ***/ |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 10 | |
vlm | 5feb752 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 11 | struct VariablePartSet; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12 | |
| 13 | /*** <<< TYPE-DECLS [LogLine] >>> ***/ |
| 14 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15 | typedef struct LogLine { |
| 16 | IA5String_t line_digest; |
| 17 | struct varsets { |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 18 | A_SEQUENCE_OF(struct VariablePartSet) list; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19 | |
| 20 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 21 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22 | } varsets; |
| 23 | /* |
| 24 | * This type is extensible, |
| 25 | * possible extensions are below. |
| 26 | */ |
| 27 | |
| 28 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 29 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 30 | } LogLine_t; |
| 31 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 32 | /*** <<< FUNC-DECLS [LogLine] >>> ***/ |
| 33 | |
| 34 | extern asn_TYPE_descriptor_t asn_DEF_LogLine; |
| 35 | |
| 36 | /*** <<< POST-INCLUDE [LogLine] >>> ***/ |
| 37 | |
| 38 | #include <VariablePartSet.h> |
| 39 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 40 | /*** <<< CODE [LogLine] >>> ***/ |
| 41 | |
| 42 | static int |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 43 | memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 44 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 45 | size_t size; |
| 46 | |
| 47 | if(!sptr) { |
| 48 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 49 | "%s: value not given (%s:%d)", |
| 50 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 51 | return -1; |
| 52 | } |
| 53 | |
vlm | 754a90f | 2005-07-04 02:03:57 +0000 | [diff] [blame] | 54 | /* Determine the number of elements */ |
| 55 | size = _A_CSEQUENCE_FROM_VOID(sptr)->count; |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 56 | |
| 57 | if((size >= 1)) { |
vlm | 541def9 | 2005-03-29 19:05:37 +0000 | [diff] [blame] | 58 | /* Perform validation of the inner elements */ |
vlm | 481c8ed | 2005-03-31 21:52:53 +0000 | [diff] [blame] | 59 | return td->check_constraints(td, sptr, app_errlog, app_key); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 60 | } else { |
| 61 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 62 | "%s: constraint failed (%s:%d)", |
| 63 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 64 | return -1; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 69 | /*** <<< STAT-DEFS [LogLine] >>> ***/ |
| 70 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 71 | static asn_TYPE_member_t asn_MBR_varsets_3[] = { |
vlm | 2cebdf3 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 72 | { ATF_POINTER, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 73 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 74 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 75 | .type = (void *)&asn_DEF_VariablePartSet, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 76 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 77 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 78 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 79 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 80 | static ber_tlv_tag_t asn_DEF_varsets_3_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 81 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 82 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 83 | static asn_SET_OF_specifics_t asn_SPC_varsets_3_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 84 | sizeof(struct varsets), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 85 | offsetof(struct varsets, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 86 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 87 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 88 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 89 | asn_TYPE_descriptor_t asn_DEF_varsets_3 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 90 | "varsets", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 91 | "varsets", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 92 | SEQUENCE_OF_free, |
| 93 | SEQUENCE_OF_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 94 | SEQUENCE_OF_constraint, |
| 95 | SEQUENCE_OF_decode_ber, |
| 96 | SEQUENCE_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 97 | SEQUENCE_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 98 | SEQUENCE_OF_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 99 | 0, /* Use generic outmost tag fetcher */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 100 | asn_DEF_varsets_3_tags, |
| 101 | sizeof(asn_DEF_varsets_3_tags) |
| 102 | /sizeof(asn_DEF_varsets_3_tags[0]), /* 1 */ |
| 103 | asn_DEF_varsets_3_tags, /* Same as above */ |
| 104 | sizeof(asn_DEF_varsets_3_tags) |
| 105 | /sizeof(asn_DEF_varsets_3_tags[0]), /* 1 */ |
| 106 | asn_MBR_varsets_3, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 107 | 1, /* Single element */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 108 | &asn_SPC_varsets_3_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 109 | }; |
| 110 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 111 | static asn_TYPE_member_t asn_MBR_LogLine_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 112 | { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 113 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), |
| 114 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 115 | .type = (void *)&asn_DEF_IA5String, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 116 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 117 | .name = "line-digest" |
| 118 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 119 | { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 120 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 121 | .tag_mode = 0, |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 122 | .type = (void *)&asn_DEF_varsets_3, |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 123 | .memb_constraints = memb_varsets_1_constraint, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 124 | .name = "varsets" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 125 | }, |
| 126 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 127 | static ber_tlv_tag_t asn_DEF_LogLine_1_tags[] = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 128 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 129 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 130 | static asn_TYPE_tag2member_t asn_MAP_LogLine_1_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 131 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 132 | { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest at 23 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 133 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 134 | static asn_SEQUENCE_specifics_t asn_SPC_LogLine_1_specs = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 135 | sizeof(struct LogLine), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 136 | offsetof(struct LogLine, _asn_ctx), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 137 | asn_MAP_LogLine_1_tag2el, |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 138 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 139 | 1, /* Start extensions */ |
| 140 | 3 /* Stop extensions */ |
| 141 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 142 | asn_TYPE_descriptor_t asn_DEF_LogLine = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 143 | "LogLine", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 144 | "LogLine", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 145 | SEQUENCE_free, |
| 146 | SEQUENCE_print, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 147 | SEQUENCE_constraint, |
| 148 | SEQUENCE_decode_ber, |
| 149 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 150 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 151 | SEQUENCE_encode_xer, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 152 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 153 | asn_DEF_LogLine_1_tags, |
| 154 | sizeof(asn_DEF_LogLine_1_tags) |
| 155 | /sizeof(asn_DEF_LogLine_1_tags[0]), /* 1 */ |
| 156 | asn_DEF_LogLine_1_tags, /* Same as above */ |
| 157 | sizeof(asn_DEF_LogLine_1_tags) |
| 158 | /sizeof(asn_DEF_LogLine_1_tags[0]), /* 1 */ |
| 159 | asn_MBR_LogLine_1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 160 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 161 | &asn_SPC_LogLine_1_specs /* Additional specs */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 162 | }; |
| 163 | |
| 164 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 165 | /*** <<< INCLUDES [VariablePartSet] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 166 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 167 | #include <ActionItem.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 168 | #include <asn_SEQUENCE_OF.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 169 | #include <constr_SEQUENCE_OF.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 170 | #include <constr_SEQUENCE.h> |
| 171 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 172 | /*** <<< FWD-DECLS [VariablePartSet] >>> ***/ |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 173 | |
vlm | 5feb752 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 174 | struct VariablePart; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 175 | |
| 176 | /*** <<< TYPE-DECLS [VariablePartSet] >>> ***/ |
| 177 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 178 | typedef struct VariablePartSet { |
| 179 | struct vparts { |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 180 | A_SEQUENCE_OF(struct VariablePart) list; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 181 | |
| 182 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 183 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 184 | } vparts; |
| 185 | ActionItem_t resolution; |
| 186 | /* |
| 187 | * This type is extensible, |
| 188 | * possible extensions are below. |
| 189 | */ |
| 190 | |
| 191 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 192 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 193 | } VariablePartSet_t; |
| 194 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 195 | /*** <<< FUNC-DECLS [VariablePartSet] >>> ***/ |
| 196 | |
| 197 | extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet; |
| 198 | |
| 199 | /*** <<< POST-INCLUDE [VariablePartSet] >>> ***/ |
| 200 | |
| 201 | #include <VariablePart.h> |
| 202 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 203 | /*** <<< CODE [VariablePartSet] >>> ***/ |
| 204 | |
| 205 | static int |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 206 | memb_vparts_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 207 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 208 | |
| 209 | if(!sptr) { |
| 210 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 211 | "%s: value not given (%s:%d)", |
| 212 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 213 | return -1; |
| 214 | } |
| 215 | |
| 216 | |
| 217 | if(1 /* No applicable constraints whatsoever */) { |
| 218 | /* Nothing is here. See below */ |
| 219 | } |
| 220 | |
vlm | aafc941 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 221 | return td->check_constraints(td, sptr, app_errlog, app_key); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 222 | } |
| 223 | |
| 224 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 225 | /*** <<< STAT-DEFS [VariablePartSet] >>> ***/ |
| 226 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 227 | static asn_TYPE_member_t asn_MBR_vparts_2[] = { |
vlm | 2cebdf3 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 228 | { ATF_POINTER, 0, 0, |
vlm | 060fe2a | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 229 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 230 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 231 | .type = (void *)&asn_DEF_VariablePart, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 232 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 233 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 234 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 235 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 236 | static ber_tlv_tag_t asn_DEF_vparts_2_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 237 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 238 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 239 | static asn_SET_OF_specifics_t asn_SPC_vparts_2_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 240 | sizeof(struct vparts), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 241 | offsetof(struct vparts, _asn_ctx), |
vlm | 85d0ac3 | 2005-03-10 13:47:58 +0000 | [diff] [blame] | 242 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 243 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 244 | static /* Use -fall-defs-global to expose */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 245 | asn_TYPE_descriptor_t asn_DEF_vparts_2 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 246 | "vparts", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 247 | "vparts", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 248 | SEQUENCE_OF_free, |
| 249 | SEQUENCE_OF_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 250 | SEQUENCE_OF_constraint, |
| 251 | SEQUENCE_OF_decode_ber, |
| 252 | SEQUENCE_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 253 | SEQUENCE_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 254 | SEQUENCE_OF_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 255 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 256 | asn_DEF_vparts_2_tags, |
| 257 | sizeof(asn_DEF_vparts_2_tags) |
| 258 | /sizeof(asn_DEF_vparts_2_tags[0]), /* 1 */ |
| 259 | asn_DEF_vparts_2_tags, /* Same as above */ |
| 260 | sizeof(asn_DEF_vparts_2_tags) |
| 261 | /sizeof(asn_DEF_vparts_2_tags[0]), /* 1 */ |
| 262 | asn_MBR_vparts_2, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 263 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 264 | &asn_SPC_vparts_2_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 265 | }; |
| 266 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 267 | static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 268 | { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 269 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 270 | .tag_mode = 0, |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 271 | .type = (void *)&asn_DEF_vparts_2, |
| 272 | .memb_constraints = memb_vparts_1_constraint, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 273 | .name = "vparts" |
| 274 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 275 | { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 276 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 277 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 278 | .type = (void *)&asn_DEF_ActionItem, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 279 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 280 | .name = "resolution" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 281 | }, |
| 282 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 283 | static ber_tlv_tag_t asn_DEF_VariablePartSet_1_tags[] = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 284 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 285 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 286 | static asn_TYPE_tag2member_t asn_MAP_VariablePartSet_1_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 287 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 288 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution at 35 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 289 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 290 | static asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_1_specs = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 291 | sizeof(struct VariablePartSet), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 292 | offsetof(struct VariablePartSet, _asn_ctx), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 293 | asn_MAP_VariablePartSet_1_tag2el, |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 294 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 295 | 1, /* Start extensions */ |
| 296 | 3 /* Stop extensions */ |
| 297 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 298 | asn_TYPE_descriptor_t asn_DEF_VariablePartSet = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 299 | "VariablePartSet", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 300 | "VariablePartSet", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 301 | SEQUENCE_free, |
| 302 | SEQUENCE_print, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 303 | SEQUENCE_constraint, |
| 304 | SEQUENCE_decode_ber, |
| 305 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 306 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 307 | SEQUENCE_encode_xer, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 308 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 309 | asn_DEF_VariablePartSet_1_tags, |
| 310 | sizeof(asn_DEF_VariablePartSet_1_tags) |
| 311 | /sizeof(asn_DEF_VariablePartSet_1_tags[0]), /* 1 */ |
| 312 | asn_DEF_VariablePartSet_1_tags, /* Same as above */ |
| 313 | sizeof(asn_DEF_VariablePartSet_1_tags) |
| 314 | /sizeof(asn_DEF_VariablePartSet_1_tags[0]), /* 1 */ |
| 315 | asn_MBR_VariablePartSet_1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 316 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 317 | &asn_SPC_VariablePartSet_1_specs /* Additional specs */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 318 | }; |
| 319 | |
| 320 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 321 | /*** <<< INCLUDES [VariablePart] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 322 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 323 | #include <VisibleString.h> |
| 324 | #include <asn_SET_OF.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 325 | #include <constr_SET_OF.h> |
| 326 | #include <constr_SEQUENCE.h> |
| 327 | #include <constr_CHOICE.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 328 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 329 | /*** <<< DEPS [VariablePart] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 330 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 331 | typedef enum VariablePart_PR { |
| 332 | VariablePart_PR_NOTHING, /* No components present */ |
| 333 | VariablePart_PR_vset, |
| 334 | VariablePart_PR_vrange, |
| 335 | /* Extensions may appear below */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 336 | } VariablePart_PR; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 337 | |
| 338 | /*** <<< TYPE-DECLS [VariablePart] >>> ***/ |
| 339 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 340 | typedef struct VariablePart { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 341 | VariablePart_PR present; |
vlm | 2e77428 | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 342 | union VariablePart_u { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 343 | struct vset { |
| 344 | A_SET_OF(VisibleString_t) list; |
| 345 | |
| 346 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 347 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 348 | } vset; |
| 349 | struct vrange { |
| 350 | VisibleString_t from; |
| 351 | VisibleString_t to; |
| 352 | /* |
| 353 | * This type is extensible, |
| 354 | * possible extensions are below. |
| 355 | */ |
| 356 | |
| 357 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 358 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 359 | } vrange; |
| 360 | /* |
| 361 | * This type is extensible, |
| 362 | * possible extensions are below. |
| 363 | */ |
| 364 | } choice; |
| 365 | |
| 366 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 367 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 368 | } VariablePart_t; |
| 369 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 370 | /*** <<< FUNC-DECLS [VariablePart] >>> ***/ |
| 371 | |
| 372 | extern asn_TYPE_descriptor_t asn_DEF_VariablePart; |
| 373 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 374 | /*** <<< CODE [VariablePart] >>> ***/ |
| 375 | |
| 376 | static int |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 377 | memb_vset_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 378 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 379 | size_t size; |
| 380 | |
| 381 | if(!sptr) { |
| 382 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 383 | "%s: value not given (%s:%d)", |
| 384 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 385 | return -1; |
| 386 | } |
| 387 | |
vlm | 754a90f | 2005-07-04 02:03:57 +0000 | [diff] [blame] | 388 | /* Determine the number of elements */ |
| 389 | size = _A_CSET_FROM_VOID(sptr)->count; |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 390 | |
| 391 | if((size >= 1)) { |
vlm | 541def9 | 2005-03-29 19:05:37 +0000 | [diff] [blame] | 392 | /* Perform validation of the inner elements */ |
vlm | 481c8ed | 2005-03-31 21:52:53 +0000 | [diff] [blame] | 393 | return td->check_constraints(td, sptr, app_errlog, app_key); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 394 | } else { |
| 395 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 396 | "%s: constraint failed (%s:%d)", |
| 397 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 398 | return -1; |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 403 | /*** <<< STAT-DEFS [VariablePart] >>> ***/ |
| 404 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 405 | static asn_TYPE_member_t asn_MBR_vset_2[] = { |
vlm | 2cebdf3 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 406 | { ATF_POINTER, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 407 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 408 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 409 | .type = (void *)&asn_DEF_VisibleString, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 410 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 411 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 412 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 413 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 414 | static ber_tlv_tag_t asn_DEF_vset_2_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 415 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 416 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 417 | static asn_SET_OF_specifics_t asn_SPC_vset_2_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 418 | sizeof(struct vset), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 419 | offsetof(struct vset, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 420 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 421 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 422 | static /* Use -fall-defs-global to expose */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 423 | asn_TYPE_descriptor_t asn_DEF_vset_2 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 424 | "vset", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 425 | "vset", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 426 | SET_OF_free, |
| 427 | SET_OF_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 428 | SET_OF_constraint, |
| 429 | SET_OF_decode_ber, |
| 430 | SET_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 431 | SET_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 432 | SET_OF_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 433 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 434 | asn_DEF_vset_2_tags, |
| 435 | sizeof(asn_DEF_vset_2_tags) |
| 436 | /sizeof(asn_DEF_vset_2_tags[0]), /* 1 */ |
| 437 | asn_DEF_vset_2_tags, /* Same as above */ |
| 438 | sizeof(asn_DEF_vset_2_tags) |
| 439 | /sizeof(asn_DEF_vset_2_tags[0]), /* 1 */ |
| 440 | asn_MBR_vset_2, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 441 | 1, /* Single element */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 442 | &asn_SPC_vset_2_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 443 | }; |
| 444 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 445 | static asn_TYPE_member_t asn_MBR_vrange_4[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 446 | { ATF_NOFLAGS, 0, offsetof(struct vrange, from), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 447 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 448 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 449 | .type = (void *)&asn_DEF_VisibleString, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 450 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 451 | .name = "from" |
| 452 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 453 | { ATF_NOFLAGS, 0, offsetof(struct vrange, to), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 454 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 455 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 456 | .type = (void *)&asn_DEF_VisibleString, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 457 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 458 | .name = "to" |
| 459 | }, |
| 460 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 461 | static ber_tlv_tag_t asn_DEF_vrange_4_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 462 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 463 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 464 | static asn_TYPE_tag2member_t asn_MAP_vrange_4_tag2el[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 465 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 466 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 467 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 468 | static asn_SEQUENCE_specifics_t asn_SPC_vrange_4_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 469 | sizeof(struct vrange), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 470 | offsetof(struct vrange, _asn_ctx), |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 471 | asn_MAP_vrange_4_tag2el, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 472 | 2, /* Count of tags in the map */ |
| 473 | 1, /* Start extensions */ |
| 474 | 3 /* Stop extensions */ |
| 475 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 476 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 477 | asn_TYPE_descriptor_t asn_DEF_vrange_4 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 478 | "vrange", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 479 | "vrange", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 480 | SEQUENCE_free, |
| 481 | SEQUENCE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 482 | SEQUENCE_constraint, |
| 483 | SEQUENCE_decode_ber, |
| 484 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 485 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 486 | SEQUENCE_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 487 | 0, /* Use generic outmost tag fetcher */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 488 | asn_DEF_vrange_4_tags, |
| 489 | sizeof(asn_DEF_vrange_4_tags) |
| 490 | /sizeof(asn_DEF_vrange_4_tags[0]), /* 1 */ |
| 491 | asn_DEF_vrange_4_tags, /* Same as above */ |
| 492 | sizeof(asn_DEF_vrange_4_tags) |
| 493 | /sizeof(asn_DEF_vrange_4_tags[0]), /* 1 */ |
| 494 | asn_MBR_vrange_4, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 495 | 2, /* Elements count */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 496 | &asn_SPC_vrange_4_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 497 | }; |
| 498 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 499 | static asn_TYPE_member_t asn_MBR_VariablePart_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 500 | { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 501 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 502 | .tag_mode = 0, |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 503 | .type = (void *)&asn_DEF_vset_2, |
| 504 | .memb_constraints = memb_vset_1_constraint, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 505 | .name = "vset" |
| 506 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 507 | { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 508 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 509 | .tag_mode = 0, |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 510 | .type = (void *)&asn_DEF_vrange_4, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 511 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 512 | .name = "vrange" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 513 | }, |
| 514 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 515 | static asn_TYPE_tag2member_t asn_MAP_VariablePart_1_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 516 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 517 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset at 42 */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 518 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 519 | static asn_CHOICE_specifics_t asn_SPC_VariablePart_1_specs = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 520 | sizeof(struct VariablePart), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 521 | offsetof(struct VariablePart, _asn_ctx), |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 522 | offsetof(struct VariablePart, present), |
| 523 | sizeof(((struct VariablePart *)0)->present), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 524 | asn_MAP_VariablePart_1_tag2el, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 525 | 2, /* Count of tags in the map */ |
vlm | 27ee528 | 2004-07-01 00:49:55 +0000 | [diff] [blame] | 526 | 1 /* Whether extensible */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 527 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 528 | asn_TYPE_descriptor_t asn_DEF_VariablePart = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 529 | "VariablePart", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 530 | "VariablePart", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 531 | CHOICE_free, |
| 532 | CHOICE_print, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 533 | CHOICE_constraint, |
| 534 | CHOICE_decode_ber, |
| 535 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 536 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 537 | CHOICE_encode_xer, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 538 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 539 | 0, /* No effective tags (pointer) */ |
| 540 | 0, /* No effective tags (count) */ |
| 541 | 0, /* No tags (pointer) */ |
| 542 | 0, /* No tags (count) */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 543 | asn_MBR_VariablePart_1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 544 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 545 | &asn_SPC_VariablePart_1_specs /* Additional specs */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 546 | }; |
| 547 | |
| 548 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 549 | /*** <<< INCLUDES [ActionItem] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 550 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 551 | #include <ENUMERATED.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 552 | #include <BOOLEAN.h> |
| 553 | #include <VisibleString.h> |
| 554 | #include <asn_SET_OF.h> |
| 555 | #include <constr_SET_OF.h> |
| 556 | #include <constr_SEQUENCE.h> |
| 557 | |
| 558 | /*** <<< DEPS [ActionItem] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 559 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 560 | typedef enum accept_as { |
| 561 | accept_as_unknown = 0, |
| 562 | accept_as_safe = 1, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 563 | accept_as_unsafe = 2 |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 564 | /* |
| 565 | * Enumeration is extensible |
| 566 | */ |
| 567 | } accept_as_e; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 568 | |
| 569 | /*** <<< TYPE-DECLS [ActionItem] >>> ***/ |
| 570 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 571 | typedef struct ActionItem { |
| 572 | ENUMERATED_t accept_as; |
| 573 | struct notify { |
| 574 | BOOLEAN_t critical; |
| 575 | struct email { |
| 576 | A_SET_OF(VisibleString_t) list; |
| 577 | |
| 578 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 579 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 580 | } email; |
| 581 | /* |
| 582 | * This type is extensible, |
| 583 | * possible extensions are below. |
| 584 | */ |
| 585 | |
| 586 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 587 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 588 | } *notify; |
| 589 | /* |
| 590 | * This type is extensible, |
| 591 | * possible extensions are below. |
| 592 | */ |
| 593 | |
| 594 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 595 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 596 | } ActionItem_t; |
| 597 | |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 598 | /*** <<< FUNC-DECLS [ActionItem] >>> ***/ |
| 599 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 600 | /* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */ |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 601 | extern asn_TYPE_descriptor_t asn_DEF_ActionItem; |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 602 | |
| 603 | /*** <<< CODE [ActionItem] >>> ***/ |
| 604 | |
| 605 | static int |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 606 | accept_as_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 607 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 608 | /* Replace with underlying type checker */ |
| 609 | td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 610 | return td->check_constraints(td, sptr, app_errlog, app_key); |
| 611 | } |
| 612 | |
| 613 | /* |
| 614 | * This type is implemented using ENUMERATED, |
| 615 | * so here we adjust the DEF accordingly. |
| 616 | */ |
| 617 | static void |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 618 | accept_as_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 619 | td->free_struct = asn_DEF_ENUMERATED.free_struct; |
| 620 | td->print_struct = asn_DEF_ENUMERATED.print_struct; |
| 621 | td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder; |
| 622 | td->der_encoder = asn_DEF_ENUMERATED.der_encoder; |
| 623 | td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder; |
| 624 | td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder; |
| 625 | td->elements = asn_DEF_ENUMERATED.elements; |
| 626 | td->elements_count = asn_DEF_ENUMERATED.elements_count; |
vlm | 541def9 | 2005-03-29 19:05:37 +0000 | [diff] [blame] | 627 | /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 628 | } |
| 629 | |
| 630 | static void |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 631 | accept_as_2_free(asn_TYPE_descriptor_t *td, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 632 | void *struct_ptr, int contents_only) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 633 | accept_as_2_inherit_TYPE_descriptor(td); |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 634 | td->free_struct(td, struct_ptr, contents_only); |
| 635 | } |
| 636 | |
| 637 | static int |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 638 | accept_as_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 639 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 640 | accept_as_2_inherit_TYPE_descriptor(td); |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 641 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 642 | } |
| 643 | |
| 644 | static asn_dec_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 645 | accept_as_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
vlm | c04faea | 2005-03-17 21:57:19 +0000 | [diff] [blame] | 646 | void **structure, const void *bufptr, size_t size, int tag_mode) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 647 | accept_as_2_inherit_TYPE_descriptor(td); |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 648 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 649 | } |
| 650 | |
| 651 | static asn_enc_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 652 | accept_as_2_encode_der(asn_TYPE_descriptor_t *td, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 653 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 654 | asn_app_consume_bytes_f *cb, void *app_key) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 655 | accept_as_2_inherit_TYPE_descriptor(td); |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 656 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 657 | } |
| 658 | |
| 659 | static asn_dec_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 660 | accept_as_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
vlm | c04faea | 2005-03-17 21:57:19 +0000 | [diff] [blame] | 661 | void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 662 | accept_as_2_inherit_TYPE_descriptor(td); |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 663 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 664 | } |
| 665 | |
| 666 | static asn_enc_rval_t |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 667 | accept_as_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 668 | int ilevel, enum xer_encoder_flags_e flags, |
| 669 | asn_app_consume_bytes_f *cb, void *app_key) { |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 670 | accept_as_2_inherit_TYPE_descriptor(td); |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 671 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 672 | } |
| 673 | |
| 674 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 675 | /*** <<< STAT-DEFS [ActionItem] >>> ***/ |
| 676 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 677 | static asn_INTEGER_enum_map_t asn_MAP_accept_as_2_value2enum[] = { |
vlm | 56a1f3e | 2005-02-25 11:08:02 +0000 | [diff] [blame] | 678 | { 0, 7, "unknown" }, |
| 679 | { 1, 4, "safe" }, |
| 680 | { 2, 6, "unsafe" } |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 681 | /* This list is extensible */ |
| 682 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 683 | static unsigned int asn_MAP_accept_as_2_enum2value[] = { |
vlm | 56a1f3e | 2005-02-25 11:08:02 +0000 | [diff] [blame] | 684 | 1, /* safe(1) */ |
| 685 | 0, /* unknown(0) */ |
| 686 | 2 /* unsafe(2) */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 687 | /* This list is extensible */ |
| 688 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 689 | static asn_INTEGER_specifics_t asn_SPC_accept_as_2_specs = { |
| 690 | asn_MAP_accept_as_2_value2enum, /* "tag" => N; sorted by tag */ |
| 691 | asn_MAP_accept_as_2_enum2value, /* N => "tag"; sorted by N */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 692 | 3, /* Number of elements in the maps */ |
vlm | c018f36 | 2005-02-25 11:47:59 +0000 | [diff] [blame] | 693 | 1, /* Enumeration is extensible */ |
| 694 | 1 /* Strict enumeration */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 695 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 696 | static ber_tlv_tag_t asn_DEF_accept_as_2_tags[] = { |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 697 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 698 | }; |
| 699 | static /* Use -fall-defs-global to expose */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 700 | asn_TYPE_descriptor_t asn_DEF_accept_as_2 = { |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 701 | "accept-as", |
| 702 | "accept-as", |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 703 | accept_as_2_free, |
| 704 | accept_as_2_print, |
| 705 | accept_as_2_constraint, |
| 706 | accept_as_2_decode_ber, |
| 707 | accept_as_2_encode_der, |
| 708 | accept_as_2_decode_xer, |
| 709 | accept_as_2_encode_xer, |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 710 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 711 | asn_DEF_accept_as_2_tags, |
| 712 | sizeof(asn_DEF_accept_as_2_tags) |
| 713 | /sizeof(asn_DEF_accept_as_2_tags[0]), /* 1 */ |
| 714 | asn_DEF_accept_as_2_tags, /* Same as above */ |
| 715 | sizeof(asn_DEF_accept_as_2_tags) |
| 716 | /sizeof(asn_DEF_accept_as_2_tags[0]), /* 1 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 717 | 0, 0, /* Defined elsewhere */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 718 | &asn_SPC_accept_as_2_specs /* Additional specs */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 719 | }; |
| 720 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 721 | static asn_TYPE_member_t asn_MBR_email_9[] = { |
vlm | 2cebdf3 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 722 | { ATF_POINTER, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 723 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 724 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 725 | .type = (void *)&asn_DEF_VisibleString, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 726 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 727 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 728 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 729 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 730 | static ber_tlv_tag_t asn_DEF_email_9_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 731 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 732 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 733 | static asn_SET_OF_specifics_t asn_SPC_email_9_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 734 | sizeof(struct email), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 735 | offsetof(struct email, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 736 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 737 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 738 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 739 | asn_TYPE_descriptor_t asn_DEF_email_9 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 740 | "email", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 741 | "email", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 742 | SET_OF_free, |
| 743 | SET_OF_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 744 | SET_OF_constraint, |
| 745 | SET_OF_decode_ber, |
| 746 | SET_OF_encode_der, |
vlm | 9de212e | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 747 | SET_OF_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 748 | SET_OF_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 749 | 0, /* Use generic outmost tag fetcher */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 750 | asn_DEF_email_9_tags, |
| 751 | sizeof(asn_DEF_email_9_tags) |
| 752 | /sizeof(asn_DEF_email_9_tags[0]), /* 1 */ |
| 753 | asn_DEF_email_9_tags, /* Same as above */ |
| 754 | sizeof(asn_DEF_email_9_tags) |
| 755 | /sizeof(asn_DEF_email_9_tags[0]), /* 1 */ |
| 756 | asn_MBR_email_9, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 757 | 1, /* Single element */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 758 | &asn_SPC_email_9_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 759 | }; |
| 760 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 761 | static asn_TYPE_member_t asn_MBR_notify_7[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 762 | { ATF_NOFLAGS, 0, offsetof(struct notify, critical), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 763 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), |
| 764 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 765 | .type = (void *)&asn_DEF_BOOLEAN, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 766 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 767 | .name = "critical" |
| 768 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 769 | { ATF_NOFLAGS, 0, offsetof(struct notify, email), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 770 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 771 | .tag_mode = 0, |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 772 | .type = (void *)&asn_DEF_email_9, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 773 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 774 | .name = "email" |
| 775 | }, |
| 776 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 777 | static ber_tlv_tag_t asn_DEF_notify_7_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 778 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 779 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 780 | static asn_TYPE_tag2member_t asn_MAP_notify_7_tag2el[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 781 | { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 782 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 783 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 784 | static asn_SEQUENCE_specifics_t asn_SPC_notify_7_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 785 | sizeof(struct notify), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 786 | offsetof(struct notify, _asn_ctx), |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 787 | asn_MAP_notify_7_tag2el, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 788 | 2, /* Count of tags in the map */ |
| 789 | 1, /* Start extensions */ |
| 790 | 3 /* Stop extensions */ |
| 791 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 792 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 793 | asn_TYPE_descriptor_t asn_DEF_notify_7 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 794 | "notify", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 795 | "notify", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 796 | SEQUENCE_free, |
| 797 | SEQUENCE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 798 | SEQUENCE_constraint, |
| 799 | SEQUENCE_decode_ber, |
| 800 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 801 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 802 | SEQUENCE_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 803 | 0, /* Use generic outmost tag fetcher */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 804 | asn_DEF_notify_7_tags, |
| 805 | sizeof(asn_DEF_notify_7_tags) |
| 806 | /sizeof(asn_DEF_notify_7_tags[0]), /* 1 */ |
| 807 | asn_DEF_notify_7_tags, /* Same as above */ |
| 808 | sizeof(asn_DEF_notify_7_tags) |
| 809 | /sizeof(asn_DEF_notify_7_tags[0]), /* 1 */ |
| 810 | asn_MBR_notify_7, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 811 | 2, /* Elements count */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 812 | &asn_SPC_notify_7_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 813 | }; |
| 814 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 815 | static asn_TYPE_member_t asn_MBR_ActionItem_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 816 | { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 817 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 818 | .tag_mode = 0, |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 819 | .type = (void *)&asn_DEF_accept_as_2, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 820 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 821 | .name = "accept-as" |
| 822 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 823 | { ATF_POINTER, 1, offsetof(struct ActionItem, notify), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 824 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 825 | .tag_mode = 0, |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 826 | .type = (void *)&asn_DEF_notify_7, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 827 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 828 | .name = "notify" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 829 | }, |
| 830 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 831 | static ber_tlv_tag_t asn_DEF_ActionItem_1_tags[] = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 832 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 833 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 834 | static asn_TYPE_tag2member_t asn_MAP_ActionItem_1_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 835 | { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */ |
vlm | 6c70ec5 | 2005-02-25 08:17:56 +0000 | [diff] [blame] | 836 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify at 61 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 837 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 838 | static asn_SEQUENCE_specifics_t asn_SPC_ActionItem_1_specs = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 839 | sizeof(struct ActionItem), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 840 | offsetof(struct ActionItem, _asn_ctx), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 841 | asn_MAP_ActionItem_1_tag2el, |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 842 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 843 | 1, /* Start extensions */ |
| 844 | 3 /* Stop extensions */ |
| 845 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 846 | asn_TYPE_descriptor_t asn_DEF_ActionItem = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 847 | "ActionItem", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 848 | "ActionItem", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 849 | SEQUENCE_free, |
| 850 | SEQUENCE_print, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 851 | SEQUENCE_constraint, |
| 852 | SEQUENCE_decode_ber, |
| 853 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 854 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 855 | SEQUENCE_encode_xer, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 856 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 857 | asn_DEF_ActionItem_1_tags, |
| 858 | sizeof(asn_DEF_ActionItem_1_tags) |
| 859 | /sizeof(asn_DEF_ActionItem_1_tags[0]), /* 1 */ |
| 860 | asn_DEF_ActionItem_1_tags, /* Same as above */ |
| 861 | sizeof(asn_DEF_ActionItem_1_tags) |
| 862 | /sizeof(asn_DEF_ActionItem_1_tags[0]), /* 1 */ |
| 863 | asn_MBR_ActionItem_1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 864 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 865 | &asn_SPC_ActionItem_1_specs /* Additional specs */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 866 | }; |
| 867 | |