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