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