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