asn1c/tests/42-real-life-OK.asn1.-PR

931 lines
27 KiB
Plaintext
Raw Normal View History

2004-06-03 03:38:44 +00:00
2004-08-11 05:25:47 +00:00
/*** <<< INCLUDES [LogLine] >>> ***/
2004-06-03 03:38:44 +00:00
#include <IA5String.h>
#include <asn_SEQUENCE_OF.h>
2004-08-11 05:25:47 +00:00
#include <constr_SEQUENCE_OF.h>
2004-06-03 03:38:44 +00:00
#include <constr_SEQUENCE.h>
/*** <<< FWD-DECLS [LogLine] >>> ***/
2004-08-11 05:25:47 +00:00
2005-03-04 23:50:56 +00:00
struct VariablePartSet;
2004-06-03 03:38:44 +00:00
/*** <<< TYPE-DECLS [LogLine] >>> ***/
typedef struct LogLine {
IA5String_t line_digest;
struct varsets {
A_SEQUENCE_OF(struct VariablePartSet) list;
2004-06-03 03:38:44 +00:00
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} varsets;
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} LogLine_t;
/*** <<< FUNC-DECLS [LogLine] >>> ***/
extern asn_TYPE_descriptor_t asn_DEF_LogLine;
/*** <<< POST-INCLUDE [LogLine] >>> ***/
#include <VariablePartSet.h>
2004-08-20 13:36:32 +00:00
/*** <<< CODE [LogLine] >>> ***/
2004-06-03 03:38:44 +00:00
2004-08-20 13:36:32 +00:00
static int
2005-11-26 11:25:14 +00:00
memb_varsets_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
2004-08-20 13:36:32 +00:00
asn_app_consume_bytes_f *app_errlog, void *app_key) {
size_t size;
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
2004-08-22 13:47:59 +00:00
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
2004-08-20 13:36:32 +00:00
return -1;
}
2004-06-03 03:38:44 +00:00
2005-07-04 02:03:57 +00:00
/* Determine the number of elements */
size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
2004-08-20 13:36:32 +00:00
if((size >= 1)) {
2005-03-29 19:05:37 +00:00
/* Perform validation of the inner elements */
2005-03-31 21:52:53 +00:00
return td->check_constraints(td, sptr, app_errlog, app_key);
2004-08-20 13:36:32 +00:00
} else {
_ASN_ERRLOG(app_errlog, app_key,
2004-08-22 13:47:59 +00:00
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
2004-08-20 13:36:32 +00:00
return -1;
}
}
/*** <<< STAT-DEFS [LogLine] >>> ***/
static asn_TYPE_member_t asn_MBR_varsets_3[] = {
2005-08-16 16:57:17 +00:00
{ ATF_POINTER, 0, 0,
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_VariablePartSet,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = ""
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_varsets_tags_3[] = {
2004-08-20 13:36:32 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_SET_OF_specifics_t asn_SPC_varsets_specs_3 = {
2004-08-20 13:36:32 +00:00
sizeof(struct varsets),
2004-09-29 13:19:37 +00:00
offsetof(struct varsets, _asn_ctx),
2004-09-22 16:06:28 +00:00
0, /* XER encoding is XMLDelimitedItemList */
2004-08-20 13:36:32 +00:00
};
2004-09-07 06:44:29 +00:00
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_varsets_3 = {
2004-10-20 15:50:55 +00:00
"varsets",
2004-08-20 13:36:32 +00:00
"varsets",
2004-09-22 16:06:28 +00:00
SEQUENCE_OF_free,
SEQUENCE_OF_print,
2004-08-20 13:36:32 +00:00
SEQUENCE_OF_constraint,
SEQUENCE_OF_decode_ber,
SEQUENCE_OF_encode_der,
2005-02-14 20:31:31 +00:00
SEQUENCE_OF_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_OF_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-08-20 13:36:32 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_varsets_tags_3,
sizeof(asn_DEF_varsets_tags_3)
/sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
asn_DEF_varsets_tags_3, /* Same as above */
sizeof(asn_DEF_varsets_tags_3)
/sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_varsets_3,
2004-08-20 13:36:32 +00:00
1, /* Single element */
2005-11-26 11:25:14 +00:00
&asn_SPC_varsets_specs_3 /* Additional specs */
2004-08-20 13:36:32 +00:00
};
2005-03-04 11:26:08 +00:00
static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag_mode = 0,
.type = &asn_DEF_IA5String,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "line-digest"
2004-06-03 03:38:44 +00:00
},
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_varsets_3,
2005-11-26 11:25:14 +00:00
.memb_constraints = memb_varsets_constraint_1,
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "varsets"
2004-06-03 03:38:44 +00:00
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = {
2004-06-03 03:38:44 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = {
2004-06-14 13:09:45 +00:00
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */
{ (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest at 23 */
2004-06-06 07:20:52 +00:00
};
2005-11-26 11:25:14 +00:00
static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = {
2004-06-03 03:38:44 +00:00
sizeof(struct LogLine),
2004-09-29 13:19:37 +00:00
offsetof(struct LogLine, _asn_ctx),
2005-11-26 11:25:14 +00:00
asn_MAP_LogLine_tag2el_1,
2004-06-06 07:20:52 +00:00
2, /* Count of tags in the map */
2005-11-26 11:25:14 +00:00
0, 0, 0, /* Optional elements (not needed) */
2004-06-03 03:38:44 +00:00
1, /* Start extensions */
3 /* Stop extensions */
};
2004-09-29 13:19:37 +00:00
asn_TYPE_descriptor_t asn_DEF_LogLine = {
2004-10-20 15:50:55 +00:00
"LogLine",
2004-06-03 03:38:44 +00:00
"LogLine",
2004-09-22 16:06:28 +00:00
SEQUENCE_free,
SEQUENCE_print,
2004-06-03 03:38:44 +00:00
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
2004-10-23 15:07:45 +00:00
SEQUENCE_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-06-03 03:38:44 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_LogLine_tags_1,
sizeof(asn_DEF_LogLine_tags_1)
/sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
asn_DEF_LogLine_tags_1, /* Same as above */
sizeof(asn_DEF_LogLine_tags_1)
/sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
2005-03-04 11:26:08 +00:00
asn_MBR_LogLine_1,
2004-08-20 13:36:32 +00:00
2, /* Elements count */
2005-11-26 11:25:14 +00:00
&asn_SPC_LogLine_specs_1 /* Additional specs */
2004-06-03 03:38:44 +00:00
};
2004-08-11 05:25:47 +00:00
/*** <<< INCLUDES [VariablePartSet] >>> ***/
2004-06-03 03:38:44 +00:00
#include <ActionItem.h>
#include <asn_SEQUENCE_OF.h>
2004-08-11 05:25:47 +00:00
#include <constr_SEQUENCE_OF.h>
2004-06-03 03:38:44 +00:00
#include <constr_SEQUENCE.h>
/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
2004-08-11 05:25:47 +00:00
2005-03-04 23:50:56 +00:00
struct VariablePart;
2004-06-03 03:38:44 +00:00
/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
typedef struct VariablePartSet {
struct vparts {
A_SEQUENCE_OF(struct VariablePart) list;
2004-06-03 03:38:44 +00:00
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} vparts;
ActionItem_t resolution;
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} VariablePartSet_t;
/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
#include <VariablePart.h>
2004-08-20 13:36:32 +00:00
/*** <<< CODE [VariablePartSet] >>> ***/
2004-06-03 03:38:44 +00:00
2004-08-20 13:36:32 +00:00
static int
2005-11-26 11:25:14 +00:00
memb_vparts_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
2004-08-20 13:36:32 +00:00
asn_app_consume_bytes_f *app_errlog, void *app_key) {
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
2004-08-22 13:47:59 +00:00
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
2004-08-20 13:36:32 +00:00
return -1;
}
if(1 /* No applicable constraints whatsoever */) {
/* Nothing is here. See below */
}
2004-06-03 03:38:44 +00:00
return td->check_constraints(td, sptr, app_errlog, app_key);
2004-08-20 13:36:32 +00:00
}
/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
2005-03-04 11:26:08 +00:00
static asn_TYPE_member_t asn_MBR_vparts_2[] = {
2005-08-16 16:57:17 +00:00
{ ATF_POINTER, 0, 0,
2004-09-10 09:37:12 +00:00
.tag = -1 /* Ambiguous tag (CHOICE?) */,
2004-08-20 13:36:32 +00:00
.tag_mode = 0,
.type = &asn_DEF_VariablePart,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = ""
2004-06-03 03:38:44 +00:00
},
2004-08-20 13:36:32 +00:00
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
2004-08-20 13:36:32 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
2004-08-20 13:36:32 +00:00
sizeof(struct vparts),
2004-09-29 13:19:37 +00:00
offsetof(struct vparts, _asn_ctx),
2, /* XER encoding is XMLValueList */
2004-08-20 13:36:32 +00:00
};
2004-09-07 06:44:29 +00:00
static /* Use -fall-defs-global to expose */
2005-03-04 11:26:08 +00:00
asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
2004-10-20 15:50:55 +00:00
"vparts",
2004-08-20 13:36:32 +00:00
"vparts",
2004-09-22 16:06:28 +00:00
SEQUENCE_OF_free,
SEQUENCE_OF_print,
2004-08-20 13:36:32 +00:00
SEQUENCE_OF_constraint,
SEQUENCE_OF_decode_ber,
SEQUENCE_OF_encode_der,
2005-02-14 20:31:31 +00:00
SEQUENCE_OF_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_OF_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-08-20 13:36:32 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_vparts_tags_2,
sizeof(asn_DEF_vparts_tags_2)
/sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
asn_DEF_vparts_tags_2, /* Same as above */
sizeof(asn_DEF_vparts_tags_2)
/sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
0, /* No PER visible constraints */
2005-03-04 11:26:08 +00:00
asn_MBR_vparts_2,
2004-08-20 13:36:32 +00:00
1, /* Single element */
2005-11-26 11:25:14 +00:00
&asn_SPC_vparts_specs_2 /* Additional specs */
2004-08-20 13:36:32 +00:00
};
2005-03-04 11:26:08 +00:00
static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_vparts_2,
2005-11-26 11:25:14 +00:00
.memb_constraints = memb_vparts_constraint_1,
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "vparts"
},
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_ActionItem,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "resolution"
2004-06-03 03:38:44 +00:00
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
2004-06-03 03:38:44 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
2004-06-14 13:09:45 +00:00
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution at 35 */
2004-06-06 07:20:52 +00:00
};
2005-11-26 11:25:14 +00:00
static asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = {
2004-06-03 03:38:44 +00:00
sizeof(struct VariablePartSet),
2004-09-29 13:19:37 +00:00
offsetof(struct VariablePartSet, _asn_ctx),
2005-11-26 11:25:14 +00:00
asn_MAP_VariablePartSet_tag2el_1,
2004-06-06 07:20:52 +00:00
2, /* Count of tags in the map */
2005-11-26 11:25:14 +00:00
0, 0, 0, /* Optional elements (not needed) */
2004-06-03 03:38:44 +00:00
1, /* Start extensions */
3 /* Stop extensions */
};
2004-09-29 13:19:37 +00:00
asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
2004-10-20 15:50:55 +00:00
"VariablePartSet",
2004-06-03 03:38:44 +00:00
"VariablePartSet",
2004-09-22 16:06:28 +00:00
SEQUENCE_free,
SEQUENCE_print,
2004-06-03 03:38:44 +00:00
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
2004-10-23 15:07:45 +00:00
SEQUENCE_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-06-03 03:38:44 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_VariablePartSet_tags_1,
sizeof(asn_DEF_VariablePartSet_tags_1)
/sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
asn_DEF_VariablePartSet_tags_1, /* Same as above */
sizeof(asn_DEF_VariablePartSet_tags_1)
/sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
2005-03-04 11:26:08 +00:00
asn_MBR_VariablePartSet_1,
2004-08-20 13:36:32 +00:00
2, /* Elements count */
2005-11-26 11:25:14 +00:00
&asn_SPC_VariablePartSet_specs_1 /* Additional specs */
2004-06-03 03:38:44 +00:00
};
2004-08-11 05:25:47 +00:00
/*** <<< INCLUDES [VariablePart] >>> ***/
2004-06-03 03:38:44 +00:00
#include <VisibleString.h>
#include <asn_SET_OF.h>
2004-08-11 05:25:47 +00:00
#include <constr_SET_OF.h>
#include <constr_SEQUENCE.h>
#include <constr_CHOICE.h>
2004-06-03 03:38:44 +00:00
2004-08-11 05:25:47 +00:00
/*** <<< DEPS [VariablePart] >>> ***/
2004-06-03 03:38:44 +00:00
2004-08-11 05:25:47 +00:00
typedef enum VariablePart_PR {
VariablePart_PR_NOTHING, /* No components present */
VariablePart_PR_vset,
VariablePart_PR_vrange,
/* Extensions may appear below */
2004-08-11 07:17:22 +00:00
} VariablePart_PR;
2004-06-03 03:38:44 +00:00
/*** <<< TYPE-DECLS [VariablePart] >>> ***/
typedef struct VariablePart {
2004-08-11 07:17:22 +00:00
VariablePart_PR present;
2005-08-14 15:03:31 +00:00
union VariablePart_u {
2004-06-03 03:38:44 +00:00
struct vset {
A_SET_OF(VisibleString_t) list;
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} vset;
struct vrange {
VisibleString_t from;
VisibleString_t to;
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} vrange;
/*
* This type is extensible,
* possible extensions are below.
*/
} choice;
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} VariablePart_t;
/*** <<< FUNC-DECLS [VariablePart] >>> ***/
extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
2004-08-20 13:36:32 +00:00
/*** <<< CODE [VariablePart] >>> ***/
static int
2005-11-26 11:25:14 +00:00
memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
2004-08-20 13:36:32 +00:00
asn_app_consume_bytes_f *app_errlog, void *app_key) {
size_t size;
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
2004-08-22 13:47:59 +00:00
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
2004-08-20 13:36:32 +00:00
return -1;
}
2005-07-04 02:03:57 +00:00
/* Determine the number of elements */
size = _A_CSET_FROM_VOID(sptr)->count;
2004-08-20 13:36:32 +00:00
if((size >= 1)) {
2005-03-29 19:05:37 +00:00
/* Perform validation of the inner elements */
2005-03-31 21:52:53 +00:00
return td->check_constraints(td, sptr, app_errlog, app_key);
2004-08-20 13:36:32 +00:00
} else {
_ASN_ERRLOG(app_errlog, app_key,
2004-08-22 13:47:59 +00:00
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
2004-08-20 13:36:32 +00:00
return -1;
}
}
2004-06-03 03:38:44 +00:00
/*** <<< STAT-DEFS [VariablePart] >>> ***/
2005-03-04 11:26:08 +00:00
static asn_TYPE_member_t asn_MBR_vset_2[] = {
2005-08-16 16:57:17 +00:00
{ ATF_POINTER, 0, 0,
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.type = &asn_DEF_VisibleString,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = ""
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
2004-08-20 13:36:32 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
2004-08-20 13:36:32 +00:00
sizeof(struct vset),
2004-09-29 13:19:37 +00:00
offsetof(struct vset, _asn_ctx),
2004-09-22 16:06:28 +00:00
0, /* XER encoding is XMLDelimitedItemList */
2004-08-20 13:36:32 +00:00
};
2004-09-07 06:44:29 +00:00
static /* Use -fall-defs-global to expose */
2005-03-04 11:26:08 +00:00
asn_TYPE_descriptor_t asn_DEF_vset_2 = {
2004-10-20 15:50:55 +00:00
"vset",
2004-08-20 13:36:32 +00:00
"vset",
2004-09-22 16:06:28 +00:00
SET_OF_free,
SET_OF_print,
2004-08-20 13:36:32 +00:00
SET_OF_constraint,
SET_OF_decode_ber,
SET_OF_encode_der,
2005-02-14 20:31:31 +00:00
SET_OF_decode_xer,
2004-09-22 16:06:28 +00:00
SET_OF_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-08-20 13:36:32 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_vset_tags_2,
sizeof(asn_DEF_vset_tags_2)
/sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
asn_DEF_vset_tags_2, /* Same as above */
sizeof(asn_DEF_vset_tags_2)
/sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
0, /* No PER visible constraints */
2005-03-04 11:26:08 +00:00
asn_MBR_vset_2,
2004-08-20 13:36:32 +00:00
1, /* Single element */
2005-11-26 11:25:14 +00:00
&asn_SPC_vset_specs_2 /* Additional specs */
2004-08-20 13:36:32 +00:00
};
static asn_TYPE_member_t asn_MBR_vrange_4[] = {
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.type = &asn_DEF_VisibleString,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "from"
2004-06-03 03:38:44 +00:00
},
{ ATF_NOFLAGS, 0, offsetof(struct vrange, to),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.type = &asn_DEF_VisibleString,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "to"
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
2004-08-20 13:36:32 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
2004-08-20 13:36:32 +00:00
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */
2004-08-20 13:36:32 +00:00
};
2005-11-26 11:25:14 +00:00
static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = {
2004-08-20 13:36:32 +00:00
sizeof(struct vrange),
2004-09-29 13:19:37 +00:00
offsetof(struct vrange, _asn_ctx),
2005-11-26 11:25:14 +00:00
asn_MAP_vrange_tag2el_4,
2004-08-20 13:36:32 +00:00
2, /* Count of tags in the map */
2005-11-26 11:25:14 +00:00
0, 0, 0, /* Optional elements (not needed) */
2004-08-20 13:36:32 +00:00
1, /* Start extensions */
3 /* Stop extensions */
};
2004-09-07 06:44:29 +00:00
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
2004-10-20 15:50:55 +00:00
"vrange",
2004-08-20 13:36:32 +00:00
"vrange",
2004-09-22 16:06:28 +00:00
SEQUENCE_free,
SEQUENCE_print,
2004-08-20 13:36:32 +00:00
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
2004-10-23 15:07:45 +00:00
SEQUENCE_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-08-20 13:36:32 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_vrange_tags_4,
sizeof(asn_DEF_vrange_tags_4)
/sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
asn_DEF_vrange_tags_4, /* Same as above */
sizeof(asn_DEF_vrange_tags_4)
/sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_vrange_4,
2004-08-20 13:36:32 +00:00
2, /* Elements count */
2005-11-26 11:25:14 +00:00
&asn_SPC_vrange_specs_4 /* Additional specs */
2004-08-20 13:36:32 +00:00
};
2005-03-04 11:26:08 +00:00
static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.type = &asn_DEF_vset_2,
2005-11-26 11:25:14 +00:00
.memb_constraints = memb_vset_constraint_1,
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "vset"
},
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_vrange_4,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "vrange"
2004-06-03 03:38:44 +00:00
},
};
2005-11-26 11:25:14 +00:00
static asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
2004-06-14 13:09:45 +00:00
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset at 42 */
2004-06-03 03:38:44 +00:00
};
2005-11-26 11:25:14 +00:00
static asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = {
2004-06-03 03:38:44 +00:00
sizeof(struct VariablePart),
2004-09-29 13:19:37 +00:00
offsetof(struct VariablePart, _asn_ctx),
2004-06-03 03:38:44 +00:00
offsetof(struct VariablePart, present),
sizeof(((struct VariablePart *)0)->present),
2005-11-26 11:25:14 +00:00
asn_MAP_VariablePart_tag2el_1,
2004-06-03 03:38:44 +00:00
2, /* Count of tags in the map */
2005-11-26 11:25:14 +00:00
.canonical_order = 0,
.ext_start = 2 /* Extensions start */
2004-06-03 03:38:44 +00:00
};
2004-09-29 13:19:37 +00:00
asn_TYPE_descriptor_t asn_DEF_VariablePart = {
2004-10-20 15:50:55 +00:00
"VariablePart",
2004-06-03 03:38:44 +00:00
"VariablePart",
2004-09-22 16:06:28 +00:00
CHOICE_free,
CHOICE_print,
2004-06-03 03:38:44 +00:00
CHOICE_constraint,
CHOICE_decode_ber,
CHOICE_encode_der,
2004-10-23 15:07:45 +00:00
CHOICE_decode_xer,
2004-09-22 16:06:28 +00:00
CHOICE_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-06-03 03:38:44 +00:00
CHOICE_outmost_tag,
0, /* No effective tags (pointer) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
2005-11-26 11:25:14 +00:00
0, /* No PER visible constraints */
2005-03-04 11:26:08 +00:00
asn_MBR_VariablePart_1,
2004-08-20 13:36:32 +00:00
2, /* Elements count */
2005-11-26 11:25:14 +00:00
&asn_SPC_VariablePart_specs_1 /* Additional specs */
2004-06-03 03:38:44 +00:00
};
2004-08-11 05:25:47 +00:00
/*** <<< INCLUDES [ActionItem] >>> ***/
2004-06-03 03:38:44 +00:00
#include <ENUMERATED.h>
2004-08-11 05:25:47 +00:00
#include <BOOLEAN.h>
#include <VisibleString.h>
#include <asn_SET_OF.h>
#include <constr_SET_OF.h>
#include <constr_SEQUENCE.h>
/*** <<< DEPS [ActionItem] >>> ***/
2004-06-03 03:38:44 +00:00
2004-08-20 13:36:32 +00:00
typedef enum accept_as {
accept_as_unknown = 0,
accept_as_safe = 1,
accept_as_unsafe = 2
2004-08-20 13:36:32 +00:00
/*
* Enumeration is extensible
*/
} accept_as_e;
2004-06-03 03:38:44 +00:00
/*** <<< TYPE-DECLS [ActionItem] >>> ***/
typedef struct ActionItem {
ENUMERATED_t accept_as;
struct notify {
BOOLEAN_t critical;
struct email {
A_SET_OF(VisibleString_t) list;
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} email;
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} *notify;
/*
* This type is extensible,
* possible extensions are below.
*/
/* Context for parsing across buffer boundaries */
2004-09-29 13:19:37 +00:00
asn_struct_ctx_t _asn_ctx;
2004-06-03 03:38:44 +00:00
} ActionItem_t;
/*** <<< FUNC-DECLS [ActionItem] >>> ***/
2005-03-04 11:26:08 +00:00
/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
/*** <<< CODE [ActionItem] >>> ***/
static int
2005-03-04 11:26:08 +00:00
accept_as_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_consume_bytes_f *app_errlog, void *app_key) {
/* Replace with underlying type checker */
td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
return td->check_constraints(td, sptr, app_errlog, app_key);
}
/*
* This type is implemented using ENUMERATED,
* so here we adjust the DEF accordingly.
*/
static void
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_ENUMERATED.free_struct;
td->print_struct = asn_DEF_ENUMERATED.print_struct;
td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
2005-11-26 11:25:14 +00:00
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
td->elements_count = asn_DEF_ENUMERATED.elements_count;
2005-03-29 19:05:37 +00:00
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
}
static void
2005-03-04 11:26:08 +00:00
accept_as_2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
static int
2005-03-04 11:26:08 +00:00
accept_as_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
static asn_dec_rval_t
2005-03-04 11:26:08 +00:00
accept_as_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2005-03-17 21:57:19 +00:00
void **structure, const void *bufptr, size_t size, int tag_mode) {
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
static asn_enc_rval_t
2005-03-04 11:26:08 +00:00
accept_as_2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
static asn_dec_rval_t
2005-03-04 11:26:08 +00:00
accept_as_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2005-03-17 21:57:19 +00:00
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
static asn_enc_rval_t
2005-03-04 11:26:08 +00:00
accept_as_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
2005-03-04 11:26:08 +00:00
accept_as_2_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
2004-06-03 03:38:44 +00:00
/*** <<< STAT-DEFS [ActionItem] >>> ***/
2005-11-26 11:25:14 +00:00
static asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
2005-02-25 11:08:02 +00:00
{ 0, 7, "unknown" },
{ 1, 4, "safe" },
{ 2, 6, "unsafe" }
/* This list is extensible */
};
2005-11-26 11:25:14 +00:00
static unsigned int asn_MAP_accept_as_enum2value_2[] = {
2005-02-25 11:08:02 +00:00
1, /* safe(1) */
0, /* unknown(0) */
2 /* unsafe(2) */
/* This list is extensible */
};
2005-11-26 11:25:14 +00:00
static asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
2005-11-26 11:25:14 +00:00
4, /* Extensions before this member */
2005-02-25 11:47:59 +00:00
1 /* Strict enumeration */
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
static /* Use -fall-defs-global to expose */
2005-03-04 11:26:08 +00:00
asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
"accept-as",
"accept-as",
2005-03-04 11:26:08 +00:00
accept_as_2_free,
accept_as_2_print,
accept_as_2_constraint,
accept_as_2_decode_ber,
accept_as_2_encode_der,
accept_as_2_decode_xer,
accept_as_2_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_accept_as_tags_2,
sizeof(asn_DEF_accept_as_tags_2)
/sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
asn_DEF_accept_as_tags_2, /* Same as above */
sizeof(asn_DEF_accept_as_tags_2)
/sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
0, /* No PER visible constraints */
0, 0, /* Defined elsewhere */
2005-11-26 11:25:14 +00:00
&asn_SPC_accept_as_specs_2 /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_email_9[] = {
2005-08-16 16:57:17 +00:00
{ ATF_POINTER, 0, 0,
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.type = &asn_DEF_VisibleString,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = ""
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_email_tags_9[] = {
2004-08-20 13:36:32 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
2004-08-20 13:36:32 +00:00
sizeof(struct email),
2004-09-29 13:19:37 +00:00
offsetof(struct email, _asn_ctx),
2004-09-22 16:06:28 +00:00
0, /* XER encoding is XMLDelimitedItemList */
2004-08-20 13:36:32 +00:00
};
2004-09-07 06:44:29 +00:00
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_email_9 = {
2004-10-20 15:50:55 +00:00
"email",
2004-08-20 13:36:32 +00:00
"email",
2004-09-22 16:06:28 +00:00
SET_OF_free,
SET_OF_print,
2004-08-20 13:36:32 +00:00
SET_OF_constraint,
SET_OF_decode_ber,
SET_OF_encode_der,
2005-02-14 20:31:31 +00:00
SET_OF_decode_xer,
2004-09-22 16:06:28 +00:00
SET_OF_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-08-20 13:36:32 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_email_tags_9,
sizeof(asn_DEF_email_tags_9)
/sizeof(asn_DEF_email_tags_9[0]), /* 1 */
asn_DEF_email_tags_9, /* Same as above */
sizeof(asn_DEF_email_tags_9)
/sizeof(asn_DEF_email_tags_9[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_email_9,
2004-08-20 13:36:32 +00:00
1, /* Single element */
2005-11-26 11:25:14 +00:00
&asn_SPC_email_specs_9 /* Additional specs */
2004-08-20 13:36:32 +00:00
};
static asn_TYPE_member_t asn_MBR_notify_7[] = {
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.type = &asn_DEF_BOOLEAN,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "critical"
2004-06-03 03:38:44 +00:00
},
{ ATF_NOFLAGS, 0, offsetof(struct notify, email),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.type = &asn_DEF_email_9,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "email"
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
2004-08-20 13:36:32 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
2004-08-20 13:36:32 +00:00
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */
2004-08-20 13:36:32 +00:00
};
2005-11-26 11:25:14 +00:00
static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = {
2004-08-20 13:36:32 +00:00
sizeof(struct notify),
2004-09-29 13:19:37 +00:00
offsetof(struct notify, _asn_ctx),
2005-11-26 11:25:14 +00:00
asn_MAP_notify_tag2el_7,
2004-08-20 13:36:32 +00:00
2, /* Count of tags in the map */
2005-11-26 11:25:14 +00:00
0, 0, 0, /* Optional elements (not needed) */
2004-08-20 13:36:32 +00:00
1, /* Start extensions */
3 /* Stop extensions */
};
2004-09-07 06:44:29 +00:00
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_notify_7 = {
2004-10-20 15:50:55 +00:00
"notify",
2004-08-20 13:36:32 +00:00
"notify",
2004-09-22 16:06:28 +00:00
SEQUENCE_free,
SEQUENCE_print,
2004-08-20 13:36:32 +00:00
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
2004-10-23 15:07:45 +00:00
SEQUENCE_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-08-20 13:36:32 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_notify_tags_7,
sizeof(asn_DEF_notify_tags_7)
/sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
asn_DEF_notify_tags_7, /* Same as above */
sizeof(asn_DEF_notify_tags_7)
/sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_notify_7,
2004-08-20 13:36:32 +00:00
2, /* Elements count */
2005-11-26 11:25:14 +00:00
&asn_SPC_notify_specs_7 /* Additional specs */
2004-08-20 13:36:32 +00:00
};
2005-03-04 11:26:08 +00:00
static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.type = &asn_DEF_accept_as_2,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "accept-as"
},
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify),
2004-08-20 13:36:32 +00:00
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_notify_7,
2005-01-17 12:20:19 +00:00
.memb_constraints = 0, /* Defer constraints checking to the member type */
2005-11-26 11:25:14 +00:00
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
2004-08-20 13:36:32 +00:00
.name = "notify"
2004-06-03 03:38:44 +00:00
},
};
2005-11-26 11:25:14 +00:00
static ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
2004-06-03 03:38:44 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
2005-11-26 11:25:14 +00:00
static asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
2004-06-14 13:09:45 +00:00
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify at 61 */
2004-06-06 07:20:52 +00:00
};
2005-11-26 11:25:14 +00:00
static asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = {
2004-06-03 03:38:44 +00:00
sizeof(struct ActionItem),
2004-09-29 13:19:37 +00:00
offsetof(struct ActionItem, _asn_ctx),
2005-11-26 11:25:14 +00:00
asn_MAP_ActionItem_tag2el_1,
2004-06-06 07:20:52 +00:00
2, /* Count of tags in the map */
2005-11-26 11:25:14 +00:00
0, 0, 0, /* Optional elements (not needed) */
2004-06-03 03:38:44 +00:00
1, /* Start extensions */
3 /* Stop extensions */
};
2004-09-29 13:19:37 +00:00
asn_TYPE_descriptor_t asn_DEF_ActionItem = {
2004-10-20 15:50:55 +00:00
"ActionItem",
2004-06-03 03:38:44 +00:00
"ActionItem",
2004-09-22 16:06:28 +00:00
SEQUENCE_free,
SEQUENCE_print,
2004-06-03 03:38:44 +00:00
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
2004-10-23 15:07:45 +00:00
SEQUENCE_decode_xer,
2004-09-22 16:06:28 +00:00
SEQUENCE_encode_xer,
2005-11-26 11:25:14 +00:00
0, /* No PER decoder, -gen-PER to enable */
2004-06-03 03:38:44 +00:00
0, /* Use generic outmost tag fetcher */
2005-11-26 11:25:14 +00:00
asn_DEF_ActionItem_tags_1,
sizeof(asn_DEF_ActionItem_tags_1)
/sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
asn_DEF_ActionItem_tags_1, /* Same as above */
sizeof(asn_DEF_ActionItem_tags_1)
/sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
2005-03-04 11:26:08 +00:00
asn_MBR_ActionItem_1,
2004-08-20 13:36:32 +00:00
2, /* Elements count */
2005-11-26 11:25:14 +00:00
&asn_SPC_ActionItem_specs_1 /* Additional specs */
2004-06-03 03:38:44 +00:00
};