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>
|
|
|
|
|
2005-03-04 22:18:20 +00:00
|
|
|
/*** <<< 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 {
|
2005-03-04 22:18:20 +00:00
|
|
|
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;
|
|
|
|
|
2005-03-04 22:18:20 +00:00
|
|
|
/*** <<< 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
|
2004-09-29 13:19:37 +00:00
|
|
|
memb_varsets_1_constraint(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
|
|
|
|
2004-08-20 13:36:32 +00:00
|
|
|
{ /* Determine the number of elements */
|
|
|
|
const A_SEQUENCE_OF(void) *list;
|
2005-01-30 18:34:07 +00:00
|
|
|
(const void *)list = sptr;
|
2004-08-20 13:36:32 +00:00
|
|
|
size = list->count;
|
|
|
|
}
|
|
|
|
|
|
|
|
if((size >= 1)) {
|
2005-03-29 19:05:37 +00:00
|
|
|
/* SEQUENCE validation code is the same as SET */
|
|
|
|
/* Perform validation of the inner elements */
|
|
|
|
return SET_OF_constraint(td, list, 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] >>> ***/
|
|
|
|
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_TYPE_member_t asn_MBR_varsets_3[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ ATF_NOFLAGS, 0, 0,
|
2004-08-20 13:36:32 +00:00
|
|
|
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
|
|
|
|
.tag_mode = 0,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_VariablePartSet,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = ""
|
|
|
|
},
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_varsets_3_tags[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_SET_OF_specifics_t asn_SPC_varsets_3_specs = {
|
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 */
|
2005-03-06 09:29:03 +00:00
|
|
|
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,
|
2004-08-20 13:36:32 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-06 09:29:03 +00:00
|
|
|
asn_DEF_varsets_3_tags,
|
|
|
|
sizeof(asn_DEF_varsets_3_tags)
|
|
|
|
/sizeof(asn_DEF_varsets_3_tags[0]), /* 1 */
|
|
|
|
asn_DEF_varsets_3_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_varsets_3_tags)
|
|
|
|
/sizeof(asn_DEF_varsets_3_tags[0]), /* 1 */
|
|
|
|
asn_MBR_varsets_3,
|
2004-08-20 13:36:32 +00:00
|
|
|
1, /* Single element */
|
2005-03-06 09:29:03 +00:00
|
|
|
&asn_SPC_varsets_3_specs /* 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[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_IA5String,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "line-digest"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
2004-09-10 09:18:20 +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,
|
2005-03-06 09:29:03 +00:00
|
|
|
.type = (void *)&asn_DEF_varsets_3,
|
2004-08-22 03:19:00 +00:00
|
|
|
.memb_constraints = memb_varsets_1_constraint,
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "varsets"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_LogLine_1_tags[] = {
|
2004-06-03 03:38:44 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_TYPE_tag2member_t asn_MAP_LogLine_1_tag2el[] = {
|
2004-06-14 13:09:45 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */
|
2005-02-25 08:17:56 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest at 23 */
|
2004-06-06 07:20:52 +00:00
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_SEQUENCE_specifics_t asn_SPC_LogLine_1_specs = {
|
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-03-04 11:26:08 +00:00
|
|
|
asn_MAP_LogLine_1_tag2el,
|
2004-06-06 07:20:52 +00:00
|
|
|
2, /* Count of tags in the map */
|
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,
|
2004-06-03 03:38:44 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_DEF_LogLine_1_tags,
|
|
|
|
sizeof(asn_DEF_LogLine_1_tags)
|
|
|
|
/sizeof(asn_DEF_LogLine_1_tags[0]), /* 1 */
|
|
|
|
asn_DEF_LogLine_1_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_LogLine_1_tags)
|
|
|
|
/sizeof(asn_DEF_LogLine_1_tags[0]), /* 1 */
|
|
|
|
asn_MBR_LogLine_1,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Elements count */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_LogLine_1_specs /* 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>
|
|
|
|
|
2005-03-04 22:18:20 +00:00
|
|
|
/*** <<< 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 {
|
2005-03-04 22:18:20 +00:00
|
|
|
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;
|
|
|
|
|
2005-03-04 22:18:20 +00:00
|
|
|
/*** <<< 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-03-04 11:26:08 +00:00
|
|
|
memb_vparts_1_constraint(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
|
|
|
|
2004-09-26 13:12:56 +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[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ ATF_NOFLAGS, 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,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_VariablePart,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
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-03-04 11:26:08 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_vparts_2_tags[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_SET_OF_specifics_t asn_SPC_vparts_2_specs = {
|
2004-08-20 13:36:32 +00:00
|
|
|
sizeof(struct vparts),
|
2004-09-29 13:19:37 +00:00
|
|
|
offsetof(struct vparts, _asn_ctx),
|
2005-03-10 13:47:58 +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_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,
|
2004-08-20 13:36:32 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_DEF_vparts_2_tags,
|
|
|
|
sizeof(asn_DEF_vparts_2_tags)
|
|
|
|
/sizeof(asn_DEF_vparts_2_tags[0]), /* 1 */
|
|
|
|
asn_DEF_vparts_2_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_vparts_2_tags)
|
|
|
|
/sizeof(asn_DEF_vparts_2_tags[0]), /* 1 */
|
|
|
|
asn_MBR_vparts_2,
|
2004-08-20 13:36:32 +00:00
|
|
|
1, /* Single element */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_vparts_2_specs /* 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[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2005-03-04 11:26:08 +00:00
|
|
|
.type = (void *)&asn_DEF_vparts_2,
|
|
|
|
.memb_constraints = memb_vparts_1_constraint,
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "vparts"
|
|
|
|
},
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_ActionItem,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "resolution"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_VariablePartSet_1_tags[] = {
|
2004-06-03 03:38:44 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_TYPE_tag2member_t asn_MAP_VariablePartSet_1_tag2el[] = {
|
2004-06-14 13:09:45 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */
|
2005-02-25 08:17:56 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution at 35 */
|
2004-06-06 07:20:52 +00:00
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_1_specs = {
|
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-03-04 11:26:08 +00:00
|
|
|
asn_MAP_VariablePartSet_1_tag2el,
|
2004-06-06 07:20:52 +00:00
|
|
|
2, /* Count of tags in the map */
|
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,
|
2004-06-03 03:38:44 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_DEF_VariablePartSet_1_tags,
|
|
|
|
sizeof(asn_DEF_VariablePartSet_1_tags)
|
|
|
|
/sizeof(asn_DEF_VariablePartSet_1_tags[0]), /* 1 */
|
|
|
|
asn_DEF_VariablePartSet_1_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_VariablePartSet_1_tags)
|
|
|
|
/sizeof(asn_DEF_VariablePartSet_1_tags[0]), /* 1 */
|
|
|
|
asn_MBR_VariablePartSet_1,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Elements count */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_VariablePartSet_1_specs /* 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;
|
2004-06-03 03:38:44 +00:00
|
|
|
union {
|
|
|
|
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;
|
|
|
|
|
2005-03-04 22:18:20 +00:00
|
|
|
/*** <<< FUNC-DECLS [VariablePart] >>> ***/
|
|
|
|
|
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
|
|
|
|
|
2004-08-20 13:36:32 +00:00
|
|
|
/*** <<< CODE [VariablePart] >>> ***/
|
|
|
|
|
|
|
|
static int
|
2005-03-04 11:26:08 +00:00
|
|
|
memb_vset_1_constraint(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
{ /* Determine the number of elements */
|
|
|
|
const A_SET_OF(void) *list;
|
2005-01-30 18:34:07 +00:00
|
|
|
(const void *)list = sptr;
|
2004-08-20 13:36:32 +00:00
|
|
|
size = list->count;
|
|
|
|
}
|
|
|
|
|
|
|
|
if((size >= 1)) {
|
2005-03-29 19:05:37 +00:00
|
|
|
/* Perform validation of the inner elements */
|
|
|
|
return SET_OF_constraint(td, list, 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[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ ATF_NOFLAGS, 0, 0,
|
2004-08-20 13:36:32 +00:00
|
|
|
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
|
|
|
|
.tag_mode = 0,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_VisibleString,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = ""
|
|
|
|
},
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_vset_2_tags[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_SET_OF_specifics_t asn_SPC_vset_2_specs = {
|
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,
|
2004-08-20 13:36:32 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_DEF_vset_2_tags,
|
|
|
|
sizeof(asn_DEF_vset_2_tags)
|
|
|
|
/sizeof(asn_DEF_vset_2_tags[0]), /* 1 */
|
|
|
|
asn_DEF_vset_2_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_vset_2_tags)
|
|
|
|
/sizeof(asn_DEF_vset_2_tags[0]), /* 1 */
|
|
|
|
asn_MBR_vset_2,
|
2004-08-20 13:36:32 +00:00
|
|
|
1, /* Single element */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_vset_2_specs /* Additional specs */
|
2004-08-20 13:36:32 +00:00
|
|
|
};
|
|
|
|
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_TYPE_member_t asn_MBR_vrange_4[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_VisibleString,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "from"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
2004-09-10 09:18:20 +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,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_VisibleString,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "to"
|
|
|
|
},
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_vrange_4_tags[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_TYPE_tag2member_t asn_MAP_vrange_4_tag2el[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */
|
2005-02-25 08:17:56 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */
|
2004-08-20 13:36:32 +00:00
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_SEQUENCE_specifics_t asn_SPC_vrange_4_specs = {
|
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-03-06 09:29:03 +00:00
|
|
|
asn_MAP_vrange_4_tag2el,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Count of tags in the map */
|
|
|
|
1, /* Start extensions */
|
|
|
|
3 /* Stop extensions */
|
|
|
|
};
|
2004-09-07 06:44:29 +00:00
|
|
|
static /* Use -fall-defs-global to expose */
|
2005-03-06 09:29:03 +00:00
|
|
|
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,
|
2004-08-20 13:36:32 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-06 09:29:03 +00:00
|
|
|
asn_DEF_vrange_4_tags,
|
|
|
|
sizeof(asn_DEF_vrange_4_tags)
|
|
|
|
/sizeof(asn_DEF_vrange_4_tags[0]), /* 1 */
|
|
|
|
asn_DEF_vrange_4_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_vrange_4_tags)
|
|
|
|
/sizeof(asn_DEF_vrange_4_tags[0]), /* 1 */
|
|
|
|
asn_MBR_vrange_4,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Elements count */
|
2005-03-06 09:29:03 +00:00
|
|
|
&asn_SPC_vrange_4_specs /* 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[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2005-03-04 11:26:08 +00:00
|
|
|
.type = (void *)&asn_DEF_vset_2,
|
|
|
|
.memb_constraints = memb_vset_1_constraint,
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "vset"
|
|
|
|
},
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2005-03-06 09:29:03 +00:00
|
|
|
.type = (void *)&asn_DEF_vrange_4,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "vrange"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_TYPE_tag2member_t asn_MAP_VariablePart_1_tag2el[] = {
|
2004-06-14 13:09:45 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */
|
2005-02-25 08:17:56 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset at 42 */
|
2004-06-03 03:38:44 +00:00
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_CHOICE_specifics_t asn_SPC_VariablePart_1_specs = {
|
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-03-04 11:26:08 +00:00
|
|
|
asn_MAP_VariablePart_1_tag2el,
|
2004-06-03 03:38:44 +00:00
|
|
|
2, /* Count of tags in the map */
|
2004-07-01 00:49:55 +00:00
|
|
|
1 /* Whether extensible */
|
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,
|
2004-06-03 03:38:44 +00:00
|
|
|
CHOICE_outmost_tag,
|
2004-09-13 08:31:01 +00:00
|
|
|
0, /* No effective tags (pointer) */
|
|
|
|
0, /* No effective tags (count) */
|
|
|
|
0, /* No tags (pointer) */
|
|
|
|
0, /* No tags (count) */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_MBR_VariablePart_1,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Elements count */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_VariablePart_1_specs /* 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,
|
2005-02-25 08:17:56 +00:00
|
|
|
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;
|
|
|
|
|
2005-02-25 08:17:56 +00:00
|
|
|
/*** <<< 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) */
|
2005-03-04 22:18:20 +00:00
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
|
2005-02-25 08:17:56 +00:00
|
|
|
|
|
|
|
/*** <<< CODE [ActionItem] >>> ***/
|
|
|
|
|
|
|
|
static int
|
2005-03-04 11:26:08 +00:00
|
|
|
accept_as_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
|
2005-02-25 08:17:56 +00:00
|
|
|
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) {
|
2005-02-25 08:17:56 +00:00
|
|
|
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;
|
|
|
|
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 */
|
2005-02-25 08:17:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2005-03-04 11:26:08 +00:00
|
|
|
accept_as_2_free(asn_TYPE_descriptor_t *td,
|
2005-02-25 08:17:56 +00:00
|
|
|
void *struct_ptr, int contents_only) {
|
2005-03-04 11:26:08 +00:00
|
|
|
accept_as_2_inherit_TYPE_descriptor(td);
|
2005-02-25 08:17:56 +00:00
|
|
|
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,
|
2005-02-25 08:17:56 +00:00
|
|
|
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);
|
2005-02-25 08:17:56 +00:00
|
|
|
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);
|
2005-02-25 08:17:56 +00:00
|
|
|
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,
|
2005-02-25 08:17:56 +00:00
|
|
|
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);
|
2005-02-25 08:17:56 +00:00
|
|
|
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);
|
2005-02-25 08:17:56 +00:00
|
|
|
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,
|
2005-02-25 08:17:56 +00:00
|
|
|
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);
|
2005-02-25 08:17:56 +00:00
|
|
|
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
/*** <<< STAT-DEFS [ActionItem] >>> ***/
|
|
|
|
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_INTEGER_enum_map_t asn_MAP_accept_as_2_value2enum[] = {
|
2005-02-25 11:08:02 +00:00
|
|
|
{ 0, 7, "unknown" },
|
|
|
|
{ 1, 4, "safe" },
|
|
|
|
{ 2, 6, "unsafe" }
|
2005-02-25 08:17:56 +00:00
|
|
|
/* This list is extensible */
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static unsigned int asn_MAP_accept_as_2_enum2value[] = {
|
2005-02-25 11:08:02 +00:00
|
|
|
1, /* safe(1) */
|
|
|
|
0, /* unknown(0) */
|
|
|
|
2 /* unsafe(2) */
|
2005-02-25 08:17:56 +00:00
|
|
|
/* This list is extensible */
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_INTEGER_specifics_t asn_SPC_accept_as_2_specs = {
|
|
|
|
asn_MAP_accept_as_2_value2enum, /* "tag" => N; sorted by tag */
|
|
|
|
asn_MAP_accept_as_2_enum2value, /* N => "tag"; sorted by N */
|
2005-02-25 08:17:56 +00:00
|
|
|
3, /* Number of elements in the maps */
|
2005-02-25 11:47:59 +00:00
|
|
|
1, /* Enumeration is extensible */
|
|
|
|
1 /* Strict enumeration */
|
2005-02-25 08:17:56 +00:00
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_accept_as_2_tags[] = {
|
2005-02-25 08:17:56 +00:00
|
|
|
(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 = {
|
2005-02-25 08:17:56 +00:00
|
|
|
"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-02-25 08:17:56 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_DEF_accept_as_2_tags,
|
|
|
|
sizeof(asn_DEF_accept_as_2_tags)
|
|
|
|
/sizeof(asn_DEF_accept_as_2_tags[0]), /* 1 */
|
|
|
|
asn_DEF_accept_as_2_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_accept_as_2_tags)
|
|
|
|
/sizeof(asn_DEF_accept_as_2_tags[0]), /* 1 */
|
2005-02-25 08:17:56 +00:00
|
|
|
0, 0, /* Defined elsewhere */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_accept_as_2_specs /* Additional specs */
|
2005-02-25 08:17:56 +00:00
|
|
|
};
|
|
|
|
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_TYPE_member_t asn_MBR_email_9[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ ATF_NOFLAGS, 0, 0,
|
2004-08-20 13:36:32 +00:00
|
|
|
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
|
|
|
|
.tag_mode = 0,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_VisibleString,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = ""
|
|
|
|
},
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_email_9_tags[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_SET_OF_specifics_t asn_SPC_email_9_specs = {
|
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 */
|
2005-03-06 09:29:03 +00:00
|
|
|
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,
|
2004-08-20 13:36:32 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-06 09:29:03 +00:00
|
|
|
asn_DEF_email_9_tags,
|
|
|
|
sizeof(asn_DEF_email_9_tags)
|
|
|
|
/sizeof(asn_DEF_email_9_tags[0]), /* 1 */
|
|
|
|
asn_DEF_email_9_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_email_9_tags)
|
|
|
|
/sizeof(asn_DEF_email_9_tags[0]), /* 1 */
|
|
|
|
asn_MBR_email_9,
|
2004-08-20 13:36:32 +00:00
|
|
|
1, /* Single element */
|
2005-03-06 09:29:03 +00:00
|
|
|
&asn_SPC_email_9_specs /* Additional specs */
|
2004-08-20 13:36:32 +00:00
|
|
|
};
|
|
|
|
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_TYPE_member_t asn_MBR_notify_7[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2004-09-29 13:19:37 +00:00
|
|
|
.type = (void *)&asn_DEF_BOOLEAN,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "critical"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
2004-09-10 09:18:20 +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,
|
2005-03-06 09:29:03 +00:00
|
|
|
.type = (void *)&asn_DEF_email_9,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "email"
|
|
|
|
},
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_notify_7_tags[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_TYPE_tag2member_t asn_MAP_notify_7_tag2el[] = {
|
2004-08-20 13:36:32 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */
|
2005-02-25 08:17:56 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */
|
2004-08-20 13:36:32 +00:00
|
|
|
};
|
2005-03-06 09:29:03 +00:00
|
|
|
static asn_SEQUENCE_specifics_t asn_SPC_notify_7_specs = {
|
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-03-06 09:29:03 +00:00
|
|
|
asn_MAP_notify_7_tag2el,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Count of tags in the map */
|
|
|
|
1, /* Start extensions */
|
|
|
|
3 /* Stop extensions */
|
|
|
|
};
|
2004-09-07 06:44:29 +00:00
|
|
|
static /* Use -fall-defs-global to expose */
|
2005-03-06 09:29:03 +00:00
|
|
|
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,
|
2004-08-20 13:36:32 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-06 09:29:03 +00:00
|
|
|
asn_DEF_notify_7_tags,
|
|
|
|
sizeof(asn_DEF_notify_7_tags)
|
|
|
|
/sizeof(asn_DEF_notify_7_tags[0]), /* 1 */
|
|
|
|
asn_DEF_notify_7_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_notify_7_tags)
|
|
|
|
/sizeof(asn_DEF_notify_7_tags[0]), /* 1 */
|
|
|
|
asn_MBR_notify_7,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Elements count */
|
2005-03-06 09:29:03 +00:00
|
|
|
&asn_SPC_notify_7_specs /* 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[] = {
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2005-03-04 11:26:08 +00:00
|
|
|
.type = (void *)&asn_DEF_accept_as_2,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "accept-as"
|
|
|
|
},
|
2004-09-10 09:18:20 +00:00
|
|
|
{ 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,
|
2005-03-06 09:29:03 +00:00
|
|
|
.type = (void *)&asn_DEF_notify_7,
|
2005-01-17 12:20:19 +00:00
|
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
2004-08-20 13:36:32 +00:00
|
|
|
.name = "notify"
|
2004-06-03 03:38:44 +00:00
|
|
|
},
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static ber_tlv_tag_t asn_DEF_ActionItem_1_tags[] = {
|
2004-06-03 03:38:44 +00:00
|
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_TYPE_tag2member_t asn_MAP_ActionItem_1_tag2el[] = {
|
2004-06-14 13:09:45 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */
|
2005-02-25 08:17:56 +00:00
|
|
|
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify at 61 */
|
2004-06-06 07:20:52 +00:00
|
|
|
};
|
2005-03-04 11:26:08 +00:00
|
|
|
static asn_SEQUENCE_specifics_t asn_SPC_ActionItem_1_specs = {
|
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-03-04 11:26:08 +00:00
|
|
|
asn_MAP_ActionItem_1_tag2el,
|
2004-06-06 07:20:52 +00:00
|
|
|
2, /* Count of tags in the map */
|
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,
|
2004-06-03 03:38:44 +00:00
|
|
|
0, /* Use generic outmost tag fetcher */
|
2005-03-04 11:26:08 +00:00
|
|
|
asn_DEF_ActionItem_1_tags,
|
|
|
|
sizeof(asn_DEF_ActionItem_1_tags)
|
|
|
|
/sizeof(asn_DEF_ActionItem_1_tags[0]), /* 1 */
|
|
|
|
asn_DEF_ActionItem_1_tags, /* Same as above */
|
|
|
|
sizeof(asn_DEF_ActionItem_1_tags)
|
|
|
|
/sizeof(asn_DEF_ActionItem_1_tags[0]), /* 1 */
|
|
|
|
asn_MBR_ActionItem_1,
|
2004-08-20 13:36:32 +00:00
|
|
|
2, /* Elements count */
|
2005-03-04 11:26:08 +00:00
|
|
|
&asn_SPC_ActionItem_1_specs /* Additional specs */
|
2004-06-03 03:38:44 +00:00
|
|
|
};
|
|
|
|
|