Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Programming] >>> ***/ |
| 3 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 4 | #include <asn_SEQUENCE_OF.h> |
| 5 | #include <constr_SEQUENCE_OF.h> |
| 6 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 7 | /*** <<< FWD-DECLS [Programming] >>> ***/ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 8 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 9 | struct Fault; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 10 | |
| 11 | /*** <<< TYPE-DECLS [Programming] >>> ***/ |
| 12 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 13 | typedef struct Programming { |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 14 | A_SEQUENCE_OF(struct Fault) list; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 15 | |
| 16 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 17 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 18 | } Programming_t; |
| 19 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 20 | /*** <<< FUNC-DECLS [Programming] >>> ***/ |
| 21 | |
| 22 | extern asn_TYPE_descriptor_t asn_DEF_Programming; |
| 23 | |
| 24 | /*** <<< POST-INCLUDE [Programming] >>> ***/ |
| 25 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 26 | #include "Fault.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 27 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 28 | /*** <<< STAT-DEFS [Programming] >>> ***/ |
| 29 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 30 | static asn_TYPE_member_t asn_MBR_Programming_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 31 | { ATF_POINTER, 0, 0, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 32 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 33 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 34 | .type = &asn_DEF_Fault, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 35 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 36 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 37 | .default_value = 0, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 38 | .name = "" |
| 39 | }, |
| 40 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 41 | static const ber_tlv_tag_t asn_DEF_Programming_tags_1[] = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 42 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 43 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 44 | static asn_SET_OF_specifics_t asn_SPC_Programming_specs_1 = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 45 | sizeof(struct Programming), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 46 | offsetof(struct Programming, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 47 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 48 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 49 | asn_TYPE_descriptor_t asn_DEF_Programming = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 50 | "Programming", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 51 | "Programming", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 52 | SEQUENCE_OF_free, |
| 53 | SEQUENCE_OF_print, |
| 54 | SEQUENCE_OF_constraint, |
| 55 | SEQUENCE_OF_decode_ber, |
| 56 | SEQUENCE_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 57 | SEQUENCE_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 58 | SEQUENCE_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 59 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 60 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 61 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 62 | asn_DEF_Programming_tags_1, |
| 63 | sizeof(asn_DEF_Programming_tags_1) |
| 64 | /sizeof(asn_DEF_Programming_tags_1[0]), /* 1 */ |
| 65 | asn_DEF_Programming_tags_1, /* Same as above */ |
| 66 | sizeof(asn_DEF_Programming_tags_1) |
| 67 | /sizeof(asn_DEF_Programming_tags_1[0]), /* 1 */ |
| 68 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 69 | asn_MBR_Programming_1, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 70 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 71 | &asn_SPC_Programming_specs_1 /* Additional specs */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 72 | }; |
| 73 | |
| 74 | |
| 75 | /*** <<< INCLUDES [Fault] >>> ***/ |
| 76 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 77 | #include <asn_SET_OF.h> |
| 78 | #include <constr_SET_OF.h> |
| 79 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 80 | /*** <<< FWD-DECLS [Fault] >>> ***/ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 81 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 82 | struct Error; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 83 | |
| 84 | /*** <<< TYPE-DECLS [Fault] >>> ***/ |
| 85 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 86 | typedef struct Fault { |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 87 | A_SET_OF(struct Error) list; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 88 | |
| 89 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 90 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 91 | } Fault_t; |
| 92 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 93 | /*** <<< FUNC-DECLS [Fault] >>> ***/ |
| 94 | |
| 95 | extern asn_TYPE_descriptor_t asn_DEF_Fault; |
| 96 | |
| 97 | /*** <<< POST-INCLUDE [Fault] >>> ***/ |
| 98 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 99 | #include "Error.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 100 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 101 | /*** <<< STAT-DEFS [Fault] >>> ***/ |
| 102 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 103 | static asn_TYPE_member_t asn_MBR_Fault_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 104 | { ATF_POINTER, 0, 0, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 105 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 106 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 107 | .type = &asn_DEF_Error, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 108 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 109 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 110 | .default_value = 0, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 111 | .name = "" |
| 112 | }, |
| 113 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 114 | static const ber_tlv_tag_t asn_DEF_Fault_tags_1[] = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 115 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 116 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 117 | static asn_SET_OF_specifics_t asn_SPC_Fault_specs_1 = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 118 | sizeof(struct Fault), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 119 | offsetof(struct Fault, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 120 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 121 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 122 | asn_TYPE_descriptor_t asn_DEF_Fault = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 123 | "Fault", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 124 | "Fault", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 125 | SET_OF_free, |
| 126 | SET_OF_print, |
| 127 | SET_OF_constraint, |
| 128 | SET_OF_decode_ber, |
| 129 | SET_OF_encode_der, |
Lev Walkin | b223080 | 2005-02-14 20:31:31 +0000 | [diff] [blame] | 130 | SET_OF_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 131 | SET_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 132 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 133 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 134 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 135 | asn_DEF_Fault_tags_1, |
| 136 | sizeof(asn_DEF_Fault_tags_1) |
| 137 | /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */ |
| 138 | asn_DEF_Fault_tags_1, /* Same as above */ |
| 139 | sizeof(asn_DEF_Fault_tags_1) |
| 140 | /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */ |
| 141 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 142 | asn_MBR_Fault_1, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 143 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 144 | &asn_SPC_Fault_specs_1 /* Additional specs */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 145 | }; |
| 146 | |
| 147 | |
| 148 | /*** <<< INCLUDES [Error] >>> ***/ |
| 149 | |
| 150 | #include <constr_SEQUENCE.h> |
| 151 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 152 | /*** <<< TYPE-DECLS [Error] >>> ***/ |
| 153 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 154 | typedef struct Error { |
| 155 | /* |
| 156 | * This type is extensible, |
| 157 | * possible extensions are below. |
| 158 | */ |
| 159 | |
| 160 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 161 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 162 | } Error_t; |
| 163 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 164 | /*** <<< FUNC-DECLS [Error] >>> ***/ |
| 165 | |
| 166 | extern asn_TYPE_descriptor_t asn_DEF_Error; |
| 167 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 168 | /*** <<< STAT-DEFS [Error] >>> ***/ |
| 169 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 170 | static const ber_tlv_tag_t asn_DEF_Error_tags_1[] = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 171 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 172 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 173 | static asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1 = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 174 | sizeof(struct Error), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 175 | offsetof(struct Error, _asn_ctx), |
Lev Walkin | b3ee6a6 | 2005-05-27 21:58:41 +0000 | [diff] [blame] | 176 | 0, /* No top level tags */ |
| 177 | 0, /* No tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 178 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 179 | -1, /* Start extensions */ |
| 180 | -1 /* Stop extensions */ |
| 181 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 182 | asn_TYPE_descriptor_t asn_DEF_Error = { |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 183 | "Error", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 184 | "Error", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 185 | SEQUENCE_free, |
| 186 | SEQUENCE_print, |
| 187 | SEQUENCE_constraint, |
| 188 | SEQUENCE_decode_ber, |
| 189 | SEQUENCE_encode_der, |
Lev Walkin | 61b40d8 | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 190 | SEQUENCE_decode_xer, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 191 | SEQUENCE_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 192 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 193 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 194 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 195 | asn_DEF_Error_tags_1, |
| 196 | sizeof(asn_DEF_Error_tags_1) |
| 197 | /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */ |
| 198 | asn_DEF_Error_tags_1, /* Same as above */ |
| 199 | sizeof(asn_DEF_Error_tags_1) |
| 200 | /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */ |
| 201 | 0, /* No PER visible constraints */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 202 | 0, 0, /* No members */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 203 | &asn_SPC_Error_specs_1 /* Additional specs */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 204 | }; |
| 205 | |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 206 | |
| 207 | /*** <<< INCLUDES [SeqWithMandatory] >>> ***/ |
| 208 | |
| 209 | #include <UTF8String.h> |
| 210 | #include <asn_SEQUENCE_OF.h> |
| 211 | #include <constr_SEQUENCE_OF.h> |
| 212 | #include <constr_SEQUENCE.h> |
| 213 | |
| 214 | /*** <<< FWD-DECLS [SeqWithMandatory] >>> ***/ |
| 215 | |
| 216 | struct Error; |
| 217 | |
| 218 | /*** <<< TYPE-DECLS [SeqWithMandatory] >>> ***/ |
| 219 | |
| 220 | typedef struct SeqWithMandatory { |
| 221 | UTF8String_t someString; |
| 222 | struct seqOfMan { |
| 223 | A_SEQUENCE_OF(struct Error) list; |
| 224 | |
| 225 | /* Context for parsing across buffer boundaries */ |
| 226 | asn_struct_ctx_t _asn_ctx; |
| 227 | } seqOfMan; |
| 228 | |
| 229 | /* Context for parsing across buffer boundaries */ |
| 230 | asn_struct_ctx_t _asn_ctx; |
| 231 | } SeqWithMandatory_t; |
| 232 | |
| 233 | /*** <<< FUNC-DECLS [SeqWithMandatory] >>> ***/ |
| 234 | |
| 235 | extern asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory; |
| 236 | |
| 237 | /*** <<< POST-INCLUDE [SeqWithMandatory] >>> ***/ |
| 238 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 239 | #include "Error.h" |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 240 | |
| 241 | /*** <<< STAT-DEFS [SeqWithMandatory] >>> ***/ |
| 242 | |
| 243 | static asn_TYPE_member_t asn_MBR_seqOfMan_3[] = { |
| 244 | { ATF_POINTER, 0, 0, |
| 245 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 246 | .tag_mode = 0, |
| 247 | .type = &asn_DEF_Error, |
| 248 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 249 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 250 | .default_value = 0, |
| 251 | .name = "" |
| 252 | }, |
| 253 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 254 | static const ber_tlv_tag_t asn_DEF_seqOfMan_tags_3[] = { |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 255 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 256 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 257 | }; |
| 258 | static asn_SET_OF_specifics_t asn_SPC_seqOfMan_specs_3 = { |
| 259 | sizeof(struct seqOfMan), |
| 260 | offsetof(struct seqOfMan, _asn_ctx), |
| 261 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 262 | }; |
| 263 | static /* Use -fall-defs-global to expose */ |
| 264 | asn_TYPE_descriptor_t asn_DEF_seqOfMan_3 = { |
| 265 | "seqOfMan", |
| 266 | "seqOfMan", |
| 267 | SEQUENCE_OF_free, |
| 268 | SEQUENCE_OF_print, |
| 269 | SEQUENCE_OF_constraint, |
| 270 | SEQUENCE_OF_decode_ber, |
| 271 | SEQUENCE_OF_encode_der, |
| 272 | SEQUENCE_OF_decode_xer, |
| 273 | SEQUENCE_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 274 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 275 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 276 | 0, /* Use generic outmost tag fetcher */ |
| 277 | asn_DEF_seqOfMan_tags_3, |
| 278 | sizeof(asn_DEF_seqOfMan_tags_3) |
| 279 | /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */ |
| 280 | asn_DEF_seqOfMan_tags_3, /* Same as above */ |
| 281 | sizeof(asn_DEF_seqOfMan_tags_3) |
| 282 | /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */ |
| 283 | 0, /* No PER visible constraints */ |
| 284 | asn_MBR_seqOfMan_3, |
| 285 | 1, /* Single element */ |
| 286 | &asn_SPC_seqOfMan_specs_3 /* Additional specs */ |
| 287 | }; |
| 288 | |
| 289 | static asn_TYPE_member_t asn_MBR_SeqWithMandatory_1[] = { |
| 290 | { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, someString), |
| 291 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), |
| 292 | .tag_mode = 0, |
| 293 | .type = &asn_DEF_UTF8String, |
| 294 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 295 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 296 | .default_value = 0, |
| 297 | .name = "someString" |
| 298 | }, |
| 299 | { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, seqOfMan), |
| 300 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 301 | .tag_mode = 0, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 302 | .type = &asn_DEF_seqOfMan_3, |
| 303 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 304 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 305 | .default_value = 0, |
| 306 | .name = "seqOfMan" |
| 307 | }, |
| 308 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 309 | static const ber_tlv_tag_t asn_DEF_SeqWithMandatory_tags_1[] = { |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 310 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 311 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 312 | static const asn_TYPE_tag2member_t asn_MAP_SeqWithMandatory_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 313 | { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */ |
| 314 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan */ |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 315 | }; |
| 316 | static asn_SEQUENCE_specifics_t asn_SPC_SeqWithMandatory_specs_1 = { |
| 317 | sizeof(struct SeqWithMandatory), |
| 318 | offsetof(struct SeqWithMandatory, _asn_ctx), |
| 319 | asn_MAP_SeqWithMandatory_tag2el_1, |
| 320 | 2, /* Count of tags in the map */ |
| 321 | 0, 0, 0, /* Optional elements (not needed) */ |
| 322 | -1, /* Start extensions */ |
| 323 | -1 /* Stop extensions */ |
| 324 | }; |
| 325 | asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory = { |
| 326 | "SeqWithMandatory", |
| 327 | "SeqWithMandatory", |
| 328 | SEQUENCE_free, |
| 329 | SEQUENCE_print, |
| 330 | SEQUENCE_constraint, |
| 331 | SEQUENCE_decode_ber, |
| 332 | SEQUENCE_encode_der, |
| 333 | SEQUENCE_decode_xer, |
| 334 | SEQUENCE_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 335 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 336 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 337 | 0, /* Use generic outmost tag fetcher */ |
| 338 | asn_DEF_SeqWithMandatory_tags_1, |
| 339 | sizeof(asn_DEF_SeqWithMandatory_tags_1) |
| 340 | /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */ |
| 341 | asn_DEF_SeqWithMandatory_tags_1, /* Same as above */ |
| 342 | sizeof(asn_DEF_SeqWithMandatory_tags_1) |
| 343 | /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */ |
| 344 | 0, /* No PER visible constraints */ |
| 345 | asn_MBR_SeqWithMandatory_1, |
| 346 | 2, /* Elements count */ |
| 347 | &asn_SPC_SeqWithMandatory_specs_1 /* Additional specs */ |
| 348 | }; |
| 349 | |
| 350 | |
| 351 | /*** <<< INCLUDES [SeqWithOptional] >>> ***/ |
| 352 | |
| 353 | #include <UTF8String.h> |
| 354 | #include <asn_SEQUENCE_OF.h> |
| 355 | #include <constr_SEQUENCE_OF.h> |
| 356 | #include <constr_SEQUENCE.h> |
| 357 | |
| 358 | /*** <<< FWD-DECLS [SeqWithOptional] >>> ***/ |
| 359 | |
| 360 | struct Error; |
| 361 | |
| 362 | /*** <<< TYPE-DECLS [SeqWithOptional] >>> ***/ |
| 363 | |
| 364 | typedef struct SeqWithOptional { |
| 365 | UTF8String_t someString; |
| 366 | struct seqOfOpt { |
| 367 | A_SEQUENCE_OF(struct Error) list; |
| 368 | |
| 369 | /* Context for parsing across buffer boundaries */ |
| 370 | asn_struct_ctx_t _asn_ctx; |
| 371 | } *seqOfOpt; |
| 372 | |
| 373 | /* Context for parsing across buffer boundaries */ |
| 374 | asn_struct_ctx_t _asn_ctx; |
| 375 | } SeqWithOptional_t; |
| 376 | |
| 377 | /*** <<< FUNC-DECLS [SeqWithOptional] >>> ***/ |
| 378 | |
| 379 | extern asn_TYPE_descriptor_t asn_DEF_SeqWithOptional; |
| 380 | |
| 381 | /*** <<< POST-INCLUDE [SeqWithOptional] >>> ***/ |
| 382 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 383 | #include "Error.h" |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 384 | |
| 385 | /*** <<< STAT-DEFS [SeqWithOptional] >>> ***/ |
| 386 | |
| 387 | static asn_TYPE_member_t asn_MBR_seqOfOpt_3[] = { |
| 388 | { ATF_POINTER, 0, 0, |
| 389 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 390 | .tag_mode = 0, |
| 391 | .type = &asn_DEF_Error, |
| 392 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 393 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 394 | .default_value = 0, |
| 395 | .name = "" |
| 396 | }, |
| 397 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 398 | static const ber_tlv_tag_t asn_DEF_seqOfOpt_tags_3[] = { |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 399 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 400 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 401 | }; |
| 402 | static asn_SET_OF_specifics_t asn_SPC_seqOfOpt_specs_3 = { |
| 403 | sizeof(struct seqOfOpt), |
| 404 | offsetof(struct seqOfOpt, _asn_ctx), |
| 405 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 406 | }; |
| 407 | static /* Use -fall-defs-global to expose */ |
| 408 | asn_TYPE_descriptor_t asn_DEF_seqOfOpt_3 = { |
| 409 | "seqOfOpt", |
| 410 | "seqOfOpt", |
| 411 | SEQUENCE_OF_free, |
| 412 | SEQUENCE_OF_print, |
| 413 | SEQUENCE_OF_constraint, |
| 414 | SEQUENCE_OF_decode_ber, |
| 415 | SEQUENCE_OF_encode_der, |
| 416 | SEQUENCE_OF_decode_xer, |
| 417 | SEQUENCE_OF_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 418 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 419 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 420 | 0, /* Use generic outmost tag fetcher */ |
| 421 | asn_DEF_seqOfOpt_tags_3, |
| 422 | sizeof(asn_DEF_seqOfOpt_tags_3) |
| 423 | /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */ |
| 424 | asn_DEF_seqOfOpt_tags_3, /* Same as above */ |
| 425 | sizeof(asn_DEF_seqOfOpt_tags_3) |
| 426 | /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */ |
| 427 | 0, /* No PER visible constraints */ |
| 428 | asn_MBR_seqOfOpt_3, |
| 429 | 1, /* Single element */ |
| 430 | &asn_SPC_seqOfOpt_specs_3 /* Additional specs */ |
| 431 | }; |
| 432 | |
| 433 | static asn_TYPE_member_t asn_MBR_SeqWithOptional_1[] = { |
| 434 | { ATF_NOFLAGS, 0, offsetof(struct SeqWithOptional, someString), |
| 435 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), |
| 436 | .tag_mode = 0, |
| 437 | .type = &asn_DEF_UTF8String, |
| 438 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 439 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 440 | .default_value = 0, |
| 441 | .name = "someString" |
| 442 | }, |
| 443 | { ATF_POINTER, 1, offsetof(struct SeqWithOptional, seqOfOpt), |
| 444 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
Lev Walkin | 9ab21b8 | 2006-10-19 02:46:01 +0000 | [diff] [blame] | 445 | .tag_mode = 0, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 446 | .type = &asn_DEF_seqOfOpt_3, |
| 447 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 448 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 449 | .default_value = 0, |
| 450 | .name = "seqOfOpt" |
| 451 | }, |
| 452 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 453 | static const ber_tlv_tag_t asn_DEF_SeqWithOptional_tags_1[] = { |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 454 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 455 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 456 | static const asn_TYPE_tag2member_t asn_MAP_SeqWithOptional_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 457 | { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */ |
| 458 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt */ |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 459 | }; |
| 460 | static asn_SEQUENCE_specifics_t asn_SPC_SeqWithOptional_specs_1 = { |
| 461 | sizeof(struct SeqWithOptional), |
| 462 | offsetof(struct SeqWithOptional, _asn_ctx), |
| 463 | asn_MAP_SeqWithOptional_tag2el_1, |
| 464 | 2, /* Count of tags in the map */ |
| 465 | 0, 0, 0, /* Optional elements (not needed) */ |
| 466 | -1, /* Start extensions */ |
| 467 | -1 /* Stop extensions */ |
| 468 | }; |
| 469 | asn_TYPE_descriptor_t asn_DEF_SeqWithOptional = { |
| 470 | "SeqWithOptional", |
| 471 | "SeqWithOptional", |
| 472 | SEQUENCE_free, |
| 473 | SEQUENCE_print, |
| 474 | SEQUENCE_constraint, |
| 475 | SEQUENCE_decode_ber, |
| 476 | SEQUENCE_encode_der, |
| 477 | SEQUENCE_decode_xer, |
| 478 | SEQUENCE_encode_xer, |
Lev Walkin | 9f5bb3a | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 479 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 480 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 481 | 0, /* Use generic outmost tag fetcher */ |
| 482 | asn_DEF_SeqWithOptional_tags_1, |
| 483 | sizeof(asn_DEF_SeqWithOptional_tags_1) |
| 484 | /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */ |
| 485 | asn_DEF_SeqWithOptional_tags_1, /* Same as above */ |
| 486 | sizeof(asn_DEF_SeqWithOptional_tags_1) |
| 487 | /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */ |
| 488 | 0, /* No PER visible constraints */ |
| 489 | asn_MBR_SeqWithOptional_1, |
| 490 | 2, /* Elements count */ |
| 491 | &asn_SPC_SeqWithOptional_specs_1 /* Additional specs */ |
| 492 | }; |
| 493 | |