blob: e6e5dc3b1324d1b00d248cc0247bf547c9e83994 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001
vlm6e1b13e2004-08-11 05:25:47 +00002/*** <<< INCLUDES [LogLine] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +00003
vlmfa67ddc2004-06-03 03:38:44 +00004#include <IA5String.h>
vlmfa67ddc2004-06-03 03:38:44 +00005#include <asn_SEQUENCE_OF.h>
vlm6e1b13e2004-08-11 05:25:47 +00006#include <constr_SEQUENCE_OF.h>
vlmfa67ddc2004-06-03 03:38:44 +00007#include <constr_SEQUENCE.h>
8
vlm0b567bf2005-03-04 22:18:20 +00009/*** <<< FWD-DECLS [LogLine] >>> ***/
vlm6e1b13e2004-08-11 05:25:47 +000010
vlm5feb7522005-03-04 23:50:56 +000011struct VariablePartSet;
vlmfa67ddc2004-06-03 03:38:44 +000012
13/*** <<< TYPE-DECLS [LogLine] >>> ***/
14
vlmfa67ddc2004-06-03 03:38:44 +000015typedef struct LogLine {
16 IA5String_t line_digest;
17 struct varsets {
vlm0b567bf2005-03-04 22:18:20 +000018 A_SEQUENCE_OF(struct VariablePartSet) list;
vlmfa67ddc2004-06-03 03:38:44 +000019
20 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +000021 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-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 */
vlm02296432004-09-29 13:19:37 +000029 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +000030} LogLine_t;
31
vlm0b567bf2005-03-04 22:18:20 +000032/*** <<< FUNC-DECLS [LogLine] >>> ***/
33
34extern asn_TYPE_descriptor_t asn_DEF_LogLine;
35
36/*** <<< POST-INCLUDE [LogLine] >>> ***/
37
38#include <VariablePartSet.h>
39
vlm21e46002004-08-20 13:36:32 +000040/*** <<< CODE [LogLine] >>> ***/
41
42static int
vlm02296432004-09-29 13:19:37 +000043memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
vlm21e46002004-08-20 13:36:32 +000044 asn_app_consume_bytes_f *app_errlog, void *app_key) {
45 size_t size;
46
47 if(!sptr) {
48 _ASN_ERRLOG(app_errlog, app_key,
vlm758530a2004-08-22 13:47:59 +000049 "%s: value not given (%s:%d)",
50 td->name, __FILE__, __LINE__);
vlm21e46002004-08-20 13:36:32 +000051 return -1;
52 }
53
54 { /* Determine the number of elements */
55 const A_SEQUENCE_OF(void) *list;
vlm097616c2005-01-30 18:34:07 +000056 (const void *)list = sptr;
vlm21e46002004-08-20 13:36:32 +000057 size = list->count;
58 }
59
60 if((size >= 1)) {
61 /* Constraint check succeeded */
vlmcdf661b2004-08-22 12:47:03 +000062 return 0;
vlm21e46002004-08-20 13:36:32 +000063 } else {
64 _ASN_ERRLOG(app_errlog, app_key,
vlm758530a2004-08-22 13:47:59 +000065 "%s: constraint failed (%s:%d)",
66 td->name, __FILE__, __LINE__);
vlm21e46002004-08-20 13:36:32 +000067 return -1;
68 }
69}
70
71
vlmfa67ddc2004-06-03 03:38:44 +000072/*** <<< STAT-DEFS [LogLine] >>> ***/
73
vlm44fe49a2005-03-04 11:26:08 +000074static asn_TYPE_member_t asn_MBR_varsets_2[] = {
vlmddd5a7d2004-09-10 09:18:20 +000075 { ATF_NOFLAGS, 0, 0,
vlm21e46002004-08-20 13:36:32 +000076 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
77 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +000078 .type = (void *)&asn_DEF_VariablePartSet,
vlm0a9af512005-01-17 12:20:19 +000079 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000080 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +000081 },
vlm21e46002004-08-20 13:36:32 +000082};
vlm44fe49a2005-03-04 11:26:08 +000083static ber_tlv_tag_t asn_DEF_varsets_2_tags[] = {
vlm21e46002004-08-20 13:36:32 +000084 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
85};
vlm44fe49a2005-03-04 11:26:08 +000086static asn_SET_OF_specifics_t asn_SPC_varsets_2_specs = {
vlm21e46002004-08-20 13:36:32 +000087 sizeof(struct varsets),
vlm02296432004-09-29 13:19:37 +000088 offsetof(struct varsets, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +000089 0, /* XER encoding is XMLDelimitedItemList */
vlm21e46002004-08-20 13:36:32 +000090};
vlm1dc848e2004-09-07 06:44:29 +000091static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +000092asn_TYPE_descriptor_t asn_DEF_varsets_2 = {
vlm21e46002004-08-20 13:36:32 +000093 "varsets",
vlm9de248e2004-10-20 15:50:55 +000094 "varsets",
vlm39ba4c42004-09-22 16:06:28 +000095 SEQUENCE_OF_free,
96 SEQUENCE_OF_print,
vlm21e46002004-08-20 13:36:32 +000097 SEQUENCE_OF_constraint,
98 SEQUENCE_OF_decode_ber,
99 SEQUENCE_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +0000100 SEQUENCE_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000101 SEQUENCE_OF_encode_xer,
vlm21e46002004-08-20 13:36:32 +0000102 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000103 asn_DEF_varsets_2_tags,
104 sizeof(asn_DEF_varsets_2_tags)
105 /sizeof(asn_DEF_varsets_2_tags[0]), /* 1 */
106 asn_DEF_varsets_2_tags, /* Same as above */
107 sizeof(asn_DEF_varsets_2_tags)
108 /sizeof(asn_DEF_varsets_2_tags[0]), /* 1 */
109 asn_MBR_varsets_2,
vlm21e46002004-08-20 13:36:32 +0000110 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000111 &asn_SPC_varsets_2_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +0000112};
113
vlm44fe49a2005-03-04 11:26:08 +0000114static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000115 { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
vlm21e46002004-08-20 13:36:32 +0000116 .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
117 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000118 .type = (void *)&asn_DEF_IA5String,
vlm0a9af512005-01-17 12:20:19 +0000119 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000120 .name = "line-digest"
121 },
vlmddd5a7d2004-09-10 09:18:20 +0000122 { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
vlm21e46002004-08-20 13:36:32 +0000123 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
124 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000125 .type = (void *)&asn_DEF_varsets_2,
vlm824aefc2004-08-22 03:19:00 +0000126 .memb_constraints = memb_varsets_1_constraint,
vlm21e46002004-08-20 13:36:32 +0000127 .name = "varsets"
vlmfa67ddc2004-06-03 03:38:44 +0000128 },
129};
vlm44fe49a2005-03-04 11:26:08 +0000130static ber_tlv_tag_t asn_DEF_LogLine_1_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000131 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
132};
vlm44fe49a2005-03-04 11:26:08 +0000133static asn_TYPE_tag2member_t asn_MAP_LogLine_1_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +0000134 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */
vlm6c70ec52005-02-25 08:17:56 +0000135 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest at 23 */
vlm35efd1b2004-06-06 07:20:52 +0000136};
vlm44fe49a2005-03-04 11:26:08 +0000137static asn_SEQUENCE_specifics_t asn_SPC_LogLine_1_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000138 sizeof(struct LogLine),
vlm02296432004-09-29 13:19:37 +0000139 offsetof(struct LogLine, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000140 asn_MAP_LogLine_1_tag2el,
vlm35efd1b2004-06-06 07:20:52 +0000141 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000142 1, /* Start extensions */
143 3 /* Stop extensions */
144};
vlm02296432004-09-29 13:19:37 +0000145asn_TYPE_descriptor_t asn_DEF_LogLine = {
vlmfa67ddc2004-06-03 03:38:44 +0000146 "LogLine",
vlm9de248e2004-10-20 15:50:55 +0000147 "LogLine",
vlm39ba4c42004-09-22 16:06:28 +0000148 SEQUENCE_free,
149 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000150 SEQUENCE_constraint,
151 SEQUENCE_decode_ber,
152 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000153 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000154 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000155 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000156 asn_DEF_LogLine_1_tags,
157 sizeof(asn_DEF_LogLine_1_tags)
158 /sizeof(asn_DEF_LogLine_1_tags[0]), /* 1 */
159 asn_DEF_LogLine_1_tags, /* Same as above */
160 sizeof(asn_DEF_LogLine_1_tags)
161 /sizeof(asn_DEF_LogLine_1_tags[0]), /* 1 */
162 asn_MBR_LogLine_1,
vlm21e46002004-08-20 13:36:32 +0000163 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000164 &asn_SPC_LogLine_1_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000165};
166
167
vlm6e1b13e2004-08-11 05:25:47 +0000168/*** <<< INCLUDES [VariablePartSet] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000169
vlmfa67ddc2004-06-03 03:38:44 +0000170#include <ActionItem.h>
vlmfa67ddc2004-06-03 03:38:44 +0000171#include <asn_SEQUENCE_OF.h>
vlm6e1b13e2004-08-11 05:25:47 +0000172#include <constr_SEQUENCE_OF.h>
vlmfa67ddc2004-06-03 03:38:44 +0000173#include <constr_SEQUENCE.h>
174
vlm0b567bf2005-03-04 22:18:20 +0000175/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
vlm6e1b13e2004-08-11 05:25:47 +0000176
vlm5feb7522005-03-04 23:50:56 +0000177struct VariablePart;
vlmfa67ddc2004-06-03 03:38:44 +0000178
179/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
180
vlmfa67ddc2004-06-03 03:38:44 +0000181typedef struct VariablePartSet {
182 struct vparts {
vlm0b567bf2005-03-04 22:18:20 +0000183 A_SEQUENCE_OF(struct VariablePart) list;
vlmfa67ddc2004-06-03 03:38:44 +0000184
185 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000186 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000187 } vparts;
188 ActionItem_t resolution;
189 /*
190 * This type is extensible,
191 * possible extensions are below.
192 */
193
194 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000195 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000196} VariablePartSet_t;
197
vlm0b567bf2005-03-04 22:18:20 +0000198/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
199
200extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
201
202/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
203
204#include <VariablePart.h>
205
vlm21e46002004-08-20 13:36:32 +0000206/*** <<< CODE [VariablePartSet] >>> ***/
207
208static int
vlm44fe49a2005-03-04 11:26:08 +0000209memb_vparts_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
vlm21e46002004-08-20 13:36:32 +0000210 asn_app_consume_bytes_f *app_errlog, void *app_key) {
211
212 if(!sptr) {
213 _ASN_ERRLOG(app_errlog, app_key,
vlm758530a2004-08-22 13:47:59 +0000214 "%s: value not given (%s:%d)",
215 td->name, __FILE__, __LINE__);
vlm21e46002004-08-20 13:36:32 +0000216 return -1;
217 }
218
219
220 if(1 /* No applicable constraints whatsoever */) {
221 /* Nothing is here. See below */
222 }
223
vlmaafc9412004-09-26 13:12:56 +0000224 return td->check_constraints(td, sptr, app_errlog, app_key);
vlm21e46002004-08-20 13:36:32 +0000225}
226
227
vlmfa67ddc2004-06-03 03:38:44 +0000228/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
229
vlm44fe49a2005-03-04 11:26:08 +0000230static asn_TYPE_member_t asn_MBR_vparts_2[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000231 { ATF_NOFLAGS, 0, 0,
vlm060fe2a2004-09-10 09:37:12 +0000232 .tag = -1 /* Ambiguous tag (CHOICE?) */,
vlm21e46002004-08-20 13:36:32 +0000233 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000234 .type = (void *)&asn_DEF_VariablePart,
vlm0a9af512005-01-17 12:20:19 +0000235 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000236 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +0000237 },
vlm21e46002004-08-20 13:36:32 +0000238};
vlm44fe49a2005-03-04 11:26:08 +0000239static ber_tlv_tag_t asn_DEF_vparts_2_tags[] = {
vlm21e46002004-08-20 13:36:32 +0000240 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
241};
vlm44fe49a2005-03-04 11:26:08 +0000242static asn_SET_OF_specifics_t asn_SPC_vparts_2_specs = {
vlm21e46002004-08-20 13:36:32 +0000243 sizeof(struct vparts),
vlm02296432004-09-29 13:19:37 +0000244 offsetof(struct vparts, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +0000245 1, /* XER encoding is XMLValueList */
vlm21e46002004-08-20 13:36:32 +0000246};
vlm1dc848e2004-09-07 06:44:29 +0000247static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000248asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
vlm21e46002004-08-20 13:36:32 +0000249 "vparts",
vlm9de248e2004-10-20 15:50:55 +0000250 "vparts",
vlm39ba4c42004-09-22 16:06:28 +0000251 SEQUENCE_OF_free,
252 SEQUENCE_OF_print,
vlm21e46002004-08-20 13:36:32 +0000253 SEQUENCE_OF_constraint,
254 SEQUENCE_OF_decode_ber,
255 SEQUENCE_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +0000256 SEQUENCE_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000257 SEQUENCE_OF_encode_xer,
vlm21e46002004-08-20 13:36:32 +0000258 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000259 asn_DEF_vparts_2_tags,
260 sizeof(asn_DEF_vparts_2_tags)
261 /sizeof(asn_DEF_vparts_2_tags[0]), /* 1 */
262 asn_DEF_vparts_2_tags, /* Same as above */
263 sizeof(asn_DEF_vparts_2_tags)
264 /sizeof(asn_DEF_vparts_2_tags[0]), /* 1 */
265 asn_MBR_vparts_2,
vlm21e46002004-08-20 13:36:32 +0000266 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000267 &asn_SPC_vparts_2_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +0000268};
269
vlm44fe49a2005-03-04 11:26:08 +0000270static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000271 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
vlm21e46002004-08-20 13:36:32 +0000272 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
273 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000274 .type = (void *)&asn_DEF_vparts_2,
275 .memb_constraints = memb_vparts_1_constraint,
vlm21e46002004-08-20 13:36:32 +0000276 .name = "vparts"
277 },
vlmddd5a7d2004-09-10 09:18:20 +0000278 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
vlm21e46002004-08-20 13:36:32 +0000279 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
280 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000281 .type = (void *)&asn_DEF_ActionItem,
vlm0a9af512005-01-17 12:20:19 +0000282 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000283 .name = "resolution"
vlmfa67ddc2004-06-03 03:38:44 +0000284 },
285};
vlm44fe49a2005-03-04 11:26:08 +0000286static ber_tlv_tag_t asn_DEF_VariablePartSet_1_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000287 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
288};
vlm44fe49a2005-03-04 11:26:08 +0000289static asn_TYPE_tag2member_t asn_MAP_VariablePartSet_1_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +0000290 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */
vlm6c70ec52005-02-25 08:17:56 +0000291 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution at 35 */
vlm35efd1b2004-06-06 07:20:52 +0000292};
vlm44fe49a2005-03-04 11:26:08 +0000293static asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_1_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000294 sizeof(struct VariablePartSet),
vlm02296432004-09-29 13:19:37 +0000295 offsetof(struct VariablePartSet, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000296 asn_MAP_VariablePartSet_1_tag2el,
vlm35efd1b2004-06-06 07:20:52 +0000297 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000298 1, /* Start extensions */
299 3 /* Stop extensions */
300};
vlm02296432004-09-29 13:19:37 +0000301asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
vlmfa67ddc2004-06-03 03:38:44 +0000302 "VariablePartSet",
vlm9de248e2004-10-20 15:50:55 +0000303 "VariablePartSet",
vlm39ba4c42004-09-22 16:06:28 +0000304 SEQUENCE_free,
305 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000306 SEQUENCE_constraint,
307 SEQUENCE_decode_ber,
308 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000309 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000310 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000311 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000312 asn_DEF_VariablePartSet_1_tags,
313 sizeof(asn_DEF_VariablePartSet_1_tags)
314 /sizeof(asn_DEF_VariablePartSet_1_tags[0]), /* 1 */
315 asn_DEF_VariablePartSet_1_tags, /* Same as above */
316 sizeof(asn_DEF_VariablePartSet_1_tags)
317 /sizeof(asn_DEF_VariablePartSet_1_tags[0]), /* 1 */
318 asn_MBR_VariablePartSet_1,
vlm21e46002004-08-20 13:36:32 +0000319 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000320 &asn_SPC_VariablePartSet_1_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000321};
322
323
vlm6e1b13e2004-08-11 05:25:47 +0000324/*** <<< INCLUDES [VariablePart] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000325
vlmfa67ddc2004-06-03 03:38:44 +0000326#include <VisibleString.h>
327#include <asn_SET_OF.h>
vlm6e1b13e2004-08-11 05:25:47 +0000328#include <constr_SET_OF.h>
329#include <constr_SEQUENCE.h>
330#include <constr_CHOICE.h>
vlmfa67ddc2004-06-03 03:38:44 +0000331
vlm6e1b13e2004-08-11 05:25:47 +0000332/*** <<< DEPS [VariablePart] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000333
vlm6e1b13e2004-08-11 05:25:47 +0000334typedef enum VariablePart_PR {
335 VariablePart_PR_NOTHING, /* No components present */
336 VariablePart_PR_vset,
337 VariablePart_PR_vrange,
338 /* Extensions may appear below */
vlm6e73a042004-08-11 07:17:22 +0000339} VariablePart_PR;
vlmfa67ddc2004-06-03 03:38:44 +0000340
341/*** <<< TYPE-DECLS [VariablePart] >>> ***/
342
vlmfa67ddc2004-06-03 03:38:44 +0000343typedef struct VariablePart {
vlm6e73a042004-08-11 07:17:22 +0000344 VariablePart_PR present;
vlmfa67ddc2004-06-03 03:38:44 +0000345 union {
346 struct vset {
347 A_SET_OF(VisibleString_t) list;
348
349 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000350 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000351 } vset;
352 struct vrange {
353 VisibleString_t from;
354 VisibleString_t to;
355 /*
356 * This type is extensible,
357 * possible extensions are below.
358 */
359
360 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000361 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000362 } vrange;
363 /*
364 * This type is extensible,
365 * possible extensions are below.
366 */
367 } choice;
368
369 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000370 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000371} VariablePart_t;
372
vlm0b567bf2005-03-04 22:18:20 +0000373/*** <<< FUNC-DECLS [VariablePart] >>> ***/
374
375extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
376
vlm21e46002004-08-20 13:36:32 +0000377/*** <<< CODE [VariablePart] >>> ***/
378
379static int
vlm44fe49a2005-03-04 11:26:08 +0000380memb_vset_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
vlm21e46002004-08-20 13:36:32 +0000381 asn_app_consume_bytes_f *app_errlog, void *app_key) {
382 size_t size;
383
384 if(!sptr) {
385 _ASN_ERRLOG(app_errlog, app_key,
vlm758530a2004-08-22 13:47:59 +0000386 "%s: value not given (%s:%d)",
387 td->name, __FILE__, __LINE__);
vlm21e46002004-08-20 13:36:32 +0000388 return -1;
389 }
390
391 { /* Determine the number of elements */
392 const A_SET_OF(void) *list;
vlm097616c2005-01-30 18:34:07 +0000393 (const void *)list = sptr;
vlm21e46002004-08-20 13:36:32 +0000394 size = list->count;
395 }
396
397 if((size >= 1)) {
398 /* Constraint check succeeded */
vlmcdf661b2004-08-22 12:47:03 +0000399 return 0;
vlm21e46002004-08-20 13:36:32 +0000400 } else {
401 _ASN_ERRLOG(app_errlog, app_key,
vlm758530a2004-08-22 13:47:59 +0000402 "%s: constraint failed (%s:%d)",
403 td->name, __FILE__, __LINE__);
vlm21e46002004-08-20 13:36:32 +0000404 return -1;
405 }
406}
407
408
vlmfa67ddc2004-06-03 03:38:44 +0000409/*** <<< STAT-DEFS [VariablePart] >>> ***/
410
vlm44fe49a2005-03-04 11:26:08 +0000411static asn_TYPE_member_t asn_MBR_vset_2[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000412 { ATF_NOFLAGS, 0, 0,
vlm21e46002004-08-20 13:36:32 +0000413 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
414 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000415 .type = (void *)&asn_DEF_VisibleString,
vlm0a9af512005-01-17 12:20:19 +0000416 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000417 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +0000418 },
vlm21e46002004-08-20 13:36:32 +0000419};
vlm44fe49a2005-03-04 11:26:08 +0000420static ber_tlv_tag_t asn_DEF_vset_2_tags[] = {
vlm21e46002004-08-20 13:36:32 +0000421 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
422};
vlm44fe49a2005-03-04 11:26:08 +0000423static asn_SET_OF_specifics_t asn_SPC_vset_2_specs = {
vlm21e46002004-08-20 13:36:32 +0000424 sizeof(struct vset),
vlm02296432004-09-29 13:19:37 +0000425 offsetof(struct vset, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +0000426 0, /* XER encoding is XMLDelimitedItemList */
vlm21e46002004-08-20 13:36:32 +0000427};
vlm1dc848e2004-09-07 06:44:29 +0000428static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000429asn_TYPE_descriptor_t asn_DEF_vset_2 = {
vlm21e46002004-08-20 13:36:32 +0000430 "vset",
vlm9de248e2004-10-20 15:50:55 +0000431 "vset",
vlm39ba4c42004-09-22 16:06:28 +0000432 SET_OF_free,
433 SET_OF_print,
vlm21e46002004-08-20 13:36:32 +0000434 SET_OF_constraint,
435 SET_OF_decode_ber,
436 SET_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +0000437 SET_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000438 SET_OF_encode_xer,
vlm21e46002004-08-20 13:36:32 +0000439 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000440 asn_DEF_vset_2_tags,
441 sizeof(asn_DEF_vset_2_tags)
442 /sizeof(asn_DEF_vset_2_tags[0]), /* 1 */
443 asn_DEF_vset_2_tags, /* Same as above */
444 sizeof(asn_DEF_vset_2_tags)
445 /sizeof(asn_DEF_vset_2_tags[0]), /* 1 */
446 asn_MBR_vset_2,
vlm21e46002004-08-20 13:36:32 +0000447 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000448 &asn_SPC_vset_2_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +0000449};
450
vlm44fe49a2005-03-04 11:26:08 +0000451static asn_TYPE_member_t asn_MBR_vrange_3[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000452 { ATF_NOFLAGS, 0, offsetof(struct vrange, from),
vlm21e46002004-08-20 13:36:32 +0000453 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
454 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000455 .type = (void *)&asn_DEF_VisibleString,
vlm0a9af512005-01-17 12:20:19 +0000456 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000457 .name = "from"
458 },
vlmddd5a7d2004-09-10 09:18:20 +0000459 { ATF_NOFLAGS, 0, offsetof(struct vrange, to),
vlm21e46002004-08-20 13:36:32 +0000460 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
461 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000462 .type = (void *)&asn_DEF_VisibleString,
vlm0a9af512005-01-17 12:20:19 +0000463 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000464 .name = "to"
465 },
466};
vlm44fe49a2005-03-04 11:26:08 +0000467static ber_tlv_tag_t asn_DEF_vrange_3_tags[] = {
vlm21e46002004-08-20 13:36:32 +0000468 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
469};
vlm44fe49a2005-03-04 11:26:08 +0000470static asn_TYPE_tag2member_t asn_MAP_vrange_3_tag2el[] = {
vlm21e46002004-08-20 13:36:32 +0000471 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */
vlm6c70ec52005-02-25 08:17:56 +0000472 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */
vlm21e46002004-08-20 13:36:32 +0000473};
vlm44fe49a2005-03-04 11:26:08 +0000474static asn_SEQUENCE_specifics_t asn_SPC_vrange_3_specs = {
vlm21e46002004-08-20 13:36:32 +0000475 sizeof(struct vrange),
vlm02296432004-09-29 13:19:37 +0000476 offsetof(struct vrange, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000477 asn_MAP_vrange_3_tag2el,
vlm21e46002004-08-20 13:36:32 +0000478 2, /* Count of tags in the map */
479 1, /* Start extensions */
480 3 /* Stop extensions */
481};
vlm1dc848e2004-09-07 06:44:29 +0000482static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000483asn_TYPE_descriptor_t asn_DEF_vrange_3 = {
vlm21e46002004-08-20 13:36:32 +0000484 "vrange",
vlm9de248e2004-10-20 15:50:55 +0000485 "vrange",
vlm39ba4c42004-09-22 16:06:28 +0000486 SEQUENCE_free,
487 SEQUENCE_print,
vlm21e46002004-08-20 13:36:32 +0000488 SEQUENCE_constraint,
489 SEQUENCE_decode_ber,
490 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000491 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000492 SEQUENCE_encode_xer,
vlm21e46002004-08-20 13:36:32 +0000493 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000494 asn_DEF_vrange_3_tags,
495 sizeof(asn_DEF_vrange_3_tags)
496 /sizeof(asn_DEF_vrange_3_tags[0]), /* 1 */
497 asn_DEF_vrange_3_tags, /* Same as above */
498 sizeof(asn_DEF_vrange_3_tags)
499 /sizeof(asn_DEF_vrange_3_tags[0]), /* 1 */
500 asn_MBR_vrange_3,
vlm21e46002004-08-20 13:36:32 +0000501 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000502 &asn_SPC_vrange_3_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +0000503};
504
vlm44fe49a2005-03-04 11:26:08 +0000505static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000506 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
vlm21e46002004-08-20 13:36:32 +0000507 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
508 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000509 .type = (void *)&asn_DEF_vset_2,
510 .memb_constraints = memb_vset_1_constraint,
vlm21e46002004-08-20 13:36:32 +0000511 .name = "vset"
512 },
vlmddd5a7d2004-09-10 09:18:20 +0000513 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
vlm21e46002004-08-20 13:36:32 +0000514 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
515 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000516 .type = (void *)&asn_DEF_vrange_3,
vlm0a9af512005-01-17 12:20:19 +0000517 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000518 .name = "vrange"
vlmfa67ddc2004-06-03 03:38:44 +0000519 },
520};
vlm44fe49a2005-03-04 11:26:08 +0000521static asn_TYPE_tag2member_t asn_MAP_VariablePart_1_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +0000522 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */
vlm6c70ec52005-02-25 08:17:56 +0000523 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset at 42 */
vlmfa67ddc2004-06-03 03:38:44 +0000524};
vlm44fe49a2005-03-04 11:26:08 +0000525static asn_CHOICE_specifics_t asn_SPC_VariablePart_1_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000526 sizeof(struct VariablePart),
vlm02296432004-09-29 13:19:37 +0000527 offsetof(struct VariablePart, _asn_ctx),
vlmfa67ddc2004-06-03 03:38:44 +0000528 offsetof(struct VariablePart, present),
529 sizeof(((struct VariablePart *)0)->present),
vlm44fe49a2005-03-04 11:26:08 +0000530 asn_MAP_VariablePart_1_tag2el,
vlmfa67ddc2004-06-03 03:38:44 +0000531 2, /* Count of tags in the map */
vlm27ee5282004-07-01 00:49:55 +0000532 1 /* Whether extensible */
vlmfa67ddc2004-06-03 03:38:44 +0000533};
vlm02296432004-09-29 13:19:37 +0000534asn_TYPE_descriptor_t asn_DEF_VariablePart = {
vlmfa67ddc2004-06-03 03:38:44 +0000535 "VariablePart",
vlm9de248e2004-10-20 15:50:55 +0000536 "VariablePart",
vlm39ba4c42004-09-22 16:06:28 +0000537 CHOICE_free,
538 CHOICE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000539 CHOICE_constraint,
540 CHOICE_decode_ber,
541 CHOICE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000542 CHOICE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000543 CHOICE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000544 CHOICE_outmost_tag,
vlm72425de2004-09-13 08:31:01 +0000545 0, /* No effective tags (pointer) */
546 0, /* No effective tags (count) */
547 0, /* No tags (pointer) */
548 0, /* No tags (count) */
vlm44fe49a2005-03-04 11:26:08 +0000549 asn_MBR_VariablePart_1,
vlm21e46002004-08-20 13:36:32 +0000550 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000551 &asn_SPC_VariablePart_1_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000552};
553
554
vlm6e1b13e2004-08-11 05:25:47 +0000555/*** <<< INCLUDES [ActionItem] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000556
vlmfa67ddc2004-06-03 03:38:44 +0000557#include <ENUMERATED.h>
vlm6e1b13e2004-08-11 05:25:47 +0000558#include <BOOLEAN.h>
559#include <VisibleString.h>
560#include <asn_SET_OF.h>
561#include <constr_SET_OF.h>
562#include <constr_SEQUENCE.h>
563
564/*** <<< DEPS [ActionItem] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000565
vlm21e46002004-08-20 13:36:32 +0000566typedef enum accept_as {
567 accept_as_unknown = 0,
568 accept_as_safe = 1,
vlm6c70ec52005-02-25 08:17:56 +0000569 accept_as_unsafe = 2
vlm21e46002004-08-20 13:36:32 +0000570 /*
571 * Enumeration is extensible
572 */
573} accept_as_e;
vlmfa67ddc2004-06-03 03:38:44 +0000574
575/*** <<< TYPE-DECLS [ActionItem] >>> ***/
576
vlmfa67ddc2004-06-03 03:38:44 +0000577typedef struct ActionItem {
578 ENUMERATED_t accept_as;
579 struct notify {
580 BOOLEAN_t critical;
581 struct email {
582 A_SET_OF(VisibleString_t) list;
583
584 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000585 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000586 } email;
587 /*
588 * This type is extensible,
589 * possible extensions are below.
590 */
591
592 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000593 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000594 } *notify;
595 /*
596 * This type is extensible,
597 * possible extensions are below.
598 */
599
600 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000601 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000602} ActionItem_t;
603
vlm6c70ec52005-02-25 08:17:56 +0000604/*** <<< FUNC-DECLS [ActionItem] >>> ***/
605
vlm44fe49a2005-03-04 11:26:08 +0000606/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
vlm0b567bf2005-03-04 22:18:20 +0000607extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
vlm6c70ec52005-02-25 08:17:56 +0000608
609/*** <<< CODE [ActionItem] >>> ***/
610
611static int
vlm44fe49a2005-03-04 11:26:08 +0000612accept_as_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
vlm6c70ec52005-02-25 08:17:56 +0000613 asn_app_consume_bytes_f *app_errlog, void *app_key) {
614 /* Replace with underlying type checker */
615 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
616 return td->check_constraints(td, sptr, app_errlog, app_key);
617}
618
619/*
620 * This type is implemented using ENUMERATED,
621 * so here we adjust the DEF accordingly.
622 */
623static void
vlm44fe49a2005-03-04 11:26:08 +0000624accept_as_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
vlm6c70ec52005-02-25 08:17:56 +0000625 td->free_struct = asn_DEF_ENUMERATED.free_struct;
626 td->print_struct = asn_DEF_ENUMERATED.print_struct;
627 td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
628 td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
629 td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
630 td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
631 td->elements = asn_DEF_ENUMERATED.elements;
632 td->elements_count = asn_DEF_ENUMERATED.elements_count;
vlm9e481eb2005-02-25 10:24:45 +0000633 /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
vlm6c70ec52005-02-25 08:17:56 +0000634}
635
636static void
vlm44fe49a2005-03-04 11:26:08 +0000637accept_as_2_free(asn_TYPE_descriptor_t *td,
vlm6c70ec52005-02-25 08:17:56 +0000638 void *struct_ptr, int contents_only) {
vlm44fe49a2005-03-04 11:26:08 +0000639 accept_as_2_inherit_TYPE_descriptor(td);
vlm6c70ec52005-02-25 08:17:56 +0000640 td->free_struct(td, struct_ptr, contents_only);
641}
642
643static int
vlm44fe49a2005-03-04 11:26:08 +0000644accept_as_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
vlm6c70ec52005-02-25 08:17:56 +0000645 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
vlm44fe49a2005-03-04 11:26:08 +0000646 accept_as_2_inherit_TYPE_descriptor(td);
vlm6c70ec52005-02-25 08:17:56 +0000647 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
648}
649
650static asn_dec_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000651accept_as_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
vlm6c70ec52005-02-25 08:17:56 +0000652 void **structure, void *bufptr, size_t size, int tag_mode) {
vlm44fe49a2005-03-04 11:26:08 +0000653 accept_as_2_inherit_TYPE_descriptor(td);
vlm6c70ec52005-02-25 08:17:56 +0000654 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
655}
656
657static asn_enc_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000658accept_as_2_encode_der(asn_TYPE_descriptor_t *td,
vlm6c70ec52005-02-25 08:17:56 +0000659 void *structure, int tag_mode, ber_tlv_tag_t tag,
660 asn_app_consume_bytes_f *cb, void *app_key) {
vlm44fe49a2005-03-04 11:26:08 +0000661 accept_as_2_inherit_TYPE_descriptor(td);
vlm6c70ec52005-02-25 08:17:56 +0000662 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
663}
664
665static asn_dec_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000666accept_as_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
vlm6c70ec52005-02-25 08:17:56 +0000667 void **structure, const char *opt_mname, void *bufptr, size_t size) {
vlm44fe49a2005-03-04 11:26:08 +0000668 accept_as_2_inherit_TYPE_descriptor(td);
vlm6c70ec52005-02-25 08:17:56 +0000669 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
670}
671
672static asn_enc_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000673accept_as_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
vlm6c70ec52005-02-25 08:17:56 +0000674 int ilevel, enum xer_encoder_flags_e flags,
675 asn_app_consume_bytes_f *cb, void *app_key) {
vlm44fe49a2005-03-04 11:26:08 +0000676 accept_as_2_inherit_TYPE_descriptor(td);
vlm6c70ec52005-02-25 08:17:56 +0000677 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
678}
679
680
vlmfa67ddc2004-06-03 03:38:44 +0000681/*** <<< STAT-DEFS [ActionItem] >>> ***/
682
vlm44fe49a2005-03-04 11:26:08 +0000683static asn_INTEGER_enum_map_t asn_MAP_accept_as_2_value2enum[] = {
vlm56a1f3e2005-02-25 11:08:02 +0000684 { 0, 7, "unknown" },
685 { 1, 4, "safe" },
686 { 2, 6, "unsafe" }
vlm6c70ec52005-02-25 08:17:56 +0000687 /* This list is extensible */
688};
vlm44fe49a2005-03-04 11:26:08 +0000689static unsigned int asn_MAP_accept_as_2_enum2value[] = {
vlm56a1f3e2005-02-25 11:08:02 +0000690 1, /* safe(1) */
691 0, /* unknown(0) */
692 2 /* unsafe(2) */
vlm6c70ec52005-02-25 08:17:56 +0000693 /* This list is extensible */
694};
vlm44fe49a2005-03-04 11:26:08 +0000695static asn_INTEGER_specifics_t asn_SPC_accept_as_2_specs = {
696 asn_MAP_accept_as_2_value2enum, /* "tag" => N; sorted by tag */
697 asn_MAP_accept_as_2_enum2value, /* N => "tag"; sorted by N */
vlm6c70ec52005-02-25 08:17:56 +0000698 3, /* Number of elements in the maps */
vlmc018f362005-02-25 11:47:59 +0000699 1, /* Enumeration is extensible */
700 1 /* Strict enumeration */
vlm6c70ec52005-02-25 08:17:56 +0000701};
vlm44fe49a2005-03-04 11:26:08 +0000702static ber_tlv_tag_t asn_DEF_accept_as_2_tags[] = {
vlm6c70ec52005-02-25 08:17:56 +0000703 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
704};
705static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000706asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
vlm6c70ec52005-02-25 08:17:56 +0000707 "accept-as",
708 "accept-as",
vlm44fe49a2005-03-04 11:26:08 +0000709 accept_as_2_free,
710 accept_as_2_print,
711 accept_as_2_constraint,
712 accept_as_2_decode_ber,
713 accept_as_2_encode_der,
714 accept_as_2_decode_xer,
715 accept_as_2_encode_xer,
vlm6c70ec52005-02-25 08:17:56 +0000716 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000717 asn_DEF_accept_as_2_tags,
718 sizeof(asn_DEF_accept_as_2_tags)
719 /sizeof(asn_DEF_accept_as_2_tags[0]), /* 1 */
720 asn_DEF_accept_as_2_tags, /* Same as above */
721 sizeof(asn_DEF_accept_as_2_tags)
722 /sizeof(asn_DEF_accept_as_2_tags[0]), /* 1 */
vlm6c70ec52005-02-25 08:17:56 +0000723 0, 0, /* Defined elsewhere */
vlm44fe49a2005-03-04 11:26:08 +0000724 &asn_SPC_accept_as_2_specs /* Additional specs */
vlm6c70ec52005-02-25 08:17:56 +0000725};
726
vlm44fe49a2005-03-04 11:26:08 +0000727static asn_TYPE_member_t asn_MBR_email_4[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000728 { ATF_NOFLAGS, 0, 0,
vlm21e46002004-08-20 13:36:32 +0000729 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
730 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000731 .type = (void *)&asn_DEF_VisibleString,
vlm0a9af512005-01-17 12:20:19 +0000732 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000733 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +0000734 },
vlm21e46002004-08-20 13:36:32 +0000735};
vlm44fe49a2005-03-04 11:26:08 +0000736static ber_tlv_tag_t asn_DEF_email_4_tags[] = {
vlm21e46002004-08-20 13:36:32 +0000737 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
738};
vlm44fe49a2005-03-04 11:26:08 +0000739static asn_SET_OF_specifics_t asn_SPC_email_4_specs = {
vlm21e46002004-08-20 13:36:32 +0000740 sizeof(struct email),
vlm02296432004-09-29 13:19:37 +0000741 offsetof(struct email, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +0000742 0, /* XER encoding is XMLDelimitedItemList */
vlm21e46002004-08-20 13:36:32 +0000743};
vlm1dc848e2004-09-07 06:44:29 +0000744static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000745asn_TYPE_descriptor_t asn_DEF_email_4 = {
vlm21e46002004-08-20 13:36:32 +0000746 "email",
vlm9de248e2004-10-20 15:50:55 +0000747 "email",
vlm39ba4c42004-09-22 16:06:28 +0000748 SET_OF_free,
749 SET_OF_print,
vlm21e46002004-08-20 13:36:32 +0000750 SET_OF_constraint,
751 SET_OF_decode_ber,
752 SET_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +0000753 SET_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000754 SET_OF_encode_xer,
vlm21e46002004-08-20 13:36:32 +0000755 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000756 asn_DEF_email_4_tags,
757 sizeof(asn_DEF_email_4_tags)
758 /sizeof(asn_DEF_email_4_tags[0]), /* 1 */
759 asn_DEF_email_4_tags, /* Same as above */
760 sizeof(asn_DEF_email_4_tags)
761 /sizeof(asn_DEF_email_4_tags[0]), /* 1 */
762 asn_MBR_email_4,
vlm21e46002004-08-20 13:36:32 +0000763 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000764 &asn_SPC_email_4_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +0000765};
766
vlm44fe49a2005-03-04 11:26:08 +0000767static asn_TYPE_member_t asn_MBR_notify_3[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000768 { ATF_NOFLAGS, 0, offsetof(struct notify, critical),
vlm21e46002004-08-20 13:36:32 +0000769 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
770 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000771 .type = (void *)&asn_DEF_BOOLEAN,
vlm0a9af512005-01-17 12:20:19 +0000772 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000773 .name = "critical"
774 },
vlmddd5a7d2004-09-10 09:18:20 +0000775 { ATF_NOFLAGS, 0, offsetof(struct notify, email),
vlm21e46002004-08-20 13:36:32 +0000776 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
777 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000778 .type = (void *)&asn_DEF_email_4,
vlm0a9af512005-01-17 12:20:19 +0000779 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000780 .name = "email"
781 },
782};
vlm44fe49a2005-03-04 11:26:08 +0000783static ber_tlv_tag_t asn_DEF_notify_3_tags[] = {
vlm21e46002004-08-20 13:36:32 +0000784 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
785};
vlm44fe49a2005-03-04 11:26:08 +0000786static asn_TYPE_tag2member_t asn_MAP_notify_3_tag2el[] = {
vlm21e46002004-08-20 13:36:32 +0000787 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */
vlm6c70ec52005-02-25 08:17:56 +0000788 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */
vlm21e46002004-08-20 13:36:32 +0000789};
vlm44fe49a2005-03-04 11:26:08 +0000790static asn_SEQUENCE_specifics_t asn_SPC_notify_3_specs = {
vlm21e46002004-08-20 13:36:32 +0000791 sizeof(struct notify),
vlm02296432004-09-29 13:19:37 +0000792 offsetof(struct notify, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000793 asn_MAP_notify_3_tag2el,
vlm21e46002004-08-20 13:36:32 +0000794 2, /* Count of tags in the map */
795 1, /* Start extensions */
796 3 /* Stop extensions */
797};
vlm1dc848e2004-09-07 06:44:29 +0000798static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000799asn_TYPE_descriptor_t asn_DEF_notify_3 = {
vlm21e46002004-08-20 13:36:32 +0000800 "notify",
vlm9de248e2004-10-20 15:50:55 +0000801 "notify",
vlm39ba4c42004-09-22 16:06:28 +0000802 SEQUENCE_free,
803 SEQUENCE_print,
vlm21e46002004-08-20 13:36:32 +0000804 SEQUENCE_constraint,
805 SEQUENCE_decode_ber,
806 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000807 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000808 SEQUENCE_encode_xer,
vlm21e46002004-08-20 13:36:32 +0000809 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000810 asn_DEF_notify_3_tags,
811 sizeof(asn_DEF_notify_3_tags)
812 /sizeof(asn_DEF_notify_3_tags[0]), /* 1 */
813 asn_DEF_notify_3_tags, /* Same as above */
814 sizeof(asn_DEF_notify_3_tags)
815 /sizeof(asn_DEF_notify_3_tags[0]), /* 1 */
816 asn_MBR_notify_3,
vlm21e46002004-08-20 13:36:32 +0000817 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000818 &asn_SPC_notify_3_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +0000819};
820
vlm44fe49a2005-03-04 11:26:08 +0000821static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000822 { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
vlm21e46002004-08-20 13:36:32 +0000823 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
824 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000825 .type = (void *)&asn_DEF_accept_as_2,
vlm0a9af512005-01-17 12:20:19 +0000826 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000827 .name = "accept-as"
828 },
vlmddd5a7d2004-09-10 09:18:20 +0000829 { ATF_POINTER, 1, offsetof(struct ActionItem, notify),
vlm21e46002004-08-20 13:36:32 +0000830 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
831 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000832 .type = (void *)&asn_DEF_notify_3,
vlm0a9af512005-01-17 12:20:19 +0000833 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000834 .name = "notify"
vlmfa67ddc2004-06-03 03:38:44 +0000835 },
836};
vlm44fe49a2005-03-04 11:26:08 +0000837static ber_tlv_tag_t asn_DEF_ActionItem_1_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000838 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
839};
vlm44fe49a2005-03-04 11:26:08 +0000840static asn_TYPE_tag2member_t asn_MAP_ActionItem_1_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +0000841 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */
vlm6c70ec52005-02-25 08:17:56 +0000842 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify at 61 */
vlm35efd1b2004-06-06 07:20:52 +0000843};
vlm44fe49a2005-03-04 11:26:08 +0000844static asn_SEQUENCE_specifics_t asn_SPC_ActionItem_1_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000845 sizeof(struct ActionItem),
vlm02296432004-09-29 13:19:37 +0000846 offsetof(struct ActionItem, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000847 asn_MAP_ActionItem_1_tag2el,
vlm35efd1b2004-06-06 07:20:52 +0000848 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000849 1, /* Start extensions */
850 3 /* Stop extensions */
851};
vlm02296432004-09-29 13:19:37 +0000852asn_TYPE_descriptor_t asn_DEF_ActionItem = {
vlmfa67ddc2004-06-03 03:38:44 +0000853 "ActionItem",
vlm9de248e2004-10-20 15:50:55 +0000854 "ActionItem",
vlm39ba4c42004-09-22 16:06:28 +0000855 SEQUENCE_free,
856 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000857 SEQUENCE_constraint,
858 SEQUENCE_decode_ber,
859 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000860 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000861 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000862 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000863 asn_DEF_ActionItem_1_tags,
864 sizeof(asn_DEF_ActionItem_1_tags)
865 /sizeof(asn_DEF_ActionItem_1_tags[0]), /* 1 */
866 asn_DEF_ActionItem_1_tags, /* Same as above */
867 sizeof(asn_DEF_ActionItem_1_tags)
868 /sizeof(asn_DEF_ActionItem_1_tags[0]), /* 1 */
869 asn_MBR_ActionItem_1,
vlm21e46002004-08-20 13:36:32 +0000870 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000871 &asn_SPC_ActionItem_1_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000872};
873