blob: 685c4310b821e2fb451fe52e5d325d21648bc83d [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 Walkincd2f48e2017-08-10 02:14:59 -070097 SEQUENCE_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +000098 SEQUENCE_OF_constraint,
99 SEQUENCE_OF_decode_ber,
100 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000101 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000102 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700103 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400104 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000105 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000106 asn_DEF_varsets_tags_3,
107 sizeof(asn_DEF_varsets_tags_3)
108 /sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
109 asn_DEF_varsets_tags_3, /* Same as above */
110 sizeof(asn_DEF_varsets_tags_3)
111 /sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400112 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000113 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000114 asn_MBR_varsets_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000115 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000116 &asn_SPC_varsets_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000117};
118
Lev Walkine0272aa2005-03-04 11:26:08 +0000119static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000120 { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000121 .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
122 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000123 .type = &asn_DEF_IA5String,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000124 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400125 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000126 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
127 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000128 .name = "line-digest"
129 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000130 { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000131 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
132 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000133 .type = &asn_DEF_varsets_3,
Lev Walkin59b176e2005-11-26 11:25:14 +0000134 .memb_constraints = memb_varsets_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400135 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000136 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
137 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000138 .name = "varsets"
Lev Walkinf15320b2004-06-03 03:38:44 +0000139 },
140};
Lev Walkina7591b52014-10-12 18:37:35 -0700141static const ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000142 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
143};
Lev Walkina7591b52014-10-12 18:37:35 -0700144static const asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700145 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */
146 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000147};
Lev Walkin59b176e2005-11-26 11:25:14 +0000148static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000149 sizeof(struct LogLine),
Lev Walkindfae9752004-09-29 13:19:37 +0000150 offsetof(struct LogLine, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000151 asn_MAP_LogLine_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000152 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000153 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000154 1, /* Start extensions */
155 3 /* Stop extensions */
156};
Lev Walkindfae9752004-09-29 13:19:37 +0000157asn_TYPE_descriptor_t asn_DEF_LogLine = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000158 "LogLine",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000159 "LogLine",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000160 SEQUENCE_free,
161 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700162 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000163 SEQUENCE_constraint,
164 SEQUENCE_decode_ber,
165 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000166 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000167 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700168 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400169 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000170 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000171 asn_DEF_LogLine_tags_1,
172 sizeof(asn_DEF_LogLine_tags_1)
173 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
174 asn_DEF_LogLine_tags_1, /* Same as above */
175 sizeof(asn_DEF_LogLine_tags_1)
176 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400177 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000178 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000179 asn_MBR_LogLine_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000180 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000181 &asn_SPC_LogLine_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000182};
183
184
Lev Walkinb47ddce2004-08-11 05:25:47 +0000185/*** <<< INCLUDES [VariablePartSet] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000186
Lev Walkin22b5ed42006-09-13 02:51:20 +0000187#include "ActionItem.h"
Lev Walkinf15320b2004-06-03 03:38:44 +0000188#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000189#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000190#include <constr_SEQUENCE.h>
191
Lev Walkinc8285712005-03-04 22:18:20 +0000192/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +0000193
Lev Walkinbf56d542005-03-04 23:50:56 +0000194struct VariablePart;
Lev Walkinf15320b2004-06-03 03:38:44 +0000195
196/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
197
Lev Walkinf15320b2004-06-03 03:38:44 +0000198typedef struct VariablePartSet {
199 struct vparts {
Lev Walkinc8285712005-03-04 22:18:20 +0000200 A_SEQUENCE_OF(struct VariablePart) list;
Lev Walkinf15320b2004-06-03 03:38:44 +0000201
202 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000203 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000204 } vparts;
205 ActionItem_t resolution;
206 /*
207 * This type is extensible,
208 * possible extensions are below.
209 */
210
211 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000212 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000213} VariablePartSet_t;
214
Lev Walkinc8285712005-03-04 22:18:20 +0000215/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
216
217extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800218extern asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1;
219extern asn_TYPE_member_t asn_MBR_VariablePartSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000220
221/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
222
Lev Walkin22b5ed42006-09-13 02:51:20 +0000223#include "VariablePart.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000224
Lev Walkin2e3055d2004-08-20 13:36:32 +0000225/*** <<< CODE [VariablePartSet] >>> ***/
226
227static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000228memb_vparts_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000229 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000230
231 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700232 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000233 "%s: value not given (%s:%d)",
234 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000235 return -1;
236 }
237
238
239 if(1 /* No applicable constraints whatsoever */) {
240 /* Nothing is here. See below */
241 }
242
Lev Walkin1eded352006-07-13 11:19:01 +0000243 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000244}
245
246
Lev Walkinf15320b2004-06-03 03:38:44 +0000247/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
248
Lev Walkine0272aa2005-03-04 11:26:08 +0000249static asn_TYPE_member_t asn_MBR_vparts_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000250 { ATF_POINTER, 0, 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000251 .tag = -1 /* Ambiguous tag (CHOICE?) */,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000252 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000253 .type = &asn_DEF_VariablePart,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000254 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400255 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000256 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
257 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000258 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000259 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000260};
Lev Walkina7591b52014-10-12 18:37:35 -0700261static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000262 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
263};
Lev Walkin59b176e2005-11-26 11:25:14 +0000264static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000265 sizeof(struct vparts),
Lev Walkindfae9752004-09-29 13:19:37 +0000266 offsetof(struct vparts, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000267 2, /* XER encoding is XMLValueList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000268};
Lev Walkind04430c2004-09-07 06:44:29 +0000269static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000270asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000271 "vparts",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000272 "vparts",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000273 SEQUENCE_OF_free,
274 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700275 SEQUENCE_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000276 SEQUENCE_OF_constraint,
277 SEQUENCE_OF_decode_ber,
278 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000279 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000280 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700281 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400282 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000283 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000284 asn_DEF_vparts_tags_2,
285 sizeof(asn_DEF_vparts_tags_2)
286 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
287 asn_DEF_vparts_tags_2, /* Same as above */
288 sizeof(asn_DEF_vparts_tags_2)
289 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400290 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000291 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000292 asn_MBR_vparts_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000293 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000294 &asn_SPC_vparts_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000295};
296
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800297asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000298 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000299 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
300 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000301 .type = &asn_DEF_vparts_2,
Lev Walkin59b176e2005-11-26 11:25:14 +0000302 .memb_constraints = memb_vparts_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400303 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000304 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
305 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000306 .name = "vparts"
307 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000308 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000309 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
310 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000311 .type = &asn_DEF_ActionItem,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000312 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400313 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000314 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
315 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000316 .name = "resolution"
Lev Walkinf15320b2004-06-03 03:38:44 +0000317 },
318};
Lev Walkina7591b52014-10-12 18:37:35 -0700319static const ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000320 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
321};
Lev Walkina7591b52014-10-12 18:37:35 -0700322static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700323 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */
324 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000325};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800326asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000327 sizeof(struct VariablePartSet),
Lev Walkindfae9752004-09-29 13:19:37 +0000328 offsetof(struct VariablePartSet, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000329 asn_MAP_VariablePartSet_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000330 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000331 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000332 1, /* Start extensions */
333 3 /* Stop extensions */
334};
Lev Walkindfae9752004-09-29 13:19:37 +0000335asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000336 "VariablePartSet",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000337 "VariablePartSet",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000338 SEQUENCE_free,
339 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700340 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000341 SEQUENCE_constraint,
342 SEQUENCE_decode_ber,
343 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000344 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000345 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700346 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400347 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000348 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000349 asn_DEF_VariablePartSet_tags_1,
350 sizeof(asn_DEF_VariablePartSet_tags_1)
351 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
352 asn_DEF_VariablePartSet_tags_1, /* Same as above */
353 sizeof(asn_DEF_VariablePartSet_tags_1)
354 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400355 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000356 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000357 asn_MBR_VariablePartSet_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000358 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000359 &asn_SPC_VariablePartSet_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000360};
361
362
Lev Walkinb47ddce2004-08-11 05:25:47 +0000363/*** <<< INCLUDES [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000364
Lev Walkinf15320b2004-06-03 03:38:44 +0000365#include <VisibleString.h>
366#include <asn_SET_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000367#include <constr_SET_OF.h>
368#include <constr_SEQUENCE.h>
369#include <constr_CHOICE.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000370
Lev Walkinb47ddce2004-08-11 05:25:47 +0000371/*** <<< DEPS [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000372
Lev Walkinb47ddce2004-08-11 05:25:47 +0000373typedef enum VariablePart_PR {
374 VariablePart_PR_NOTHING, /* No components present */
375 VariablePart_PR_vset,
johvik792216e2017-04-11 10:42:21 +0200376 VariablePart_PR_vrange
Lev Walkinb47ddce2004-08-11 05:25:47 +0000377 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000378
Lev Walkin64399722004-08-11 07:17:22 +0000379} VariablePart_PR;
Lev Walkinf15320b2004-06-03 03:38:44 +0000380
381/*** <<< TYPE-DECLS [VariablePart] >>> ***/
382
Lev Walkinf15320b2004-06-03 03:38:44 +0000383typedef struct VariablePart {
Lev Walkin64399722004-08-11 07:17:22 +0000384 VariablePart_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000385 union VariablePart_u {
Lev Walkinf15320b2004-06-03 03:38:44 +0000386 struct vset {
387 A_SET_OF(VisibleString_t) list;
388
389 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000390 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000391 } vset;
392 struct vrange {
393 VisibleString_t from;
394 VisibleString_t to;
395 /*
396 * This type is extensible,
397 * possible extensions are below.
398 */
399
400 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000401 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000402 } vrange;
403 /*
404 * This type is extensible,
405 * possible extensions are below.
406 */
407 } choice;
408
409 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000410 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000411} VariablePart_t;
412
Lev Walkinc8285712005-03-04 22:18:20 +0000413/*** <<< FUNC-DECLS [VariablePart] >>> ***/
414
415extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800416extern asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1;
417extern asn_TYPE_member_t asn_MBR_VariablePart_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000418
Lev Walkin2e3055d2004-08-20 13:36:32 +0000419/*** <<< CODE [VariablePart] >>> ***/
420
421static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000422memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000423 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000424 size_t size;
425
426 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700427 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000428 "%s: value not given (%s:%d)",
429 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000430 return -1;
431 }
432
Lev Walkin66d542b2005-07-04 02:03:57 +0000433 /* Determine the number of elements */
434 size = _A_CSET_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +0000435
436 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +0000437 /* Perform validation of the inner elements */
Lev Walkin739d9bf2006-07-13 13:28:32 +0000438 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000439 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700440 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000441 "%s: constraint failed (%s:%d)",
442 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000443 return -1;
444 }
445}
446
447
Lev Walkinf15320b2004-06-03 03:38:44 +0000448/*** <<< STAT-DEFS [VariablePart] >>> ***/
449
Lev Walkine0272aa2005-03-04 11:26:08 +0000450static asn_TYPE_member_t asn_MBR_vset_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000451 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000452 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
453 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000454 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000455 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400456 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000457 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
458 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000459 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000460 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000461};
Lev Walkina7591b52014-10-12 18:37:35 -0700462static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000463 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
464};
Lev Walkin59b176e2005-11-26 11:25:14 +0000465static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000466 sizeof(struct vset),
Lev Walkindfae9752004-09-29 13:19:37 +0000467 offsetof(struct vset, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000468 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000469};
Lev Walkind04430c2004-09-07 06:44:29 +0000470static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000471asn_TYPE_descriptor_t asn_DEF_vset_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000472 "vset",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000473 "vset",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000474 SET_OF_free,
475 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700476 SET_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000477 SET_OF_constraint,
478 SET_OF_decode_ber,
479 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000480 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000481 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700482 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400483 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000484 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000485 asn_DEF_vset_tags_2,
486 sizeof(asn_DEF_vset_tags_2)
487 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
488 asn_DEF_vset_tags_2, /* Same as above */
489 sizeof(asn_DEF_vset_tags_2)
490 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400491 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000492 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000493 asn_MBR_vset_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000494 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000495 &asn_SPC_vset_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000496};
497
Lev Walkine8318b82005-03-06 09:29:03 +0000498static asn_TYPE_member_t asn_MBR_vrange_4[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000499 { ATF_NOFLAGS, 0, offsetof(struct vrange, from),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000500 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
501 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000502 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000503 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400504 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000505 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
506 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000507 .name = "from"
508 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000509 { ATF_NOFLAGS, 0, offsetof(struct vrange, to),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000510 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
511 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000512 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000513 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400514 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000515 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
516 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000517 .name = "to"
518 },
519};
Lev Walkina7591b52014-10-12 18:37:35 -0700520static const ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000521 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
522};
Lev Walkina7591b52014-10-12 18:37:35 -0700523static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700524 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */
525 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000526};
Lev Walkin59b176e2005-11-26 11:25:14 +0000527static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000528 sizeof(struct vrange),
Lev Walkindfae9752004-09-29 13:19:37 +0000529 offsetof(struct vrange, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000530 asn_MAP_vrange_tag2el_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000531 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000532 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000533 1, /* Start extensions */
534 3 /* Stop extensions */
535};
Lev Walkind04430c2004-09-07 06:44:29 +0000536static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000537asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000538 "vrange",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000539 "vrange",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000540 SEQUENCE_free,
541 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700542 SEQUENCE_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000543 SEQUENCE_constraint,
544 SEQUENCE_decode_ber,
545 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000546 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000547 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700548 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400549 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000550 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000551 asn_DEF_vrange_tags_4,
552 sizeof(asn_DEF_vrange_tags_4)
553 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
554 asn_DEF_vrange_tags_4, /* Same as above */
555 sizeof(asn_DEF_vrange_tags_4)
556 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400557 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000558 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000559 asn_MBR_vrange_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000560 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000561 &asn_SPC_vrange_specs_4 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000562};
563
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800564asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000565 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000566 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
567 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000568 .type = &asn_DEF_vset_2,
Lev Walkin59b176e2005-11-26 11:25:14 +0000569 .memb_constraints = memb_vset_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400570 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000571 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
572 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000573 .name = "vset"
574 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000575 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000576 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
577 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000578 .type = &asn_DEF_vrange_4,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000579 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400580 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000581 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
582 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000583 .name = "vrange"
Lev Walkinf15320b2004-06-03 03:38:44 +0000584 },
585};
Lev Walkina7591b52014-10-12 18:37:35 -0700586static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700587 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */
588 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */
Lev Walkinf15320b2004-06-03 03:38:44 +0000589};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800590asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000591 sizeof(struct VariablePart),
Lev Walkindfae9752004-09-29 13:19:37 +0000592 offsetof(struct VariablePart, _asn_ctx),
Lev Walkinf15320b2004-06-03 03:38:44 +0000593 offsetof(struct VariablePart, present),
594 sizeof(((struct VariablePart *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000595 asn_MAP_VariablePart_tag2el_1,
Lev Walkinf15320b2004-06-03 03:38:44 +0000596 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000597 .canonical_order = 0,
598 .ext_start = 2 /* Extensions start */
Lev Walkinf15320b2004-06-03 03:38:44 +0000599};
Lev Walkindfae9752004-09-29 13:19:37 +0000600asn_TYPE_descriptor_t asn_DEF_VariablePart = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000601 "VariablePart",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000602 "VariablePart",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000603 CHOICE_free,
604 CHOICE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700605 CHOICE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000606 CHOICE_constraint,
607 CHOICE_decode_ber,
608 CHOICE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000609 CHOICE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000610 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700611 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400612 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000613 CHOICE_outmost_tag,
Lev Walkin188ed2c2004-09-13 08:31:01 +0000614 0, /* No effective tags (pointer) */
615 0, /* No effective tags (count) */
616 0, /* No tags (pointer) */
617 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400618 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000619 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000620 asn_MBR_VariablePart_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000621 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000622 &asn_SPC_VariablePart_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000623};
624
625
Lev Walkinb47ddce2004-08-11 05:25:47 +0000626/*** <<< INCLUDES [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000627
Lev Walkin2a744a72013-03-27 01:56:23 -0700628#include <NativeEnumerated.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000629#include <BOOLEAN.h>
630#include <VisibleString.h>
631#include <asn_SET_OF.h>
632#include <constr_SET_OF.h>
633#include <constr_SEQUENCE.h>
634
635/*** <<< DEPS [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000636
Lev Walkin2e3055d2004-08-20 13:36:32 +0000637typedef enum accept_as {
638 accept_as_unknown = 0,
639 accept_as_safe = 1,
Lev Walkinbbe38662005-02-25 08:17:56 +0000640 accept_as_unsafe = 2
Lev Walkin2e3055d2004-08-20 13:36:32 +0000641 /*
642 * Enumeration is extensible
643 */
Lev Walkin171487e2006-03-21 07:25:18 +0000644} e_accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000645
646/*** <<< TYPE-DECLS [ActionItem] >>> ***/
647
Lev Walkinf15320b2004-06-03 03:38:44 +0000648typedef struct ActionItem {
Lev Walkin2a744a72013-03-27 01:56:23 -0700649 long accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000650 struct notify {
651 BOOLEAN_t critical;
652 struct email {
653 A_SET_OF(VisibleString_t) list;
654
655 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000656 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000657 } email;
658 /*
659 * This type is extensible,
660 * possible extensions are below.
661 */
662
663 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000664 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000665 } *notify;
666 /*
667 * This type is extensible,
668 * possible extensions are below.
669 */
670
671 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000672 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000673} ActionItem_t;
674
Lev Walkinbbe38662005-02-25 08:17:56 +0000675/*** <<< FUNC-DECLS [ActionItem] >>> ***/
676
Lev Walkine0272aa2005-03-04 11:26:08 +0000677/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000678extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800679extern asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1;
680extern asn_TYPE_member_t asn_MBR_ActionItem_1[2];
Lev Walkinbbe38662005-02-25 08:17:56 +0000681
682/*** <<< CODE [ActionItem] >>> ***/
683
Lev Walkinbbe38662005-02-25 08:17:56 +0000684/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700685 * This type is implemented using NativeEnumerated,
Lev Walkinbbe38662005-02-25 08:17:56 +0000686 * so here we adjust the DEF accordingly.
687 */
Lev Walkinbbe38662005-02-25 08:17:56 +0000688
Lev Walkinf15320b2004-06-03 03:38:44 +0000689/*** <<< STAT-DEFS [ActionItem] >>> ***/
690
Lev Walkina7591b52014-10-12 18:37:35 -0700691static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000692 { 0, 7, "unknown" },
693 { 1, 4, "safe" },
694 { 2, 6, "unsafe" }
Lev Walkinbbe38662005-02-25 08:17:56 +0000695 /* This list is extensible */
696};
Lev Walkina7591b52014-10-12 18:37:35 -0700697static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000698 1, /* safe(1) */
699 0, /* unknown(0) */
700 2 /* unsafe(2) */
Lev Walkinbbe38662005-02-25 08:17:56 +0000701 /* This list is extensible */
702};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800703static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000704 asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
705 asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinbbe38662005-02-25 08:17:56 +0000706 3, /* Number of elements in the maps */
Lev Walkin59b176e2005-11-26 11:25:14 +0000707 4, /* Extensions before this member */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000708 1, /* Strict enumeration */
709 0, /* Native long size */
710 0
Lev Walkinbbe38662005-02-25 08:17:56 +0000711};
Lev Walkina7591b52014-10-12 18:37:35 -0700712static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000713 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
714};
715static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000716asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000717 "accept-as",
718 "accept-as",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800719 NativeEnumerated_free,
720 NativeEnumerated_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700721 NativeEnumerated_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800722 NativeEnumerated_constraint,
723 NativeEnumerated_decode_ber,
724 NativeEnumerated_encode_der,
725 NativeEnumerated_decode_xer,
726 NativeEnumerated_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700727 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400728 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinbbe38662005-02-25 08:17:56 +0000729 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000730 asn_DEF_accept_as_tags_2,
731 sizeof(asn_DEF_accept_as_tags_2)
732 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
733 asn_DEF_accept_as_tags_2, /* Same as above */
734 sizeof(asn_DEF_accept_as_tags_2)
735 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400736 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000737 0, /* No PER visible constraints */
Lev Walkinbbe38662005-02-25 08:17:56 +0000738 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000739 &asn_SPC_accept_as_specs_2 /* Additional specs */
Lev Walkinbbe38662005-02-25 08:17:56 +0000740};
741
Lev Walkine8318b82005-03-06 09:29:03 +0000742static asn_TYPE_member_t asn_MBR_email_9[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000743 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000744 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
745 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000746 .type = &asn_DEF_VisibleString,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000747 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400748 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000749 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
750 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000751 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000752 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000753};
Lev Walkina7591b52014-10-12 18:37:35 -0700754static const ber_tlv_tag_t asn_DEF_email_tags_9[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000755 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
756};
Lev Walkin59b176e2005-11-26 11:25:14 +0000757static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000758 sizeof(struct email),
Lev Walkindfae9752004-09-29 13:19:37 +0000759 offsetof(struct email, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000760 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000761};
Lev Walkind04430c2004-09-07 06:44:29 +0000762static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000763asn_TYPE_descriptor_t asn_DEF_email_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000764 "email",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000765 "email",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000766 SET_OF_free,
767 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700768 SET_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000769 SET_OF_constraint,
770 SET_OF_decode_ber,
771 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000772 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000773 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700774 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400775 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000776 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000777 asn_DEF_email_tags_9,
778 sizeof(asn_DEF_email_tags_9)
779 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
780 asn_DEF_email_tags_9, /* Same as above */
781 sizeof(asn_DEF_email_tags_9)
782 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400783 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000784 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000785 asn_MBR_email_9,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000786 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000787 &asn_SPC_email_specs_9 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000788};
789
Lev Walkine8318b82005-03-06 09:29:03 +0000790static asn_TYPE_member_t asn_MBR_notify_7[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000791 { ATF_NOFLAGS, 0, offsetof(struct notify, critical),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000792 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
793 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000794 .type = &asn_DEF_BOOLEAN,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000795 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400796 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000797 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
798 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000799 .name = "critical"
800 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000801 { ATF_NOFLAGS, 0, offsetof(struct notify, email),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000802 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
803 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000804 .type = &asn_DEF_email_9,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000805 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400806 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000807 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
808 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000809 .name = "email"
810 },
811};
Lev Walkina7591b52014-10-12 18:37:35 -0700812static const ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000813 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
814};
Lev Walkina7591b52014-10-12 18:37:35 -0700815static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700816 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */
817 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000818};
Lev Walkin59b176e2005-11-26 11:25:14 +0000819static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000820 sizeof(struct notify),
Lev Walkindfae9752004-09-29 13:19:37 +0000821 offsetof(struct notify, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000822 asn_MAP_notify_tag2el_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000823 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000824 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000825 1, /* Start extensions */
826 3 /* Stop extensions */
827};
Lev Walkind04430c2004-09-07 06:44:29 +0000828static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000829asn_TYPE_descriptor_t asn_DEF_notify_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000830 "notify",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000831 "notify",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000832 SEQUENCE_free,
833 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700834 SEQUENCE_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000835 SEQUENCE_constraint,
836 SEQUENCE_decode_ber,
837 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000838 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000839 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700840 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400841 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000842 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000843 asn_DEF_notify_tags_7,
844 sizeof(asn_DEF_notify_tags_7)
845 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
846 asn_DEF_notify_tags_7, /* Same as above */
847 sizeof(asn_DEF_notify_tags_7)
848 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400849 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000850 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000851 asn_MBR_notify_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000852 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000853 &asn_SPC_notify_specs_7 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000854};
855
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800856asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000857 { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000858 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
859 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000860 .type = &asn_DEF_accept_as_2,
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 = "accept-as"
866 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000867 { ATF_POINTER, 1, offsetof(struct ActionItem, notify),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000868 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
869 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000870 .type = &asn_DEF_notify_7,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000871 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400872 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000873 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
874 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000875 .name = "notify"
Lev Walkinf15320b2004-06-03 03:38:44 +0000876 },
877};
Lev Walkina7591b52014-10-12 18:37:35 -0700878static const ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000879 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
880};
Lev Walkina7591b52014-10-12 18:37:35 -0700881static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700882 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */
883 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000884};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800885asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000886 sizeof(struct ActionItem),
Lev Walkindfae9752004-09-29 13:19:37 +0000887 offsetof(struct ActionItem, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000888 asn_MAP_ActionItem_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000889 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000890 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000891 1, /* Start extensions */
892 3 /* Stop extensions */
893};
Lev Walkindfae9752004-09-29 13:19:37 +0000894asn_TYPE_descriptor_t asn_DEF_ActionItem = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000895 "ActionItem",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000896 "ActionItem",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000897 SEQUENCE_free,
898 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700899 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000900 SEQUENCE_constraint,
901 SEQUENCE_decode_ber,
902 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000903 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000904 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700905 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400906 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000907 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000908 asn_DEF_ActionItem_tags_1,
909 sizeof(asn_DEF_ActionItem_tags_1)
910 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
911 asn_DEF_ActionItem_tags_1, /* Same as above */
912 sizeof(asn_DEF_ActionItem_tags_1)
913 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400914 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000915 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000916 asn_MBR_ActionItem_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000917 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000918 &asn_SPC_ActionItem_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000919};
920