aboutsummaryrefslogtreecommitdiffstats
path: root/tests/65-multi-tag-OK.asn1.-Pfwide-types
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2013-03-27 01:56:23 -0700
committerLev Walkin <vlm@lionet.info>2013-03-27 01:56:23 -0700
commit2a744a747082995dec6f524368807391e0baa569 (patch)
treeb472e9f10a52e5e638945a827541c4f2c4412e2b /tests/65-multi-tag-OK.asn1.-Pfwide-types
parent11c9a8c7edfc1dbff68c1630bf00f4eb9de24e04 (diff)
Behavior of -fnative-types made default; old behavior saved under -fwide-types
Diffstat (limited to 'tests/65-multi-tag-OK.asn1.-Pfwide-types')
-rw-r--r--tests/65-multi-tag-OK.asn1.-Pfwide-types995
1 files changed, 995 insertions, 0 deletions
diff --git a/tests/65-multi-tag-OK.asn1.-Pfwide-types b/tests/65-multi-tag-OK.asn1.-Pfwide-types
new file mode 100644
index 00000000..7547825a
--- /dev/null
+++ b/tests/65-multi-tag-OK.asn1.-Pfwide-types
@@ -0,0 +1,995 @@
+
+/*** <<< INCLUDES [T1] >>> ***/
+
+#include "T2.h"
+
+/*** <<< TYPE-DECLS [T1] >>> ***/
+
+typedef T2_t T1_t;
+
+/*** <<< FUNC-DECLS [T1] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T1;
+asn_struct_free_f T1_free;
+asn_struct_print_f T1_print;
+asn_constr_check_f T1_constraint;
+ber_type_decoder_f T1_decode_ber;
+der_type_encoder_f T1_encode_der;
+xer_type_decoder_f T1_decode_xer;
+xer_type_encoder_f T1_encode_xer;
+
+/*** <<< CODE [T1] >>> ***/
+
+int
+T1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_T2.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using T2,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T1_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_T2.free_struct;
+ td->print_struct = asn_DEF_T2.print_struct;
+ td->ber_decoder = asn_DEF_T2.ber_decoder;
+ td->der_encoder = asn_DEF_T2.der_encoder;
+ td->xer_decoder = asn_DEF_T2.xer_decoder;
+ td->xer_encoder = asn_DEF_T2.xer_encoder;
+ td->uper_decoder = asn_DEF_T2.uper_decoder;
+ td->uper_encoder = asn_DEF_T2.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_T2.per_constraints;
+ td->elements = asn_DEF_T2.elements;
+ td->elements_count = asn_DEF_T2.elements_count;
+ td->specifics = asn_DEF_T2.specifics;
+}
+
+void
+T1_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T1_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T1_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T1_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T1_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) {
+ T1_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T1_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T1_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) {
+ T1_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T1] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2))
+};
+static ber_tlv_tag_t asn_DEF_T1_all_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T1 = {
+ "T1",
+ "T1",
+ T1_free,
+ T1_print,
+ T1_constraint,
+ T1_decode_ber,
+ T1_encode_der,
+ T1_decode_xer,
+ T1_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T1_tags_1,
+ sizeof(asn_DEF_T1_tags_1)
+ /sizeof(asn_DEF_T1_tags_1[0]), /* 4 */
+ asn_DEF_T1_all_tags_1,
+ sizeof(asn_DEF_T1_all_tags_1)
+ /sizeof(asn_DEF_T1_all_tags_1[0]), /* 6 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* No members */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [T2] >>> ***/
+
+#include "T3.h"
+
+/*** <<< TYPE-DECLS [T2] >>> ***/
+
+typedef T3_t T2_t;
+
+/*** <<< FUNC-DECLS [T2] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T2;
+asn_struct_free_f T2_free;
+asn_struct_print_f T2_print;
+asn_constr_check_f T2_constraint;
+ber_type_decoder_f T2_decode_ber;
+der_type_encoder_f T2_encode_der;
+xer_type_decoder_f T2_decode_xer;
+xer_type_encoder_f T2_encode_xer;
+
+/*** <<< CODE [T2] >>> ***/
+
+int
+T2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_T3.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using T3,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T2_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_T3.free_struct;
+ td->print_struct = asn_DEF_T3.print_struct;
+ td->ber_decoder = asn_DEF_T3.ber_decoder;
+ td->der_encoder = asn_DEF_T3.der_encoder;
+ td->xer_decoder = asn_DEF_T3.xer_decoder;
+ td->xer_encoder = asn_DEF_T3.xer_encoder;
+ td->uper_decoder = asn_DEF_T3.uper_decoder;
+ td->uper_encoder = asn_DEF_T3.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_T3.per_constraints;
+ td->elements = asn_DEF_T3.elements;
+ td->elements_count = asn_DEF_T3.elements_count;
+ td->specifics = asn_DEF_T3.specifics;
+}
+
+void
+T2_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T2_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T2_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T2_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T2_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) {
+ T2_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T2_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T2_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) {
+ T2_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T2] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2))
+};
+static ber_tlv_tag_t asn_DEF_T2_all_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T2 = {
+ "T2",
+ "T2",
+ T2_free,
+ T2_print,
+ T2_constraint,
+ T2_decode_ber,
+ T2_encode_der,
+ T2_decode_xer,
+ T2_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T2_tags_1,
+ sizeof(asn_DEF_T2_tags_1)
+ /sizeof(asn_DEF_T2_tags_1[0]), /* 3 */
+ asn_DEF_T2_all_tags_1,
+ sizeof(asn_DEF_T2_all_tags_1)
+ /sizeof(asn_DEF_T2_all_tags_1[0]), /* 5 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* No members */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [T3] >>> ***/
+
+#include "T4.h"
+
+/*** <<< TYPE-DECLS [T3] >>> ***/
+
+typedef T4_t T3_t;
+
+/*** <<< FUNC-DECLS [T3] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T3;
+asn_struct_free_f T3_free;
+asn_struct_print_f T3_print;
+asn_constr_check_f T3_constraint;
+ber_type_decoder_f T3_decode_ber;
+der_type_encoder_f T3_encode_der;
+xer_type_decoder_f T3_decode_xer;
+xer_type_encoder_f T3_encode_xer;
+
+/*** <<< CODE [T3] >>> ***/
+
+int
+T3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_T4.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using T4,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T3_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_T4.free_struct;
+ td->print_struct = asn_DEF_T4.print_struct;
+ td->ber_decoder = asn_DEF_T4.ber_decoder;
+ td->der_encoder = asn_DEF_T4.der_encoder;
+ td->xer_decoder = asn_DEF_T4.xer_decoder;
+ td->xer_encoder = asn_DEF_T4.xer_encoder;
+ td->uper_decoder = asn_DEF_T4.uper_decoder;
+ td->uper_encoder = asn_DEF_T4.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_T4.per_constraints;
+ td->elements = asn_DEF_T4.elements;
+ td->elements_count = asn_DEF_T4.elements_count;
+ td->specifics = asn_DEF_T4.specifics;
+}
+
+void
+T3_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T3_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T3_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T3_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T3_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) {
+ T3_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T3_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T3_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) {
+ T3_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T3] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2))
+};
+static ber_tlv_tag_t asn_DEF_T3_all_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T3 = {
+ "T3",
+ "T3",
+ T3_free,
+ T3_print,
+ T3_constraint,
+ T3_decode_ber,
+ T3_encode_der,
+ T3_decode_xer,
+ T3_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T3_tags_1,
+ sizeof(asn_DEF_T3_tags_1)
+ /sizeof(asn_DEF_T3_tags_1[0]), /* 2 */
+ asn_DEF_T3_all_tags_1,
+ sizeof(asn_DEF_T3_all_tags_1)
+ /sizeof(asn_DEF_T3_all_tags_1[0]), /* 4 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* No members */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [T4] >>> ***/
+
+#include "T5.h"
+
+/*** <<< TYPE-DECLS [T4] >>> ***/
+
+typedef T5_t T4_t;
+
+/*** <<< FUNC-DECLS [T4] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T4;
+asn_struct_free_f T4_free;
+asn_struct_print_f T4_print;
+asn_constr_check_f T4_constraint;
+ber_type_decoder_f T4_decode_ber;
+der_type_encoder_f T4_encode_der;
+xer_type_decoder_f T4_decode_xer;
+xer_type_encoder_f T4_encode_xer;
+
+/*** <<< CODE [T4] >>> ***/
+
+int
+T4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_T5.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using T5,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T4_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_T5.free_struct;
+ td->print_struct = asn_DEF_T5.print_struct;
+ td->ber_decoder = asn_DEF_T5.ber_decoder;
+ td->der_encoder = asn_DEF_T5.der_encoder;
+ td->xer_decoder = asn_DEF_T5.xer_decoder;
+ td->xer_encoder = asn_DEF_T5.xer_encoder;
+ td->uper_decoder = asn_DEF_T5.uper_decoder;
+ td->uper_encoder = asn_DEF_T5.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_T5.per_constraints;
+ td->elements = asn_DEF_T5.elements;
+ td->elements_count = asn_DEF_T5.elements_count;
+ td->specifics = asn_DEF_T5.specifics;
+}
+
+void
+T4_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T4_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T4_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T4_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T4_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) {
+ T4_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T4_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T4_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) {
+ T4_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T4] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T4_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T4 = {
+ "T4",
+ "T4",
+ T4_free,
+ T4_print,
+ T4_constraint,
+ T4_decode_ber,
+ T4_encode_der,
+ T4_decode_xer,
+ T4_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T4_tags_1,
+ sizeof(asn_DEF_T4_tags_1)
+ /sizeof(asn_DEF_T4_tags_1[0]) - 1, /* 2 */
+ asn_DEF_T4_tags_1, /* Same as above */
+ sizeof(asn_DEF_T4_tags_1)
+ /sizeof(asn_DEF_T4_tags_1[0]), /* 3 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* No members */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [T5] >>> ***/
+
+#include "T6.h"
+
+/*** <<< TYPE-DECLS [T5] >>> ***/
+
+typedef T6_t T5_t;
+
+/*** <<< FUNC-DECLS [T5] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T5;
+asn_struct_free_f T5_free;
+asn_struct_print_f T5_print;
+asn_constr_check_f T5_constraint;
+ber_type_decoder_f T5_decode_ber;
+der_type_encoder_f T5_encode_der;
+xer_type_decoder_f T5_decode_xer;
+xer_type_encoder_f T5_encode_xer;
+
+/*** <<< CODE [T5] >>> ***/
+
+int
+T5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_T6.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using T6,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T5_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_T6.free_struct;
+ td->print_struct = asn_DEF_T6.print_struct;
+ td->ber_decoder = asn_DEF_T6.ber_decoder;
+ td->der_encoder = asn_DEF_T6.der_encoder;
+ td->xer_decoder = asn_DEF_T6.xer_decoder;
+ td->xer_encoder = asn_DEF_T6.xer_encoder;
+ td->uper_decoder = asn_DEF_T6.uper_decoder;
+ td->uper_encoder = asn_DEF_T6.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_T6.per_constraints;
+ td->elements = asn_DEF_T6.elements;
+ td->elements_count = asn_DEF_T6.elements_count;
+ td->specifics = asn_DEF_T6.specifics;
+}
+
+void
+T5_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T5_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T5_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T5_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T5_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) {
+ T5_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T5_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T5_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) {
+ T5_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T5] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T5_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T5 = {
+ "T5",
+ "T5",
+ T5_free,
+ T5_print,
+ T5_constraint,
+ T5_decode_ber,
+ T5_encode_der,
+ T5_decode_xer,
+ T5_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T5_tags_1,
+ sizeof(asn_DEF_T5_tags_1)
+ /sizeof(asn_DEF_T5_tags_1[0]) - 1, /* 1 */
+ asn_DEF_T5_tags_1, /* Same as above */
+ sizeof(asn_DEF_T5_tags_1)
+ /sizeof(asn_DEF_T5_tags_1[0]), /* 2 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* No members */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [T6] >>> ***/
+
+#include <REAL.h>
+
+/*** <<< TYPE-DECLS [T6] >>> ***/
+
+typedef REAL_t T6_t;
+
+/*** <<< FUNC-DECLS [T6] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T6;
+asn_struct_free_f T6_free;
+asn_struct_print_f T6_print;
+asn_constr_check_f T6_constraint;
+ber_type_decoder_f T6_decode_ber;
+der_type_encoder_f T6_encode_der;
+xer_type_decoder_f T6_decode_xer;
+xer_type_encoder_f T6_encode_xer;
+
+/*** <<< CODE [T6] >>> ***/
+
+int
+T6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_REAL.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using REAL,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T6_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_REAL.free_struct;
+ td->print_struct = asn_DEF_REAL.print_struct;
+ td->ber_decoder = asn_DEF_REAL.ber_decoder;
+ td->der_encoder = asn_DEF_REAL.der_encoder;
+ td->xer_decoder = asn_DEF_REAL.xer_decoder;
+ td->xer_encoder = asn_DEF_REAL.xer_encoder;
+ td->uper_decoder = asn_DEF_REAL.uper_decoder;
+ td->uper_encoder = asn_DEF_REAL.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_REAL.per_constraints;
+ td->elements = asn_DEF_REAL.elements;
+ td->elements_count = asn_DEF_REAL.elements_count;
+ td->specifics = asn_DEF_REAL.specifics;
+}
+
+void
+T6_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T6_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T6_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T6_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T6_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T6_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) {
+ T6_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T6_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T6_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T6_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) {
+ T6_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T6] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T6_tags_1[] = {
+ (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T6 = {
+ "T6",
+ "T6",
+ T6_free,
+ T6_print,
+ T6_constraint,
+ T6_decode_ber,
+ T6_encode_der,
+ T6_decode_xer,
+ T6_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T6_tags_1,
+ sizeof(asn_DEF_T6_tags_1)
+ /sizeof(asn_DEF_T6_tags_1[0]), /* 1 */
+ asn_DEF_T6_tags_1, /* Same as above */
+ sizeof(asn_DEF_T6_tags_1)
+ /sizeof(asn_DEF_T6_tags_1[0]), /* 1 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* No members */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [T] >>> ***/
+
+#include "Ts.h"
+
+/*** <<< TYPE-DECLS [T] >>> ***/
+
+typedef Ts_t T_t;
+
+/*** <<< FUNC-DECLS [T] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_T;
+asn_struct_free_f T_free;
+asn_struct_print_f T_print;
+asn_constr_check_f T_constraint;
+ber_type_decoder_f T_decode_ber;
+der_type_encoder_f T_encode_der;
+xer_type_decoder_f T_decode_xer;
+xer_type_encoder_f T_encode_xer;
+
+/*** <<< CODE [T] >>> ***/
+
+int
+T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {
+ /* Replace with underlying type checker */
+ td->check_constraints = asn_DEF_Ts.check_constraints;
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
+}
+
+/*
+ * This type is implemented using Ts,
+ * so here we adjust the DEF accordingly.
+ */
+static void
+T_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
+ td->free_struct = asn_DEF_Ts.free_struct;
+ td->print_struct = asn_DEF_Ts.print_struct;
+ td->ber_decoder = asn_DEF_Ts.ber_decoder;
+ td->der_encoder = asn_DEF_Ts.der_encoder;
+ td->xer_decoder = asn_DEF_Ts.xer_decoder;
+ td->xer_encoder = asn_DEF_Ts.xer_encoder;
+ td->uper_decoder = asn_DEF_Ts.uper_decoder;
+ td->uper_encoder = asn_DEF_Ts.uper_encoder;
+ if(!td->per_constraints)
+ td->per_constraints = asn_DEF_Ts.per_constraints;
+ td->elements = asn_DEF_Ts.elements;
+ td->elements_count = asn_DEF_Ts.elements_count;
+ td->specifics = asn_DEF_Ts.specifics;
+}
+
+void
+T_free(asn_TYPE_descriptor_t *td,
+ void *struct_ptr, int contents_only) {
+ T_1_inherit_TYPE_descriptor(td);
+ td->free_struct(td, struct_ptr, contents_only);
+}
+
+int
+T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
+ int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
+ T_1_inherit_TYPE_descriptor(td);
+ return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
+}
+
+asn_dec_rval_t
+T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const void *bufptr, size_t size, int tag_mode) {
+ T_1_inherit_TYPE_descriptor(td);
+ return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
+}
+
+asn_enc_rval_t
+T_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) {
+ T_1_inherit_TYPE_descriptor(td);
+ return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
+}
+
+asn_dec_rval_t
+T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
+ void **structure, const char *opt_mname, const void *bufptr, size_t size) {
+ T_1_inherit_TYPE_descriptor(td);
+ return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
+}
+
+asn_enc_rval_t
+T_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) {
+ T_1_inherit_TYPE_descriptor(td);
+ return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
+}
+
+
+/*** <<< STAT-DEFS [T] >>> ***/
+
+static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
+ (ASN_TAG_CLASS_CONTEXT | (123 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+};
+asn_TYPE_descriptor_t asn_DEF_T = {
+ "T",
+ "T",
+ T_free,
+ T_print,
+ T_constraint,
+ T_decode_ber,
+ T_encode_der,
+ T_decode_xer,
+ T_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_T_tags_1,
+ sizeof(asn_DEF_T_tags_1)
+ /sizeof(asn_DEF_T_tags_1[0]) - 2, /* 1 */
+ asn_DEF_T_tags_1, /* Same as above */
+ sizeof(asn_DEF_T_tags_1)
+ /sizeof(asn_DEF_T_tags_1[0]), /* 3 */
+ 0, /* No PER visible constraints */
+ 0, 0, /* Defined elsewhere */
+ 0 /* No specifics */
+};
+
+
+/*** <<< INCLUDES [Ts] >>> ***/
+
+#include "T2.h"
+#include "T3.h"
+#include <constr_SEQUENCE.h>
+
+/*** <<< TYPE-DECLS [Ts] >>> ***/
+
+typedef struct Ts {
+ T2_t m1;
+ T3_t *m2 /* OPTIONAL */;
+ T3_t m3;
+
+ /* Context for parsing across buffer boundaries */
+ asn_struct_ctx_t _asn_ctx;
+} Ts_t;
+
+/*** <<< FUNC-DECLS [Ts] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_Ts;
+
+/*** <<< STAT-DEFS [Ts] >>> ***/
+
+static asn_TYPE_member_t asn_MBR_Ts_1[] = {
+ { ATF_NOFLAGS, 0, offsetof(struct Ts, m1),
+ .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
+ .tag_mode = -1, /* IMPLICIT tag at current level */
+ .type = &asn_DEF_T2,
+ .memb_constraints = 0, /* Defer constraints checking to the member type */
+ .per_constraints = 0, /* PER is not compiled, use -gen-PER */
+ .default_value = 0,
+ .name = "m1"
+ },
+ { ATF_POINTER, 1, offsetof(struct Ts, m2),
+ .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
+ .tag_mode = +1, /* EXPLICIT tag at current level */
+ .type = &asn_DEF_T3,
+ .memb_constraints = 0, /* Defer constraints checking to the member type */
+ .per_constraints = 0, /* PER is not compiled, use -gen-PER */
+ .default_value = 0,
+ .name = "m2"
+ },
+ { ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
+ .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
+ .tag_mode = -1, /* IMPLICIT tag at current level */
+ .type = &asn_DEF_T3,
+ .memb_constraints = 0, /* Defer constraints checking to the member type */
+ .per_constraints = 0, /* PER is not compiled, use -gen-PER */
+ .default_value = 0,
+ .name = "m3"
+ },
+};
+static ber_tlv_tag_t asn_DEF_Ts_tags_1[] = {
+ (ASN_TAG_CLASS_CONTEXT | (123 << 2)),
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
+};
+static asn_TYPE_tag2member_t asn_MAP_Ts_tag2el_1[] = {
+ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* m1 at 24 */
+ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* m2 at 25 */
+ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* m3 at 27 */
+};
+static asn_SEQUENCE_specifics_t asn_SPC_Ts_specs_1 = {
+ sizeof(struct Ts),
+ offsetof(struct Ts, _asn_ctx),
+ asn_MAP_Ts_tag2el_1,
+ 3, /* Count of tags in the map */
+ 0, 0, 0, /* Optional elements (not needed) */
+ -1, /* Start extensions */
+ -1 /* Stop extensions */
+};
+asn_TYPE_descriptor_t asn_DEF_Ts = {
+ "Ts",
+ "Ts",
+ SEQUENCE_free,
+ SEQUENCE_print,
+ SEQUENCE_constraint,
+ SEQUENCE_decode_ber,
+ SEQUENCE_encode_der,
+ SEQUENCE_decode_xer,
+ SEQUENCE_encode_xer,
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
+ 0, /* Use generic outmost tag fetcher */
+ asn_DEF_Ts_tags_1,
+ sizeof(asn_DEF_Ts_tags_1)
+ /sizeof(asn_DEF_Ts_tags_1[0]) - 1, /* 1 */
+ asn_DEF_Ts_tags_1, /* Same as above */
+ sizeof(asn_DEF_Ts_tags_1)
+ /sizeof(asn_DEF_Ts_tags_1[0]), /* 2 */
+ 0, /* No PER visible constraints */
+ asn_MBR_Ts_1,
+ 3, /* Elements count */
+ &asn_SPC_Ts_specs_1 /* Additional specs */
+};
+