blob: 491ae7eb03afcd267e5abe442007055c109e0d6d [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
Lev Walkinb47ddce2004-08-11 05:25:47 +00002/*** <<< INCLUDES [LogLine] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +00003
Lev Walkinf15320b2004-06-03 03:38:44 +00004#include <IA5String.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00005#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +00006#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00007#include <constr_SEQUENCE.h>
8
Lev Walkinc8285712005-03-04 22:18:20 +00009/*** <<< FWD-DECLS [LogLine] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +000010
Lev Walkinbf56d542005-03-04 23:50:56 +000011struct VariablePartSet;
Lev Walkinf15320b2004-06-03 03:38:44 +000012
13/*** <<< TYPE-DECLS [LogLine] >>> ***/
14
Lev Walkinf15320b2004-06-03 03:38:44 +000015typedef struct LogLine {
16 IA5String_t line_digest;
17 struct varsets {
Lev Walkinc8285712005-03-04 22:18:20 +000018 A_SEQUENCE_OF(struct VariablePartSet) list;
Lev Walkinf15320b2004-06-03 03:38:44 +000019
20 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000021 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +000022 } varsets;
23 /*
24 * This type is extensible,
25 * possible extensions are below.
26 */
27
28 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000029 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +000030} LogLine_t;
31
Lev Walkinc8285712005-03-04 22:18:20 +000032/*** <<< FUNC-DECLS [LogLine] >>> ***/
33
34extern asn_TYPE_descriptor_t asn_DEF_LogLine;
35
36/*** <<< POST-INCLUDE [LogLine] >>> ***/
37
Lev Walkin22b5ed42006-09-13 02:51:20 +000038#include "VariablePartSet.h"
Lev Walkinc8285712005-03-04 22:18:20 +000039
Lev Walkin2e3055d2004-08-20 13:36:32 +000040/*** <<< CODE [LogLine] >>> ***/
41
42static int
Lev Walkin59b176e2005-11-26 11:25:14 +000043memb_varsets_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000044 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +000045 size_t size;
46
47 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070048 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +000049 "%s: value not given (%s:%d)",
50 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +000051 return -1;
52 }
53
Lev Walkin66d542b2005-07-04 02:03:57 +000054 /* Determine the number of elements */
55 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +000056
57 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +000058 /* Perform validation of the inner elements */
Lev Walkin739d9bf2006-07-13 13:28:32 +000059 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +000060 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -070061 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +000062 "%s: constraint failed (%s:%d)",
63 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +000064 return -1;
65 }
66}
67
68
Lev Walkinf15320b2004-06-03 03:38:44 +000069/*** <<< STAT-DEFS [LogLine] >>> ***/
70
Lev Walkine8318b82005-03-06 09:29:03 +000071static asn_TYPE_member_t asn_MBR_varsets_3[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000072 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000073 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
74 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000075 .type = &asn_DEF_VariablePartSet,
Lev Walkinba58e1b2005-01-17 12:20:19 +000076 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040077 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000078 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
79 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000080 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +000081 },
Lev Walkin2e3055d2004-08-20 13:36:32 +000082};
Lev Walkina7591b52014-10-12 18:37:35 -070083static const ber_tlv_tag_t asn_DEF_varsets_tags_3[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000084 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
85};
Lev Walkin59b176e2005-11-26 11:25:14 +000086static asn_SET_OF_specifics_t asn_SPC_varsets_specs_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000087 sizeof(struct varsets),
Lev Walkindfae9752004-09-29 13:19:37 +000088 offsetof(struct varsets, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000089 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +000090};
Lev Walkind04430c2004-09-07 06:44:29 +000091static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +000092asn_TYPE_descriptor_t asn_DEF_varsets_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000093 "varsets",
Lev Walkindc06f6b2004-10-20 15:50:55 +000094 "varsets",
Lev Walkina9cc46e2004-09-22 16:06:28 +000095 SEQUENCE_OF_free,
96 SEQUENCE_OF_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +000097 SEQUENCE_OF_constraint,
98 SEQUENCE_OF_decode_ber,
99 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000100 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000101 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700102 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400103 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000104 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000105 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 Walkinb33425f2017-07-14 14:59:52 +0400111 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000112 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000113 asn_MBR_varsets_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000114 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000115 &asn_SPC_varsets_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000116};
117
Lev Walkine0272aa2005-03-04 11:26:08 +0000118static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000119 { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000120 .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
121 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000122 .type = &asn_DEF_IA5String,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000123 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400124 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000125 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
126 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000127 .name = "line-digest"
128 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000129 { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000130 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
131 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000132 .type = &asn_DEF_varsets_3,
Lev Walkin59b176e2005-11-26 11:25:14 +0000133 .memb_constraints = memb_varsets_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400134 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000135 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
136 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000137 .name = "varsets"
Lev Walkinf15320b2004-06-03 03:38:44 +0000138 },
139};
Lev Walkina7591b52014-10-12 18:37:35 -0700140static const ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000141 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
142};
Lev Walkina7591b52014-10-12 18:37:35 -0700143static const asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700144 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */
145 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000146};
Lev Walkin59b176e2005-11-26 11:25:14 +0000147static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000148 sizeof(struct LogLine),
Lev Walkindfae9752004-09-29 13:19:37 +0000149 offsetof(struct LogLine, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000150 asn_MAP_LogLine_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000151 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000152 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000153 1, /* Start extensions */
154 3 /* Stop extensions */
155};
Lev Walkindfae9752004-09-29 13:19:37 +0000156asn_TYPE_descriptor_t asn_DEF_LogLine = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000157 "LogLine",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000158 "LogLine",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000159 SEQUENCE_free,
160 SEQUENCE_print,
Lev Walkinf15320b2004-06-03 03:38:44 +0000161 SEQUENCE_constraint,
162 SEQUENCE_decode_ber,
163 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000164 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000165 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700166 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400167 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000168 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000169 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 Walkinb33425f2017-07-14 14:59:52 +0400175 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000176 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000177 asn_MBR_LogLine_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000178 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000179 &asn_SPC_LogLine_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000180};
181
182
Lev Walkinb47ddce2004-08-11 05:25:47 +0000183/*** <<< INCLUDES [VariablePartSet] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000184
Lev Walkin22b5ed42006-09-13 02:51:20 +0000185#include "ActionItem.h"
Lev Walkinf15320b2004-06-03 03:38:44 +0000186#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000187#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000188#include <constr_SEQUENCE.h>
189
Lev Walkinc8285712005-03-04 22:18:20 +0000190/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +0000191
Lev Walkinbf56d542005-03-04 23:50:56 +0000192struct VariablePart;
Lev Walkinf15320b2004-06-03 03:38:44 +0000193
194/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
195
Lev Walkinf15320b2004-06-03 03:38:44 +0000196typedef struct VariablePartSet {
197 struct vparts {
Lev Walkinc8285712005-03-04 22:18:20 +0000198 A_SEQUENCE_OF(struct VariablePart) list;
Lev Walkinf15320b2004-06-03 03:38:44 +0000199
200 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000201 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000202 } 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 Walkindfae9752004-09-29 13:19:37 +0000210 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000211} VariablePartSet_t;
212
Lev Walkinc8285712005-03-04 22:18:20 +0000213/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
214
215extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800216extern asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1;
217extern asn_TYPE_member_t asn_MBR_VariablePartSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000218
219/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
220
Lev Walkin22b5ed42006-09-13 02:51:20 +0000221#include "VariablePart.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000222
Lev Walkin2e3055d2004-08-20 13:36:32 +0000223/*** <<< CODE [VariablePartSet] >>> ***/
224
225static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000226memb_vparts_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000227 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000228
229 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700230 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000231 "%s: value not given (%s:%d)",
232 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000233 return -1;
234 }
235
236
237 if(1 /* No applicable constraints whatsoever */) {
238 /* Nothing is here. See below */
239 }
240
Lev Walkin1eded352006-07-13 11:19:01 +0000241 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000242}
243
244
Lev Walkinf15320b2004-06-03 03:38:44 +0000245/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
246
Lev Walkine0272aa2005-03-04 11:26:08 +0000247static asn_TYPE_member_t asn_MBR_vparts_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000248 { ATF_POINTER, 0, 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000249 .tag = -1 /* Ambiguous tag (CHOICE?) */,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000250 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000251 .type = &asn_DEF_VariablePart,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000252 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400253 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000254 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
255 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000256 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000257 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000258};
Lev Walkina7591b52014-10-12 18:37:35 -0700259static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000260 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
261};
Lev Walkin59b176e2005-11-26 11:25:14 +0000262static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000263 sizeof(struct vparts),
Lev Walkindfae9752004-09-29 13:19:37 +0000264 offsetof(struct vparts, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000265 2, /* XER encoding is XMLValueList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000266};
Lev Walkind04430c2004-09-07 06:44:29 +0000267static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000268asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000269 "vparts",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000270 "vparts",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000271 SEQUENCE_OF_free,
272 SEQUENCE_OF_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000273 SEQUENCE_OF_constraint,
274 SEQUENCE_OF_decode_ber,
275 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000276 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000277 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700278 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400279 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000280 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000281 asn_DEF_vparts_tags_2,
282 sizeof(asn_DEF_vparts_tags_2)
283 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
284 asn_DEF_vparts_tags_2, /* Same as above */
285 sizeof(asn_DEF_vparts_tags_2)
286 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400287 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000288 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000289 asn_MBR_vparts_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000290 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000291 &asn_SPC_vparts_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000292};
293
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800294asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000295 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000296 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
297 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000298 .type = &asn_DEF_vparts_2,
Lev Walkin59b176e2005-11-26 11:25:14 +0000299 .memb_constraints = memb_vparts_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400300 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000301 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
302 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000303 .name = "vparts"
304 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000305 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000306 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
307 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000308 .type = &asn_DEF_ActionItem,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000309 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400310 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000311 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
312 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000313 .name = "resolution"
Lev Walkinf15320b2004-06-03 03:38:44 +0000314 },
315};
Lev Walkina7591b52014-10-12 18:37:35 -0700316static const ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000317 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
318};
Lev Walkina7591b52014-10-12 18:37:35 -0700319static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700320 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */
321 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000322};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800323asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000324 sizeof(struct VariablePartSet),
Lev Walkindfae9752004-09-29 13:19:37 +0000325 offsetof(struct VariablePartSet, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000326 asn_MAP_VariablePartSet_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000327 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000328 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000329 1, /* Start extensions */
330 3 /* Stop extensions */
331};
Lev Walkindfae9752004-09-29 13:19:37 +0000332asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000333 "VariablePartSet",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000334 "VariablePartSet",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000335 SEQUENCE_free,
336 SEQUENCE_print,
Lev Walkinf15320b2004-06-03 03:38:44 +0000337 SEQUENCE_constraint,
338 SEQUENCE_decode_ber,
339 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000340 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000341 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700342 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400343 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000344 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000345 asn_DEF_VariablePartSet_tags_1,
346 sizeof(asn_DEF_VariablePartSet_tags_1)
347 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
348 asn_DEF_VariablePartSet_tags_1, /* Same as above */
349 sizeof(asn_DEF_VariablePartSet_tags_1)
350 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400351 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000352 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000353 asn_MBR_VariablePartSet_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000354 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000355 &asn_SPC_VariablePartSet_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000356};
357
358
Lev Walkinb47ddce2004-08-11 05:25:47 +0000359/*** <<< INCLUDES [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000360
Lev Walkinf15320b2004-06-03 03:38:44 +0000361#include <VisibleString.h>
362#include <asn_SET_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000363#include <constr_SET_OF.h>
364#include <constr_SEQUENCE.h>
365#include <constr_CHOICE.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000366
Lev Walkinb47ddce2004-08-11 05:25:47 +0000367/*** <<< DEPS [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000368
Lev Walkinb47ddce2004-08-11 05:25:47 +0000369typedef enum VariablePart_PR {
370 VariablePart_PR_NOTHING, /* No components present */
371 VariablePart_PR_vset,
johvik792216e2017-04-11 10:42:21 +0200372 VariablePart_PR_vrange
Lev Walkinb47ddce2004-08-11 05:25:47 +0000373 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000374
Lev Walkin64399722004-08-11 07:17:22 +0000375} VariablePart_PR;
Lev Walkinf15320b2004-06-03 03:38:44 +0000376
377/*** <<< TYPE-DECLS [VariablePart] >>> ***/
378
Lev Walkinf15320b2004-06-03 03:38:44 +0000379typedef struct VariablePart {
Lev Walkin64399722004-08-11 07:17:22 +0000380 VariablePart_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000381 union VariablePart_u {
Lev Walkinf15320b2004-06-03 03:38:44 +0000382 struct vset {
383 A_SET_OF(VisibleString_t) list;
384
385 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000386 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000387 } vset;
388 struct vrange {
389 VisibleString_t from;
390 VisibleString_t to;
391 /*
392 * This type is extensible,
393 * possible extensions are below.
394 */
395
396 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000397 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000398 } vrange;
399 /*
400 * This type is extensible,
401 * possible extensions are below.
402 */
403 } choice;
404
405 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000406 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000407} VariablePart_t;
408
Lev Walkinc8285712005-03-04 22:18:20 +0000409/*** <<< FUNC-DECLS [VariablePart] >>> ***/
410
411extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800412extern asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1;
413extern asn_TYPE_member_t asn_MBR_VariablePart_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000414
Lev Walkin2e3055d2004-08-20 13:36:32 +0000415/*** <<< CODE [VariablePart] >>> ***/
416
417static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000418memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000419 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000420 size_t size;
421
422 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700423 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000424 "%s: value not given (%s:%d)",
425 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000426 return -1;
427 }
428
Lev Walkin66d542b2005-07-04 02:03:57 +0000429 /* Determine the number of elements */
430 size = _A_CSET_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +0000431
432 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +0000433 /* Perform validation of the inner elements */
Lev Walkin739d9bf2006-07-13 13:28:32 +0000434 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000435 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700436 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000437 "%s: constraint failed (%s:%d)",
438 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000439 return -1;
440 }
441}
442
443
Lev Walkinf15320b2004-06-03 03:38:44 +0000444/*** <<< STAT-DEFS [VariablePart] >>> ***/
445
Lev Walkine0272aa2005-03-04 11:26:08 +0000446static asn_TYPE_member_t asn_MBR_vset_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000447 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000448 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
449 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000450 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000451 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400452 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000453 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
454 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000455 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000456 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000457};
Lev Walkina7591b52014-10-12 18:37:35 -0700458static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000459 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
460};
Lev Walkin59b176e2005-11-26 11:25:14 +0000461static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000462 sizeof(struct vset),
Lev Walkindfae9752004-09-29 13:19:37 +0000463 offsetof(struct vset, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000464 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000465};
Lev Walkind04430c2004-09-07 06:44:29 +0000466static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000467asn_TYPE_descriptor_t asn_DEF_vset_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000468 "vset",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000469 "vset",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000470 SET_OF_free,
471 SET_OF_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000472 SET_OF_constraint,
473 SET_OF_decode_ber,
474 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000475 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000476 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700477 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400478 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000479 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000480 asn_DEF_vset_tags_2,
481 sizeof(asn_DEF_vset_tags_2)
482 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
483 asn_DEF_vset_tags_2, /* Same as above */
484 sizeof(asn_DEF_vset_tags_2)
485 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400486 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000487 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000488 asn_MBR_vset_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000489 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000490 &asn_SPC_vset_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000491};
492
Lev Walkine8318b82005-03-06 09:29:03 +0000493static asn_TYPE_member_t asn_MBR_vrange_4[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000494 { ATF_NOFLAGS, 0, offsetof(struct vrange, from),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000495 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
496 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000497 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000498 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400499 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000500 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
501 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000502 .name = "from"
503 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000504 { ATF_NOFLAGS, 0, offsetof(struct vrange, to),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000505 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
506 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000507 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000508 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400509 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000510 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
511 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000512 .name = "to"
513 },
514};
Lev Walkina7591b52014-10-12 18:37:35 -0700515static const ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000516 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
517};
Lev Walkina7591b52014-10-12 18:37:35 -0700518static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700519 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */
520 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000521};
Lev Walkin59b176e2005-11-26 11:25:14 +0000522static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000523 sizeof(struct vrange),
Lev Walkindfae9752004-09-29 13:19:37 +0000524 offsetof(struct vrange, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000525 asn_MAP_vrange_tag2el_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000526 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000527 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000528 1, /* Start extensions */
529 3 /* Stop extensions */
530};
Lev Walkind04430c2004-09-07 06:44:29 +0000531static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000532asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000533 "vrange",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000534 "vrange",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000535 SEQUENCE_free,
536 SEQUENCE_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000537 SEQUENCE_constraint,
538 SEQUENCE_decode_ber,
539 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000540 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000541 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700542 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400543 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000544 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000545 asn_DEF_vrange_tags_4,
546 sizeof(asn_DEF_vrange_tags_4)
547 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
548 asn_DEF_vrange_tags_4, /* Same as above */
549 sizeof(asn_DEF_vrange_tags_4)
550 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400551 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000552 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000553 asn_MBR_vrange_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000554 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000555 &asn_SPC_vrange_specs_4 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000556};
557
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800558asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000559 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000560 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
561 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000562 .type = &asn_DEF_vset_2,
Lev Walkin59b176e2005-11-26 11:25:14 +0000563 .memb_constraints = memb_vset_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400564 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000565 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
566 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000567 .name = "vset"
568 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000569 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000570 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
571 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000572 .type = &asn_DEF_vrange_4,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000573 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400574 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000575 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
576 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000577 .name = "vrange"
Lev Walkinf15320b2004-06-03 03:38:44 +0000578 },
579};
Lev Walkina7591b52014-10-12 18:37:35 -0700580static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700581 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */
582 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */
Lev Walkinf15320b2004-06-03 03:38:44 +0000583};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800584asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000585 sizeof(struct VariablePart),
Lev Walkindfae9752004-09-29 13:19:37 +0000586 offsetof(struct VariablePart, _asn_ctx),
Lev Walkinf15320b2004-06-03 03:38:44 +0000587 offsetof(struct VariablePart, present),
588 sizeof(((struct VariablePart *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000589 asn_MAP_VariablePart_tag2el_1,
Lev Walkinf15320b2004-06-03 03:38:44 +0000590 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000591 .canonical_order = 0,
592 .ext_start = 2 /* Extensions start */
Lev Walkinf15320b2004-06-03 03:38:44 +0000593};
Lev Walkindfae9752004-09-29 13:19:37 +0000594asn_TYPE_descriptor_t asn_DEF_VariablePart = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000595 "VariablePart",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000596 "VariablePart",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000597 CHOICE_free,
598 CHOICE_print,
Lev Walkinf15320b2004-06-03 03:38:44 +0000599 CHOICE_constraint,
600 CHOICE_decode_ber,
601 CHOICE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000602 CHOICE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000603 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700604 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400605 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000606 CHOICE_outmost_tag,
Lev Walkin188ed2c2004-09-13 08:31:01 +0000607 0, /* No effective tags (pointer) */
608 0, /* No effective tags (count) */
609 0, /* No tags (pointer) */
610 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400611 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000612 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000613 asn_MBR_VariablePart_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000614 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000615 &asn_SPC_VariablePart_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000616};
617
618
Lev Walkinb47ddce2004-08-11 05:25:47 +0000619/*** <<< INCLUDES [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000620
Lev Walkin2a744a72013-03-27 01:56:23 -0700621#include <NativeEnumerated.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000622#include <BOOLEAN.h>
623#include <VisibleString.h>
624#include <asn_SET_OF.h>
625#include <constr_SET_OF.h>
626#include <constr_SEQUENCE.h>
627
628/*** <<< DEPS [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000629
Lev Walkin2e3055d2004-08-20 13:36:32 +0000630typedef enum accept_as {
631 accept_as_unknown = 0,
632 accept_as_safe = 1,
Lev Walkinbbe38662005-02-25 08:17:56 +0000633 accept_as_unsafe = 2
Lev Walkin2e3055d2004-08-20 13:36:32 +0000634 /*
635 * Enumeration is extensible
636 */
Lev Walkin171487e2006-03-21 07:25:18 +0000637} e_accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000638
639/*** <<< TYPE-DECLS [ActionItem] >>> ***/
640
Lev Walkinf15320b2004-06-03 03:38:44 +0000641typedef struct ActionItem {
Lev Walkin2a744a72013-03-27 01:56:23 -0700642 long accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000643 struct notify {
644 BOOLEAN_t critical;
645 struct email {
646 A_SET_OF(VisibleString_t) list;
647
648 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000649 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000650 } email;
651 /*
652 * This type is extensible,
653 * possible extensions are below.
654 */
655
656 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000657 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000658 } *notify;
659 /*
660 * This type is extensible,
661 * possible extensions are below.
662 */
663
664 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000665 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000666} ActionItem_t;
667
Lev Walkinbbe38662005-02-25 08:17:56 +0000668/*** <<< FUNC-DECLS [ActionItem] >>> ***/
669
Lev Walkine0272aa2005-03-04 11:26:08 +0000670/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000671extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800672extern asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1;
673extern asn_TYPE_member_t asn_MBR_ActionItem_1[2];
Lev Walkinbbe38662005-02-25 08:17:56 +0000674
675/*** <<< CODE [ActionItem] >>> ***/
676
Lev Walkinbbe38662005-02-25 08:17:56 +0000677/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700678 * This type is implemented using NativeEnumerated,
Lev Walkinbbe38662005-02-25 08:17:56 +0000679 * so here we adjust the DEF accordingly.
680 */
Lev Walkinbbe38662005-02-25 08:17:56 +0000681
Lev Walkinf15320b2004-06-03 03:38:44 +0000682/*** <<< STAT-DEFS [ActionItem] >>> ***/
683
Lev Walkina7591b52014-10-12 18:37:35 -0700684static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000685 { 0, 7, "unknown" },
686 { 1, 4, "safe" },
687 { 2, 6, "unsafe" }
Lev Walkinbbe38662005-02-25 08:17:56 +0000688 /* This list is extensible */
689};
Lev Walkina7591b52014-10-12 18:37:35 -0700690static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000691 1, /* safe(1) */
692 0, /* unknown(0) */
693 2 /* unsafe(2) */
Lev Walkinbbe38662005-02-25 08:17:56 +0000694 /* This list is extensible */
695};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800696static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000697 asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
698 asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinbbe38662005-02-25 08:17:56 +0000699 3, /* Number of elements in the maps */
Lev Walkin59b176e2005-11-26 11:25:14 +0000700 4, /* Extensions before this member */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000701 1, /* Strict enumeration */
702 0, /* Native long size */
703 0
Lev Walkinbbe38662005-02-25 08:17:56 +0000704};
Lev Walkina7591b52014-10-12 18:37:35 -0700705static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000706 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
707};
708static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000709asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000710 "accept-as",
711 "accept-as",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800712 NativeEnumerated_free,
713 NativeEnumerated_print,
714 NativeEnumerated_constraint,
715 NativeEnumerated_decode_ber,
716 NativeEnumerated_encode_der,
717 NativeEnumerated_decode_xer,
718 NativeEnumerated_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700719 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400720 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinbbe38662005-02-25 08:17:56 +0000721 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000722 asn_DEF_accept_as_tags_2,
723 sizeof(asn_DEF_accept_as_tags_2)
724 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
725 asn_DEF_accept_as_tags_2, /* Same as above */
726 sizeof(asn_DEF_accept_as_tags_2)
727 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400728 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000729 0, /* No PER visible constraints */
Lev Walkinbbe38662005-02-25 08:17:56 +0000730 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000731 &asn_SPC_accept_as_specs_2 /* Additional specs */
Lev Walkinbbe38662005-02-25 08:17:56 +0000732};
733
Lev Walkine8318b82005-03-06 09:29:03 +0000734static asn_TYPE_member_t asn_MBR_email_9[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000735 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000736 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
737 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000738 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000739 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400740 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000741 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
742 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000743 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000744 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000745};
Lev Walkina7591b52014-10-12 18:37:35 -0700746static const ber_tlv_tag_t asn_DEF_email_tags_9[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000747 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
748};
Lev Walkin59b176e2005-11-26 11:25:14 +0000749static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000750 sizeof(struct email),
Lev Walkindfae9752004-09-29 13:19:37 +0000751 offsetof(struct email, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000752 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000753};
Lev Walkind04430c2004-09-07 06:44:29 +0000754static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000755asn_TYPE_descriptor_t asn_DEF_email_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000756 "email",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000757 "email",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000758 SET_OF_free,
759 SET_OF_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000760 SET_OF_constraint,
761 SET_OF_decode_ber,
762 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000763 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000764 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700765 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400766 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000767 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000768 asn_DEF_email_tags_9,
769 sizeof(asn_DEF_email_tags_9)
770 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
771 asn_DEF_email_tags_9, /* Same as above */
772 sizeof(asn_DEF_email_tags_9)
773 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400774 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000775 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000776 asn_MBR_email_9,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000777 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000778 &asn_SPC_email_specs_9 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000779};
780
Lev Walkine8318b82005-03-06 09:29:03 +0000781static asn_TYPE_member_t asn_MBR_notify_7[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000782 { ATF_NOFLAGS, 0, offsetof(struct notify, critical),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000783 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
784 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000785 .type = &asn_DEF_BOOLEAN,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000786 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400787 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000788 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
789 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000790 .name = "critical"
791 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000792 { ATF_NOFLAGS, 0, offsetof(struct notify, email),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000793 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
794 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000795 .type = &asn_DEF_email_9,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000796 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400797 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000798 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
799 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000800 .name = "email"
801 },
802};
Lev Walkina7591b52014-10-12 18:37:35 -0700803static const ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000804 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
805};
Lev Walkina7591b52014-10-12 18:37:35 -0700806static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700807 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */
808 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000809};
Lev Walkin59b176e2005-11-26 11:25:14 +0000810static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000811 sizeof(struct notify),
Lev Walkindfae9752004-09-29 13:19:37 +0000812 offsetof(struct notify, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000813 asn_MAP_notify_tag2el_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000814 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000815 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000816 1, /* Start extensions */
817 3 /* Stop extensions */
818};
Lev Walkind04430c2004-09-07 06:44:29 +0000819static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000820asn_TYPE_descriptor_t asn_DEF_notify_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000821 "notify",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000822 "notify",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000823 SEQUENCE_free,
824 SEQUENCE_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000825 SEQUENCE_constraint,
826 SEQUENCE_decode_ber,
827 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000828 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000829 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700830 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400831 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000832 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000833 asn_DEF_notify_tags_7,
834 sizeof(asn_DEF_notify_tags_7)
835 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
836 asn_DEF_notify_tags_7, /* Same as above */
837 sizeof(asn_DEF_notify_tags_7)
838 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400839 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000840 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000841 asn_MBR_notify_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000842 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000843 &asn_SPC_notify_specs_7 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000844};
845
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800846asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000847 { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000848 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
849 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000850 .type = &asn_DEF_accept_as_2,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000851 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400852 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000853 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
854 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000855 .name = "accept-as"
856 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000857 { ATF_POINTER, 1, offsetof(struct ActionItem, notify),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000858 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
859 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000860 .type = &asn_DEF_notify_7,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000861 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400862 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000863 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
864 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000865 .name = "notify"
Lev Walkinf15320b2004-06-03 03:38:44 +0000866 },
867};
Lev Walkina7591b52014-10-12 18:37:35 -0700868static const ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000869 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
870};
Lev Walkina7591b52014-10-12 18:37:35 -0700871static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700872 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */
873 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000874};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800875asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000876 sizeof(struct ActionItem),
Lev Walkindfae9752004-09-29 13:19:37 +0000877 offsetof(struct ActionItem, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000878 asn_MAP_ActionItem_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000879 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000880 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000881 1, /* Start extensions */
882 3 /* Stop extensions */
883};
Lev Walkindfae9752004-09-29 13:19:37 +0000884asn_TYPE_descriptor_t asn_DEF_ActionItem = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000885 "ActionItem",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000886 "ActionItem",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000887 SEQUENCE_free,
888 SEQUENCE_print,
Lev Walkinf15320b2004-06-03 03:38:44 +0000889 SEQUENCE_constraint,
890 SEQUENCE_decode_ber,
891 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000892 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000893 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700894 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400895 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000896 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000897 asn_DEF_ActionItem_tags_1,
898 sizeof(asn_DEF_ActionItem_tags_1)
899 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
900 asn_DEF_ActionItem_tags_1, /* Same as above */
901 sizeof(asn_DEF_ActionItem_tags_1)
902 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400903 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000904 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000905 asn_MBR_ActionItem_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000906 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000907 &asn_SPC_ActionItem_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000908};
909