blob: c3569213d362873853ee6d2b573e737df811fe05 [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 Walkin67a30122017-08-10 05:48:54 -070076 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +000077 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040078 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000079 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
80 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000081 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +000082 },
Lev Walkin2e3055d2004-08-20 13:36:32 +000083};
Lev Walkina7591b52014-10-12 18:37:35 -070084static const ber_tlv_tag_t asn_DEF_varsets_tags_3[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000085 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
86};
Lev Walkin59b176e2005-11-26 11:25:14 +000087static asn_SET_OF_specifics_t asn_SPC_varsets_specs_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000088 sizeof(struct varsets),
Lev Walkindfae9752004-09-29 13:19:37 +000089 offsetof(struct varsets, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000090 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +000091};
Lev Walkind04430c2004-09-07 06:44:29 +000092static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +000093asn_TYPE_descriptor_t asn_DEF_varsets_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000094 "varsets",
Lev Walkindc06f6b2004-10-20 15:50:55 +000095 "varsets",
Lev Walkina9cc46e2004-09-22 16:06:28 +000096 SEQUENCE_OF_free,
97 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -070098 SEQUENCE_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +000099 SEQUENCE_OF_constraint,
100 SEQUENCE_OF_decode_ber,
101 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000102 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000103 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700104 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400105 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000106 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000107 asn_DEF_varsets_tags_3,
108 sizeof(asn_DEF_varsets_tags_3)
109 /sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
110 asn_DEF_varsets_tags_3, /* Same as above */
111 sizeof(asn_DEF_varsets_tags_3)
112 /sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400113 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000114 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000115 asn_MBR_varsets_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000116 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000117 &asn_SPC_varsets_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000118};
119
Lev Walkine0272aa2005-03-04 11:26:08 +0000120static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000121 { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000122 .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
123 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000124 .type = &asn_DEF_IA5String,
Lev Walkin67a30122017-08-10 05:48:54 -0700125 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000126 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400127 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000128 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
129 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000130 .name = "line-digest"
131 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000132 { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000133 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
134 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000135 .type = &asn_DEF_varsets_3,
Lev Walkin67a30122017-08-10 05:48:54 -0700136 .type_selector = 0,
Lev Walkin59b176e2005-11-26 11:25:14 +0000137 .memb_constraints = memb_varsets_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400138 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000139 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
140 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000141 .name = "varsets"
Lev Walkinf15320b2004-06-03 03:38:44 +0000142 },
143};
Lev Walkina7591b52014-10-12 18:37:35 -0700144static const ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000145 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
146};
Lev Walkina7591b52014-10-12 18:37:35 -0700147static const asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700148 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */
149 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000150};
Lev Walkin59b176e2005-11-26 11:25:14 +0000151static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000152 sizeof(struct LogLine),
Lev Walkindfae9752004-09-29 13:19:37 +0000153 offsetof(struct LogLine, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000154 asn_MAP_LogLine_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000155 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000156 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000157 1, /* Start extensions */
158 3 /* Stop extensions */
159};
Lev Walkindfae9752004-09-29 13:19:37 +0000160asn_TYPE_descriptor_t asn_DEF_LogLine = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000161 "LogLine",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000162 "LogLine",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000163 SEQUENCE_free,
164 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700165 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000166 SEQUENCE_constraint,
167 SEQUENCE_decode_ber,
168 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000169 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000170 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700171 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400172 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000173 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000174 asn_DEF_LogLine_tags_1,
175 sizeof(asn_DEF_LogLine_tags_1)
176 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
177 asn_DEF_LogLine_tags_1, /* Same as above */
178 sizeof(asn_DEF_LogLine_tags_1)
179 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400180 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000181 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000182 asn_MBR_LogLine_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000183 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000184 &asn_SPC_LogLine_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000185};
186
187
Lev Walkinb47ddce2004-08-11 05:25:47 +0000188/*** <<< INCLUDES [VariablePartSet] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000189
Lev Walkin22b5ed42006-09-13 02:51:20 +0000190#include "ActionItem.h"
Lev Walkinf15320b2004-06-03 03:38:44 +0000191#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000192#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000193#include <constr_SEQUENCE.h>
194
Lev Walkinc8285712005-03-04 22:18:20 +0000195/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +0000196
Lev Walkinbf56d542005-03-04 23:50:56 +0000197struct VariablePart;
Lev Walkinf15320b2004-06-03 03:38:44 +0000198
199/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
200
Lev Walkinf15320b2004-06-03 03:38:44 +0000201typedef struct VariablePartSet {
202 struct vparts {
Lev Walkinc8285712005-03-04 22:18:20 +0000203 A_SEQUENCE_OF(struct VariablePart) list;
Lev Walkinf15320b2004-06-03 03:38:44 +0000204
205 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000206 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000207 } vparts;
208 ActionItem_t resolution;
209 /*
210 * This type is extensible,
211 * possible extensions are below.
212 */
213
214 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000215 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000216} VariablePartSet_t;
217
Lev Walkinc8285712005-03-04 22:18:20 +0000218/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
219
220extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800221extern asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1;
222extern asn_TYPE_member_t asn_MBR_VariablePartSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000223
224/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
225
Lev Walkin22b5ed42006-09-13 02:51:20 +0000226#include "VariablePart.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000227
Lev Walkin2e3055d2004-08-20 13:36:32 +0000228/*** <<< CODE [VariablePartSet] >>> ***/
229
230static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000231memb_vparts_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000232 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000233
234 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700235 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000236 "%s: value not given (%s:%d)",
237 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000238 return -1;
239 }
240
241
242 if(1 /* No applicable constraints whatsoever */) {
243 /* Nothing is here. See below */
244 }
245
Lev Walkin1eded352006-07-13 11:19:01 +0000246 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000247}
248
249
Lev Walkinf15320b2004-06-03 03:38:44 +0000250/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
251
Lev Walkine0272aa2005-03-04 11:26:08 +0000252static asn_TYPE_member_t asn_MBR_vparts_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000253 { ATF_POINTER, 0, 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000254 .tag = -1 /* Ambiguous tag (CHOICE?) */,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000255 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000256 .type = &asn_DEF_VariablePart,
Lev Walkin67a30122017-08-10 05:48:54 -0700257 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000258 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400259 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000260 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
261 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000262 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000263 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000264};
Lev Walkina7591b52014-10-12 18:37:35 -0700265static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000266 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
267};
Lev Walkin59b176e2005-11-26 11:25:14 +0000268static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000269 sizeof(struct vparts),
Lev Walkindfae9752004-09-29 13:19:37 +0000270 offsetof(struct vparts, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000271 2, /* XER encoding is XMLValueList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000272};
Lev Walkind04430c2004-09-07 06:44:29 +0000273static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000274asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000275 "vparts",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000276 "vparts",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000277 SEQUENCE_OF_free,
278 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700279 SEQUENCE_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000280 SEQUENCE_OF_constraint,
281 SEQUENCE_OF_decode_ber,
282 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000283 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000284 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700285 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400286 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000287 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000288 asn_DEF_vparts_tags_2,
289 sizeof(asn_DEF_vparts_tags_2)
290 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
291 asn_DEF_vparts_tags_2, /* Same as above */
292 sizeof(asn_DEF_vparts_tags_2)
293 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400294 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000295 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000296 asn_MBR_vparts_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000297 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000298 &asn_SPC_vparts_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000299};
300
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800301asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000302 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000303 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
304 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000305 .type = &asn_DEF_vparts_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700306 .type_selector = 0,
Lev Walkin59b176e2005-11-26 11:25:14 +0000307 .memb_constraints = memb_vparts_constraint_1,
Lev Walkinb33425f2017-07-14 14:59:52 +0400308 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000309 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
310 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000311 .name = "vparts"
312 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000313 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000314 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
315 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000316 .type = &asn_DEF_ActionItem,
Lev Walkin67a30122017-08-10 05:48:54 -0700317 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000318 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400319 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000320 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
321 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000322 .name = "resolution"
Lev Walkinf15320b2004-06-03 03:38:44 +0000323 },
324};
Lev Walkina7591b52014-10-12 18:37:35 -0700325static const ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000326 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
327};
Lev Walkina7591b52014-10-12 18:37:35 -0700328static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700329 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */
330 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000331};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800332asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000333 sizeof(struct VariablePartSet),
Lev Walkindfae9752004-09-29 13:19:37 +0000334 offsetof(struct VariablePartSet, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000335 asn_MAP_VariablePartSet_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000336 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000337 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000338 1, /* Start extensions */
339 3 /* Stop extensions */
340};
Lev Walkindfae9752004-09-29 13:19:37 +0000341asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000342 "VariablePartSet",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000343 "VariablePartSet",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000344 SEQUENCE_free,
345 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700346 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000347 SEQUENCE_constraint,
348 SEQUENCE_decode_ber,
349 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000350 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000351 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700352 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400353 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000354 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000355 asn_DEF_VariablePartSet_tags_1,
356 sizeof(asn_DEF_VariablePartSet_tags_1)
357 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
358 asn_DEF_VariablePartSet_tags_1, /* Same as above */
359 sizeof(asn_DEF_VariablePartSet_tags_1)
360 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400361 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000362 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000363 asn_MBR_VariablePartSet_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000364 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000365 &asn_SPC_VariablePartSet_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000366};
367
368
Lev Walkinb47ddce2004-08-11 05:25:47 +0000369/*** <<< INCLUDES [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000370
Lev Walkinf15320b2004-06-03 03:38:44 +0000371#include <VisibleString.h>
372#include <asn_SET_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000373#include <constr_SET_OF.h>
374#include <constr_SEQUENCE.h>
375#include <constr_CHOICE.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000376
Lev Walkinb47ddce2004-08-11 05:25:47 +0000377/*** <<< DEPS [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000378
Lev Walkinb47ddce2004-08-11 05:25:47 +0000379typedef enum VariablePart_PR {
380 VariablePart_PR_NOTHING, /* No components present */
381 VariablePart_PR_vset,
johvik792216e2017-04-11 10:42:21 +0200382 VariablePart_PR_vrange
Lev Walkinb47ddce2004-08-11 05:25:47 +0000383 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000384
Lev Walkin64399722004-08-11 07:17:22 +0000385} VariablePart_PR;
Lev Walkinf15320b2004-06-03 03:38:44 +0000386
387/*** <<< TYPE-DECLS [VariablePart] >>> ***/
388
Lev Walkinf15320b2004-06-03 03:38:44 +0000389typedef struct VariablePart {
Lev Walkin64399722004-08-11 07:17:22 +0000390 VariablePart_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000391 union VariablePart_u {
Lev Walkinf15320b2004-06-03 03:38:44 +0000392 struct vset {
393 A_SET_OF(VisibleString_t) list;
394
395 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000396 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000397 } vset;
398 struct vrange {
399 VisibleString_t from;
400 VisibleString_t to;
401 /*
402 * This type is extensible,
403 * possible extensions are below.
404 */
405
406 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000407 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000408 } vrange;
409 /*
410 * This type is extensible,
411 * possible extensions are below.
412 */
413 } choice;
414
415 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000416 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000417} VariablePart_t;
418
Lev Walkinc8285712005-03-04 22:18:20 +0000419/*** <<< FUNC-DECLS [VariablePart] >>> ***/
420
421extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800422extern asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1;
423extern asn_TYPE_member_t asn_MBR_VariablePart_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000424
Lev Walkin2e3055d2004-08-20 13:36:32 +0000425/*** <<< CODE [VariablePart] >>> ***/
426
427static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000428memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000429 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000430 size_t size;
431
432 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700433 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000434 "%s: value not given (%s:%d)",
435 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000436 return -1;
437 }
438
Lev Walkin66d542b2005-07-04 02:03:57 +0000439 /* Determine the number of elements */
440 size = _A_CSET_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +0000441
442 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +0000443 /* Perform validation of the inner elements */
Lev Walkin739d9bf2006-07-13 13:28:32 +0000444 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000445 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700446 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000447 "%s: constraint failed (%s:%d)",
448 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000449 return -1;
450 }
451}
452
453
Lev Walkinf15320b2004-06-03 03:38:44 +0000454/*** <<< STAT-DEFS [VariablePart] >>> ***/
455
Lev Walkine0272aa2005-03-04 11:26:08 +0000456static asn_TYPE_member_t asn_MBR_vset_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000457 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000458 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
459 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000460 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700461 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000462 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400463 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000464 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
465 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000466 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000467 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000468};
Lev Walkina7591b52014-10-12 18:37:35 -0700469static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000470 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
471};
Lev Walkin59b176e2005-11-26 11:25:14 +0000472static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000473 sizeof(struct vset),
Lev Walkindfae9752004-09-29 13:19:37 +0000474 offsetof(struct vset, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000475 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000476};
Lev Walkind04430c2004-09-07 06:44:29 +0000477static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000478asn_TYPE_descriptor_t asn_DEF_vset_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000479 "vset",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000480 "vset",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000481 SET_OF_free,
482 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700483 SET_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000484 SET_OF_constraint,
485 SET_OF_decode_ber,
486 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000487 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000488 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700489 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400490 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000491 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000492 asn_DEF_vset_tags_2,
493 sizeof(asn_DEF_vset_tags_2)
494 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
495 asn_DEF_vset_tags_2, /* Same as above */
496 sizeof(asn_DEF_vset_tags_2)
497 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400498 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000499 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000500 asn_MBR_vset_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000501 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000502 &asn_SPC_vset_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000503};
504
Lev Walkine8318b82005-03-06 09:29:03 +0000505static asn_TYPE_member_t asn_MBR_vrange_4[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000506 { ATF_NOFLAGS, 0, offsetof(struct vrange, from),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000507 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
508 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000509 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700510 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000511 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400512 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000513 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
514 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000515 .name = "from"
516 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000517 { ATF_NOFLAGS, 0, offsetof(struct vrange, to),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000518 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
519 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000520 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700521 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000522 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400523 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000524 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
525 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000526 .name = "to"
527 },
528};
Lev Walkina7591b52014-10-12 18:37:35 -0700529static const ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000530 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
531};
Lev Walkina7591b52014-10-12 18:37:35 -0700532static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700533 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */
534 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000535};
Lev Walkin59b176e2005-11-26 11:25:14 +0000536static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000537 sizeof(struct vrange),
Lev Walkindfae9752004-09-29 13:19:37 +0000538 offsetof(struct vrange, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000539 asn_MAP_vrange_tag2el_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000540 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000541 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000542 1, /* Start extensions */
543 3 /* Stop extensions */
544};
Lev Walkind04430c2004-09-07 06:44:29 +0000545static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000546asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000547 "vrange",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000548 "vrange",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000549 SEQUENCE_free,
550 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700551 SEQUENCE_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000552 SEQUENCE_constraint,
553 SEQUENCE_decode_ber,
554 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000555 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000556 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700557 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400558 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000559 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000560 asn_DEF_vrange_tags_4,
561 sizeof(asn_DEF_vrange_tags_4)
562 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
563 asn_DEF_vrange_tags_4, /* Same as above */
564 sizeof(asn_DEF_vrange_tags_4)
565 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400566 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000567 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000568 asn_MBR_vrange_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000569 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000570 &asn_SPC_vrange_specs_4 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000571};
572
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800573asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000574 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000575 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
576 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000577 .type = &asn_DEF_vset_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700578 .type_selector = 0,
Lev Walkin59b176e2005-11-26 11:25:14 +0000579 .memb_constraints = memb_vset_constraint_1,
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 = "vset"
584 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000585 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000586 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
587 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000588 .type = &asn_DEF_vrange_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700589 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000590 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400591 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000592 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
593 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000594 .name = "vrange"
Lev Walkinf15320b2004-06-03 03:38:44 +0000595 },
596};
Lev Walkina7591b52014-10-12 18:37:35 -0700597static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700598 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */
599 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */
Lev Walkinf15320b2004-06-03 03:38:44 +0000600};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800601asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000602 sizeof(struct VariablePart),
Lev Walkindfae9752004-09-29 13:19:37 +0000603 offsetof(struct VariablePart, _asn_ctx),
Lev Walkinf15320b2004-06-03 03:38:44 +0000604 offsetof(struct VariablePart, present),
605 sizeof(((struct VariablePart *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000606 asn_MAP_VariablePart_tag2el_1,
Lev Walkinf15320b2004-06-03 03:38:44 +0000607 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000608 .canonical_order = 0,
609 .ext_start = 2 /* Extensions start */
Lev Walkinf15320b2004-06-03 03:38:44 +0000610};
Lev Walkindfae9752004-09-29 13:19:37 +0000611asn_TYPE_descriptor_t asn_DEF_VariablePart = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000612 "VariablePart",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000613 "VariablePart",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000614 CHOICE_free,
615 CHOICE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700616 CHOICE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000617 CHOICE_constraint,
618 CHOICE_decode_ber,
619 CHOICE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000620 CHOICE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000621 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700622 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400623 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000624 CHOICE_outmost_tag,
Lev Walkin188ed2c2004-09-13 08:31:01 +0000625 0, /* No effective tags (pointer) */
626 0, /* No effective tags (count) */
627 0, /* No tags (pointer) */
628 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400629 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000630 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000631 asn_MBR_VariablePart_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000632 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000633 &asn_SPC_VariablePart_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000634};
635
636
Lev Walkinb47ddce2004-08-11 05:25:47 +0000637/*** <<< INCLUDES [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000638
Lev Walkin2a744a72013-03-27 01:56:23 -0700639#include <NativeEnumerated.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000640#include <BOOLEAN.h>
641#include <VisibleString.h>
642#include <asn_SET_OF.h>
643#include <constr_SET_OF.h>
644#include <constr_SEQUENCE.h>
645
646/*** <<< DEPS [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000647
Lev Walkin2e3055d2004-08-20 13:36:32 +0000648typedef enum accept_as {
649 accept_as_unknown = 0,
650 accept_as_safe = 1,
Lev Walkinbbe38662005-02-25 08:17:56 +0000651 accept_as_unsafe = 2
Lev Walkin2e3055d2004-08-20 13:36:32 +0000652 /*
653 * Enumeration is extensible
654 */
Lev Walkin171487e2006-03-21 07:25:18 +0000655} e_accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000656
657/*** <<< TYPE-DECLS [ActionItem] >>> ***/
658
Lev Walkinf15320b2004-06-03 03:38:44 +0000659typedef struct ActionItem {
Lev Walkin2a744a72013-03-27 01:56:23 -0700660 long accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000661 struct notify {
662 BOOLEAN_t critical;
663 struct email {
664 A_SET_OF(VisibleString_t) list;
665
666 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000667 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000668 } email;
669 /*
670 * This type is extensible,
671 * possible extensions are below.
672 */
673
674 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000675 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000676 } *notify;
677 /*
678 * This type is extensible,
679 * possible extensions are below.
680 */
681
682 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000683 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000684} ActionItem_t;
685
Lev Walkinbbe38662005-02-25 08:17:56 +0000686/*** <<< FUNC-DECLS [ActionItem] >>> ***/
687
Lev Walkine0272aa2005-03-04 11:26:08 +0000688/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000689extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800690extern asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1;
691extern asn_TYPE_member_t asn_MBR_ActionItem_1[2];
Lev Walkinbbe38662005-02-25 08:17:56 +0000692
693/*** <<< CODE [ActionItem] >>> ***/
694
Lev Walkinbbe38662005-02-25 08:17:56 +0000695/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700696 * This type is implemented using NativeEnumerated,
Lev Walkinbbe38662005-02-25 08:17:56 +0000697 * so here we adjust the DEF accordingly.
698 */
Lev Walkinbbe38662005-02-25 08:17:56 +0000699
Lev Walkinf15320b2004-06-03 03:38:44 +0000700/*** <<< STAT-DEFS [ActionItem] >>> ***/
701
Lev Walkina7591b52014-10-12 18:37:35 -0700702static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000703 { 0, 7, "unknown" },
704 { 1, 4, "safe" },
705 { 2, 6, "unsafe" }
Lev Walkinbbe38662005-02-25 08:17:56 +0000706 /* This list is extensible */
707};
Lev Walkina7591b52014-10-12 18:37:35 -0700708static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000709 1, /* safe(1) */
710 0, /* unknown(0) */
711 2 /* unsafe(2) */
Lev Walkinbbe38662005-02-25 08:17:56 +0000712 /* This list is extensible */
713};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800714static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000715 asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
716 asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinbbe38662005-02-25 08:17:56 +0000717 3, /* Number of elements in the maps */
Lev Walkin59b176e2005-11-26 11:25:14 +0000718 4, /* Extensions before this member */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000719 1, /* Strict enumeration */
720 0, /* Native long size */
721 0
Lev Walkinbbe38662005-02-25 08:17:56 +0000722};
Lev Walkina7591b52014-10-12 18:37:35 -0700723static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000724 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
725};
726static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000727asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000728 "accept-as",
729 "accept-as",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800730 NativeEnumerated_free,
731 NativeEnumerated_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700732 NativeEnumerated_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800733 NativeEnumerated_constraint,
734 NativeEnumerated_decode_ber,
735 NativeEnumerated_encode_der,
736 NativeEnumerated_decode_xer,
737 NativeEnumerated_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700738 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400739 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinbbe38662005-02-25 08:17:56 +0000740 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000741 asn_DEF_accept_as_tags_2,
742 sizeof(asn_DEF_accept_as_tags_2)
743 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
744 asn_DEF_accept_as_tags_2, /* Same as above */
745 sizeof(asn_DEF_accept_as_tags_2)
746 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400747 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000748 0, /* No PER visible constraints */
Lev Walkinbbe38662005-02-25 08:17:56 +0000749 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000750 &asn_SPC_accept_as_specs_2 /* Additional specs */
Lev Walkinbbe38662005-02-25 08:17:56 +0000751};
752
Lev Walkine8318b82005-03-06 09:29:03 +0000753static asn_TYPE_member_t asn_MBR_email_9[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000754 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000755 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
756 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000757 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700758 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000759 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400760 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000761 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
762 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000763 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000764 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000765};
Lev Walkina7591b52014-10-12 18:37:35 -0700766static const ber_tlv_tag_t asn_DEF_email_tags_9[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000767 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
768};
Lev Walkin59b176e2005-11-26 11:25:14 +0000769static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000770 sizeof(struct email),
Lev Walkindfae9752004-09-29 13:19:37 +0000771 offsetof(struct email, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000772 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000773};
Lev Walkind04430c2004-09-07 06:44:29 +0000774static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000775asn_TYPE_descriptor_t asn_DEF_email_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000776 "email",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000777 "email",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000778 SET_OF_free,
779 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700780 SET_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000781 SET_OF_constraint,
782 SET_OF_decode_ber,
783 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000784 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000785 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700786 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400787 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000788 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000789 asn_DEF_email_tags_9,
790 sizeof(asn_DEF_email_tags_9)
791 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
792 asn_DEF_email_tags_9, /* Same as above */
793 sizeof(asn_DEF_email_tags_9)
794 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400795 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000796 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000797 asn_MBR_email_9,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000798 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000799 &asn_SPC_email_specs_9 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000800};
801
Lev Walkine8318b82005-03-06 09:29:03 +0000802static asn_TYPE_member_t asn_MBR_notify_7[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000803 { ATF_NOFLAGS, 0, offsetof(struct notify, critical),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000804 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
805 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000806 .type = &asn_DEF_BOOLEAN,
Lev Walkin67a30122017-08-10 05:48:54 -0700807 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000808 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400809 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000810 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
811 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000812 .name = "critical"
813 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000814 { ATF_NOFLAGS, 0, offsetof(struct notify, email),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000815 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
816 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000817 .type = &asn_DEF_email_9,
Lev Walkin67a30122017-08-10 05:48:54 -0700818 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000819 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400820 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000821 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
822 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000823 .name = "email"
824 },
825};
Lev Walkina7591b52014-10-12 18:37:35 -0700826static const ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000827 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
828};
Lev Walkina7591b52014-10-12 18:37:35 -0700829static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700830 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */
831 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000832};
Lev Walkin59b176e2005-11-26 11:25:14 +0000833static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000834 sizeof(struct notify),
Lev Walkindfae9752004-09-29 13:19:37 +0000835 offsetof(struct notify, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000836 asn_MAP_notify_tag2el_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000837 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000838 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000839 1, /* Start extensions */
840 3 /* Stop extensions */
841};
Lev Walkind04430c2004-09-07 06:44:29 +0000842static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000843asn_TYPE_descriptor_t asn_DEF_notify_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000844 "notify",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000845 "notify",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000846 SEQUENCE_free,
847 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700848 SEQUENCE_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000849 SEQUENCE_constraint,
850 SEQUENCE_decode_ber,
851 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000852 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000853 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700854 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400855 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000856 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000857 asn_DEF_notify_tags_7,
858 sizeof(asn_DEF_notify_tags_7)
859 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
860 asn_DEF_notify_tags_7, /* Same as above */
861 sizeof(asn_DEF_notify_tags_7)
862 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400863 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000864 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000865 asn_MBR_notify_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000866 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000867 &asn_SPC_notify_specs_7 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000868};
869
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800870asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000871 { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000872 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
873 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000874 .type = &asn_DEF_accept_as_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700875 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000876 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400877 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000878 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
879 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000880 .name = "accept-as"
881 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000882 { ATF_POINTER, 1, offsetof(struct ActionItem, notify),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000883 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
884 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000885 .type = &asn_DEF_notify_7,
Lev Walkin67a30122017-08-10 05:48:54 -0700886 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000887 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400888 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000889 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
890 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000891 .name = "notify"
Lev Walkinf15320b2004-06-03 03:38:44 +0000892 },
893};
Lev Walkina7591b52014-10-12 18:37:35 -0700894static const ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000895 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
896};
Lev Walkina7591b52014-10-12 18:37:35 -0700897static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700898 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */
899 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000900};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800901asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000902 sizeof(struct ActionItem),
Lev Walkindfae9752004-09-29 13:19:37 +0000903 offsetof(struct ActionItem, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000904 asn_MAP_ActionItem_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000905 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000906 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000907 1, /* Start extensions */
908 3 /* Stop extensions */
909};
Lev Walkindfae9752004-09-29 13:19:37 +0000910asn_TYPE_descriptor_t asn_DEF_ActionItem = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000911 "ActionItem",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000912 "ActionItem",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000913 SEQUENCE_free,
914 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700915 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000916 SEQUENCE_constraint,
917 SEQUENCE_decode_ber,
918 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000919 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000920 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700921 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400922 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000923 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000924 asn_DEF_ActionItem_tags_1,
925 sizeof(asn_DEF_ActionItem_tags_1)
926 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
927 asn_DEF_ActionItem_tags_1, /* Same as above */
928 sizeof(asn_DEF_ActionItem_tags_1)
929 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400930 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000931 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000932 asn_MBR_ActionItem_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000933 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000934 &asn_SPC_ActionItem_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000935};
936