From af9d183d4de06112b0acc355577974f8710612ed Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:08:25 +0200 Subject: [PATCH 1/9] chore: update CMakeLists and stubs installation script - Add ASN1c compile time definitions to disable RFILL/*PER/OER/CBOR parsers/builders --- CMakeLists.txt | 14 ++++++++++++++ README.md | 1 - cmake/icspacket-common.cmake | 8 ++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe3cefa4..f36f68e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,18 +31,32 @@ include(cmake/icspacket-defs.cmake) # ----------------------------------------------------------------------------- # icspacket ASN.1 extensions # ----------------------------------------------------------------------------- +# All extensions are generated with RFILL (random value generation for +# testing), CBOR and *PER (OER/UPER/APER) codec support disabled - icspacket +# only needs BER/XER/JER on the wire. +set(ICS_ASN1_DISABLED_CODEC_DEFINITIONS + ASN_DISABLE_OER_SUPPORT + ASN_DISABLE_UPER_SUPPORT + ASN_DISABLE_APER_SUPPORT + ASN_DISABLE_CBOR_SUPPORT + ASN_DISABLE_RFILL_SUPPORT +) + add_asn1_extension( NAME _iso8823 DIR "${ICS_SOURCE_DIR}/proto/iso_pres/_iso8823" INSTALL "proto/iso_pres" + DEFINITIONS ${ICS_ASN1_DISABLED_CODEC_DEFINITIONS} ) add_asn1_extension( NAME _mms DIR "${ICS_SOURCE_DIR}/proto/mms/_mms" INSTALL "proto/mms" + DEFINITIONS ${ICS_ASN1_DISABLED_CODEC_DEFINITIONS} ) add_asn1_extension( NAME _iec61850 DIR "${ICS_SOURCE_DIR}/proto/iec61850/_iec61850" INSTALL "proto/iec61850" + DEFINITIONS ${ICS_ASN1_DISABLED_CODEC_DEFINITIONS} ) \ No newline at end of file diff --git a/README.md b/README.md index 40bcfccd..512eb344 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ systems using their protocols. Currently supported protocols are: - DNP3.0 (IEEE 1815) - MMS (ISO 9506) and mappings for IEC 61850 - IEC 60870-5-104 -- MMS (ISO 9506) and mappings for IEC 61850 - ACSE (X.227) - COPP (X.226) - COSP (X.225) diff --git a/cmake/icspacket-common.cmake b/cmake/icspacket-common.cmake index d82149f0..ba663225 100644 --- a/cmake/icspacket-common.cmake +++ b/cmake/icspacket-common.cmake @@ -55,5 +55,13 @@ function(add_asn1_extension) TARGETS ${ASN1_NAME} DESTINATION ${SKBUILD_PROJECT_NAME}/${ASN1_INSTALL} ) + + # Install the generated Python type stub (.pyi), if present. + if(EXISTS "${ASN1_DIR}.pyi") + install( + FILES "${ASN1_DIR}.pyi" + DESTINATION ${SKBUILD_PROJECT_NAME}/${ASN1_INSTALL} + ) + endif() endfunction() From cc04fff5ae0dac7991abc71ca11407242f0a9595 Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:18:00 +0200 Subject: [PATCH 2/9] feat(skeletons): sync upstream skeletons --- src/icspacket/include/skeletons/ANY.c | 18 +- src/icspacket/include/skeletons/ANY.h | 5 + src/icspacket/include/skeletons/ANY_jer.c | 17 +- src/icspacket/include/skeletons/BIT_STRING.c | 16 +- src/icspacket/include/skeletons/BIT_STRING.h | 8 +- .../include/skeletons/BIT_STRING_jer.c | 14 +- src/icspacket/include/skeletons/BOOLEAN.c | 12 +- src/icspacket/include/skeletons/BOOLEAN.h | 9 +- src/icspacket/include/skeletons/BOOLEAN_jer.c | 15 +- src/icspacket/include/skeletons/BOOLEAN_xer.c | 100 ++- src/icspacket/include/skeletons/ENUMERATED.c | 14 +- src/icspacket/include/skeletons/ENUMERATED.h | 10 +- .../include/skeletons/ENUMERATED_jer.c | 41 + src/icspacket/include/skeletons/EXTERNAL.c | 23 +- src/icspacket/include/skeletons/EXTERNAL.h | 14 +- src/icspacket/include/skeletons/EXTERNAL_Py.c | 4 +- src/icspacket/include/skeletons/EXTERNAL_Py.h | 2 +- .../include/skeletons/GeneralizedTime.c | 56 +- .../include/skeletons/GeneralizedTime.h | 7 +- .../include/skeletons/GeneralizedTime_ber.c | 15 +- .../include/skeletons/GeneralizedTime_jer.c | 7 - .../include/skeletons/GeneralizedTime_print.c | 12 +- .../include/skeletons/GeneralizedTime_xer.c | 7 - .../include/skeletons/GraphicString.c | 12 +- src/icspacket/include/skeletons/IA5String.c | 12 +- src/icspacket/include/skeletons/INTEGER.c | 77 +- src/icspacket/include/skeletons/INTEGER.h | 10 +- src/icspacket/include/skeletons/INTEGER_xer.c | 96 +- src/icspacket/include/skeletons/NULL.c | 12 +- src/icspacket/include/skeletons/NULL.h | 6 +- .../include/skeletons/NativeEnumerated.c | 24 +- .../include/skeletons/NativeEnumerated.h | 10 +- .../include/skeletons/NativeEnumerated_ber.c | 3 +- .../include/skeletons/NativeEnumerated_xer.c | 81 +- .../include/skeletons/NativeInteger.c | 183 +++- .../include/skeletons/NativeInteger.h | 26 +- .../include/skeletons/NativeInteger_ber.c | 57 +- .../include/skeletons/NativeInteger_jer.c | 40 +- .../include/skeletons/NativeInteger_print.c | 34 +- .../include/skeletons/NativeInteger_xer.c | 142 ++- .../include/skeletons/OBJECT_IDENTIFIER.c | 12 +- .../include/skeletons/OCTET_STRING.c | 34 +- .../include/skeletons/OCTET_STRING.h | 44 +- .../include/skeletons/OCTET_STRING_jer.c | 200 ++++- .../include/skeletons/OCTET_STRING_xer.c | 734 +++++++++++++-- src/icspacket/include/skeletons/OPEN_TYPE.c | 12 +- src/icspacket/include/skeletons/OPEN_TYPE.h | 72 +- .../include/skeletons/OPEN_TYPE_ber.c | 213 ++++- .../include/skeletons/OPEN_TYPE_jer.c | 375 +++++--- .../include/skeletons/OPEN_TYPE_print.c | 76 ++ .../include/skeletons/OPEN_TYPE_xer.c | 424 +++++++-- .../include/skeletons/ObjectDescriptor.c | 12 +- src/icspacket/include/skeletons/UTF8String.c | 12 +- .../include/skeletons/VisibleString.c | 12 +- .../include/skeletons/asn_application.c | 45 +- .../include/skeletons/asn_application.h | 5 + src/icspacket/include/skeletons/asn_codecs.h | 39 +- .../include/skeletons/asn_codecs_prim_jer.c | 159 ++-- .../include/skeletons/asn_codecs_prim_xer.c | 161 ++-- .../include/skeletons/asn_constraint_value.c | 327 +++++++ .../include/skeletons/asn_constraint_value.h | 128 +++ .../include/skeletons/asn_internal.c | 52 +- .../include/skeletons/asn_internal.h | 311 ++++++- .../include/skeletons/constr_CHOICE.c | 16 +- .../include/skeletons/constr_CHOICE.h | 6 +- .../include/skeletons/constr_CHOICE_ber.c | 525 +++++------ .../include/skeletons/constr_CHOICE_jer.c | 376 ++++---- .../include/skeletons/constr_CHOICE_xer.c | 67 +- .../include/skeletons/constr_SEQUENCE.c | 12 +- .../include/skeletons/constr_SEQUENCE.h | 6 +- .../include/skeletons/constr_SEQUENCE_OF.c | 28 +- .../include/skeletons/constr_SEQUENCE_OF.h | 15 +- .../skeletons/constr_SEQUENCE_OF_ber.c | 84 +- .../skeletons/constr_SEQUENCE_OF_jer.c | 30 +- .../skeletons/constr_SEQUENCE_OF_xer.c | 194 +++- .../include/skeletons/constr_SEQUENCE_ber.c | 833 +++++++++--------- .../include/skeletons/constr_SEQUENCE_jer.c | 449 +++++----- .../include/skeletons/constr_SEQUENCE_print.c | 11 +- .../include/skeletons/constr_SEQUENCE_xer.c | 569 ++++++++---- src/icspacket/include/skeletons/constr_SET.c | 12 +- src/icspacket/include/skeletons/constr_SET.h | 6 +- .../include/skeletons/constr_SET_OF.c | 30 +- .../include/skeletons/constr_SET_OF.h | 13 +- .../include/skeletons/constr_SET_OF_ber.c | 30 +- .../include/skeletons/constr_SET_OF_jer.c | 32 +- .../include/skeletons/constr_SET_OF_xer.c | 395 +++++++-- .../include/skeletons/constr_SET_ber.c | 38 +- .../include/skeletons/constr_SET_jer.c | 345 ++++---- .../include/skeletons/constr_SET_xer.c | 14 +- src/icspacket/include/skeletons/constr_TYPE.h | 17 +- src/icspacket/include/skeletons/jer_decoder.c | 17 +- src/icspacket/include/skeletons/jer_support.h | 4 +- .../include/skeletons/py_application.c | 15 +- .../include/skeletons/py_application.h | 73 +- src/icspacket/include/skeletons/py_convert.h | 1 - .../include/skeletons/py_convert_BIT_STRING.h | 2 +- src/icspacket/include/skeletons/xer_decoder.c | 58 +- src/icspacket/include/skeletons/xer_encoder.h | 7 +- 98 files changed, 6618 insertions(+), 2422 deletions(-) create mode 100644 src/icspacket/include/skeletons/OPEN_TYPE_print.c create mode 100644 src/icspacket/include/skeletons/asn_constraint_value.c create mode 100644 src/icspacket/include/skeletons/asn_constraint_value.h diff --git a/src/icspacket/include/skeletons/ANY.c b/src/icspacket/include/skeletons/ANY.c index d987e71c..2c81eb99 100644 --- a/src/icspacket/include/skeletons/ANY.c +++ b/src/icspacket/include/skeletons/ANY.c @@ -8,6 +8,7 @@ asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs = { sizeof(ANY_t), offsetof(ANY_t, _asn_ctx), ASN_OSUBV_ANY}; asn_TYPE_operation_t asn_OP_ANY = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OCTET_STRING_print, @@ -38,8 +39,8 @@ asn_TYPE_operation_t asn_OP_ANY = { 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) - 0, - 0, + OCTET_STRING_decode_oer, + OCTET_STRING_encode_oer, #else 0, 0, @@ -57,9 +58,16 @@ asn_TYPE_operation_t asn_OP_ANY = { #else 0, 0, -#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ - 0, /* Random fill is not defined for ANY type */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ + 0, /* Random fill is not defined for ANY type */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor, /* Reuse OCTET STRING decoder (raw DER bytes) */ + OCTET_STRING_encode_cbor, /* Reuse OCTET STRING encoder (raw DER bytes) */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_ANY = { "ANY", diff --git a/src/icspacket/include/skeletons/ANY.h b/src/icspacket/include/skeletons/ANY.h index 78817b48..4c09367f 100644 --- a/src/icspacket/include/skeletons/ANY.h +++ b/src/icspacket/include/skeletons/ANY.h @@ -48,6 +48,11 @@ jer_type_decoder_f ANY_decode_jer; jer_type_encoder_f ANY_encode_jer; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +#define ANY_decode_oer OCTET_STRING_decode_oer +#define ANY_encode_oer OCTET_STRING_encode_oer +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ + #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f ANY_decode_uper; per_type_encoder_f ANY_encode_uper; diff --git a/src/icspacket/include/skeletons/ANY_jer.c b/src/icspacket/include/skeletons/ANY_jer.c index a35c723f..3e6f4092 100644 --- a/src/icspacket/include/skeletons/ANY_jer.c +++ b/src/icspacket/include/skeletons/ANY_jer.c @@ -6,14 +6,11 @@ #include #include -asn_enc_rval_t ANY_encode_jer(const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - const void *sptr, int ilevel, - enum jer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - ASN__ENCODE_FAILED; - - /* Dump as binary */ - return OCTET_STRING_encode_jer(td, constraints, sptr, ilevel, flags, cb, - app_key); +asn_enc_rval_t +ANY_encode_jer(const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, + const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + /* Dump as binary */ + return OCTET_STRING_encode_jer(td, constraints, sptr, ilevel, flags, cb, app_key); } diff --git a/src/icspacket/include/skeletons/BIT_STRING.c b/src/icspacket/include/skeletons/BIT_STRING.c index d9aec758..84de0f40 100644 --- a/src/icspacket/include/skeletons/BIT_STRING.c +++ b/src/icspacket/include/skeletons/BIT_STRING.c @@ -13,7 +13,8 @@ static const ber_tlv_tag_t asn_DEF_BIT_STRING_tags[] = { asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs = { sizeof(BIT_STRING_t), offsetof(BIT_STRING_t, _asn_ctx), ASN_OSUBV_BIT}; asn_TYPE_operation_t asn_OP_BIT_STRING = { - OCTET_STRING_free, /* Implemented in terms of OCTET STRING */ + .kind = ASN_KIND_PRIMITIVE, + OCTET_STRING_free, /* Implemented in terms of OCTET STRING */ #if !defined(ASN_DISABLE_PRINT_SUPPORT) BIT_STRING_print, #else @@ -29,7 +30,7 @@ asn_TYPE_operation_t asn_OP_BIT_STRING = { 0, #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ #if !defined(ASN_DISABLE_XER_SUPPORT) - OCTET_STRING_decode_xer_binary, + BIT_STRING_decode_xer_binary_or_hex, BIT_STRING_encode_xer, #else 0, @@ -67,8 +68,15 @@ asn_TYPE_operation_t asn_OP_BIT_STRING = { BIT_STRING_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + BIT_STRING_decode_cbor, + BIT_STRING_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_BIT_STRING = { "BIT STRING", diff --git a/src/icspacket/include/skeletons/BIT_STRING.h b/src/icspacket/include/skeletons/BIT_STRING.h index f14b3a0a..92c72c80 100644 --- a/src/icspacket/include/skeletons/BIT_STRING.h +++ b/src/icspacket/include/skeletons/BIT_STRING.h @@ -41,7 +41,7 @@ asn_constr_check_f BIT_STRING_constraint; #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ #if !defined(ASN_DISABLE_XER_SUPPORT) -#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary +#define BIT_STRING_decode_xer BIT_STRING_decode_xer_binary_or_hex xer_type_encoder_f BIT_STRING_encode_xer; #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ @@ -53,7 +53,11 @@ jer_type_encoder_f BIT_STRING_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f BIT_STRING_decode_oer; oer_type_encoder_f BIT_STRING_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f BIT_STRING_decode_cbor; +cbor_type_encoder_f BIT_STRING_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f BIT_STRING_decode_uper; diff --git a/src/icspacket/include/skeletons/BIT_STRING_jer.c b/src/icspacket/include/skeletons/BIT_STRING_jer.c index e557a01e..e3841157 100644 --- a/src/icspacket/include/skeletons/BIT_STRING_jer.c +++ b/src/icspacket/include/skeletons/BIT_STRING_jer.c @@ -295,10 +295,11 @@ asn_dec_rval_t BIT_STRING_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, void *integer_ptr = (void *)&integer; memset(&integer, 0, sizeof(integer)); - asn_dec_rval_t dec = INTEGER_decode_jer(NULL, &asn_DEF_INTEGER, NULL, - &integer_ptr, p0, p - p0); - if (dec.code == RC_OK) { - if (asn_INTEGER2ulong(&integer, (unsigned long *)&length)) { + asn_dec_rval_t dec = + INTEGER_decode_jer(NULL, &asn_DEF_INTEGER, NULL, &integer_ptr, p0, p-p0); + if(dec.code == RC_OK) { + if(asn_INTEGER2ulong(&integer, (unsigned long *)&length)) { + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &integer); RETURN(RC_FAIL); } } else { @@ -306,7 +307,10 @@ asn_dec_rval_t BIT_STRING_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &integer); - if (dec.code != RC_OK) RETURN(RC_FAIL); + if(dec.code != RC_OK) RETURN(RC_FAIL); + if(length > st->size * 8 || (st->size * 8) - length > 7) { + RETURN(RC_FAIL); + } st->bits_unused = (st->size * 8) - length; SKIPCHAR('}'); diff --git a/src/icspacket/include/skeletons/BOOLEAN.c b/src/icspacket/include/skeletons/BOOLEAN.c index 0f0035f4..f84ebec0 100644 --- a/src/icspacket/include/skeletons/BOOLEAN.c +++ b/src/icspacket/include/skeletons/BOOLEAN.c @@ -11,6 +11,7 @@ static const ber_tlv_tag_t asn_DEF_BOOLEAN_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2))}; asn_TYPE_operation_t asn_OP_BOOLEAN = { + .kind = ASN_KIND_PRIMITIVE, BOOLEAN_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) BOOLEAN_print, @@ -65,8 +66,15 @@ asn_TYPE_operation_t asn_OP_BOOLEAN = { BOOLEAN_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + BOOLEAN_decode_cbor, + BOOLEAN_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_BOOLEAN = { "BOOLEAN", diff --git a/src/icspacket/include/skeletons/BOOLEAN.h b/src/icspacket/include/skeletons/BOOLEAN.h index 799d33b4..3539a922 100644 --- a/src/icspacket/include/skeletons/BOOLEAN.h +++ b/src/icspacket/include/skeletons/BOOLEAN.h @@ -40,7 +40,8 @@ der_type_encoder_f BOOLEAN_encode_der; #if !defined(ASN_DISABLE_XER_SUPPORT) xer_type_decoder_f BOOLEAN_decode_xer; xer_type_encoder_f BOOLEAN_encode_xer; -#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +xer_type_encoder_f BOOLEAN_encode_xer_text; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) jer_type_decoder_f BOOLEAN_decode_jer; @@ -50,7 +51,11 @@ jer_type_encoder_f BOOLEAN_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f BOOLEAN_decode_oer; oer_type_encoder_f BOOLEAN_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f BOOLEAN_decode_cbor; +cbor_type_encoder_f BOOLEAN_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f BOOLEAN_decode_uper; diff --git a/src/icspacket/include/skeletons/BOOLEAN_jer.c b/src/icspacket/include/skeletons/BOOLEAN_jer.c index ff6774a4..58cbd908 100644 --- a/src/icspacket/include/skeletons/BOOLEAN_jer.c +++ b/src/icspacket/include/skeletons/BOOLEAN_jer.c @@ -9,21 +9,28 @@ #include /* - * Decode the chunk of JSON text encoding INTEGER. + * Decode the chunk of JSON text encoding BOOLEAN. */ static enum jer_pbd_rval BOOLEAN__jer_body_decode( const asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, size_t chunk_size) { BOOLEAN_t *st = (BOOLEAN_t *)sptr; const char *p = (const char *)chunk_buf; + size_t lead_wsp_size; (void)td; - (void)chunk_size; - if (p[0] == 't' /* 'true' */) { + lead_wsp_size = jer_whitespace_span(p, chunk_size); + p += lead_wsp_size; + chunk_size -= lead_wsp_size; + + if(chunk_size >= 4 && memcmp(p, "true", 4) == 0 + && jer_whitespace_span(p + 4, chunk_size - 4) == chunk_size - 4) { *st = 1; return JPBD_BODY_CONSUMED; - } else if (p[0] == 'f' /* 'false' */) { + } else if(chunk_size >= 5 && memcmp(p, "false", 5) == 0 + && jer_whitespace_span(p + 5, chunk_size - 5) + == chunk_size - 5) { *st = 0; return JPBD_BODY_CONSUMED; } else { diff --git a/src/icspacket/include/skeletons/BOOLEAN_xer.c b/src/icspacket/include/skeletons/BOOLEAN_xer.c index 9e36a0e6..d9353554 100644 --- a/src/icspacket/include/skeletons/BOOLEAN_xer.c +++ b/src/icspacket/include/skeletons/BOOLEAN_xer.c @@ -9,59 +9,74 @@ #include /* - * Decode the chunk of XML text encoding INTEGER. + * Decode the chunk of XML text encoding BOOLEAN. */ -static enum xer_pbd_rval BOOLEAN__xer_body_decode( - const asn_TYPE_descriptor_t *td, void *sptr, const void *chunk_buf, - size_t chunk_size) { +static enum xer_pbd_rval +BOOLEAN__xer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { BOOLEAN_t *st = (BOOLEAN_t *)sptr; const char *p = (const char *)chunk_buf; (void)td; - if (chunk_size && p[0] == 0x3c /* '<' */) { - switch (xer_check_tag(chunk_buf, chunk_size, "false")) { - case XCT_BOTH: - /* "" */ - *st = 0; - break; - case XCT_UNKNOWN_BO: - if (xer_check_tag(chunk_buf, chunk_size, "true") != XCT_BOTH) - return XPBD_BROKEN_ENCODING; - /* "" */ - *st = 1; /* Or 0xff as in DER?.. */ - break; - default: + if(chunk_size && p[0] == 0x3c /* '<' */) { + /* Element form: or */ + switch(xer_check_tag(chunk_buf, chunk_size, "false")) { + case XCT_BOTH: + /* "" */ + *st = 0; + break; + case XCT_UNKNOWN_BO: + if(xer_check_tag(chunk_buf, chunk_size, "true") != XCT_BOTH) return XPBD_BROKEN_ENCODING; + /* "" */ + *st = 1; /* Or 0xff as in DER?.. */ + break; + default: + return XPBD_BROKEN_ENCODING; } return XPBD_BODY_CONSUMED; - } else { - return XPBD_BROKEN_ENCODING; + } else if(chunk_size >= 4 && strncmp(p, "true", 4) == 0) { + /* Text content form: true (possibly followed by whitespace) */ + if(chunk_size == 4 + || xer_whitespace_span(p + 4, chunk_size - 4) == chunk_size - 4) { + *st = 1; + return XPBD_BODY_CONSUMED; + } + } else if(chunk_size >= 5 && strncmp(p, "false", 5) == 0) { + /* Text content form: false (possibly followed by whitespace) */ + if(chunk_size == 5 + || xer_whitespace_span(p + 5, chunk_size - 5) == chunk_size - 5) { + *st = 0; + return XPBD_BODY_CONSUMED; + } } + return XPBD_BROKEN_ENCODING; } -asn_dec_rval_t BOOLEAN_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, - const char *opt_mname, const void *buf_ptr, - size_t size) { - return xer_decode_primitive(opt_codec_ctx, td, sptr, sizeof(BOOLEAN_t), - opt_mname, buf_ptr, size, + +asn_dec_rval_t +BOOLEAN_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(BOOLEAN_t), opt_mname, buf_ptr, size, BOOLEAN__xer_body_decode); } -asn_enc_rval_t BOOLEAN_encode_xer(const asn_TYPE_descriptor_t *td, - const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { +asn_enc_rval_t +BOOLEAN_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; asn_enc_rval_t er = {0, 0, 0}; (void)ilevel; (void)flags; - if (!st) ASN__ENCODE_FAILED; + if(!st) ASN__ENCODE_FAILED; - if (*st) { + if(*st) { ASN__CALLBACK("", 7); } else { ASN__CALLBACK("", 8); @@ -71,3 +86,26 @@ asn_enc_rval_t BOOLEAN_encode_xer(const asn_TYPE_descriptor_t *td, cb_failed: ASN__ENCODE_FAILED; } + +asn_enc_rval_t +BOOLEAN_encode_xer_text(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const BOOLEAN_t *st = (const BOOLEAN_t *)sptr; + asn_enc_rval_t er = {0, 0, 0}; + + (void)td; + (void)ilevel; + (void)flags; + + if(!st) ASN__ENCODE_FAILED; + if(*st) { + ASN__CALLBACK("true", 4); + } else { + ASN__CALLBACK("false", 5); + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/src/icspacket/include/skeletons/ENUMERATED.c b/src/icspacket/include/skeletons/ENUMERATED.c index 88d134a1..87846ab5 100644 --- a/src/icspacket/include/skeletons/ENUMERATED.c +++ b/src/icspacket/include/skeletons/ENUMERATED.c @@ -12,6 +12,7 @@ static const ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))}; asn_TYPE_operation_t asn_OP_ENUMERATED = { + .kind = ASN_KIND_PRIMITIVE, ASN__PRIMITIVE_TYPE_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) INTEGER_print, /* Implemented in terms of INTEGER */ @@ -36,7 +37,7 @@ asn_TYPE_operation_t asn_OP_ENUMERATED = { #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) ENUMERATED_decode_jer, - INTEGER_encode_jer, + ENUMERATED_encode_jer, #else 0, 0, @@ -66,8 +67,15 @@ asn_TYPE_operation_t asn_OP_ENUMERATED = { ENUMERATED_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + ENUMERATED_decode_cbor, + ENUMERATED_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_ENUMERATED = { "ENUMERATED", diff --git a/src/icspacket/include/skeletons/ENUMERATED.h b/src/icspacket/include/skeletons/ENUMERATED.h index 1ceb81a6..4b4c678a 100644 --- a/src/icspacket/include/skeletons/ENUMERATED.h +++ b/src/icspacket/include/skeletons/ENUMERATED.h @@ -39,13 +39,17 @@ extern asn_TYPE_operation_t asn_OP_ENUMERATED; #if !defined(ASN_DISABLE_JER_SUPPORT) jer_type_decoder_f ENUMERATED_decode_jer; -#define ENUMERATED_encode_jer INTEGER_encode_jer -#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +jer_type_encoder_f ENUMERATED_encode_jer; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f ENUMERATED_decode_oer; oer_type_encoder_f ENUMERATED_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f ENUMERATED_decode_cbor; +cbor_type_encoder_f ENUMERATED_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f ENUMERATED_decode_uper; diff --git a/src/icspacket/include/skeletons/ENUMERATED_jer.c b/src/icspacket/include/skeletons/ENUMERATED_jer.c index 8ba51de8..0ff36bc5 100644 --- a/src/icspacket/include/skeletons/ENUMERATED_jer.c +++ b/src/icspacket/include/skeletons/ENUMERATED_jer.c @@ -126,3 +126,44 @@ asn_dec_rval_t ENUMERATED_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, return jer_decode_primitive(opt_codec_ctx, td, sptr, sizeof(INTEGER_t), buf_ptr, size, ENUMERATED__jer_body_decode); } + +asn_enc_rval_t +ENUMERATED_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + const void *sptr, int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + const INTEGER_t *st = (const INTEGER_t *)sptr; + asn_enc_rval_t er = {0,0,0}; + intmax_t value; + const asn_INTEGER_enum_map_t *el; + + (void)ilevel; + (void)flags; + (void)constraints; + + if(!st || !st->buf) ASN__ENCODE_FAILED; + + /* Convert INTEGER to native value */ + if(asn_INTEGER2imax(st, &value)) { + /* Value is too large to fit in intmax_t */ + ASN__ENCODE_FAILED; + } + + /* Look up enum name for this value */ + el = INTEGER_map_value2enum(specs, value); + if(el) { + /* Encode as string: "enumName" */ + er.encoded = + asn__format_to_callback(cb, app_key, "\"%s\"", el->enum_name); + if(er.encoded < 0) ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } else { + /* Unknown enum value - this should not happen with valid data */ + ASN_DEBUG( + "ASN.1 forbids dealing with " + "unknown value of ENUMERATED type"); + ASN__ENCODE_FAILED; + } +} diff --git a/src/icspacket/include/skeletons/EXTERNAL.c b/src/icspacket/include/skeletons/EXTERNAL.c index debb0af9..29c50669 100644 --- a/src/icspacket/include/skeletons/EXTERNAL.c +++ b/src/icspacket/include/skeletons/EXTERNAL.c @@ -1,10 +1,27 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" */ #include -static asn_TYPE_member_t asn_MBR_encoding_5[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_encoding __attribute__((weak, alias("asn_DEF_encoding_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_encoding_5; +static asn_TYPE_descriptor_t asn_DEF_encoding; +__attribute__((constructor)) static void asn_DEF_encoding_5_alias_init(void) { + asn_DEF_encoding = asn_DEF_encoding_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_arbitrary_constr_8 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_EXTERNAL__encoding_5[] = { { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.single_ASN1_type), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -102,7 +119,7 @@ asn_TYPE_descriptor_t asn_DEF_encoding_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_encoding_5, + asn_MBR_EXTERNAL__encoding_5, 3, /* Elements count */ &asn_SPC_encoding_specs_5 /* Additional specs */ }; diff --git a/src/icspacket/include/skeletons/EXTERNAL.h b/src/icspacket/include/skeletons/EXTERNAL.h index 9ccafccb..65bc0476 100644 --- a/src/icspacket/include/skeletons/EXTERNAL.h +++ b/src/icspacket/include/skeletons/EXTERNAL.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" */ @@ -33,15 +33,15 @@ typedef enum EXTERNAL__encoding_PR { /* EXTERNAL */ typedef struct EXTERNAL { - OBJECT_IDENTIFIER_t *direct_reference; /* OPTIONAL */ - long *indirect_reference; /* OPTIONAL */ - ObjectDescriptor_t *data_value_descriptor; /* OPTIONAL */ + OBJECT_IDENTIFIER_t *direct_reference; /* OPTIONAL */ + long *indirect_reference; /* OPTIONAL */ + ObjectDescriptor_t *data_value_descriptor; /* OPTIONAL */ struct EXTERNAL__encoding { EXTERNAL__encoding_PR present; union EXTERNAL__encoding_u { - ANY_t single_ASN1_type; - OCTET_STRING_t octet_aligned; - BIT_STRING_t arbitrary; + ANY_t single_ASN1_type; + OCTET_STRING_t octet_aligned; + BIT_STRING_t arbitrary; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/include/skeletons/EXTERNAL_Py.c b/src/icspacket/include/skeletons/EXTERNAL_Py.c index 4ad56828..abc03129 100644 --- a/src/icspacket/include/skeletons/EXTERNAL_Py.c +++ b/src/icspacket/include/skeletons/EXTERNAL_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" */ @@ -251,7 +251,7 @@ void PyAsnEXTERNAL_ModClear(PyObject *mod) { int PyAsnEXTERNAL_ModInit(PyObject *mod) { PY_IMPL_MOD_ASSIGN_OBJECT(EXTERNAL, arbitrary_TYPE, &PyAsnEXTERNAL_encoding_ANON_5_arbitrary_Type); - PY_IMPL_NEW_ENUM(EXTERNAL.encoding_TYPE.PRESENT, PyAsnEnumEXTERNAL_encoding_ANON_5_PRESENT_Type, -1, + PY_IMPL_NEW_ENUM(EXTERNAL.encoding_TYPE.PRESENT, PyAsnEnumEXTERNAL_encoding_ANON_5_PRESENT_Type, -1, PY_IMPL_ENUM_VALUE(PR_NOTHING, EXTERNAL__encoding_PR_NOTHING, 0); PY_IMPL_ENUM_VALUE(PR_single_ASN1_type, EXTERNAL__encoding_PR_single_ASN1_type, 1); PY_IMPL_ENUM_VALUE(PR_octet_aligned, EXTERNAL__encoding_PR_octet_aligned, 2); diff --git a/src/icspacket/include/skeletons/EXTERNAL_Py.h b/src/icspacket/include/skeletons/EXTERNAL_Py.h index 1004a1bb..d6834930 100644 --- a/src/icspacket/include/skeletons/EXTERNAL_Py.h +++ b/src/icspacket/include/skeletons/EXTERNAL_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" */ diff --git a/src/icspacket/include/skeletons/GeneralizedTime.c b/src/icspacket/include/skeletons/GeneralizedTime.c index e195871b..6aef6802 100644 --- a/src/icspacket/include/skeletons/GeneralizedTime.c +++ b/src/icspacket/include/skeletons/GeneralizedTime.c @@ -4,7 +4,11 @@ */ #define _POSIX_PTHREAD_SEMANTICS /* for Sun */ #ifndef _REENTRANT -#define _REENTRANT /* for Sun */ +#define _REENTRANT /* for Sun */ +#endif +#define __EXTENSIONS__ /* for Sun */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE /* for timegm(3) */ #endif #include #include @@ -17,9 +21,18 @@ #include -#if defined(WIN32) +#if defined(_WIN32) #ifdef __GNUC__ +#pragma message("PLEASE STOP AND READ!") +#pragma message( \ + " localtime_r is implemented via localtime(), which may be not thread-safe.") +#pragma message( \ + " gmtime_r is implemented via gmtime(), which may be not thread-safe.") +#pragma message(" ") +#pragma message(" You must fix the code by inserting appropriate locking") +#pragma message(" if you want to use asn_GT2time() or asn_UT2time().") +#pragma message("PLEASE STOP AND READ!") static struct tm *localtime_r(const time_t *tloc, struct tm *result) { struct tm *tm; @@ -33,8 +46,11 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) { return 0; } -#else +#else /* !__GNUC__ */ +/* MSVC provides real thread-safe localtime_s()/gmtime_s(); prefer them over + * the generic (non-reentrant) localtime()/gmtime()-based fallback above, + * which is only used for toolchains (e.g. MinGW) lacking these. */ int localtime_s(struct tm *_tm, const time_t *time); int gmtime_s(struct tm *_tm, const time_t *time); @@ -58,7 +74,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) { #define putenv(c) _putenv(c) #define _EMULATE_TIMEGM -#endif /* WIN32 */ +#endif /* _WIN32 */ #ifdef _WIN32 #ifndef HAVE_SETENV @@ -102,6 +118,26 @@ static inline int unsetenv(const char *name) { return _putenv_s(name, ""); } #define GMTOFF(tm) (_timezone) #endif /* HAVE_TM_GMTOFF */ +#if defined(_WIN32) +#pragma message("PLEASE STOP AND READ!") +#pragma message( \ + " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe.") +#pragma message(" ") +#pragma message(" You must fix the code by inserting appropriate locking") +#pragma message(" if you want to use asn_GT2time() or asn_UT2time().") +#pragma message("PLEASE STOP AND READ!") +#else +#if (defined(_EMULATE_TIMEGM) || !defined(HAVE_TM_GMTOFF)) +#warning "PLEASE STOP AND READ!" +#warning \ + " timegm() is implemented via getenv(\"TZ\")/setenv(\"TZ\"), which may be not thread-safe." +#warning " " +#warning " You must fix the code by inserting appropriate locking" +#warning " if you want to use asn_GT2time() or asn_UT2time()." +#warning "PLEASE STOP AND READ!" +#endif /* _EMULATE_TIMEGM */ +#endif + /* * Override our GMTOFF decision for other known platforms. */ @@ -191,6 +227,7 @@ static asn_per_constraints_t asn_DEF_GeneralizedTime_per_constraints = { #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ !defined(ASN_DISABLE_APER_SUPPORT) */ asn_TYPE_operation_t asn_OP_GeneralizedTime = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) GeneralizedTime_print, @@ -245,8 +282,15 @@ asn_TYPE_operation_t asn_OP_GeneralizedTime = { GeneralizedTime_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor_utf8, + OCTET_STRING_encode_cbor_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_GeneralizedTime = { "GeneralizedTime", diff --git a/src/icspacket/include/skeletons/GeneralizedTime.h b/src/icspacket/include/skeletons/GeneralizedTime.h index e8c9ff1c..8aad370c 100644 --- a/src/icspacket/include/skeletons/GeneralizedTime.h +++ b/src/icspacket/include/skeletons/GeneralizedTime.h @@ -4,6 +4,11 @@ */ #ifndef _GeneralizedTime_H_ #define _GeneralizedTime_H_ +#ifdef __CYGWIN__ +#include "/usr/include/time.h" +#else +#include +#endif /* __CYGWIN__ */ #include @@ -59,8 +64,6 @@ asn_random_fill_f GeneralizedTime_random_fill; * Some handy helpers. * ***********************/ -struct tm; /* */ - /* * Convert a GeneralizedTime structure into time_t * and optionally into struct tm. diff --git a/src/icspacket/include/skeletons/GeneralizedTime_ber.c b/src/icspacket/include/skeletons/GeneralizedTime_ber.c index 2054b7ad..e6846903 100644 --- a/src/icspacket/include/skeletons/GeneralizedTime_ber.c +++ b/src/icspacket/include/skeletons/GeneralizedTime_ber.c @@ -7,17 +7,10 @@ #include #include -#ifdef __CYGWIN__ -#include "/usr/include/time.h" -#else -#include -#endif /* __CYGWIN__ */ - -asn_enc_rval_t GeneralizedTime_encode_der(const asn_TYPE_descriptor_t *td, - const void *sptr, int tag_mode, - ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, - void *app_key) { +asn_enc_rval_t +GeneralizedTime_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { GeneralizedTime_t *st; asn_enc_rval_t erval = {0, 0, 0}; int fv, fd; /* seconds fraction value and number of digits */ diff --git a/src/icspacket/include/skeletons/GeneralizedTime_jer.c b/src/icspacket/include/skeletons/GeneralizedTime_jer.c index 25e87c64..4638d00b 100644 --- a/src/icspacket/include/skeletons/GeneralizedTime_jer.c +++ b/src/icspacket/include/skeletons/GeneralizedTime_jer.c @@ -5,13 +5,6 @@ */ #include #include - -#ifdef __CYGWIN__ -#include "/usr/include/time.h" -#else -#include -#endif /* __CYGWIN__ */ - #include #if !defined(ASN___INTERNAL_TEST_MODE) diff --git a/src/icspacket/include/skeletons/GeneralizedTime_print.c b/src/icspacket/include/skeletons/GeneralizedTime_print.c index 4b41f985..c9113dbc 100644 --- a/src/icspacket/include/skeletons/GeneralizedTime_print.c +++ b/src/icspacket/include/skeletons/GeneralizedTime_print.c @@ -7,15 +7,9 @@ #include #include -#ifdef __CYGWIN__ -#include "/usr/include/time.h" -#else -#include -#endif /* __CYGWIN__ */ - -int GeneralizedTime_print(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, asn_app_consume_bytes_f *cb, - void *app_key) { +int +GeneralizedTime_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { const GeneralizedTime_t *st = (const GeneralizedTime_t *)sptr; (void)td; /* Unused argument */ diff --git a/src/icspacket/include/skeletons/GeneralizedTime_xer.c b/src/icspacket/include/skeletons/GeneralizedTime_xer.c index c8d2e296..6edb3a6a 100644 --- a/src/icspacket/include/skeletons/GeneralizedTime_xer.c +++ b/src/icspacket/include/skeletons/GeneralizedTime_xer.c @@ -5,13 +5,6 @@ */ #include #include - -#ifdef __CYGWIN__ -#include "/usr/include/time.h" -#else -#include -#endif /* __CYGWIN__ */ - #include #if !defined(ASN___INTERNAL_TEST_MODE) diff --git a/src/icspacket/include/skeletons/GraphicString.c b/src/icspacket/include/skeletons/GraphicString.c index 73346023..c6ad153d 100644 --- a/src/icspacket/include/skeletons/GraphicString.c +++ b/src/icspacket/include/skeletons/GraphicString.c @@ -13,6 +13,7 @@ static const ber_tlv_tag_t asn_DEF_GraphicString_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ }; asn_TYPE_operation_t asn_OP_GraphicString = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OCTET_STRING_print, /* non-ascii string */ @@ -67,8 +68,15 @@ asn_TYPE_operation_t asn_OP_GraphicString = { OCTET_STRING_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor_utf8, + OCTET_STRING_encode_cbor_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_GraphicString = { "GraphicString", diff --git a/src/icspacket/include/skeletons/IA5String.c b/src/icspacket/include/skeletons/IA5String.c index 1b34dc27..e30f94bb 100644 --- a/src/icspacket/include/skeletons/IA5String.c +++ b/src/icspacket/include/skeletons/IA5String.c @@ -21,6 +21,7 @@ static asn_per_constraints_t asn_DEF_IA5String_per_constraints = { #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ !defined(ASN_DISABLE_APER_SUPPORT) */ asn_TYPE_operation_t asn_OP_IA5String = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OCTET_STRING_print_utf8, /* ASCII subset */ @@ -75,8 +76,15 @@ asn_TYPE_operation_t asn_OP_IA5String = { OCTET_STRING_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor_utf8, + OCTET_STRING_encode_cbor_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_IA5String = { "IA5String", diff --git a/src/icspacket/include/skeletons/INTEGER.c b/src/icspacket/include/skeletons/INTEGER.c index 7eec827d..1c64a5c6 100644 --- a/src/icspacket/include/skeletons/INTEGER.c +++ b/src/icspacket/include/skeletons/INTEGER.c @@ -7,13 +7,13 @@ #include #include #include - /* * INTEGER basic type description. */ static const ber_tlv_tag_t asn_DEF_INTEGER_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))}; asn_TYPE_operation_t asn_OP_INTEGER = { + .kind = ASN_KIND_PRIMITIVE, INTEGER_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) INTEGER_print, @@ -68,8 +68,15 @@ asn_TYPE_operation_t asn_OP_INTEGER = { INTEGER_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ +0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + INTEGER_decode_cbor, + INTEGER_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_INTEGER = { "INTEGER", @@ -158,24 +165,41 @@ ssize_t INTEGER__dump(const asn_TYPE_descriptor_t *td, const INTEGER_t *st, return -1; } - /* Output in the long xx:yy:zz... format */ - /* TODO: replace with generic algorithm (Knuth TAOCP Vol 2, 4.3.1) */ - for (p = scratch; buf < buf_end; buf++) { - const char *const h2c = "0123456789ABCDEF"; - if ((p - scratch) >= (ssize_t)(sizeof(scratch) - 4)) { - /* Flush buffer */ - if (cb(scratch, p - scratch, app_key) < 0) return -1; - wrote += p - scratch; - p = scratch; - } - *p++ = h2c[*buf >> 4]; - *p++ = h2c[*buf & 0x0F]; - *p++ = 0x3a; /* ":" */ - } - if (p != scratch) p--; /* Remove the last ":" */ - - wrote += p - scratch; - return (cb(scratch, p - scratch, app_key) < 0) ? -1 : wrote; + /* Output in the long xx:yy:zz... format */ + /* TODO: replace with generic algorithm (Knuth TAOCP Vol 2, 4.3.1) */ + + /* For JER (JSON), large integers should be quoted as strings */ + if(plainOrXEROrJER == 2) { + if(cb("\"", 1, app_key) < 0) return -1; + wrote += 1; + } + + for(p = scratch; buf < buf_end; buf++) { + const char * const h2c = "0123456789ABCDEF"; + if((p - scratch) >= (ssize_t)(sizeof(scratch) - 4)) { + /* Flush buffer */ + if(cb(scratch, p - scratch, app_key) < 0) + return -1; + wrote += p - scratch; + p = scratch; + } + *p++ = h2c[*buf >> 4]; + *p++ = h2c[*buf & 0x0F]; + *p++ = 0x3a; /* ":" */ + } + if(p != scratch) + p--; /* Remove the last ":" */ + + wrote += p - scratch; + if((cb(scratch, p - scratch, app_key) < 0)) return -1; + + /* Close quote for JER (JSON) */ + if(plainOrXEROrJER == 2) { + if(cb("\"", 1, app_key) < 0) return -1; + wrote += 1; + } + + return wrote; } static int INTEGER__compar_value2enum(const void *kp, const void *am) { @@ -414,8 +438,15 @@ int asn_long2INTEGER(INTEGER_t *st, long value) { return asn_imax2INTEGER(st, value); } -int asn_ulong2INTEGER(INTEGER_t *st, unsigned long value) { - return asn_imax2INTEGER(st, value); +int +asn_ulong2INTEGER(INTEGER_t *st, unsigned long value) { + /* + * Route through the unsigned conversion helper so that values above + * the signed maximum stay positive (a leading zero content octet is + * prepended when the high bit would otherwise imply a negative value). + * Using the signed helper here would misencode e.g. ULONG_MAX as -1. + */ + return asn_umax2INTEGER(st, (uintmax_t)value); } int asn_INTEGER2int64(const INTEGER_t *st, int64_t *value) { diff --git a/src/icspacket/include/skeletons/INTEGER.h b/src/icspacket/include/skeletons/INTEGER.h index a9ead191..e7d44f44 100644 --- a/src/icspacket/include/skeletons/INTEGER.h +++ b/src/icspacket/include/skeletons/INTEGER.h @@ -57,8 +57,10 @@ der_type_encoder_f INTEGER_encode_der; #if !defined(ASN_DISABLE_XER_SUPPORT) xer_type_decoder_f INTEGER_decode_xer; +xer_type_decoder_f INTEGER_decode_xer_text; xer_type_encoder_f INTEGER_encode_xer; -#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +xer_type_encoder_f INTEGER_encode_xer_text; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) jer_type_decoder_f INTEGER_decode_jer; @@ -68,7 +70,11 @@ jer_type_encoder_f INTEGER_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f INTEGER_decode_oer; oer_type_encoder_f INTEGER_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f INTEGER_decode_cbor; +cbor_type_encoder_f INTEGER_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f INTEGER_decode_uper; diff --git a/src/icspacket/include/skeletons/INTEGER_xer.c b/src/icspacket/include/skeletons/INTEGER_xer.c index 22d45f44..15f47dfc 100644 --- a/src/icspacket/include/skeletons/INTEGER_xer.c +++ b/src/icspacket/include/skeletons/INTEGER_xer.c @@ -74,7 +74,32 @@ static const asn_INTEGER_enum_map_t *INTEGER_map_enum2value( return el_found; } -static int INTEGER_st_prealloc(INTEGER_t *st, int min_size) { +static const asn_INTEGER_enum_map_t * +INTEGER_map_text2value(const asn_INTEGER_specifics_t *specs, const char *lstart, + const char *lstop) { + int count = specs ? specs->map_count : 0; + int i; + + if(!count) return NULL; + while(lstart < lstop + && (*lstart == 9 || *lstart == 10 || *lstart == 13 || *lstart == 32)) + lstart++; + while(lstop > lstart + && (lstop[-1] == 9 || lstop[-1] == 10 || lstop[-1] == 13 + || lstop[-1] == 32)) + lstop--; + + for(i = 0; i < count; i++) { + const asn_INTEGER_enum_map_t *el = &specs->value2enum[i]; + if((size_t)(lstop - lstart) == el->enum_len + && memcmp(lstart, el->enum_name, el->enum_len) == 0) + return el; + } + return NULL; +} + +static int +INTEGER_st_prealloc(INTEGER_t *st, int min_size) { void *p = MALLOC(min_size + 1); if (p) { void *b = st->buf; @@ -359,10 +384,37 @@ asn_dec_rval_t INTEGER_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, INTEGER__xer_body_decode); } -asn_enc_rval_t INTEGER_encode_xer(const asn_TYPE_descriptor_t *td, - const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { +static enum xer_pbd_rval +INTEGER__xer_text_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, + const void *chunk_buf, size_t chunk_size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + INTEGER_t *st = (INTEGER_t *)sptr; + const asn_INTEGER_enum_map_t *el; + + el = INTEGER_map_text2value(specs, (const char *)chunk_buf, + (const char *)chunk_buf + chunk_size); + if(!el) + return XPBD_BROKEN_ENCODING; + if(asn_imax2INTEGER(st, el->nat_value)) + return XPBD_SYSTEM_FAILURE; + return XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +INTEGER_decode_xer_text(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return xer_decode_primitive(opt_codec_ctx, td, + sptr, sizeof(INTEGER_t), opt_mname, + buf_ptr, size, INTEGER__xer_text_body_decode); +} + +asn_enc_rval_t +INTEGER_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { const INTEGER_t *st = (const INTEGER_t *)sptr; asn_enc_rval_t er = {0, 0, 0}; @@ -376,3 +428,37 @@ asn_enc_rval_t INTEGER_encode_xer(const asn_TYPE_descriptor_t *td, ASN__ENCODED_OK(er); } + +asn_enc_rval_t +INTEGER_encode_xer_text(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const INTEGER_t *st = (const INTEGER_t *)sptr; + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + intmax_t value = 0; + const asn_INTEGER_enum_map_t *el; + + (void)ilevel; + (void)flags; + + if(!st || !st->buf) + ASN__ENCODE_FAILED; + if(specs && specs->field_unsigned) { + uintmax_t uvalue = 0; + if(asn_INTEGER2umax(st, &uvalue) || uvalue > (uintmax_t)LONG_MAX) + ASN__ENCODE_FAILED; + value = (intmax_t)uvalue; + } else if(asn_INTEGER2imax(st, &value)) { + ASN__ENCODE_FAILED; + } + + el = INTEGER_map_value2enum(specs, value); + if(!el) + ASN__ENCODE_FAILED; + er.encoded = asn__format_to_callback(cb, app_key, "%s", el->enum_name); + if(er.encoded < 0) ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} diff --git a/src/icspacket/include/skeletons/NULL.c b/src/icspacket/include/skeletons/NULL.c index 100be9ba..e2cdcc6d 100644 --- a/src/icspacket/include/skeletons/NULL.c +++ b/src/icspacket/include/skeletons/NULL.c @@ -11,6 +11,7 @@ static const ber_tlv_tag_t asn_DEF_NULL_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2))}; asn_TYPE_operation_t asn_OP_NULL = { + .kind = ASN_KIND_PRIMITIVE, NULL_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) NULL_print, @@ -65,8 +66,15 @@ asn_TYPE_operation_t asn_OP_NULL = { NULL_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + NULL_decode_cbor, + NULL_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_NULL = { "NULL", diff --git a/src/icspacket/include/skeletons/NULL.h b/src/icspacket/include/skeletons/NULL.h index 7afc03c5..9b7c0cc9 100644 --- a/src/icspacket/include/skeletons/NULL.h +++ b/src/icspacket/include/skeletons/NULL.h @@ -49,7 +49,11 @@ jer_type_encoder_f NULL_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f NULL_decode_oer; oer_type_encoder_f NULL_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f NULL_decode_cbor; +cbor_type_encoder_f NULL_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f NULL_decode_uper; diff --git a/src/icspacket/include/skeletons/NativeEnumerated.c b/src/icspacket/include/skeletons/NativeEnumerated.c index 8f77f7d0..4989ed62 100644 --- a/src/icspacket/include/skeletons/NativeEnumerated.c +++ b/src/icspacket/include/skeletons/NativeEnumerated.c @@ -18,6 +18,7 @@ static const ber_tlv_tag_t asn_DEF_NativeEnumerated_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))}; asn_TYPE_operation_t asn_OP_NativeEnumerated = { + .kind = ASN_KIND_PRIMITIVE, NativeInteger_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) NativeInteger_print, @@ -72,8 +73,15 @@ asn_TYPE_operation_t asn_OP_NativeEnumerated = { NativeEnumerated_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + NativeEnumerated_decode_cbor, + NativeEnumerated_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; int NativeEnumerated_constraint(const asn_TYPE_descriptor_t *td, @@ -88,7 +96,17 @@ int NativeEnumerated_constraint(const asn_TYPE_descriptor_t *td, if (el) { return 0; } else { - ASN_DEBUG("No element corresponds to the value %ld", *native); + /* Bug #14: this used to return -1 without ever invoking ctfailcb, + * violating the documented asn_check_constraints() contract that + * errbuf/errlen are only meaningful after the callback fires. The + * Python binding's PyCompat_CheckConstraints() (py_application.h) + * trusted that contract unconditionally and read `errbuf_size` + * bytes of never-initialized stack memory as a result, leaking + * stack contents as a bogus UnicodeDecodeError instead of raising + * a clean ValueError. */ + ASN__CTFAIL(app_key, td, sptr, + "%s: no element corresponds to the value %ld (%s:%d)", + td->name, *native, __FILE__, __LINE__); return -1; } } diff --git a/src/icspacket/include/skeletons/NativeEnumerated.h b/src/icspacket/include/skeletons/NativeEnumerated.h index 993b1f89..e493b9ff 100644 --- a/src/icspacket/include/skeletons/NativeEnumerated.h +++ b/src/icspacket/include/skeletons/NativeEnumerated.h @@ -40,13 +40,19 @@ der_type_encoder_f NativeEnumerated_encode_der; #if !defined(ASN_DISABLE_XER_SUPPORT) xer_type_decoder_f NativeEnumerated_decode_xer; +xer_type_decoder_f NativeEnumerated_decode_xer_text; xer_type_encoder_f NativeEnumerated_encode_xer; -#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +xer_type_encoder_f NativeEnumerated_encode_xer_text; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) jer_type_decoder_f NativeEnumerated_decode_jer; jer_type_encoder_f NativeEnumerated_encode_jer; -#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f NativeEnumerated_decode_cbor; +cbor_type_encoder_f NativeEnumerated_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f NativeEnumerated_decode_oer; diff --git a/src/icspacket/include/skeletons/NativeEnumerated_ber.c b/src/icspacket/include/skeletons/NativeEnumerated_ber.c index fb4ebe5a..b8fe2805 100644 --- a/src/icspacket/include/skeletons/NativeEnumerated_ber.c +++ b/src/icspacket/include/skeletons/NativeEnumerated_ber.c @@ -143,4 +143,5 @@ asn_enc_rval_t NativeEnumerated_encode_der(const asn_TYPE_descriptor_t *td, erval.structure_ptr = sptr; } return erval; -} \ No newline at end of file +} + diff --git a/src/icspacket/include/skeletons/NativeEnumerated_xer.c b/src/icspacket/include/skeletons/NativeEnumerated_xer.c index 17c8ccfd..1e93c875 100644 --- a/src/icspacket/include/skeletons/NativeEnumerated_xer.c +++ b/src/icspacket/include/skeletons/NativeEnumerated_xer.c @@ -34,10 +34,39 @@ asn_enc_rval_t NativeEnumerated_encode_xer(const asn_TYPE_descriptor_t *td, } } -asn_dec_rval_t NativeEnumerated_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - void **sptr, const char *opt_mname, - const void *buf_ptr, size_t size) { +asn_enc_rval_t +NativeEnumerated_encode_xer_text(const asn_TYPE_descriptor_t *td, + const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + const long *native = (const long *)sptr; + const asn_INTEGER_enum_map_t *el; + + (void)ilevel; + (void)flags; + + if(!native) ASN__ENCODE_FAILED; + + el = INTEGER_map_value2enum(specs, *native); + if(el) { + er.encoded = + asn__format_to_callback(cb, app_key, "%s", el->enum_name); + if(er.encoded < 0) ASN__ENCODE_FAILED; + ASN__ENCODED_OK(er); + } else { + ASN_DEBUG("No element corresponds to the value %ld", *native); + ASN__ENCODE_FAILED; + } +} + +asn_dec_rval_t +NativeEnumerated_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; asn_dec_rval_t rval; @@ -78,4 +107,46 @@ asn_dec_rval_t NativeEnumerated_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, } ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st); return rval; -} \ No newline at end of file +} + +asn_dec_rval_t +NativeEnumerated_decode_xer_text(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_dec_rval_t rval; + INTEGER_t st; + void *st_ptr = (void *)&st; + long *native = (long *)*sptr; + const asn_INTEGER_enum_map_t *el; + if(!native) { + native = (long *)(*sptr = CALLOC(1, sizeof(*native))); + if(!native) ASN__DECODE_FAILED; + } + + memset(&st, 0, sizeof(st)); + rval = INTEGER_decode_xer_text(opt_codec_ctx, td, &st_ptr, opt_mname, + buf_ptr, size); + if(rval.code == RC_OK) { + long l; + if((specs && specs->field_unsigned) + ? asn_INTEGER2ulong(&st, (unsigned long *)&l) + : asn_INTEGER2long(&st, &l)) { + rval.code = RC_FAIL; + rval.consumed = 0; + } else { + el = INTEGER_map_value2enum(specs, l); + if(!el) { + ASN_DEBUG("No element corresponds to the value %ld", l); + ASN__DECODE_FAILED; + } + *native = el->nat_value; + } + } else { + rval.consumed = 0; + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &st); + return rval; +} diff --git a/src/icspacket/include/skeletons/NativeInteger.c b/src/icspacket/include/skeletons/NativeInteger.c index 97166838..f34dd1a4 100644 --- a/src/icspacket/include/skeletons/NativeInteger.c +++ b/src/icspacket/include/skeletons/NativeInteger.c @@ -19,6 +19,7 @@ static const ber_tlv_tag_t asn_DEF_NativeInteger_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))}; asn_TYPE_operation_t asn_OP_NativeInteger = { + .kind = ASN_KIND_PRIMITIVE, NativeInteger_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) NativeInteger_print, @@ -73,8 +74,15 @@ asn_TYPE_operation_t asn_OP_NativeInteger = { NativeInteger_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + NativeInteger_decode_cbor, + NativeInteger_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_NativeInteger = { "INTEGER", /* The ASN.1 type is still INTEGER */ @@ -101,21 +109,116 @@ asn_TYPE_descriptor_t asn_DEF_NativeInteger = { 0 /* No specifics */ }; -void NativeInteger_free(const asn_TYPE_descriptor_t *td, void *ptr, - enum asn_struct_free_method method) { - if (!td || !ptr) return; +/* + * Width-aware access helpers. The native integer member occupies + * field_width octets (1/2/4/8); when field_width is 0 the width defaults to + * sizeof(long), so descriptors that do not set it behave exactly as before. + */ +size_t +NativeInteger_field_width(const asn_INTEGER_specifics_t *specs) { + if(specs && specs->field_width) + return (size_t)specs->field_width; + return sizeof(long); +} + +intmax_t +NativeInteger_load_s(const void *ptr, const asn_INTEGER_specifics_t *specs) { + switch(NativeInteger_field_width(specs)) { + case 1: return (intmax_t)(*(const int8_t *)ptr); + case 2: return (intmax_t)(*(const int16_t *)ptr); + case 4: return (intmax_t)(*(const int32_t *)ptr); + case 8: return (intmax_t)(*(const int64_t *)ptr); + default: return (intmax_t)(*(const long *)ptr); + } +} + +uintmax_t +NativeInteger_load_u(const void *ptr, const asn_INTEGER_specifics_t *specs) { + switch(NativeInteger_field_width(specs)) { + case 1: return (uintmax_t)(*(const uint8_t *)ptr); + case 2: return (uintmax_t)(*(const uint16_t *)ptr); + case 4: return (uintmax_t)(*(const uint32_t *)ptr); + case 8: return (uintmax_t)(*(const uint64_t *)ptr); + default: return (uintmax_t)(*(const unsigned long *)ptr); + } +} + +void +NativeInteger_store(void *ptr, const asn_INTEGER_specifics_t *specs, + uintmax_t v) { + switch(NativeInteger_field_width(specs)) { + case 1: *(uint8_t *)ptr = (uint8_t)v; break; + case 2: *(uint16_t *)ptr = (uint16_t)v; break; + case 4: *(uint32_t *)ptr = (uint32_t)v; break; + case 8: *(uint64_t *)ptr = (uint64_t)v; break; + default: *(unsigned long *)ptr = (unsigned long)v; break; + } +} + +/* + * Decode an INTEGER_t into the native member, honoring field width and + * signedness. Returns 0 on success, -1 if the value does not fit the + * configured native width (overflow). + */ +int +NativeInteger_store_from_INTEGER(void *ptr, + const asn_INTEGER_specifics_t *specs, + const INTEGER_t *tmp) { + size_t w = NativeInteger_field_width(specs); + if(specs && specs->field_unsigned) { + uintmax_t u; + if(asn_INTEGER2umax(tmp, &u)) return -1; + if(w < sizeof(uintmax_t)) { + uintmax_t max = (((uintmax_t)1 << (8 * w)) - 1); + if(u > max) return -1; + } + NativeInteger_store(ptr, specs, u); + } else { + intmax_t s; + if(asn_INTEGER2imax(tmp, &s)) return -1; + if(w < sizeof(intmax_t)) { + intmax_t hi = (((intmax_t)1 << (8 * w - 1)) - 1); + intmax_t lo = -hi - 1; + if(s < lo || s > hi) return -1; + } + NativeInteger_store(ptr, specs, (uintmax_t)s); + } + return 0; +} + +/* + * Materialize the native member as a canonical INTEGER_t (caller frees + * tmp->buf). Returns 0 on success. + */ +int +NativeInteger_to_INTEGER(const void *ptr, + const asn_INTEGER_specifics_t *specs, + INTEGER_t *tmp) { + memset(tmp, 0, sizeof(*tmp)); + if(specs && specs->field_unsigned) + return asn_umax2INTEGER(tmp, NativeInteger_load_u(ptr, specs)); + return asn_imax2INTEGER(tmp, NativeInteger_load_s(ptr, specs)); +} + +void +NativeInteger_free(const asn_TYPE_descriptor_t *td, void *ptr, + enum asn_struct_free_method method) { + if(!td || !ptr) + return; ASN_DEBUG("Freeing %s as INTEGER (%d, %p, Native)", td->name, method, ptr); - switch (method) { - case ASFM_FREE_EVERYTHING: - FREEMEM(ptr); - break; - case ASFM_FREE_UNDERLYING: - break; - case ASFM_FREE_UNDERLYING_AND_RESET: - memset(ptr, 0, sizeof(long)); - break; + switch(method) { + case ASFM_FREE_EVERYTHING: + FREEMEM(ptr); + break; + case ASFM_FREE_UNDERLYING: + break; + case ASFM_FREE_UNDERLYING_AND_RESET: + memset(ptr, 0, + NativeInteger_field_width( + (const asn_INTEGER_specifics_t *)td->specifics)); + break; } } @@ -126,26 +229,18 @@ int NativeInteger_compare(const asn_TYPE_descriptor_t *td, const void *aptr, if (aptr && bptr) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; - if (specs && specs->field_unsigned) { - const unsigned long *a = aptr; - const unsigned long *b = bptr; - if (*a < *b) { - return -1; - } else if (*a > *b) { - return 1; - } else { - return 0; - } + if(specs && specs->field_unsigned) { + uintmax_t a = NativeInteger_load_u(aptr, specs); + uintmax_t b = NativeInteger_load_u(bptr, specs); + if(a < b) return -1; + else if(a > b) return 1; + else return 0; } else { - const long *a = aptr; - const long *b = bptr; - if (*a < *b) { - return -1; - } else if (*a > *b) { - return 1; - } else { - return 0; - } + intmax_t a = NativeInteger_load_s(aptr, specs); + intmax_t b = NativeInteger_load_s(bptr, specs); + if(a < b) return -1; + else if(a > b) return 1; + else return 0; } } else if (!aptr) { return -1; @@ -154,15 +249,15 @@ int NativeInteger_compare(const asn_TYPE_descriptor_t *td, const void *aptr, } } -int NativeInteger_copy(const asn_TYPE_descriptor_t *td, void **aptr, - const void *bptr) { - unsigned long *a = *aptr; - const unsigned long *b = bptr; - - (void)td; +int +NativeInteger_copy(const asn_TYPE_descriptor_t *td, void **aptr, const void *bptr) { + const asn_INTEGER_specifics_t *specs = + td ? (const asn_INTEGER_specifics_t *)td->specifics : 0; + size_t width = NativeInteger_field_width(specs); + void *a = *aptr; /* Check if source has data */ - if (!b) { + if(!bptr) { /* Clear destination */ if (a) { FREEMEM(a); @@ -171,12 +266,12 @@ int NativeInteger_copy(const asn_TYPE_descriptor_t *td, void **aptr, return 0; } - if (!a) { - a = *aptr = MALLOC(sizeof(*a)); - if (!a) return -1; + if(!a) { + a = *aptr = MALLOC(width); + if(!a) return -1; } - *a = *b; + memcpy(a, bptr, width); return 0; } diff --git a/src/icspacket/include/skeletons/NativeInteger.h b/src/icspacket/include/skeletons/NativeInteger.h index 5b73c728..91b5bf88 100644 --- a/src/icspacket/include/skeletons/NativeInteger.h +++ b/src/icspacket/include/skeletons/NativeInteger.h @@ -31,6 +31,22 @@ asn_struct_print_f NativeInteger_print; asn_struct_compare_f NativeInteger_compare; asn_struct_copy_f NativeInteger_copy; +/* + * Width-aware access to the native integer member. The in-memory storage + * width is taken from the type's asn_INTEGER_specifics_t.field_width + * (1, 2, 4 or 8 octets, matching int8_t..int64_t / uint8_t..uint64_t). + * When field_width is 0 (or there are no specifics) the width defaults to + * sizeof(long), preserving the historical behavior byte-for-byte. + */ +size_t NativeInteger_field_width(const asn_INTEGER_specifics_t *specs); +intmax_t NativeInteger_load_s(const void *ptr, const asn_INTEGER_specifics_t *specs); +uintmax_t NativeInteger_load_u(const void *ptr, const asn_INTEGER_specifics_t *specs); +void NativeInteger_store(void *ptr, const asn_INTEGER_specifics_t *specs, uintmax_t v); +int NativeInteger_store_from_INTEGER(void *ptr, + const asn_INTEGER_specifics_t *specs, const INTEGER_t *tmp); +int NativeInteger_to_INTEGER(const void *ptr, + const asn_INTEGER_specifics_t *specs, INTEGER_t *tmp); + #define NativeInteger_constraint asn_generic_no_constraint #if !defined(ASN_DISABLE_BER_SUPPORT) @@ -40,8 +56,10 @@ der_type_encoder_f NativeInteger_encode_der; #if !defined(ASN_DISABLE_XER_SUPPORT) xer_type_decoder_f NativeInteger_decode_xer; +xer_type_decoder_f NativeInteger_decode_xer_text; xer_type_encoder_f NativeInteger_encode_xer; -#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +xer_type_encoder_f NativeInteger_encode_xer_text; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) jer_type_decoder_f NativeInteger_decode_jer; @@ -51,7 +69,11 @@ jer_type_encoder_f NativeInteger_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f NativeInteger_decode_oer; oer_type_encoder_f NativeInteger_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f NativeInteger_decode_cbor; +cbor_type_encoder_f NativeInteger_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f NativeInteger_decode_uper; diff --git a/src/icspacket/include/skeletons/NativeInteger_ber.c b/src/icspacket/include/skeletons/NativeInteger_ber.c index b7a37389..9664ab40 100644 --- a/src/icspacket/include/skeletons/NativeInteger_ber.c +++ b/src/icspacket/include/skeletons/NativeInteger_ber.c @@ -16,16 +16,16 @@ asn_dec_rval_t NativeInteger_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, size_t size, int tag_mode) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; - long *native = (long *)*nint_ptr; + void *native = *nint_ptr; asn_dec_rval_t rval; ber_tlv_len_t length; /* * If the structure is not there, allocate it. */ - if (native == NULL) { - native = (long *)(*nint_ptr = CALLOC(1, sizeof(*native))); - if (native == NULL) { + if(native == NULL) { + native = (*nint_ptr = CALLOC(1, NativeInteger_field_width(specs))); + if(native == NULL) { rval.code = RC_FAIL; rval.consumed = 0; return rval; @@ -65,28 +65,23 @@ asn_dec_rval_t NativeInteger_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, const void *constbuf; void *nonconstbuf; } unconst_buf; - long l; unconst_buf.constbuf = buf_ptr; tmp.buf = (uint8_t *)unconst_buf.nonconstbuf; tmp.size = length; - if ((specs && specs->field_unsigned) - ? asn_INTEGER2ulong(&tmp, (unsigned long *)&l) /* sic */ - : asn_INTEGER2long(&tmp, &l)) { + if(NativeInteger_store_from_INTEGER(native, specs, &tmp)) { rval.code = RC_FAIL; rval.consumed = 0; return rval; } - - *native = l; } rval.code = RC_OK; rval.consumed += length; - ASN_DEBUG("Took %ld/%ld bytes to encode %s (%ld)", (long)rval.consumed, - (long)length, td->name, (long)*native); + ASN_DEBUG("Took %ld/%ld bytes to encode %s", + (long)rval.consumed, (long)length, td->name); return rval; } @@ -94,36 +89,26 @@ asn_dec_rval_t NativeInteger_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, /* * Encode the NativeInteger using the standard INTEGER type DER encoder. */ -asn_enc_rval_t NativeInteger_encode_der(const asn_TYPE_descriptor_t *sd, - const void *ptr, int tag_mode, - ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, - void *app_key) { - unsigned long native = *(const unsigned long *)ptr; /* Disable sign ext. */ - asn_enc_rval_t erval = {0, 0, 0}; +asn_enc_rval_t +NativeInteger_encode_der(const asn_TYPE_descriptor_t *sd, const void *ptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_TYPE_descriptor_t *td = sd; /* for ASN__ENCODE_FAILED */ + const void *sptr = ptr; /* for ASN__ENCODE_FAILED */ + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)sd->specifics; + asn_enc_rval_t erval = {0,0,0}; INTEGER_t tmp; -#ifdef WORDS_BIGENDIAN /* Opportunistic optimization */ - - tmp.buf = (uint8_t *)&native; - tmp.size = sizeof(native); - -#else /* Works even if WORDS_BIGENDIAN is not set where should've been */ - uint8_t buf[sizeof(native)]; - uint8_t *p; - - /* Prepare a fake INTEGER */ - for (p = buf + sizeof(buf) - 1; p >= buf; p--, native >>= 8) - *p = (uint8_t)native; - - tmp.buf = buf; - tmp.size = sizeof(buf); -#endif /* WORDS_BIGENDIAN */ + /* Materialize the native member (any width) as a canonical INTEGER. */ + if(NativeInteger_to_INTEGER(ptr, specs, &tmp)) { + ASN__ENCODE_FAILED; + } - /* Encode fake INTEGER */ erval = INTEGER_encode_der(sd, &tmp, tag_mode, tag, cb, app_key); if (erval.structure_ptr == &tmp) { erval.structure_ptr = ptr; } + if(tmp.buf) FREEMEM(tmp.buf); return erval; } diff --git a/src/icspacket/include/skeletons/NativeInteger_jer.c b/src/icspacket/include/skeletons/NativeInteger_jer.c index 1b72565e..1612912d 100644 --- a/src/icspacket/include/skeletons/NativeInteger_jer.c +++ b/src/icspacket/include/skeletons/NativeInteger_jer.c @@ -18,25 +18,19 @@ asn_dec_rval_t NativeInteger_decode_jer( asn_dec_rval_t rval; INTEGER_t st; void *st_ptr = (void *)&st; - long *native = (long *)*sptr; + void *native = *sptr; - if (!native) { - native = (long *)(*sptr = CALLOC(1, sizeof(*native))); - if (!native) ASN__DECODE_FAILED; + if(!native) { + native = (*sptr = CALLOC(1, NativeInteger_field_width(specs))); + if(!native) ASN__DECODE_FAILED; } memset(&st, 0, sizeof(st)); - rval = INTEGER_decode_jer(opt_codec_ctx, td, constraints, &st_ptr, buf_ptr, - size); - if (rval.code == RC_OK) { - long l; - if ((specs && specs->field_unsigned) - ? asn_INTEGER2ulong(&st, (unsigned long *)&l) /* sic */ - : asn_INTEGER2long(&st, &l)) { + rval = INTEGER_decode_jer(opt_codec_ctx, td, constraints, &st_ptr, buf_ptr, size); + if(rval.code == RC_OK) { + if(NativeInteger_store_from_INTEGER(native, specs, &st)) { rval.code = RC_FAIL; rval.consumed = 0; - } else { - *native = l; } } else { /* @@ -56,20 +50,22 @@ asn_enc_rval_t NativeInteger_encode_jer( asn_app_consume_bytes_f *cb, void *app_key) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; - char scratch[32]; /* Enough for 64-bit int */ - asn_enc_rval_t er = {0, 0, 0}; - const long *native = (const long *)sptr; + char scratch[32]; /* Enough for 64-bit int */ + asn_enc_rval_t er = {0,0,0}; (void)ilevel; (void)flags; - if (!native) ASN__ENCODE_FAILED; + if(!sptr) ASN__ENCODE_FAILED; - er.encoded = - snprintf(scratch, sizeof(scratch), - (specs && specs->field_unsigned) ? "%lu" : "%ld", *native); - if (er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) || - cb(scratch, er.encoded, app_key) < 0) + if(specs && specs->field_unsigned) + er.encoded = snprintf(scratch, sizeof(scratch), "%ju", + NativeInteger_load_u(sptr, specs)); + else + er.encoded = snprintf(scratch, sizeof(scratch), "%jd", + NativeInteger_load_s(sptr, specs)); + if(er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) + || cb(scratch, er.encoded, app_key) < 0) ASN__ENCODE_FAILED; ASN__ENCODED_OK(er); diff --git a/src/icspacket/include/skeletons/NativeInteger_print.c b/src/icspacket/include/skeletons/NativeInteger_print.c index 732a2ad6..b86b4615 100644 --- a/src/icspacket/include/skeletons/NativeInteger_print.c +++ b/src/icspacket/include/skeletons/NativeInteger_print.c @@ -14,26 +14,30 @@ int NativeInteger_print(const asn_TYPE_descriptor_t *td, const void *sptr, void *app_key) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; - const long *native = (const long *)sptr; - char scratch[32]; /* Enough for 64-bit int */ + char scratch[32]; /* Enough for 64-bit int */ int ret; - (void)td; /* Unused argument */ - (void)ilevel; /* Unused argument */ + (void)ilevel; /* Unused argument */ - if (native) { - long value = *native; - ret = snprintf(scratch, sizeof(scratch), - (specs && specs->field_unsigned) ? "%lu" : "%ld", value); + if(sptr) { + if(specs && specs->field_unsigned) { + uintmax_t value = NativeInteger_load_u(sptr, specs); + ret = snprintf(scratch, sizeof(scratch), "%ju", value); + } else { + intmax_t value = NativeInteger_load_s(sptr, specs); + ret = snprintf(scratch, sizeof(scratch), "%jd", value); + } assert(ret > 0 && (size_t)ret < sizeof(scratch)); - if (cb(scratch, ret, app_key) < 0) return -1; - if (specs && (value >= 0 || !specs->field_unsigned)) { + if(cb(scratch, ret, app_key) < 0) return -1; + { + intmax_t value = NativeInteger_load_s(sptr, specs); const asn_INTEGER_enum_map_t *el = - INTEGER_map_value2enum(specs, value); - if (el) { - if (cb(" (", 2, app_key) < 0) return -1; - if (cb(el->enum_name, el->enum_len, app_key) < 0) return -1; - if (cb(")", 1, app_key) < 0) return -1; + (specs && (value >= 0 || !specs->field_unsigned)) + ? INTEGER_map_value2enum(specs, (long)value) : 0; + if(el) { + if(cb(" (", 2, app_key) < 0) return -1; + if(cb(el->enum_name, el->enum_len, app_key) < 0) return -1; + if(cb(")", 1, app_key) < 0) return -1; } } return 0; diff --git a/src/icspacket/include/skeletons/NativeInteger_xer.c b/src/icspacket/include/skeletons/NativeInteger_xer.c index 810605c7..b854cfd0 100644 --- a/src/icspacket/include/skeletons/NativeInteger_xer.c +++ b/src/icspacket/include/skeletons/NativeInteger_xer.c @@ -18,25 +18,20 @@ asn_dec_rval_t NativeInteger_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, asn_dec_rval_t rval; INTEGER_t st; void *st_ptr = (void *)&st; - long *native = (long *)*sptr; + void *native = *sptr; - if (!native) { - native = (long *)(*sptr = CALLOC(1, sizeof(*native))); - if (!native) ASN__DECODE_FAILED; + if(!native) { + native = (*sptr = CALLOC(1, NativeInteger_field_width(specs))); + if(!native) ASN__DECODE_FAILED; } memset(&st, 0, sizeof(st)); - rval = INTEGER_decode_xer(opt_codec_ctx, td, &st_ptr, opt_mname, buf_ptr, - size); - if (rval.code == RC_OK) { - long l; - if ((specs && specs->field_unsigned) - ? asn_INTEGER2ulong(&st, (unsigned long *)&l) /* sic */ - : asn_INTEGER2long(&st, &l)) { + rval = INTEGER_decode_xer(opt_codec_ctx, td, &st_ptr, + opt_mname, buf_ptr, size); + if(rval.code == RC_OK) { + if(NativeInteger_store_from_INTEGER(native, specs, &st)) { rval.code = RC_FAIL; rval.consumed = 0; - } else { - *native = l; } } else { /* @@ -50,28 +45,121 @@ asn_dec_rval_t NativeInteger_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, return rval; } -asn_enc_rval_t NativeInteger_encode_xer(const asn_TYPE_descriptor_t *td, - const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, - void *app_key) { +static const asn_INTEGER_enum_map_t * +NativeInteger_map_text2value(const asn_INTEGER_specifics_t *specs, + const char *lstart, const char *lstop) { + int count = specs ? specs->map_count : 0; + int i; + + if(!count) return NULL; + while(lstart < lstop + && (*lstart == 9 || *lstart == 10 || *lstart == 13 || *lstart == 32)) + lstart++; + while(lstop > lstart + && (lstop[-1] == 9 || lstop[-1] == 10 || lstop[-1] == 13 + || lstop[-1] == 32)) + lstop--; + + for(i = 0; i < count; i++) { + const asn_INTEGER_enum_map_t *el = &specs->value2enum[i]; + if((size_t)(lstop - lstart) == el->enum_len + && memcmp(lstart, el->enum_name, el->enum_len) == 0) + return el; + } + return NULL; +} + +static enum xer_pbd_rval +NativeInteger__xer_text_body_decode(const asn_TYPE_descriptor_t *td, + void *sptr, const void *chunk_buf, + size_t chunk_size) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + const asn_INTEGER_enum_map_t *el; + + el = NativeInteger_map_text2value(specs, (const char *)chunk_buf, + (const char *)chunk_buf + chunk_size); + if(!el) + return XPBD_BROKEN_ENCODING; + NativeInteger_store(sptr, specs, (uintmax_t)el->nat_value); + return XPBD_BODY_CONSUMED; +} + +asn_dec_rval_t +NativeInteger_decode_xer_text(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; - char scratch[32]; /* Enough for 64-bit int */ - asn_enc_rval_t er = {0, 0, 0}; - const long *native = (const long *)sptr; + void *native = *sptr; + + if(!native) { + native = (*sptr = CALLOC(1, NativeInteger_field_width(specs))); + if(!native) ASN__DECODE_FAILED; + } + + return xer_decode_primitive(opt_codec_ctx, td, + sptr, NativeInteger_field_width(specs), opt_mname, + buf_ptr, size, NativeInteger__xer_text_body_decode); +} + +asn_enc_rval_t +NativeInteger_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + char scratch[32]; /* Enough for 64-bit int */ + asn_enc_rval_t er = {0,0,0}; (void)ilevel; (void)flags; - if (!native) ASN__ENCODE_FAILED; + if(!sptr) ASN__ENCODE_FAILED; + + if(specs && specs->field_unsigned) + er.encoded = snprintf(scratch, sizeof(scratch), "%ju", + NativeInteger_load_u(sptr, specs)); + else + er.encoded = snprintf(scratch, sizeof(scratch), "%jd", + NativeInteger_load_s(sptr, specs)); + if(er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) + || cb(scratch, er.encoded, app_key) < 0) + ASN__ENCODE_FAILED; + + ASN__ENCODED_OK(er); +} + +asn_enc_rval_t +NativeInteger_encode_xer_text(const asn_TYPE_descriptor_t *td, + const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const asn_INTEGER_specifics_t *specs = + (const asn_INTEGER_specifics_t *)td->specifics; + asn_enc_rval_t er = {0,0,0}; + intmax_t value; + const asn_INTEGER_enum_map_t *el; + + (void)ilevel; + (void)flags; + + if(!sptr) ASN__ENCODE_FAILED; + if(specs && specs->field_unsigned) { + uintmax_t uvalue = NativeInteger_load_u(sptr, specs); + if(uvalue > (uintmax_t)LONG_MAX) + ASN__ENCODE_FAILED; + value = (intmax_t)uvalue; + } else { + value = NativeInteger_load_s(sptr, specs); + } - er.encoded = - snprintf(scratch, sizeof(scratch), - (specs && specs->field_unsigned) ? "%lu" : "%ld", *native); - if (er.encoded <= 0 || (size_t)er.encoded >= sizeof(scratch) || - cb(scratch, er.encoded, app_key) < 0) + el = INTEGER_map_value2enum(specs, (long)value); + if(!el) ASN__ENCODE_FAILED; + er.encoded = asn__format_to_callback(cb, app_key, "%s", el->enum_name); + if(er.encoded < 0) ASN__ENCODE_FAILED; ASN__ENCODED_OK(er); } diff --git a/src/icspacket/include/skeletons/OBJECT_IDENTIFIER.c b/src/icspacket/include/skeletons/OBJECT_IDENTIFIER.c index c217c863..2ca37d37 100644 --- a/src/icspacket/include/skeletons/OBJECT_IDENTIFIER.c +++ b/src/icspacket/include/skeletons/OBJECT_IDENTIFIER.c @@ -16,6 +16,7 @@ static const ber_tlv_tag_t asn_DEF_OBJECT_IDENTIFIER_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2))}; asn_TYPE_operation_t asn_OP_OBJECT_IDENTIFIER = { + .kind = ASN_KIND_PRIMITIVE, ASN__PRIMITIVE_TYPE_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OBJECT_IDENTIFIER_print, @@ -70,8 +71,15 @@ asn_TYPE_operation_t asn_OP_OBJECT_IDENTIFIER = { OBJECT_IDENTIFIER_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor, /* Reuse OCTET STRING decoder (raw DER bytes) */ + OCTET_STRING_encode_cbor, /* Reuse OCTET STRING encoder (raw DER bytes) */ +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_OBJECT_IDENTIFIER = { "OBJECT IDENTIFIER", diff --git a/src/icspacket/include/skeletons/OCTET_STRING.c b/src/icspacket/include/skeletons/OCTET_STRING.c index 981c3f78..fae76625 100644 --- a/src/icspacket/include/skeletons/OCTET_STRING.c +++ b/src/icspacket/include/skeletons/OCTET_STRING.c @@ -15,6 +15,7 @@ static const ber_tlv_tag_t asn_DEF_OCTET_STRING_tags[] = { asn_OCTET_STRING_specifics_t asn_SPC_OCTET_STRING_specs = { sizeof(OCTET_STRING_t), offsetof(OCTET_STRING_t, _asn_ctx), ASN_OSUBV_STR}; asn_TYPE_operation_t asn_OP_OCTET_STRING = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OCTET_STRING_print, /* OCTET STRING generally means a non-ascii sequence */ @@ -31,8 +32,8 @@ asn_TYPE_operation_t asn_OP_OCTET_STRING = { 0, #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ #if !defined(ASN_DISABLE_XER_SUPPORT) - OCTET_STRING_decode_xer_hex, - OCTET_STRING_encode_xer, + OCTET_STRING_decode_xer_auto, /* Liberal: accept hex (default) or Base64 */ + OCTET_STRING_encode_xer, /* Default: upper-case hex (xmlhstring) per X.680 §22.3 / X.693 */ #else 0, 0, @@ -69,8 +70,15 @@ asn_TYPE_operation_t asn_OP_OCTET_STRING = { OCTET_STRING_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor, + OCTET_STRING_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { "OCTET STRING", /* Canonical name */ @@ -192,12 +200,22 @@ OCTET_STRING_t *OCTET_STRING_new_fromBuf(const asn_TYPE_descriptor_t *td, : &asn_SPC_OCTET_STRING_specs; OCTET_STRING_t *st; - st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); - if (st && str && OCTET_STRING_fromBuf(st, str, len)) { - FREEMEM(st); - st = NULL; + /* + * Sanity check: struct_size should be at least as large as OCTET_STRING_t. + * If it's smaller, accessing OCTET_STRING_t fields could cause memory corruption. + */ + if(specs->struct_size < sizeof(OCTET_STRING_t)) { + ASN_DEBUG("Type descriptor %s has struct_size %u which is smaller than OCTET_STRING_t (%zu)", + td->name ? td->name : "unknown", specs->struct_size, sizeof(OCTET_STRING_t)); + return NULL; } + st = (OCTET_STRING_t *)CALLOC(1, specs->struct_size); + if(st && str && OCTET_STRING_fromBuf(st, str, len)) { + FREEMEM(st); + st = NULL; + } + return st; } diff --git a/src/icspacket/include/skeletons/OCTET_STRING.h b/src/icspacket/include/skeletons/OCTET_STRING.h index 8a218cd3..fa310c06 100644 --- a/src/icspacket/include/skeletons/OCTET_STRING.h +++ b/src/icspacket/include/skeletons/OCTET_STRING.h @@ -15,7 +15,21 @@ typedef struct OCTET_STRING { uint8_t *buf; /* Buffer with consecutive OCTET_STRING bits */ size_t size; /* Size of the buffer */ - asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ + + /* XER decoder state for stateful decoders (Base64, etc.) */ + struct { + uint32_t accumulated_value; /* Accumulated bits during decoding */ + int bits_collected; /* Number of bits in accumulated_value */ + int padding_seen; /* Whether padding was encountered */ + int decoder_initialized; /* Whether decoder state is valid */ + /* + * Format pinned by the first non-whitespace chunk so that all + * subsequent chunks of the same value use the same converter. + * 0 = undecided, 1 = hex, 2 = base64. + */ + int format_decided; + } _xer_decode_state; } OCTET_STRING_t; extern asn_TYPE_descriptor_t asn_DEF_OCTET_STRING; @@ -39,24 +53,36 @@ der_type_encoder_f OCTET_STRING_encode_der; #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ #if !defined(ASN_DISABLE_XER_SUPPORT) -xer_type_decoder_f OCTET_STRING_decode_xer_hex; /* Hexadecimal */ -xer_type_decoder_f OCTET_STRING_decode_xer_binary; /* 01010111010 */ -xer_type_decoder_f OCTET_STRING_decode_xer_utf8; /* ASCII/UTF-8 */ +xer_type_decoder_f OCTET_STRING_decode_xer_hex; /* Hexadecimal */ +xer_type_decoder_f OCTET_STRING_decode_xer_binary; /* 01010111010 */ +xer_type_decoder_f OCTET_STRING_decode_xer_utf8; /* ASCII/UTF-8 */ +xer_type_decoder_f OCTET_STRING_decode_xer_base64; /* Base64 */ +xer_type_decoder_f OCTET_STRING_decode_xer_auto; /* Auto-detect hex or Base64 */ +xer_type_decoder_f BIT_STRING_decode_xer_binary_or_hex; /* Auto-detect binary or hex for BIT STRING */ xer_type_encoder_f OCTET_STRING_encode_xer; xer_type_encoder_f OCTET_STRING_encode_xer_utf8; -#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +xer_type_encoder_f OCTET_STRING_encode_xer_base64; +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) -jer_type_decoder_f OCTET_STRING_decode_jer_hex; /* Hexadecimal */ -jer_type_decoder_f OCTET_STRING_decode_jer_utf8; /* ASCII/UTF-8 */ +jer_type_decoder_f OCTET_STRING_decode_jer_hex; /* Hexadecimal */ +jer_type_decoder_f OCTET_STRING_decode_jer_utf8; /* ASCII/UTF-8 */ +jer_type_decoder_f OCTET_STRING_decode_jer_base64; /* Base64 */ jer_type_encoder_f OCTET_STRING_encode_jer; jer_type_encoder_f OCTET_STRING_encode_jer_utf8; -#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +jer_type_encoder_f OCTET_STRING_encode_jer_base64; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f OCTET_STRING_decode_oer; oer_type_encoder_f OCTET_STRING_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f OCTET_STRING_decode_cbor; +cbor_type_encoder_f OCTET_STRING_encode_cbor; +cbor_type_decoder_f OCTET_STRING_decode_cbor_utf8; /* ASCII/UTF-8 */ +cbor_type_encoder_f OCTET_STRING_encode_cbor_utf8; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f OCTET_STRING_decode_uper; diff --git a/src/icspacket/include/skeletons/OCTET_STRING_jer.c b/src/icspacket/include/skeletons/OCTET_STRING_jer.c index d328d348..63685515 100644 --- a/src/icspacket/include/skeletons/OCTET_STRING_jer.c +++ b/src/icspacket/include/skeletons/OCTET_STRING_jer.c @@ -7,13 +7,16 @@ #include #include /* for .bits_unused member */ -asn_enc_rval_t OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - const void *sptr, int ilevel, - enum jer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, - void *app_key) { - const char *const h2c = "0123456789ABCDEF"; +static const char jer_base64_encode_table[] = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + +asn_enc_rval_t +OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const char * const h2c = "0123456789ABCDEF"; const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; asn_enc_rval_t er = {0, 0, 0}; char scratch[16 * 3 + 4]; @@ -53,6 +56,67 @@ asn_enc_rval_t OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, ASN__ENCODE_FAILED; } +asn_enc_rval_t +OCTET_STRING_encode_jer_base64(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + const void *sptr, int ilevel, + enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + char scratch[128]; + char *p = scratch; + const uint8_t *buf; + const uint8_t *end; + + (void)td; + (void)constraints; + (void)ilevel; + (void)flags; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + er.encoded = 0; + ASN__CALLBACK("\"", 1); + + buf = st->buf; + end = buf + st->size; + while(buf < end) { + uint32_t value = 0; + int bytes_left = (int)(end - buf); + int bytes_to_encode = bytes_left >= 3 ? 3 : bytes_left; + int i; + + for(i = 0; i < bytes_to_encode; i++) + value = (value << 8) | buf[i]; + if(bytes_to_encode < 3) + value <<= 8 * (3 - bytes_to_encode); + buf += bytes_to_encode; + + for(i = 0; i < 4; i++) { + if(p >= scratch + sizeof(scratch) - 4) { + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + } + if(i < bytes_to_encode + 1) { + int idx = (value >> (18 - i * 6)) & 0x3F; + *p++ = jer_base64_encode_table[idx]; + } else { + *p++ = '='; + } + } + } + + if(p > scratch) + ASN__CALLBACK(scratch, p - scratch); + ASN__CALLBACK("\"", 1); + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} + static const struct OCTET_STRING__jer_escape_table_s { const char *string; int size; @@ -232,15 +296,22 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, break; } } - --pend; - for (; pend >= p; --pend) { - if (*pend == CQUOTE) break; + /* Find ending quote - ensure we don't go below the start */ + if (pend > (const char *)chunk_buf) { + --pend; + for (; pend >= p; --pend) { + if (*pend == CQUOTE) + break; + } } - if (pend - p < 0) return -1; + if (pend < p) return -1; chunk_size = pend - p; /* Reallocate buffer according to high cap estimation */ - size_t new_size = st->size + (chunk_size + 1) / 2; + size_t hex_byte_count = (chunk_size + 1) / 2; + /* Check for potential overflow */ + if (hex_byte_count > SIZE_MAX - st->size - 1) return -1; + size_t new_size = st->size + hex_byte_count; void *nptr = REALLOC(st->buf, new_size + 1); if (!nptr) return -1; st->buf = (uint8_t *)nptr; @@ -320,7 +391,10 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, assert(st->size <= new_size); st->buf[st->size] = 0; /* Courtesy termination */ - return (chunk_stop - (const char *)chunk_buf); /* Converted size */ + /* Ensure return value is valid */ + ssize_t consumed = chunk_stop - (const char *)chunk_buf; + if (consumed < 0 || (size_t)consumed > chunk_size + 2) return -1; /* +2 for quotes */ + return consumed; /* Converted size */ } /* @@ -593,6 +667,106 @@ asn_dec_rval_t OCTET_STRING_decode_jer_hex( OCTET_STRING__convert_hexadecimal); } +static int +jer_base64_decode_char(char c) { + if(c >= 'A' && c <= 'Z') return c - 'A'; + if(c >= 'a' && c <= 'z') return c - 'a' + 26; + if(c >= '0' && c <= '9') return c - '0' + 52; + if(c == '+') return 62; + if(c == '/') return 63; + if(c == '=') return -2; + return -1; +} + +static ssize_t +OCTET_STRING__convert_base64(void *sptr, const void *chunk_buf, + size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const char *p = (const char *)chunk_buf; + const char *pend = p + chunk_size; + size_t original_size = chunk_size; + uint8_t *buf; + uint32_t value; + int bits_collected; + int padding_seen; + size_t new_size; + void *nptr; + + for(; p < pend; ++p) { + if(*p == CQUOTE) { + ++p; + break; + } + } + if(pend > (const char *)chunk_buf) { + --pend; + for(; pend >= p; --pend) { + if(*pend == CQUOTE) + break; + } + } + if(pend < p) return -1; + chunk_size = pend - p; + + new_size = st->size + (chunk_size * 3 / 4) + 3; + nptr = REALLOC(st->buf, new_size + 1); + + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + if(!st->_xer_decode_state.decoder_initialized) { + st->_xer_decode_state.accumulated_value = 0; + st->_xer_decode_state.bits_collected = 0; + st->_xer_decode_state.padding_seen = 0; + st->_xer_decode_state.decoder_initialized = 1; + } + + value = st->_xer_decode_state.accumulated_value; + bits_collected = st->_xer_decode_state.bits_collected; + padding_seen = st->_xer_decode_state.padding_seen; + + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + int decoded = jer_base64_decode_char((char)ch); + + if(decoded == -1) return -1; + if(decoded == -2) { + padding_seen = 1; + continue; + } + if(padding_seen) return -1; + + value = (value << 6) | (uint32_t)decoded; + bits_collected += 6; + while(bits_collected >= 8) { + bits_collected -= 8; + *buf++ = (uint8_t)((value >> bits_collected) & 0xFF); + } + } + + st->size = buf - st->buf; + st->buf[st->size] = 0; + st->_xer_decode_state.accumulated_value = value; + st->_xer_decode_state.bits_collected = bits_collected; + st->_xer_decode_state.padding_seen = padding_seen; + + if(!have_more && bits_collected != 0 && !padding_seen) + return -1; + + return original_size; +} + +asn_dec_rval_t +OCTET_STRING_decode_jer_base64(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **sptr, const void *buf_ptr, size_t size) { + return OCTET_STRING__decode_jer(opt_codec_ctx, td, sptr, + buf_ptr, size, 0, + OCTET_STRING__convert_base64); +} + /* * Decode OCTET STRING from the string (ASCII/UTF-8) data. */ diff --git a/src/icspacket/include/skeletons/OCTET_STRING_xer.c b/src/icspacket/include/skeletons/OCTET_STRING_xer.c index bcf60274..c076bfab 100644 --- a/src/icspacket/include/skeletons/OCTET_STRING_xer.c +++ b/src/icspacket/include/skeletons/OCTET_STRING_xer.c @@ -14,51 +14,44 @@ asn_enc_rval_t OCTET_STRING_encode_xer(const asn_TYPE_descriptor_t *td, void *app_key) { const char *const h2c = "0123456789ABCDEF"; const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - asn_enc_rval_t er = {0, 0, 0}; - char scratch[16 * 3 + 4]; + asn_enc_rval_t er = { 0, 0, 0 }; + char scratch[32 + 4]; char *p = scratch; + char *scend = scratch + (sizeof(scratch) - 2); uint8_t *buf; uint8_t *end; - size_t i; if (!st || (!st->buf && st->size)) ASN__ENCODE_FAILED; er.encoded = 0; /* - * Dump the contents of the buffer in hexadecimal. + * Delegate to Base64 encoder when the caller requests it. + * XER_F_CANONICAL overrides: CXER must stay hex (X.693 §9.4). + */ + if((flags & XER_F_BASE64) && !(flags & XER_F_CANONICAL)) + return OCTET_STRING_encode_xer_base64(td, sptr, ilevel, flags, cb, app_key); + + /* + * Dump the contents of the buffer as contiguous upper-case hex + * (xmlhstring per X.680 §22.3 / X.693 §8.4). + * Both BASIC-XER and CANONICAL-XER use the same format; the only + * difference is that BASIC-XER pretty-printing surrounds the value + * with ASN__TEXT_INDENT (handled by the caller, not here). */ buf = st->buf; end = buf + st->size; - if (flags & XER_F_CANONICAL) { - char *scend = scratch + (sizeof(scratch) - 2); - for (; buf < end; buf++) { - if (p >= scend) { - ASN__CALLBACK(scratch, p - scratch); - p = scratch; - } - *p++ = h2c[(*buf >> 4) & 0x0F]; - *p++ = h2c[*buf & 0x0F]; - } - - ASN__CALLBACK(scratch, p - scratch); /* Dump the rest */ - } else { - for (i = 0; buf < end; buf++, i++) { - if (!(i % 16) && (i || st->size > 16)) { - ASN__CALLBACK(scratch, p - scratch); - p = scratch; - ASN__TEXT_INDENT(1, ilevel); - } - *p++ = h2c[(*buf >> 4) & 0x0F]; - *p++ = h2c[*buf & 0x0F]; - *p++ = 0x20; - } - if (p - scratch) { - p--; /* Remove the tail space */ - ASN__CALLBACK(scratch, p - scratch); /* Dump the rest */ - if (st->size > 16) ASN__TEXT_INDENT(1, ilevel - 1); + for(; buf < end; buf++) { + if(p >= scend) { + ASN__CALLBACK(scratch, p - scratch); + p = scratch; } + *p++ = h2c[(*buf >> 4) & 0x0F]; + *p++ = h2c[*buf & 0x0F]; } + ASN__CALLBACK(scratch, p - scratch); /* Dump the rest */ + + (void)ilevel; /* Indentation is handled by the XER framework */ ASN__ENCODED_OK(er); cb_failed: @@ -383,54 +376,215 @@ static ssize_t OCTET_STRING__convert_binary(void *sptr, const void *chunk_buf, return chunk_size; /* Converted in full */ } +/* + * Convert from hexadecimal format to BIT STRING: "0455AA..." + * This is similar to OCTET_STRING__convert_hexadecimal but sets bits_unused to 0. + */ +static ssize_t BIT_STRING__convert_hexadecimal(void *sptr, const void *chunk_buf, size_t chunk_size, int have_more) { + BIT_STRING_t *st = (BIT_STRING_t *)sptr; + const char *chunk_stop = (const char *)chunk_buf; + const char *p = chunk_stop; + const char *pend = p + chunk_size; + unsigned int clv = 0; + int half = 0; /* Half bit */ + uint8_t *buf; + + /* Reallocate buffer according to high cap estimation */ + size_t new_size = st->size + (chunk_size + 1) / 2; + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + switch(ch) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + /* Ignore whitespace */ + continue; + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ + clv = (clv << 4) + (ch - 0x30); + break; + case 0x41: case 0x42: case 0x43: /* ABC */ + case 0x44: case 0x45: case 0x46: /* DEF */ + clv = (clv << 4) + (ch - 0x41 + 10); + break; + case 0x61: case 0x62: case 0x63: /* abc */ + case 0x64: case 0x65: case 0x66: /* def */ + clv = (clv << 4) + (ch - 0x61 + 10); + break; + default: + *buf = 0; /* JIC */ + return -1; + } + if(half++) { + half = 0; + *buf++ = clv; + chunk_stop = p + 1; + } + } + + /* + * Check partial decoding. + */ + if(half) { + if(have_more) { + /* + * Partial specification is fine, + * because no more PXER_TEXT data is available. + */ + *buf++ = clv << 4; + chunk_stop = p; + } + } else { + chunk_stop = p; + } + + st->size = buf - st->buf; /* Adjust the buffer size */ + st->bits_unused = 0; /* For BIT STRING, hex means all bits are used */ + assert(st->size <= new_size); + st->buf[st->size] = 0; /* Courtesy termination */ + + return (chunk_stop - (const char *)chunk_buf); /* Converted size */ +} + +/* + * Check if the content looks like binary format (only 0s, 1s, and whitespace). + * Returns 1 if content appears to be binary, 0 otherwise. + */ +static int +BIT_STRING__is_binary(const void *chunk_buf, size_t chunk_size) { + const unsigned char *p = (const unsigned char *)chunk_buf; + const unsigned char *pend = p + chunk_size; + + for (; p < pend; p++) { + unsigned char ch = *p; + switch(ch) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + /* Whitespace is allowed */ + continue; + case 0x30: /* '0' */ + case 0x31: /* '1' */ + /* Binary digits */ + continue; + default: + /* Non-binary character found, not binary format */ + return 0; + } + } + return 1; /* Only binary characters found */ +} + +/* + * Auto-detect and convert from either binary or hexadecimal format for BIT STRING. + * Supports explicit prefixes per X.693: + * - B'...' or b'...' for binary format + * - H'...' or h'...' for hexadecimal format + * Without explicit prefixes, defaults to binary unless hexadecimal digits (2-9, A-F) + * are found in the string. + */ +static ssize_t +BIT_STRING__convert_binary_or_hex(void *sptr, const void *chunk_buf, + size_t chunk_size, int have_more) { + const unsigned char *buf_start = (const unsigned char *)chunk_buf; + const unsigned char *p = buf_start; + const unsigned char *pend = p + chunk_size; + int explicit_binary = 0; + int explicit_hex = 0; + + /* Skip leading whitespace */ + while(p < pend && (*p == 0x09 || *p == 0x0a || *p == 0x0c || + *p == 0x0d || *p == 0x20)) { + p++; + } + + /* Check for explicit B or H prefix */ + if(p < pend) { + if((*p == 'B' || *p == 'b') && (p + 1) < pend && p[1] == '\'') { + explicit_binary = 1; + p += 2; /* Skip B' */ + } else if((*p == 'H' || *p == 'h') && (p + 1) < pend && p[1] == '\'') { + explicit_hex = 1; + p += 2; /* Skip H' */ + } + } + + if(explicit_binary || explicit_hex) { + /* Find the closing quote and calculate actual content size */ + const unsigned char *content_start = p; + const unsigned char *content_end = p; + while(content_end < pend && *content_end != '\'') { + content_end++; + } + size_t content_size = content_end - content_start; + ssize_t result; + + if(explicit_binary) { + result = OCTET_STRING__convert_binary(sptr, content_start, content_size, have_more); + } else { + result = BIT_STRING__convert_hexadecimal(sptr, content_start, content_size, have_more); + } + + if(result < 0) return result; + + /* Return total consumed from original buffer including prefix and closing quote */ + size_t total_consumed = (content_end - buf_start); + if(content_end < pend && *content_end == '\'') { + total_consumed++; /* Include closing quote */ + } + return total_consumed; + } + + /* No explicit prefix - auto-detect based on content */ + /* Default to binary unless hex digits (2-9, A-F) are found */ + if(BIT_STRING__is_binary(chunk_buf, chunk_size)) { + return OCTET_STRING__convert_binary(sptr, chunk_buf, chunk_size, have_more); + } else { + return BIT_STRING__convert_hexadecimal(sptr, chunk_buf, chunk_size, have_more); + } +} + /* * Something like strtod(), but with stricter rules. */ -static int OS__strtoent(int base, const char *buf, const char *end, - int32_t *ret_value) { - const int32_t last_unicode_codepoint = 0x10ffff; - int32_t val = 0; - const char *p; +static int +OS__strtoent(int base, const char *buf, const char *end, int32_t *ret_value) { + const int32_t last_unicode_codepoint = 0x10ffff; + int64_t val = 0; + int seen_digit = 0; + const char *p; - for (p = buf; p < end; p++) { - int ch = *p; + for(p = buf; p < end; p++) { + int ch = *p; + int digit = -1; - switch (ch) { - case 0x30: - case 0x31: - case 0x32: - case 0x33: - case 0x34: /*01234*/ - case 0x35: - case 0x36: - case 0x37: - case 0x38: - case 0x39: /*56789*/ - val = val * base + (ch - 0x30); - break; - case 0x41: - case 0x42: - case 0x43: /* ABC */ - case 0x44: - case 0x45: - case 0x46: /* DEF */ - val = val * base + (ch - 0x41 + 10); - break; - case 0x61: - case 0x62: - case 0x63: /* abc */ - case 0x64: - case 0x65: - case 0x66: /* def */ - val = val * base + (ch - 0x61 + 10); - break; - case 0x3b: /* ';' */ - *ret_value = val; - return (p - buf) + 1; - default: - return -1; /* Character set error */ + if(ch >= 0x30 && ch <= 0x39) { + digit = ch - 0x30; + } else if(base == 16 && ch >= 0x41 && ch <= 0x46) { + digit = ch - 0x41 + 10; + } else if(base == 16 && ch >= 0x61 && ch <= 0x66) { + digit = ch - 0x61 + 10; + } else if(ch == 0x3b /* ';' */) { + if(!seen_digit) return -1; + if(val > last_unicode_codepoint) return -1; + if(val >= 0xd800 && val <= 0xdfff) return -1; + *ret_value = (int32_t)val; + return (p - buf) + 1; + } else { + if(!seen_digit) return -1; + if(val > last_unicode_codepoint) return -1; + if(val >= 0xd800 && val <= 0xdfff) return -1; + *ret_value = (int32_t)val; + return p - buf; } + if(digit >= base) return -1; + seen_digit = 1; + val = val * base + digit; + /* Value exceeds the Unicode range. */ if (val > last_unicode_codepoint) { return -1; @@ -438,7 +592,7 @@ static int OS__strtoent(int base, const char *buf, const char *end, } *ret_value = -1; - return (p - buf); + return 0; } /* @@ -486,14 +640,16 @@ static ssize_t OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, else pval = p + 2, base = 10; len = OS__strtoent(base, pval, p + len, &val); - if (len == -1) { - /* Invalid charset. Just copy verbatim. */ - *buf++ = ch; - continue; + if(len == -1) { + ASN_DEBUG("XER OCTET STRING: invalid numeric character reference rejected"); + st->buf[st->size] = 0; + return -1; } - if (!len || pval[len - 1] != 0x3b) goto want_more; - assert(val > 0); - p += (pval - p) + len - 1; /* Advance past entref */ + if(!len) goto want_more; + if(pval[len-1] != 0x3b) { + ASN_DEBUG("XER OCTET STRING: numeric character reference without semicolon accepted"); + } + p += (pval - p) + len - 1; /* Advance past entref */ if (val < 0x80) { *buf++ = (char)val; @@ -543,11 +699,13 @@ static ssize_t OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, *buf = 0x3e; /* '>' */ } else { /* Unsupported entity reference */ + ASN_DEBUG("XER OCTET STRING: unsupported entity reference copied verbatim"); *buf++ = ch; continue; } if (p[2] != 0x74) { /* Unsupported entity reference */ + ASN_DEBUG("XER OCTET STRING: unsupported entity reference copied verbatim"); *buf++ = ch; continue; } @@ -556,6 +714,7 @@ static ssize_t OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, continue; } /* Unsupported entity reference */ + ASN_DEBUG("XER OCTET STRING: unsupported entity reference copied verbatim"); *buf++ = ch; } @@ -581,6 +740,380 @@ static ssize_t OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, return chunk_size; /* Converted in full */ } +/* + * Base64 encoding table + */ +static const char base64_encode_table[] = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + +/* + * Encode OCTET STRING to Base64 format for XER + */ +asn_enc_rval_t +OCTET_STRING_encode_xer_base64(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + asn_enc_rval_t er = { 0, 0, 0 }; + char scratch[80]; /* 76 chars per line + newline is typical for Base64 */ + char *p = scratch; + const uint8_t *buf; + const uint8_t *end; + size_t i; + int chars_on_line = 0; + const int max_chars_per_line = 76; + + (void)td; + + if(!st || (!st->buf && st->size)) + ASN__ENCODE_FAILED; + + er.encoded = 0; + buf = st->buf; + end = buf + st->size; + + /* + * Encode buffer in Base64. + * Process 3 bytes at a time into 4 Base64 characters. + */ + while(buf < end) { + uint32_t value = 0; + int bytes_left = end - buf; + int bytes_to_encode = (bytes_left >= 3) ? 3 : bytes_left; + + /* Build a 24-bit value from up to 3 bytes */ + for(i = 0; i < bytes_to_encode; i++) { + value = (value << 8) | buf[i]; + } + + /* Shift to align if we have fewer than 3 bytes */ + if(bytes_to_encode < 3) { + value <<= 8 * (3 - bytes_to_encode); + } + + buf += bytes_to_encode; + + /* Extract 4 6-bit values and encode them */ + for(i = 0; i < 4; i++) { + if(p >= scratch + sizeof(scratch) - 2) { + /* Flush buffer */ + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + chars_on_line = 0; + } + + if(!(flags & XER_F_CANONICAL) && chars_on_line >= max_chars_per_line) { + /* Add line break for readability (not in canonical mode) */ + ASN__CALLBACK(scratch, p - scratch); + p = scratch; + ASN__TEXT_INDENT(1, ilevel); + chars_on_line = 0; + } + + if(i < bytes_to_encode + 1) { + /* Valid data character */ + int idx = (value >> (18 - i * 6)) & 0x3F; + *p++ = base64_encode_table[idx]; + chars_on_line++; + } else { + /* Padding */ + *p++ = '='; + chars_on_line++; + } + } + } + + /* Flush any remaining data */ + if(p > scratch) { + ASN__CALLBACK(scratch, p - scratch); + } + + ASN__ENCODED_OK(er); +cb_failed: + ASN__ENCODE_FAILED; +} + +/* + * Base64 decoding table (inverse of encode table) + * Returns -1 for invalid characters, -2 for padding '=' + */ +static int +base64_decode_char(char c) { + if(c >= 'A' && c <= 'Z') return c - 'A'; + if(c >= 'a' && c <= 'z') return c - 'a' + 26; + if(c >= '0' && c <= '9') return c - '0' + 52; + if(c == '+') return 62; + if(c == '/') return 63; + if(c == '=') return -2; /* Padding */ + return -1; /* Invalid character */ +} + +/* + * Convert from Base64 format + */ +static ssize_t +OCTET_STRING__convert_base64(void *sptr, const void *chunk_buf, + size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const char *p = (const char *)chunk_buf; + const char *pend = p + chunk_size; + uint8_t *buf; + uint32_t value; + int bits_collected; + int padding_seen; + + /* Initialize decoder state on first call */ + if(!st->_xer_decode_state.decoder_initialized) { + st->_xer_decode_state.accumulated_value = 0; + st->_xer_decode_state.bits_collected = 0; + st->_xer_decode_state.padding_seen = 0; + st->_xer_decode_state.decoder_initialized = 1; + } + + /* Load state from structure */ + value = st->_xer_decode_state.accumulated_value; + bits_collected = st->_xer_decode_state.bits_collected; + padding_seen = st->_xer_decode_state.padding_seen; + + /* Reallocate buffer - Base64 decodes to approximately 3/4 of input size */ + size_t new_size = st->size + (chunk_size * 3 / 4) + 3; + void *nptr = REALLOC(st->buf, new_size + 1); + if(!nptr) return -1; + st->buf = (uint8_t *)nptr; + buf = st->buf + st->size; + + /* + * Decode Base64 data + */ + for(; p < pend; p++) { + int ch = *(const unsigned char *)p; + int decoded; + + /* Skip whitespace */ + switch(ch) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: case 0x20: + continue; + default: + break; + } + + decoded = base64_decode_char(ch); + + if(decoded == -1) { + /* Invalid character - error */ + st->size = buf - st->buf; + st->buf[st->size] = 0; /* Ensure null termination */ + return -1; + } + + if(decoded == -2) { + /* Padding character */ + padding_seen = 1; + continue; + } + + if(padding_seen) { + /* Data after padding is invalid */ + st->size = buf - st->buf; + st->buf[st->size] = 0; /* Ensure null termination */ + return -1; + } + + /* Accumulate 6 bits */ + value = (value << 6) | decoded; + bits_collected += 6; + + /* When we have 8 or more bits, extract a byte */ + if(bits_collected >= 8) { + bits_collected -= 8; + *buf++ = (value >> bits_collected) & 0xFF; + } + } + + /* Update size */ + st->size = buf - st->buf; + + /* Save state back to structure for next call */ + st->_xer_decode_state.accumulated_value = value; + st->_xer_decode_state.bits_collected = bits_collected; + st->_xer_decode_state.padding_seen = padding_seen; + + /* Always write null terminator to prevent buffer overflow in callers */ + if(st->size <= new_size) { + st->buf[st->size] = 0; /* Courtesy termination */ + } else { + /* Buffer overflow - write null at last valid position */ + st->buf[new_size] = 0; + st->size = new_size; /* Truncate to valid size */ + return -1; + } + + /* Return amount of input consumed (all of it) + * Note: pend = chunk_buf + chunk_size, so this is always >= 0 */ + return pend - (const char *)chunk_buf; +} + +/* + * Format classification result returned by OCTET_STRING__classify(). + */ +typedef enum { + OCTET_STRING_FMT_HEX, /* Unambiguously hex */ + OCTET_STRING_FMT_BASE64, /* Unambiguously Base64 */ + OCTET_STRING_FMT_AMBIGUOUS_HEX, /* Valid in both; prefer hex (standard default) */ + OCTET_STRING_FMT_ERROR /* Cannot be decoded unambiguously */ +} OCTET_STRING__fmt_e; + +/* + * Classify an OCTET STRING XER text body as hex or Base64. + * + * Rules (X.680 §22.3 / X.693): + * - HEX : only [0-9A-Fa-f] plus XML whitespace, even non-ws digit + * count. Lower-case a-f and internal whitespace are accepted + * (liberal decoding per X.693 §7.3) and logged via ASN_DEBUG. + * - BASE64 : contains any character in [G-Zg-z+/=] — impossible in hex. + * - AMBIGUOUS : all characters in [0-9A-Fa-f] plus whitespace AND even + * non-ws count. Standard default is hex; callers treat this + * identically to HEX. + * - ERROR : characters outside both alphabets. + * + * NOTE: The old "0x"/"0X" prefix heuristic is intentionally absent. + * "0x6B" is valid Base64 for 0xD3 0x1E 0x81 — treating it as a hex + * prefix caused incorrect decodes (issue #538). + */ +static OCTET_STRING__fmt_e +OCTET_STRING__classify(const void *chunk_buf, size_t chunk_size) { + const unsigned char *p = (const unsigned char *)chunk_buf; + const unsigned char *end = p + chunk_size; + int non_ws_count = 0; + int lowercase_seen = 0; + int ws_inside = 0; + + for(; p < end; p++) { + unsigned char ch = *p; + + /* XML whitespace: always accepted in both formats */ + if(ch == 0x09 || ch == 0x0a || ch == 0x0c || ch == 0x0d || ch == 0x20) { + if(non_ws_count > 0) + ws_inside = 1; + continue; + } + + /* Characters only possible in Base64 (not valid hex) */ + if((ch >= 'G' && ch <= 'Z') || + (ch >= 'g' && ch <= 'z') || + ch == '+' || ch == '/' || ch == '=') { + return OCTET_STRING_FMT_BASE64; + } + + /* Hex alphabet: [0-9A-Fa-f] */ + if((ch >= '0' && ch <= '9') || + (ch >= 'A' && ch <= 'F') || + (ch >= 'a' && ch <= 'f')) { + if(ch >= 'a' && ch <= 'f') + lowercase_seen = 1; + non_ws_count++; + continue; + } + + /* Character not valid in either format */ + return OCTET_STRING_FMT_ERROR; + } + + if(non_ws_count == 0) + return OCTET_STRING_FMT_ERROR; /* Empty / whitespace-only body */ + + if(lowercase_seen) + ASN_DEBUG("XER OCTET STRING: lower-case hex digit(s) accepted (liberal)"); + if(ws_inside) + ASN_DEBUG("XER OCTET STRING: whitespace inside value accepted (liberal)"); + + if(non_ws_count & 1) + ASN_DEBUG("XER OCTET STRING: odd hex digit count accepted (liberal)"); + + /* + * Even count, only hex-alphabet characters: value is simultaneously + * valid hex and valid Base64. Per X.680 §22.3 the standard encoding + * is hex (xmlhstring), so we prefer hex. + */ + return OCTET_STRING_FMT_AMBIGUOUS_HEX; +} + +/* + * Auto-detect and convert from either hexadecimal or Base64 format. + * Supports the nonstandard explicit H'...' / h'...' prefix for hexadecimal. + * + * Format detection (OCTET_STRING__classify) runs on the first chunk that + * contains non-whitespace content and is pinned in _xer_decode_state so + * that all subsequent chunks of the same value use the same converter. + * This prevents a split input from being decoded with inconsistent formats. + */ +static ssize_t +OCTET_STRING__convert_auto(void *sptr, const void *chunk_buf, + size_t chunk_size, int have_more) { + OCTET_STRING_t *st = (OCTET_STRING_t *)sptr; + const unsigned char *buf_start = (const unsigned char *)chunk_buf; + const unsigned char *p = buf_start; + const unsigned char *pend = p + chunk_size; + + /* Skip leading whitespace */ + while(p < pend && (*p == 0x09 || *p == 0x0a || *p == 0x0c || + *p == 0x0d || *p == 0x20)) { + p++; + } + + /* Nothing but whitespace in this chunk — nothing to convert yet. + * Both hex and Base64 converters already skip XML whitespace, so there + * is no need to delegate: consuming now avoids an unnecessary realloc + * inside the Base64 converter when the chunk carries no actual data. */ + if(p >= pend) + return (ssize_t)chunk_size; + + /* Check for explicit H' / h' prefix (nonstandard; X.693 does not define + * this for OCTET STRING, but we accept it liberally). */ + if((p + 1) < pend && (*p == 'H' || *p == 'h') && p[1] == '\'') { + const unsigned char *content_start = p + 2; + const unsigned char *content_end = content_start; + ssize_t result; + + ASN_DEBUG("XER OCTET STRING: nonstandard H'' prefix accepted"); + + /* Find the closing quote */ + while(content_end < pend && *content_end != '\'') { + content_end++; + } + if(content_end >= pend || *content_end != '\'') + return -1; /* Unterminated string */ + + result = OCTET_STRING__convert_hexadecimal( + sptr, content_start, (size_t)(content_end - content_start), 0); + if(result < 0) return result; + + return (ssize_t)((content_end - buf_start) + 1); /* include closing ' */ + } + + /* Determine format on the first non-whitespace chunk, then pin it. */ + if(st->_xer_decode_state.format_decided == 0) { + OCTET_STRING__fmt_e fmt = OCTET_STRING__classify(chunk_buf, chunk_size); + switch(fmt) { + case OCTET_STRING_FMT_HEX: + case OCTET_STRING_FMT_AMBIGUOUS_HEX: + st->_xer_decode_state.format_decided = 1; /* hex */ + break; + case OCTET_STRING_FMT_BASE64: + st->_xer_decode_state.format_decided = 2; /* base64 */ + break; + case OCTET_STRING_FMT_ERROR: + default: + return -1; /* Undecodable content */ + } + } + + if(st->_xer_decode_state.format_decided == 1) + return OCTET_STRING__convert_hexadecimal(sptr, chunk_buf, chunk_size, have_more); + else + return OCTET_STRING__convert_base64(sptr, chunk_buf, chunk_size, have_more); +} + /* * Decode OCTET STRING from the XML element's body. */ @@ -659,6 +1192,20 @@ asn_dec_rval_t OCTET_STRING_decode_xer_binary( size, 0, OCTET_STRING__convert_binary); } +/* + * Decode BIT STRING with auto-detection of binary or hexadecimal format. + * This allows XER input to use either binary (0/1) or hexadecimal format. + */ +asn_dec_rval_t +BIT_STRING_decode_xer_binary_or_hex(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size, 0, + BIT_STRING__convert_binary_or_hex); +} + /* * Decode OCTET STRING from the string (ASCII/UTF-8) data. */ @@ -669,3 +1216,30 @@ asn_dec_rval_t OCTET_STRING_decode_xer_utf8( size, OCTET_STRING__handle_control_chars, OCTET_STRING__convert_entrefs); } + +/* + * Decode OCTET STRING from Base64-encoded data. + */ +asn_dec_rval_t +OCTET_STRING_decode_xer_base64(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size, 0, + OCTET_STRING__convert_base64); +} + +/* + * Decode OCTET STRING with auto-detection of hexadecimal or Base64 format. + * This allows XER input to use either format seamlessly. + */ +asn_dec_rval_t +OCTET_STRING_decode_xer_auto(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + const char *opt_mname, const void *buf_ptr, + size_t size) { + return OCTET_STRING__decode_xer(opt_codec_ctx, td, sptr, opt_mname, + buf_ptr, size, 0, + OCTET_STRING__convert_auto); +} diff --git a/src/icspacket/include/skeletons/OPEN_TYPE.c b/src/icspacket/include/skeletons/OPEN_TYPE.c index dcbccbca..faa62a84 100644 --- a/src/icspacket/include/skeletons/OPEN_TYPE.c +++ b/src/icspacket/include/skeletons/OPEN_TYPE.c @@ -7,6 +7,7 @@ #include asn_TYPE_operation_t asn_OP_OPEN_TYPE = { + .kind = ASN_KIND_PRIMITIVE, OPEN_TYPE_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OPEN_TYPE_print, @@ -61,6 +62,13 @@ asn_TYPE_operation_t asn_OP_OPEN_TYPE = { 0, /* Random fill is not supported for open type */ #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OPEN_TYPE_decode_cbor, + OPEN_TYPE_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; diff --git a/src/icspacket/include/skeletons/OPEN_TYPE.h b/src/icspacket/include/skeletons/OPEN_TYPE.h index b62241f4..7c61e70b 100644 --- a/src/icspacket/include/skeletons/OPEN_TYPE.h +++ b/src/icspacket/include/skeletons/OPEN_TYPE.h @@ -29,8 +29,12 @@ extern "C" { #define OPEN_TYPE_free CHOICE_free #if !defined(ASN_DISABLE_PRINT_SUPPORT) -#define OPEN_TYPE_print CHOICE_print -#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ +int OPEN_TYPE_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key); +int OPEN_TYPE_print_member(const asn_TYPE_descriptor_t *td, const void *sptr, + const asn_TYPE_member_t *elm, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key); +#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ #define OPEN_TYPE_compare CHOICE_compare #define OPEN_TYPE_copy CHOICE_copy @@ -45,7 +49,13 @@ asn_dec_rval_t OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, const void *ptr, size_t size); #define OPEN_TYPE_decode_ber NULL #define OPEN_TYPE_encode_der CHOICE_encode_der -#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ +asn_enc_rval_t OPEN_TYPE_ber_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ #if !defined(ASN_DISABLE_XER_SUPPORT) asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, @@ -54,8 +64,17 @@ asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_member_t *element, const void *ptr, size_t size); #define OPEN_TYPE_decode_xer NULL -#define OPEN_TYPE_encode_xer CHOICE_encode_xer -#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ +asn_enc_rval_t OPEN_TYPE_encode_xer( + const asn_TYPE_descriptor_t *type_descriptor, + const void *struct_ptr, int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +asn_enc_rval_t OPEN_TYPE_xer_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) asn_dec_rval_t OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, @@ -65,7 +84,13 @@ asn_dec_rval_t OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, const void *ptr, size_t size); #define OPEN_TYPE_decode_jer NULL #define OPEN_TYPE_encode_jer CHOICE_encode_jer -#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +asn_enc_rval_t OPEN_TYPE_jer_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) asn_dec_rval_t OPEN_TYPE_oer_get(const asn_codec_ctx_t *opt_codec_ctx, @@ -78,7 +103,12 @@ asn_enc_rval_t OPEN_TYPE_encode_oer( const asn_TYPE_descriptor_t *type_descriptor, const asn_oer_constraints_t *constraints, const void *struct_ptr, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +asn_enc_rval_t OPEN_TYPE_oer_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) asn_dec_rval_t OPEN_TYPE_uper_get(const asn_codec_ctx_t *opt_codec_ctx, @@ -91,7 +121,12 @@ asn_enc_rval_t OPEN_TYPE_encode_uper( const asn_TYPE_descriptor_t *type_descriptor, const asn_per_constraints_t *constraints, const void *struct_ptr, asn_per_outp_t *per_output); -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ +asn_enc_rval_t OPEN_TYPE_uper_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + asn_per_outp_t *per_output); +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ #if !defined(ASN_DISABLE_APER_SUPPORT) asn_dec_rval_t OPEN_TYPE_aper_get(const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *parent_type, @@ -103,6 +138,11 @@ asn_enc_rval_t OPEN_TYPE_encode_aper( const asn_TYPE_descriptor_t *type_descriptor, const asn_per_constraints_t *constraints, const void *struct_ptr, asn_per_outp_t *per_output); +asn_enc_rval_t OPEN_TYPE_aper_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + asn_per_outp_t *per_output); int OPEN_TYPE_aper_is_unknown_type(const asn_TYPE_descriptor_t *td, void *sptr, const asn_TYPE_member_t *elm); @@ -110,6 +150,22 @@ int OPEN_TYPE_aper_is_unknown_type(const asn_TYPE_descriptor_t *td, void *sptr, asn_dec_rval_t OPEN_TYPE_aper_unknown_type_discard_bytes(asn_per_data_t *pd); #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +asn_dec_rval_t OPEN_TYPE_cbor_get( + const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *parent_type, + void *parent_structure, + const asn_TYPE_member_t *element, + const void *ptr, size_t size); +#define OPEN_TYPE_decode_cbor NULL +#define OPEN_TYPE_encode_cbor CHOICE_encode_cbor +asn_enc_rval_t OPEN_TYPE_cbor_put( + const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key); +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ + extern asn_TYPE_operation_t asn_OP_OPEN_TYPE; #ifdef __cplusplus diff --git a/src/icspacket/include/skeletons/OPEN_TYPE_ber.c b/src/icspacket/include/skeletons/OPEN_TYPE_ber.c index 5e0e55d0..334af3ed 100644 --- a/src/icspacket/include/skeletons/OPEN_TYPE_ber.c +++ b/src/icspacket/include/skeletons/OPEN_TYPE_ber.c @@ -22,14 +22,21 @@ asn_dec_rval_t OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, ASN__DECODE_FAILED; } - if (!elm->type_selector) { + /* Validate elm->type before accessing its members */ + if(!elm->type) { + ASN_DEBUG("Open Type %s->%s: type descriptor is NULL", + td->name, elm->name); + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", td->name, elm->name, elm->type->name); ASN__DECODE_FAILED; } selected = elm->type_selector(td, sptr); - if (!selected.presence_index) { + if(!selected.presence_index || !selected.type_descriptor) { ASN__DECODE_FAILED; } @@ -40,15 +47,86 @@ asn_dec_rval_t OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, memb_ptr = (char *)sptr + elm->memb_offset; memb_ptr2 = &memb_ptr; } - if (*memb_ptr2 != NULL) { - /* Make sure we reset the structure first before encoding */ - if (CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { + + /* Check if this OPEN_TYPE uses CHOICE wrapper (elements_count > 0) or direct type */ + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: validate and allocate CHOICE structure */ + + /* Validate the selected variant */ + if(selected.presence_index > elm->type->elements_count) { + ASN_DEBUG("Open Type %s->%s: presence index %u out of bounds (max %u)", + td->name, elm->name, selected.presence_index, + elm->type->elements_count); + ASN__DECODE_FAILED; + } + + /* Ensure we can access the elements array if needed */ + if(!elm->type->elements) { + ASN_DEBUG("Open Type %s->%s: elements array is NULL but elements_count is %u", + td->name, elm->name, elm->type->elements_count); ASN__DECODE_FAILED; } + + /* Allocate the CHOICE structure if not already present */ + if(*memb_ptr2 == NULL) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)elm->type->specifics; + if(!specs) { + ASN_DEBUG("Open Type %s->%s: type specifics is NULL", + td->name, elm->name); + ASN__DECODE_FAILED; + } + *memb_ptr2 = CALLOC(1, specs->struct_size); + if(*memb_ptr2 == NULL) { + ASN__DECODE_FAILED; + } + } else { + /* Make sure we reset the structure first before decoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { + ASN__DECODE_FAILED; + } + } + } else { + /* Direct type mode: no CHOICE wrapper, decode directly into member */ + ASN_DEBUG("Open Type %s->%s: using direct type mode (no CHOICE wrapper)", + td->name, elm->name); } - inner_value = (char *)*memb_ptr2 + - elm->type->elements[selected.presence_index - 1].memb_offset; + /* Compute inner_value based on CHOICE wrapper mode or direct type mode */ + unsigned int memb_offset = 0; + const asn_TYPE_member_t *variant_elm = NULL; + + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: get variant element info */ + if(elm->type->elements && selected.presence_index > 0 + && selected.presence_index <= elm->type->elements_count) { + variant_elm = &elm->type->elements[selected.presence_index - 1]; + memb_offset = variant_elm->memb_offset; + } + + /* + * For ATF_POINTER variants (e.g., "PersonInfo *PersonInfo" in CHOICE): + * - The field is a pointer itself, freshly CALLOC'd to NULL + * - We need to read the pointer value (NULL) from the field + * - Decoder will allocate structure and update inner_value + * - We'll copy inner_value back to the field after decoding + * + * For non-pointer variants (e.g., "int value" in CHOICE): + * - The field is embedded in the CHOICE structure + * - We pass the address of the field to the decoder + * - Decoder writes directly into the field + */ + if(variant_elm && (variant_elm->flags & ATF_POINTER)) { + /* Read the current pointer value from the field */ + inner_value = *(void **)((char *)*memb_ptr2 + memb_offset); + } else { + /* Compute address of the embedded value field */ + inner_value = (char *)*memb_ptr2 + memb_offset; + } + } else { + /* Direct type mode: decode directly into the member pointer */ + inner_value = *memb_ptr2; + } ASN_DEBUG("presence %d\n", selected.presence_index); @@ -57,22 +135,43 @@ asn_dec_rval_t OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, elm->tag_mode); ADVANCE(rv.consumed); rv.consumed = 0; - switch (rv.code) { - case RC_OK: - if (CHOICE_variant_set_presence(elm->type, *memb_ptr2, - selected.presence_index) == 0) { + switch(rv.code) { + case RC_OK: + if(elm->type->elements_count > 0) { + /* Set presence indicator FIRST, before copying pointer */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + /* CHOICE wrapper mode: for pointer variants, copy decoded pointer back to field */ + if(variant_elm && (variant_elm->flags & ATF_POINTER)) { + /* + * The decoder allocated a structure and stored pointer in inner_value. + * Copy it back to the actual field in the CHOICE structure. + */ + void **variant_ptr = (void **)((char *)*memb_ptr2 + memb_offset); + *variant_ptr = inner_value; + } rv.code = RC_OK; rv.consumed = consumed_myself; return rv; } else { /* Oh, now a full-blown failure failure */ } - /* Fall through */ - case RC_FAIL: + } else { + /* Direct type mode: update member pointer with decoded value if pointer type */ + if(elm->flags & ATF_POINTER) { + *memb_ptr2 = inner_value; + } + rv.code = RC_OK; rv.consumed = consumed_myself; - /* Fall through */ - case RC_WMORE: - break; + return rv; + } + /* Fall through */ + case RC_FAIL: + rv.consumed = consumed_myself; + /* Fall through */ + case RC_WMORE: + break; } if (*memb_ptr2) { @@ -85,3 +184,85 @@ asn_dec_rval_t OPEN_TYPE_ber_get(const asn_codec_ctx_t *opt_codec_ctx, } return rv; } + +/* + * Encode OPEN TYPE value in direct type mode for BER/DER. + */ +asn_enc_rval_t +OPEN_TYPE_ber_put(const asn_TYPE_descriptor_t *parent_type, + const void *parent_structure, + const asn_TYPE_member_t *element, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *consume_bytes_cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; + asn_type_selector_result_t selector_result; + const void *memb_ptr; + const void *data_ptr; + + if(!(element->flags & ATF_OPEN_TYPE)) { + ASN_DEBUG("OPEN_TYPE_ber_put: element does not have ATF_OPEN_TYPE flag"); + er.encoded = -1; + er.failed_type = parent_type; + er.structure_ptr = parent_structure; + return er; + } + + /* Use type selector to determine actual type */ + selector_result = element->type_selector(parent_type, parent_structure); + if(!selector_result.type_descriptor || !selector_result.presence_index) { + ASN_DEBUG("OPEN_TYPE_ber_put: type selector failed"); + er.encoded = -1; + er.failed_type = parent_type; + er.structure_ptr = parent_structure; + return er; + } + if(!selector_result.type_descriptor->op + || !selector_result.type_descriptor->op->der_encoder) { + ASN_DEBUG("OPEN_TYPE_ber_put: selected type has no DER encoder"); + er.encoded = -1; + er.failed_type = parent_type; + er.structure_ptr = parent_structure; + return er; + } + + /* Get pointer to member data */ + if(element->flags & ATF_POINTER) { + memb_ptr = *(const void *const *)((const char *)parent_structure + element->memb_offset); + if(!memb_ptr) { + if(element->optional) { + er.encoded = 0; + ASN__ENCODED_OK(er); + } + ASN_DEBUG("OPEN_TYPE_ber_put: pointer member is NULL"); + er.encoded = -1; + er.failed_type = parent_type; + er.structure_ptr = parent_structure; + return er; + } + } else { + memb_ptr = (const void *)((const char *)parent_structure + element->memb_offset); + } + + /* In direct type mode, memb_ptr points directly to the data */ + /* In CHOICE wrapper mode, we need to extract from the CHOICE structure */ + if(element->type->elements_count > 0) { + /* CHOICE wrapper mode */ + const asn_TYPE_member_t *elm = &element->type->elements[selector_result.presence_index - 1]; + if(elm->flags & ATF_POINTER) { + data_ptr = *(const void *const *)((const char *)memb_ptr + elm->memb_offset); + } else { + data_ptr = (const void *)((const char *)memb_ptr + elm->memb_offset); + } + } else { + /* Direct type mode - memb_ptr is the data */ + data_ptr = memb_ptr; + } + + /* Encode using the actual type descriptor */ + er = selector_result.type_descriptor->op->der_encoder( + selector_result.type_descriptor, data_ptr, + tag_mode, tag, + consume_bytes_cb, app_key); + + return er; +} diff --git a/src/icspacket/include/skeletons/OPEN_TYPE_jer.c b/src/icspacket/include/skeletons/OPEN_TYPE_jer.c index 7b17e376..45227413 100644 --- a/src/icspacket/include/skeletons/OPEN_TYPE_jer.c +++ b/src/icspacket/include/skeletons/OPEN_TYPE_jer.c @@ -7,10 +7,11 @@ #include #include -asn_dec_rval_t OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void *sptr, - const asn_TYPE_member_t *elm, const void *ptr, - size_t size) { +asn_dec_rval_t +OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + void *sptr, const asn_TYPE_member_t *elm, const void *ptr, + size_t size) { size_t consumed_myself = 0; asn_type_selector_result_t selected; void *memb_ptr; /* Pointer to the member */ @@ -18,156 +19,318 @@ asn_dec_rval_t OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, void *inner_value; asn_dec_rval_t rv; - int jer_context = 0; - ssize_t ch_size; - pjer_chunk_type_e ch_type; + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__DECODE_FAILED; + } - if (!(elm->flags & ATF_OPEN_TYPE)) { + /* Validate elm->type before accessing its members */ + if(!elm->type) { + ASN_DEBUG("Open Type %s->%s: type descriptor is NULL", + td->name, elm->name); ASN__DECODE_FAILED; } - if (!elm->type_selector) { + if(!elm->type_selector) { ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", td->name, elm->name, elm->type->name); ASN__DECODE_FAILED; } selected = elm->type_selector(td, sptr); - if (!selected.presence_index) { + if(!selected.presence_index || !selected.type_descriptor) { ASN__DECODE_FAILED; } /* Fetch the pointer to this member */ - assert(elm->flags == ATF_OPEN_TYPE); - if (elm->flags & ATF_POINTER) { + assert(elm->flags & ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); } else { memb_ptr = (char *)sptr + elm->memb_offset; memb_ptr2 = &memb_ptr; } - if (*memb_ptr2 != NULL) { - /* Make sure we reset the structure first before encoding */ - if (CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { + + /* Check if this OPEN_TYPE uses CHOICE wrapper (elements_count > 0) or direct type */ + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: validate and allocate CHOICE structure */ + + /* Validate the selected variant */ + if(selected.presence_index > elm->type->elements_count) { + ASN_DEBUG("Open Type %s->%s: presence index %u out of bounds (max %u)", + td->name, elm->name, selected.presence_index, + elm->type->elements_count); ASN__DECODE_FAILED; } - } - - /* - * Confirm wrapper. - */ - for (;;) { - ch_size = jer_next_token(&jer_context, ptr, size, &ch_type); - if (ch_size < 0) { + + /* Ensure we can access the elements array if needed */ + if(!elm->type->elements) { + ASN_DEBUG("Open Type %s->%s: elements array is NULL but elements_count is %u", + td->name, elm->name, elm->type->elements_count); ASN__DECODE_FAILED; + } + + /* Allocate the CHOICE structure if not already present */ + if(*memb_ptr2 == NULL) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)elm->type->specifics; + if(!specs) { + ASN_DEBUG("Open Type %s->%s: type specifics is NULL", + td->name, elm->name); + ASN__DECODE_FAILED; + } + *memb_ptr2 = CALLOC(1, specs->struct_size); + if(*memb_ptr2 == NULL) { + ASN__DECODE_FAILED; + } } else { - switch (ch_type) { - case PJER_WMORE: - ASN__DECODE_STARVED; - case PJER_TEXT: - case PJER_DLM: - ADVANCE(ch_size); - continue; - case PJER_KEY: - default: - break; + /* Make sure we reset the structure first before decoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) + != 0) { + ASN__DECODE_FAILED; } - break; } + } else { + /* Direct type mode: no CHOICE wrapper, decode directly into member */ + ASN_DEBUG("Open Type %s->%s: using direct type mode (no CHOICE wrapper)", + td->name, elm->name); } /* - * Wrapper value confirmed. + * Per ITU-T X.697 Clause 41: "The encoding of an open type value shall be + * the encoding of the value of the contained type." + * + * For OPEN TYPE, the encoder does NOT add a CHOICE wrapper key in the JSON, + * even if elm->type is internally structured as a CHOICE (elements_count > 0). + * The value is encoded directly as per the selected type. + * + * Therefore, the decoder should NOT try to parse a CHOICE key wrapper. + * We proceed directly to decoding the value using the selected type descriptor. */ - switch (jer_check_sym(ptr, ch_size, NULL)) { - case JCK_UNKNOWN: - ADVANCE(ch_size); - break; - case JCK_BROKEN: - default: - ASN__DECODE_FAILED; - } - /* Skip colon */ - ch_size = jer_next_token(&jer_context, ptr, size, &ch_type); - if (ch_size < 0 || ch_type != PJER_TEXT) { - ASN__DECODE_FAILED; + /* + * Compute inner_value pointer based on internal structure. + * Note: This handles the internal ASN.1 CHOICE structure representation, + * NOT JSON format (which has no CHOICE wrapper for OPEN TYPE). + */ + unsigned int memb_offset = 0; + const asn_TYPE_member_t *variant_elm = NULL; + + if(elm->type->elements_count > 0) { + /* Internal CHOICE structure mode: get variant element info */ + if(elm->type->elements && selected.presence_index > 0 + && selected.presence_index <= elm->type->elements_count) { + variant_elm = &elm->type->elements[selected.presence_index - 1]; + memb_offset = variant_elm->memb_offset; + } + + /* + * For ATF_POINTER variants (e.g., "PersonInfo *PersonInfo" in CHOICE): + * - The field is a pointer itself, freshly CALLOC'd to NULL + * - We need to read the pointer value (NULL) from the field + * - Decoder will allocate structure and update inner_value + * - We'll copy inner_value back to the field after decoding + * + * For non-pointer variants (e.g., "int value" in CHOICE): + * - The field is embedded in the CHOICE structure + * - We pass the address of the field to the decoder + * - Decoder writes directly into the field + */ + if(variant_elm && (variant_elm->flags & ATF_POINTER)) { + /* Read the current pointer value from the field */ + inner_value = *(void **)((char *)*memb_ptr2 + memb_offset); + } else { + /* Compute address of the embedded value field */ + inner_value = (char *)*memb_ptr2 + memb_offset; + } } else { - ADVANCE(ch_size); + /* Direct type mode: decode directly into the member pointer */ + inner_value = *memb_ptr2; } - inner_value = (char *)*memb_ptr2 + - elm->type->elements[selected.presence_index - 1].memb_offset; - rv = selected.type_descriptor->op->jer_decoder( - opt_codec_ctx, selected.type_descriptor, - selected.type_descriptor->encoding_constraints.jer_constraints, + opt_codec_ctx, selected.type_descriptor, selected.type_descriptor->encoding_constraints.jer_constraints, &inner_value, ptr, size); ADVANCE(rv.consumed); rv.consumed = 0; - switch (rv.code) { - case RC_OK: - if (CHOICE_variant_set_presence(elm->type, *memb_ptr2, - selected.presence_index) == 0) { + switch(rv.code) { + case RC_OK: + if(elm->type->elements_count > 0) { + /* Set presence indicator FIRST, before copying pointer */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + == 0) { + /* Internal CHOICE structure: for pointer variants, copy decoded pointer back to field */ + if(variant_elm && (variant_elm->flags & ATF_POINTER)) { + /* + * The decoder allocated a structure and stored pointer in inner_value. + * Copy it back to the actual field in the internal CHOICE structure. + */ + void **variant_ptr = (void **)((char *)*memb_ptr2 + memb_offset); + *variant_ptr = inner_value; + } break; } else { rv.code = RC_FAIL; } - /* Fall through */ - case RC_FAIL: - /* Point to a best position where failure occurred */ - rv.consumed = consumed_myself; - /* Fall through */ - case RC_WMORE: - /* Wrt. rv.consumed==0: - * In case a genuine RC_WMORE, the whole Open Type decoding - * will have to be restarted. - */ - if (*memb_ptr2) { - if (elm->flags & ATF_POINTER) { - ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); - *memb_ptr2 = NULL; - } else { - ASN_STRUCT_RESET(*selected.type_descriptor, inner_value); - } - } - return rv; - } - - /* - * Finalize wrapper. - */ - for (;;) { - ch_size = jer_next_token(&jer_context, ptr, size, &ch_type); - if (ch_size < 0) { - ASN__DECODE_FAILED; } else { - switch (ch_type) { - case PJER_WMORE: - ASN__DECODE_STARVED; - case PJER_TEXT: - ADVANCE(ch_size); - continue; - default: - break; + /* Direct type mode: update member pointer with decoded value if pointer type */ + if(elm->flags & ATF_POINTER) { + ASN_DEBUG("Direct type mode: updating member pointer"); + *memb_ptr2 = inner_value; + } else { + ASN_DEBUG("Direct type mode: decode successful (non-pointer)"); } break; } - } - - /* - * Wrapper value confirmed. - */ - switch (jer_check_sym(ptr, ch_size, NULL)) { - case JCK_KEY: - case JCK_OEND: - ADVANCE(ch_size); - break; - case JCK_BROKEN: - default: - ASN__DECODE_FAILED; + /* Fall through */ + case RC_FAIL: + /* Point to a best position where failure occurred */ + rv.consumed = consumed_myself; + /* Fall through */ + case RC_WMORE: + /* Wrt. rv.consumed==0: + * In case a genuine RC_WMORE, the whole Open Type decoding + * will have to be restarted. + */ + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); + } + } + return rv; } rv.consumed += consumed_myself; return rv; } + +asn_enc_rval_t +OPEN_TYPE_jer_put(const asn_TYPE_descriptor_t *td, const void *sptr, + const asn_TYPE_member_t *elm, int ilevel, + enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_type_selector_result_t selected; + const void *memb_ptr; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__ENCODE_FAILED; + } + + /* Validate elm->type before accessing its members */ + if(!elm->type) { + ASN_DEBUG("Open Type %s->%s: type descriptor is NULL", + td->name, elm->name); + ASN__ENCODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__ENCODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN_DEBUG("Open Type %s->%s: type_selector returned presence_index=0", + td->name, elm->name); + ASN__ENCODE_FAILED; + } + + /* Validate selected type descriptor */ + if(!selected.type_descriptor) { + ASN_DEBUG("Open Type %s->%s: type_selector returned NULL type descriptor", + td->name, elm->name); + ASN__ENCODE_FAILED; + } + + if(!selected.type_descriptor->op || !selected.type_descriptor->op->jer_encoder) { + ASN_DEBUG("Open Type %s->%s: selected type %s has no JER encoder", + td->name, elm->name, selected.type_descriptor->name); + ASN__ENCODE_FAILED; + } + + ASN_DEBUG("OPEN_TYPE_jer_put: elm->type=%s, elements=%p, elements_count=%u, selected.presence_index=%u, selected.type=%s", + elm->type->name, (void*)elm->type->elements, elm->type->elements_count, + selected.presence_index, selected.type_descriptor->name); + + /* Fetch the pointer to this member */ + assert(elm->flags & ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + /* Check if this OPEN_TYPE uses CHOICE wrapper (elements_count > 0) or direct type */ + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: get the actual member to encode */ + const asn_CHOICE_specifics_t *choice_specs = + (const asn_CHOICE_specifics_t *)elm->type->specifics; + + if(!choice_specs) { + ASN_DEBUG("Open Type CHOICE wrapper has no specifics"); + ASN__ENCODE_FAILED; + } + + /* Validate the selected variant */ + if(selected.presence_index == 0 || selected.presence_index > elm->type->elements_count) { + ASN_DEBUG("Open Type %s->%s: presence index %u out of bounds (max %u)", + td->name, elm->name, selected.presence_index, + elm->type->elements_count); + ASN__ENCODE_FAILED; + } + + /* Get the element descriptor for the selected variant */ + const asn_TYPE_member_t *variant_elm = &elm->type->elements[selected.presence_index - 1]; + const void *variant_memb_ptr; + + /* Get pointer to the actual data */ + if(variant_elm->flags & ATF_POINTER) { + variant_memb_ptr = *(const void *const *)((const char *)memb_ptr + variant_elm->memb_offset); + if(!variant_memb_ptr) { + ASN_DEBUG("Open Type %s->%s: variant data pointer is NULL", + td->name, elm->name); + ASN__ENCODE_FAILED; + } + } else { + variant_memb_ptr = (const void *)((const char *)memb_ptr + variant_elm->memb_offset); + } + + /* Validate type descriptor match for safety */ + if(variant_elm->type && variant_elm->type != selected.type_descriptor) { + ASN_DEBUG("Open Type %s->%s: WARNING - variant type %s != selected type %s", + td->name, elm->name, + variant_elm->type->name, selected.type_descriptor->name); + } + + /* + * ITU-T X.697 Clause 41: "The encoding of an open type value shall be + * the encoding of the value of the contained type." + * Encode directly without type name wrapper. + */ + ASN_DEBUG("Open Type CHOICE wrapper mode: encoding %s (variant %s) at offset %u, ATF_POINTER=%d", + selected.type_descriptor->name, variant_elm->name, + variant_elm->memb_offset, !!(variant_elm->flags & ATF_POINTER)); + return selected.type_descriptor->op->jer_encoder( + selected.type_descriptor, selected.type_descriptor->encoding_constraints.jer_constraints, + variant_memb_ptr, ilevel, flags, cb, app_key); + } else { + /* + * Direct type mode: encode using the selected type descriptor directly. + * ITU-T X.697 Clause 41: "The encoding of an open type value shall be + * the encoding of the value of the contained type." + * No type name wrapper should be added. + */ + ASN_DEBUG("Open Type direct mode: encoding %s, memb_ptr=%p, ATF_POINTER=%d", + selected.type_descriptor->name, memb_ptr, !!(elm->flags & ATF_POINTER)); + return selected.type_descriptor->op->jer_encoder( + selected.type_descriptor, selected.type_descriptor->encoding_constraints.jer_constraints, + memb_ptr, ilevel, flags, cb, app_key); + } +} diff --git a/src/icspacket/include/skeletons/OPEN_TYPE_print.c b/src/icspacket/include/skeletons/OPEN_TYPE_print.c new file mode 100644 index 00000000..e85cc059 --- /dev/null +++ b/src/icspacket/include/skeletons/OPEN_TYPE_print.c @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2017 Lev Walkin . All rights reserved. + * Redistribution and modifications are permitted subject to BSD license. + */ +#include +#include +#include + +int +OPEN_TYPE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + + if(!sptr) { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } + + /* Check if this is direct type mode (no CHOICE wrapper) */ + if(td->elements_count == 0) { + /* Direct type mode: cannot determine actual type without element context */ + /* This function should not be called directly; SEQUENCE should use */ + /* OPEN_TYPE_print_member instead */ + return (cb("", 9, app_key) < 0) ? -1 : 0; + } + + /* CHOICE wrapper mode: use CHOICE printer */ + return CHOICE_print(td, sptr, ilevel, cb, app_key); +} + +int +OPEN_TYPE_print_member(const asn_TYPE_descriptor_t *td, const void *sptr, + const asn_TYPE_member_t *elm, int ilevel, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_type_selector_result_t selected; + const void *memb_ptr; + + if(!sptr || !(elm->flags & ATF_OPEN_TYPE)) { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } + + /* Validate elm->type before accessing its members */ + if(!elm->type) { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } + + /* Get the member pointer */ + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void * const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + /* Check if this is direct type mode (no CHOICE wrapper) */ + if(elm->type->elements_count == 0) { + /* Direct type mode: use type selector to find the actual type */ + if(!elm->type_selector) { + return (cb("", 9, app_key) < 0) ? -1 : 0; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index || !selected.type_descriptor + || !selected.type_descriptor->op + || !selected.type_descriptor->op->print_struct) { + return (cb("", 8, app_key) < 0) ? -1 : 0; + } + + /* Print using the actual type descriptor */ + return selected.type_descriptor->op->print_struct( + selected.type_descriptor, memb_ptr, ilevel, cb, app_key); + } + + /* CHOICE wrapper mode: use OPEN_TYPE printer (which calls CHOICE printer) */ + return OPEN_TYPE_print(elm->type, memb_ptr, ilevel, cb, app_key); +} diff --git a/src/icspacket/include/skeletons/OPEN_TYPE_xer.c b/src/icspacket/include/skeletons/OPEN_TYPE_xer.c index 53b9ad80..19dd638c 100644 --- a/src/icspacket/include/skeletons/OPEN_TYPE_xer.c +++ b/src/icspacket/include/skeletons/OPEN_TYPE_xer.c @@ -7,10 +7,14 @@ #include #include -asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void *sptr, - const asn_TYPE_member_t *elm, const void *ptr, - size_t size) { +extern const asn_TYPE_operation_t asn_OP_SEQUENCE; +extern const asn_TYPE_operation_t asn_OP_SEQUENCE_OF; +extern const asn_TYPE_operation_t asn_OP_SET_OF; + +asn_dec_rval_t +OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void *sptr, + const asn_TYPE_member_t *elm, const void *ptr, size_t size) { size_t consumed_myself = 0; asn_type_selector_result_t selected; void *memb_ptr; /* Pointer to the member */ @@ -22,53 +26,103 @@ asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, ssize_t ch_size; pxer_chunk_type_e ch_type; - if (!(elm->flags & ATF_OPEN_TYPE)) { + if(!(elm->flags & ATF_OPEN_TYPE)) { ASN__DECODE_FAILED; } - if (!elm->type_selector) { + /* Validate elm->type before accessing its members */ + if(!elm->type) { + ASN_DEBUG("Open Type %s->%s: type descriptor is NULL", + td->name, elm->name); + ASN__DECODE_FAILED; + } + + if(!elm->type_selector) { ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", td->name, elm->name, elm->type->name); ASN__DECODE_FAILED; } selected = elm->type_selector(td, sptr); - if (!selected.presence_index) { + if(!selected.presence_index || !selected.type_descriptor) { ASN__DECODE_FAILED; } + ASN_DEBUG("OPEN_TYPE_xer_get: elm->type=%s, elements=%p, elements_count=%u, selected.presence_index=%u, selected.type=%s", + elm->type->name, (void*)elm->type->elements, elm->type->elements_count, + selected.presence_index, selected.type_descriptor->name); + /* Fetch the pointer to this member */ - assert(elm->flags == ATF_OPEN_TYPE); - if (elm->flags & ATF_POINTER) { + assert(elm->flags & ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { memb_ptr2 = (void **)((char *)sptr + elm->memb_offset); } else { memb_ptr = (char *)sptr + elm->memb_offset; memb_ptr2 = &memb_ptr; } - if (*memb_ptr2 != NULL) { - /* Make sure we reset the structure first before encoding */ - if (CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) != 0) { + + /* Check if this OPEN_TYPE uses CHOICE wrapper (elements_count > 0) or direct type */ + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: validate and allocate CHOICE structure */ + + /* Validate the selected variant */ + if(selected.presence_index > elm->type->elements_count) { + ASN_DEBUG("Open Type %s->%s: presence index %u out of bounds (max %u)", + td->name, elm->name, selected.presence_index, + elm->type->elements_count); + ASN__DECODE_FAILED; + } + + /* Ensure we can access the elements array if needed */ + if(!elm->type->elements) { + ASN_DEBUG("Open Type %s->%s: elements array is NULL but elements_count is %u", + td->name, elm->name, elm->type->elements_count); ASN__DECODE_FAILED; } + + /* Allocate the CHOICE structure if not already present */ + if(*memb_ptr2 == NULL) { + const asn_CHOICE_specifics_t *specs = + (const asn_CHOICE_specifics_t *)elm->type->specifics; + if(!specs) { + ASN_DEBUG("Open Type %s->%s: type specifics is NULL", + td->name, elm->name); + ASN__DECODE_FAILED; + } + *memb_ptr2 = CALLOC(1, specs->struct_size); + if(*memb_ptr2 == NULL) { + ASN__DECODE_FAILED; + } + } else { + /* Make sure we reset the structure first before decoding */ + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, 0) + != 0) { + ASN__DECODE_FAILED; + } + } + } else { + /* Direct type mode: no CHOICE wrapper, decode directly into member */ + ASN_DEBUG("Open Type %s->%s: using direct type mode (no CHOICE wrapper)", + td->name, elm->name); } /* * Confirm wrapper. */ - for (;;) { + for(;;) { ch_size = xer_next_token(&xer_context, ptr, size, &ch_type); - if (ch_size < 0) { + if(ch_size < 0) { ASN__DECODE_FAILED; } else { - switch (ch_type) { - case PXER_WMORE: - ASN__DECODE_STARVED; - case PXER_COMMENT: - case PXER_TEXT: - ADVANCE(ch_size); - continue; - case PXER_TAG: - break; + switch(ch_type) { + case PXER_WMORE: + ASN__DECODE_STARVED; + case PXER_COMMENT: + case PXER_TEXT: + ADVANCE(ch_size); + continue; + case PXER_TAG: + break; } break; } @@ -77,68 +131,148 @@ asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, /* * Wrapper value confirmed. */ - switch (xer_check_tag(ptr, ch_size, elm->name)) { - case XCT_OPENING: - ADVANCE(ch_size); - break; - case XCT_BROKEN: - default: - ASN__DECODE_FAILED; + switch(xer_check_tag(ptr, ch_size, elm->name)) { + case XCT_BOTH: +#if XER_EMPTY_OPTIONALS_ENABLED + /* + * Empty tag detected (e.g., ). + * If this OPEN TYPE field is optional, treat it as absent. + */ + if(elm->optional) { + ASN_DEBUG("OPEN_TYPE: Empty optional field '%s', treating as absent", + elm->name ? elm->name : "(null)"); + rv.code = RC_OK; + rv.consumed = consumed_myself + ch_size; + return rv; + } +#endif + /* Fall through for non-optional or when feature disabled */ + /* Note: Empty OPEN TYPE is invalid for non-optional fields */ + ASN__DECODE_FAILED; + case XCT_OPENING: + ADVANCE(ch_size); + break; + case XCT_BROKEN: + default: + ASN__DECODE_FAILED; } - inner_value = (char *)*memb_ptr2 + - elm->type->elements[selected.presence_index - 1].memb_offset; + /* Compute inner_value based on CHOICE wrapper mode or direct type mode */ + unsigned int memb_offset = 0; + const asn_TYPE_member_t *variant_elm = NULL; + + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: get variant element info */ + if(elm->type->elements && selected.presence_index > 0 + && selected.presence_index <= elm->type->elements_count) { + variant_elm = &elm->type->elements[selected.presence_index - 1]; + memb_offset = variant_elm->memb_offset; + } + + /* + * For ATF_POINTER variants (e.g., "PersonInfo *PersonInfo" in CHOICE): + * - The field is a pointer itself, freshly CALLOC'd to NULL + * - We need to read the pointer value (NULL) from the field + * - Decoder will allocate structure and update inner_value + * - We'll copy inner_value back to the field after decoding + * + * For non-pointer variants (e.g., "int value" in CHOICE): + * - The field is embedded in the CHOICE structure + * - We pass the address of the field to the decoder + * - Decoder writes directly into the field + */ + if(variant_elm && (variant_elm->flags & ATF_POINTER)) { + /* Read the current pointer value from the field */ + inner_value = *(void **)((char *)*memb_ptr2 + memb_offset); + } else { + /* Compute address of the embedded value field */ + inner_value = (char *)*memb_ptr2 + memb_offset; + } + } else { + /* Direct type mode: decode directly into the member pointer */ + inner_value = *memb_ptr2; + } rv = selected.type_descriptor->op->xer_decoder( opt_codec_ctx, selected.type_descriptor, &inner_value, NULL, ptr, size); ADVANCE(rv.consumed); rv.consumed = 0; - switch (rv.code) { - case RC_OK: - if (CHOICE_variant_set_presence(elm->type, *memb_ptr2, - selected.presence_index) == 0) { + ASN_DEBUG("xer_decoder returned code=%d for %s", rv.code, selected.type_descriptor->name); + switch(rv.code) { + case RC_OK: + if(elm->type->elements_count > 0) { + /* Set presence indicator FIRST, before copying pointer */ + ASN_DEBUG("Calling CHOICE_variant_set_presence(elm->type=%s, presence_index=%u, elements_count=%u)", + elm->type->name, selected.presence_index, elm->type->elements_count); + if(CHOICE_variant_set_presence(elm->type, *memb_ptr2, + selected.presence_index) + != 0) { + ASN_DEBUG("CHOICE_variant_set_presence FAILED"); + rv.code = RC_FAIL; + /* Fall through to cleanup */ + } else { + ASN_DEBUG("CHOICE_variant_set_presence succeeded"); + /* CHOICE wrapper mode: for pointer variants, copy decoded pointer back to field */ + if(variant_elm && (variant_elm->flags & ATF_POINTER)) { + /* + * The decoder allocated a structure and stored pointer in inner_value. + * Copy it back to the actual field in the CHOICE structure. + */ + void **variant_ptr = (void **)((char *)*memb_ptr2 + memb_offset); + *variant_ptr = inner_value; + } break; + } + } else { + /* Direct type mode: update member pointer with decoded value if pointer type */ + if(elm->flags & ATF_POINTER) { + ASN_DEBUG("Direct type mode: updating member pointer"); + *memb_ptr2 = inner_value; } else { - rv.code = RC_FAIL; + ASN_DEBUG("Direct type mode: decode successful (non-pointer)"); } - /* Fall through */ - case RC_FAIL: - /* Point to a best position where failure occurred */ - rv.consumed = consumed_myself; - /* Fall through */ - case RC_WMORE: - /* Wrt. rv.consumed==0: - * In case a genuine RC_WMORE, the whole Open Type decoding - * will have to be restarted. - */ - if (*memb_ptr2) { - if (elm->flags & ATF_POINTER) { - ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); - *memb_ptr2 = NULL; - } else { - ASN_STRUCT_RESET(*selected.type_descriptor, inner_value); - } + break; + } + /* Fall through */ + case RC_FAIL: + /* Point to a best position where failure occurred */ + rv.consumed = consumed_myself; + ASN_DEBUG("Cleaning up after failure, code=%d", rv.code); + /* Fall through */ + case RC_WMORE: + /* Wrt. rv.consumed==0: + * In case a genuine RC_WMORE, the whole Open Type decoding + * will have to be restarted. + */ + if(*memb_ptr2) { + if(elm->flags & ATF_POINTER) { + ASN_STRUCT_FREE(*selected.type_descriptor, inner_value); + *memb_ptr2 = NULL; + } else { + ASN_STRUCT_RESET(*selected.type_descriptor, + inner_value); } - return rv; + } + return rv; } /* * Finalize wrapper. */ - for (;;) { + for(;;) { ch_size = xer_next_token(&xer_context, ptr, size, &ch_type); - if (ch_size < 0) { + if(ch_size < 0) { ASN__DECODE_FAILED; } else { - switch (ch_type) { - case PXER_WMORE: - ASN__DECODE_STARVED; - case PXER_COMMENT: - case PXER_TEXT: - ADVANCE(ch_size); - continue; - case PXER_TAG: - break; + switch(ch_type) { + case PXER_WMORE: + ASN__DECODE_STARVED; + case PXER_COMMENT: + case PXER_TEXT: + ADVANCE(ch_size); + continue; + case PXER_TAG: + break; } break; } @@ -147,16 +281,160 @@ asn_dec_rval_t OPEN_TYPE_xer_get(const asn_codec_ctx_t *opt_codec_ctx, /* * Wrapper value confirmed. */ - switch (xer_check_tag(ptr, ch_size, elm->name)) { - case XCT_CLOSING: - ADVANCE(ch_size); - break; - case XCT_BROKEN: - default: - ASN__DECODE_FAILED; + switch(xer_check_tag(ptr, ch_size, elm->name)) { + case XCT_CLOSING: + ADVANCE(ch_size); + break; + case XCT_BROKEN: + default: + ASN__DECODE_FAILED; } rv.consumed += consumed_myself; return rv; } + +asn_enc_rval_t +OPEN_TYPE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + + if(!sptr) + ASN__ENCODE_FAILED; + + /* Check if this OPEN_TYPE uses direct type mode (elements_count == 0) */ + if(td->elements_count == 0) { + /* Direct type mode: no CHOICE wrapper, encode directly */ + ASN_DEBUG("Encoding %s OPEN TYPE in direct type mode", td->name); + + /* In direct type mode, sptr points directly to the value to encode */ + /* We can't encode it because we don't know the actual type descriptor */ + /* This should not happen - the parent should handle this case */ + ASN_DEBUG("ERROR: OPEN_TYPE_encode_xer called in direct type mode"); + ASN__ENCODE_FAILED; + } + + /* CHOICE wrapper mode: use CHOICE encoder */ + return CHOICE_encode_xer(td, sptr, ilevel, flags, cb, app_key); +} + +asn_enc_rval_t +OPEN_TYPE_xer_put(const asn_TYPE_descriptor_t *td, const void *sptr, + const asn_TYPE_member_t *elm, int ilevel, + enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_type_selector_result_t selected; + const void *memb_ptr; + asn_enc_rval_t er = {0,0,0}; + + if(!(elm->flags & ATF_OPEN_TYPE)) { + ASN__ENCODE_FAILED; + } + + /* Validate elm->type before accessing its members */ + if(!elm->type) { + ASN_DEBUG("Open Type %s->%s: type descriptor is NULL", + td->name, elm->name); + ASN__ENCODE_FAILED; + } + + if(!elm->type_selector) { + ASN_DEBUG("Type selector is not defined for Open Type %s->%s->%s", + td->name, elm->name, elm->type->name); + ASN__ENCODE_FAILED; + } + + selected = elm->type_selector(td, sptr); + if(!selected.presence_index) { + ASN__ENCODE_FAILED; + } + if(!selected.type_descriptor) { + ASN_DEBUG("Open Type %s->%s: type_selector returned NULL type descriptor", + td->name, elm->name); + ASN__ENCODE_FAILED; + } + if(!selected.type_descriptor->op + || (!elm->type->elements_count + && !selected.type_descriptor->op->xer_encoder)) { + ASN_DEBUG("Open Type %s->%s: selected type %s has no XER encoder", + td->name, elm->name, selected.type_descriptor->name); + ASN__ENCODE_FAILED; + } + + ASN_DEBUG("OPEN_TYPE_xer_put: elm->type=%s, elements=%p, elements_count=%u, selected.presence_index=%u, selected.type=%s", + elm->type->name, (void*)elm->type->elements, elm->type->elements_count, + selected.presence_index, selected.type_descriptor->name); + + /* Fetch the pointer to this member */ + assert(elm->flags & ATF_OPEN_TYPE); + if(elm->flags & ATF_POINTER) { + memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); + if(!memb_ptr) ASN__ENCODE_FAILED; + } else { + memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); + } + + /* Check if this OPEN_TYPE uses CHOICE wrapper (elements_count > 0) or direct type */ + if(elm->type->elements_count > 0) { + /* CHOICE wrapper mode: use standard CHOICE encoder */ + return CHOICE_encode_xer(elm->type, memb_ptr, ilevel, flags, cb, app_key); + } else { + /* Direct type mode: encode using the selected type descriptor with wrapper tag */ + ASN_DEBUG("Direct type mode: encoding using %s", selected.type_descriptor->name); + + const char *type_name = selected.type_descriptor->xml_tag; + if(!type_name || !*type_name) { + /* Fallback to type name if xml_tag is not set */ + type_name = selected.type_descriptor->name; + if(!type_name || !*type_name) { + ASN_DEBUG("ERROR: Type descriptor has no name or xml_tag"); + ASN__ENCODE_FAILED; + } + } + + /* Check if type_name contains ASN.1 meta-syntax keywords that should not be output as wrapper tags */ + size_t type_name_len = strlen(type_name); + int skip_wrapper = asn_is_meta_syntax_keyword(type_name); + if(skip_wrapper) { + ASN_DEBUG("Skipping wrapper tag for ASN.1 meta-syntax: %s", type_name); + type_name_len = 0; + } + asn_enc_rval_t tmper; + + er.encoded = 0; + + /* Output opening tag for the selected type (unless it's ASN.1 meta-syntax) */ + if(!skip_wrapper) { + if(!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, type_name, type_name_len, ">", 1); + } + + /* Encode the actual content */ + tmper = selected.type_descriptor->op->xer_encoder( + selected.type_descriptor, memb_ptr, skip_wrapper ? ilevel : ilevel + 1, flags, cb, app_key); + if(tmper.encoded == -1) return tmper; + er.encoded += tmper.encoded; + + /* Output closing tag (unless it's ASN.1 meta-syntax) */ + if(!skip_wrapper) { + if(!(flags & XER_F_CANONICAL)) { + if(selected.type_descriptor->elements_count > 0 + && selected.type_descriptor->op->kind != ASN_KIND_SEQUENCE + && selected.type_descriptor->op->kind != ASN_KIND_SEQUENCE_OF + && selected.type_descriptor->op->kind != ASN_KIND_SET_OF + && selected.type_descriptor->op->kind != ASN_KIND_SET) + { + ASN__TEXT_INDENT(0, ilevel); + } + ASN__CALLBACK3("\n", 2); + } else { + ASN__CALLBACK3("", 1); + } + } + + ASN__ENCODED_OK(er); + } +cb_failed: + ASN__ENCODE_FAILED; +} diff --git a/src/icspacket/include/skeletons/ObjectDescriptor.c b/src/icspacket/include/skeletons/ObjectDescriptor.c index fdd821c5..55e44165 100644 --- a/src/icspacket/include/skeletons/ObjectDescriptor.c +++ b/src/icspacket/include/skeletons/ObjectDescriptor.c @@ -13,6 +13,7 @@ static const ber_tlv_tag_t asn_DEF_ObjectDescriptor_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ }; asn_TYPE_operation_t asn_OP_ObjectDescriptor = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OCTET_STRING_print_utf8, /* Treat as ASCII subset (it's not) */ @@ -67,8 +68,15 @@ asn_TYPE_operation_t asn_OP_ObjectDescriptor = { 0, /* Not supported for ObjectDescriptor */ #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor_utf8, + OCTET_STRING_encode_cbor_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_ObjectDescriptor = { "ObjectDescriptor", diff --git a/src/icspacket/include/skeletons/UTF8String.c b/src/icspacket/include/skeletons/UTF8String.c index bb62fbfe..7ad91cc1 100644 --- a/src/icspacket/include/skeletons/UTF8String.c +++ b/src/icspacket/include/skeletons/UTF8String.c @@ -14,6 +14,7 @@ static const ber_tlv_tag_t asn_DEF_UTF8String_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), /* ... OCTET STRING */ }; asn_TYPE_operation_t asn_OP_UTF8String = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) UTF8String_print, @@ -68,8 +69,15 @@ asn_TYPE_operation_t asn_OP_UTF8String = { UTF8String_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor_utf8, + OCTET_STRING_encode_cbor_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_UTF8String = { "UTF8String", diff --git a/src/icspacket/include/skeletons/VisibleString.c b/src/icspacket/include/skeletons/VisibleString.c index be6b99fb..718721d8 100644 --- a/src/icspacket/include/skeletons/VisibleString.c +++ b/src/icspacket/include/skeletons/VisibleString.c @@ -21,6 +21,7 @@ static asn_per_constraints_t asn_DEF_VisibleString_constraints = { #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ !defined(ASN_DISABLE_APER_SUPPORT) */ asn_TYPE_operation_t asn_OP_VisibleString = { + .kind = ASN_KIND_PRIMITIVE, OCTET_STRING_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) OCTET_STRING_print_utf8, /* ASCII subset */ @@ -75,8 +76,15 @@ asn_TYPE_operation_t asn_OP_VisibleString = { OCTET_STRING_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0, /* Use generic outmost tag fetcher */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + OCTET_STRING_decode_cbor_utf8, + OCTET_STRING_encode_cbor_utf8, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; asn_TYPE_descriptor_t asn_DEF_VisibleString = { "VisibleString", diff --git a/src/icspacket/include/skeletons/asn_application.c b/src/icspacket/include/skeletons/asn_application.c index bf2280b6..08931bd4 100644 --- a/src/icspacket/include/skeletons/asn_application.c +++ b/src/icspacket/include/skeletons/asn_application.c @@ -5,6 +5,10 @@ #include #include #include +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +#include +#include +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ static asn_enc_rval_t asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx, enum asn_transfer_syntax syntax, @@ -460,9 +464,32 @@ static asn_enc_rval_t asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx, } break; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ - default: - errno = ENOENT; + +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + case ATS_CBOR: + if(td->op->cbor_encoder) { + er = cbor_encode(td, sptr, callback, callback_key); + if(er.encoded == -1) { + if(er.failed_type && er.failed_type->op->cbor_encoder) { + errno = EBADF; /* Structure has incorrect form. */ + } else { + errno = ENOENT; /* CBOR is not defined for this type. */ + } + } + } else { + errno = ENOENT; /* Transfer syntax is not defined for this type. */ ASN__ENCODE_FAILED; + } + break; +#else + case ATS_CBOR: + errno = ENOENT; /* CBOR is not defined. */ + ASN__ENCODE_FAILED; + break; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ + default: + errno = ENOENT; + ASN__ENCODE_FAILED; } return er; @@ -551,8 +578,16 @@ asn_dec_rval_t asn_decode(const asn_codec_ctx_t *opt_codec_ctx, #if !defined(ASN_DISABLE_JER_SUPPORT) return jer_decode(opt_codec_ctx, td, sptr, buffer, size); #else - errno = ENOENT; - ASN__DECODE_FAILED; -#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + + case ATS_CBOR: +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + return cbor_decode(opt_codec_ctx, td, sptr, buffer, size); +#else + errno = ENOENT; + ASN__DECODE_FAILED; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ } } diff --git a/src/icspacket/include/skeletons/asn_application.h b/src/icspacket/include/skeletons/asn_application.h index d5490daf..674b4978 100644 --- a/src/icspacket/include/skeletons/asn_application.h +++ b/src/icspacket/include/skeletons/asn_application.h @@ -68,6 +68,11 @@ enum asn_transfer_syntax { */ ATS_JER, ATS_JER_MINIFIED, + /* + * RFC 7049 (obsoleted by RFC 8949) / RFC 8949: + * CBOR: Concise Binary Object Representation. + */ + ATS_CBOR, }; typedef enum asn_transfer_syntax e_asn_transfer_syntax_t; diff --git a/src/icspacket/include/skeletons/asn_codecs.h b/src/icspacket/include/skeletons/asn_codecs.h index 6fd0452a..43d0f4f0 100644 --- a/src/icspacket/include/skeletons/asn_codecs.h +++ b/src/icspacket/include/skeletons/asn_codecs.h @@ -21,18 +21,33 @@ struct asn_TYPE_descriptor_s; /* Forward declaration */ * xer_decode() and uper_decode() functions instead. */ typedef struct asn_codec_ctx_s { - /* - * Limit the decoder routines to use no (much) more stack than a given - * number of bytes. Most of decoders are stack-based, and this - * would protect against stack overflows if the number of nested - * encodings is high. - * The OCTET STRING, BIT STRING and ANY BER decoders are heap-based, - * and are safe from this kind of overflow. - * A value from getrlimit(RLIMIT_STACK) may be used to initialize - * this variable. Be careful in multithreaded environments, as the - * stack size is rather limited. - */ - size_t max_stack_size; /* 0 disables stack bounds checking */ + /* + * Limit the decoder routines to use no (much) more stack than a given + * number of bytes. Most of decoders are stack-based, and this + * would protect against stack overflows if the number of nested + * encodings is high. + * The OCTET STRING, BIT STRING and ANY BER decoders are heap-based, + * and are safe from this kind of overflow. + * A value from getrlimit(RLIMIT_STACK) may be used to initialize + * this variable. Be careful in multithreaded environments, as the + * stack size is rather limited. + */ + size_t max_stack_size; /* 0 disables stack bounds checking */ + + /* + * Decoder validation flags. Used by PER/UPER decoders to control + * canonical vs basic decoding behavior. + */ + unsigned int uper_canonical:1; /* Enable canonical UPER validation */ + unsigned int uper_canonical_lenient:1; /* Enable lenient canonical validation for interoperability */ + + /* + * Partial decoding support. When enabled, the decoder will preserve + * partially decoded structures on failure instead of freeing them. + * This allows inspection of what was successfully decoded before + * the error occurred. + */ + unsigned int preserve_partial_decoding:1; } asn_codec_ctx_t; /* diff --git a/src/icspacket/include/skeletons/asn_codecs_prim_jer.c b/src/icspacket/include/skeletons/asn_codecs_prim_jer.c index 45275bf4..b98fb8e9 100644 --- a/src/icspacket/include/skeletons/asn_codecs_prim_jer.c +++ b/src/icspacket/include/skeletons/asn_codecs_prim_jer.c @@ -22,8 +22,8 @@ struct jdp_arg_s { * tags (, , etc), the primitive decoder must * be supplied with such tags to parse them as needed. */ -static int jer_decode__unexpected_tag(void *key, const void *chunk_buf, - size_t chunk_size) { +static int +jer_decode__unexpected_tag(void *key, const void *chunk_buf, size_t chunk_size) { struct jdp_arg_s *arg = (struct jdp_arg_s *)key; enum jer_pbd_rval bret; @@ -34,35 +34,37 @@ static int jer_decode__unexpected_tag(void *key, const void *chunk_buf, /* * Decoding was performed once already. Prohibit doing it again. - */ - if (arg->decoded_something) return -1; - - bret = arg->prim_body_decoder(arg->type_descriptor, arg->struct_key, - chunk_buf, chunk_size); - switch (bret) { - case JPBD_SYSTEM_FAILURE: - case JPBD_DECODER_LIMIT: - case JPBD_BROKEN_ENCODING: - break; - case JPBD_BODY_CONSUMED: - /* Tag decoded successfully */ - arg->decoded_something = 1; - /* Fall through */ - case JPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ - return 0; + */ + if(arg->decoded_something) + return -1; + + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case JPBD_SYSTEM_FAILURE: + case JPBD_DECODER_LIMIT: + case JPBD_BROKEN_ENCODING: + break; + case JPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case JPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return 0; } return -1; } -static ssize_t jer_decode__primitive_body(void *key, const void *chunk_buf, - size_t chunk_size, int have_more) { +static ssize_t +jer_decode__primitive_body(void *key, const void *chunk_buf, size_t chunk_size, int have_more) { struct jdp_arg_s *arg = (struct jdp_arg_s *)key; enum jer_pbd_rval bret; size_t lead_wsp_size; - if (arg->decoded_something) { - if (jer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { + if(arg->decoded_something) { + if(jer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { /* * Example: * "123 " @@ -76,7 +78,7 @@ static ssize_t jer_decode__primitive_body(void *key, const void *chunk_buf, return -1; } - if (!have_more) { + if(!have_more) { /* * If we've received something like "1", we can't really * tell whether it is really `1` or `123`, until we know @@ -90,32 +92,34 @@ static ssize_t jer_decode__primitive_body(void *key, const void *chunk_buf, } lead_wsp_size = jer_whitespace_span(chunk_buf, chunk_size); - chunk_buf = - (chunk_buf == NULL) ? NULL : ((const char *)chunk_buf + lead_wsp_size); + chunk_buf = (chunk_buf == NULL)? NULL : ((const char *)chunk_buf + lead_wsp_size); chunk_size -= lead_wsp_size; - bret = arg->prim_body_decoder(arg->type_descriptor, arg->struct_key, - chunk_buf, chunk_size); - switch (bret) { - case JPBD_SYSTEM_FAILURE: - case JPBD_DECODER_LIMIT: - case JPBD_BROKEN_ENCODING: - break; - case JPBD_BODY_CONSUMED: - /* Tag decoded successfully */ - arg->decoded_something = 1; - /* Fall through */ - case JPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ - return lead_wsp_size + chunk_size; + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case JPBD_SYSTEM_FAILURE: + case JPBD_DECODER_LIMIT: + case JPBD_BROKEN_ENCODING: + break; + case JPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case JPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return lead_wsp_size + chunk_size; } return -1; } -asn_dec_rval_t jer_decode_primitive( - const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, - void **sptr, size_t struct_size, const void *buf_ptr, size_t size, - jer_primitive_body_decoder_f *prim_body_decoder) { +asn_dec_rval_t +jer_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + size_t struct_size, + const void *buf_ptr, size_t size, + jer_primitive_body_decoder_f *prim_body_decoder) { asn_struct_ctx_t s_ctx; struct jdp_arg_s s_arg; asn_dec_rval_t rc; @@ -123,9 +127,9 @@ asn_dec_rval_t jer_decode_primitive( /* * Create the structure if does not exist. */ - if (!*sptr) { + if(!*sptr) { *sptr = CALLOC(1, struct_size); - if (!*sptr) ASN__DECODE_FAILED; + if(!*sptr) ASN__DECODE_FAILED; } memset(&s_ctx, 0, sizeof(s_ctx)); @@ -135,44 +139,45 @@ asn_dec_rval_t jer_decode_primitive( s_arg.decoded_something = 0; s_arg.want_more = 0; - rc = jer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, buf_ptr, size, + rc = jer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, + buf_ptr, size, jer_decode__unexpected_tag, jer_decode__primitive_body); - switch (rc.code) { - case RC_OK: - if (!s_arg.decoded_something) { - char ch; - ASN_DEBUG( - "Primitive body is not recognized, " - "supplying empty one"); - /* - * Decoding opportunity has come and gone. - * Where's the result? - * Try to feed with empty body, see if it eats it. - */ - if (prim_body_decoder(s_arg.type_descriptor, s_arg.struct_key, - &ch, 0) != JPBD_BODY_CONSUMED) { - /* - * This decoder does not like empty stuff. - */ - ASN__DECODE_FAILED; - } - } - break; - case RC_WMORE: + switch(rc.code) { + case RC_OK: + if(!s_arg.decoded_something) { + char ch = '\0'; + ASN_DEBUG("Primitive body is not recognized, " + "supplying empty one"); /* - * Redo the whole thing later. - * We don't have a context to save intermediate parsing state. + * Decoding opportunity has come and gone. + * Where's the result? + * Try to feed with empty body, see if it eats it. */ - rc.consumed = 0; - break; - case RC_FAIL: - rc.consumed = 0; - if (s_arg.want_more) - rc.code = RC_WMORE; - else + if(prim_body_decoder(s_arg.type_descriptor, + s_arg.struct_key, &ch, 0) + != JPBD_BODY_CONSUMED) { + /* + * This decoder does not like empty stuff. + */ ASN__DECODE_FAILED; - break; + } + } + break; + case RC_WMORE: + /* + * Redo the whole thing later. + * We don't have a context to save intermediate parsing state. + */ + rc.consumed = 0; + break; + case RC_FAIL: + rc.consumed = 0; + if(s_arg.want_more) + rc.code = RC_WMORE; + else + ASN__DECODE_FAILED; + break; } return rc; } diff --git a/src/icspacket/include/skeletons/asn_codecs_prim_xer.c b/src/icspacket/include/skeletons/asn_codecs_prim_xer.c index 8111a395..7f2c2aa0 100644 --- a/src/icspacket/include/skeletons/asn_codecs_prim_xer.c +++ b/src/icspacket/include/skeletons/asn_codecs_prim_xer.c @@ -22,8 +22,8 @@ struct xdp_arg_s { * tags (, , etc), the primitive decoder must * be supplied with such tags to parse them as needed. */ -static int xer_decode__unexpected_tag(void *key, const void *chunk_buf, - size_t chunk_size) { +static int +xer_decode__unexpected_tag(void *key, const void *chunk_buf, size_t chunk_size) { struct xdp_arg_s *arg = (struct xdp_arg_s *)key; enum xer_pbd_rval bret; @@ -34,35 +34,37 @@ static int xer_decode__unexpected_tag(void *key, const void *chunk_buf, /* * Decoding was performed once already. Prohibit doing it again. - */ - if (arg->decoded_something) return -1; - - bret = arg->prim_body_decoder(arg->type_descriptor, arg->struct_key, - chunk_buf, chunk_size); - switch (bret) { - case XPBD_SYSTEM_FAILURE: - case XPBD_DECODER_LIMIT: - case XPBD_BROKEN_ENCODING: - break; - case XPBD_BODY_CONSUMED: - /* Tag decoded successfully */ - arg->decoded_something = 1; - /* Fall through */ - case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ - return 0; + */ + if(arg->decoded_something) + return -1; + + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case XPBD_SYSTEM_FAILURE: + case XPBD_DECODER_LIMIT: + case XPBD_BROKEN_ENCODING: + break; + case XPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return 0; } return -1; } -static ssize_t xer_decode__primitive_body(void *key, const void *chunk_buf, - size_t chunk_size, int have_more) { +static ssize_t +xer_decode__primitive_body(void *key, const void *chunk_buf, size_t chunk_size, int have_more) { struct xdp_arg_s *arg = (struct xdp_arg_s *)key; enum xer_pbd_rval bret; size_t lead_wsp_size; - if (arg->decoded_something) { - if (xer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { + if(arg->decoded_something) { + if(xer_whitespace_span(chunk_buf, chunk_size) == chunk_size) { /* * Example: * "123 " @@ -76,7 +78,7 @@ static ssize_t xer_decode__primitive_body(void *key, const void *chunk_buf, return -1; } - if (!have_more) { + if(!have_more) { /* * If we've received something like "1", we can't really * tell whether it is really `1` or `123`, until we know @@ -90,32 +92,34 @@ static ssize_t xer_decode__primitive_body(void *key, const void *chunk_buf, } lead_wsp_size = xer_whitespace_span(chunk_buf, chunk_size); - chunk_buf = - (chunk_buf == NULL) ? NULL : ((const char *)chunk_buf + lead_wsp_size); + chunk_buf = (chunk_buf == NULL)? NULL : ((const char *)chunk_buf + lead_wsp_size); chunk_size -= lead_wsp_size; - bret = arg->prim_body_decoder(arg->type_descriptor, arg->struct_key, - chunk_buf, chunk_size); - switch (bret) { - case XPBD_SYSTEM_FAILURE: - case XPBD_DECODER_LIMIT: - case XPBD_BROKEN_ENCODING: - break; - case XPBD_BODY_CONSUMED: - /* Tag decoded successfully */ - arg->decoded_something = 1; - /* Fall through */ - case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ - return lead_wsp_size + chunk_size; + bret = arg->prim_body_decoder(arg->type_descriptor, + arg->struct_key, chunk_buf, + chunk_size); + switch(bret) { + case XPBD_SYSTEM_FAILURE: + case XPBD_DECODER_LIMIT: + case XPBD_BROKEN_ENCODING: + break; + case XPBD_BODY_CONSUMED: + /* Tag decoded successfully */ + arg->decoded_something = 1; + /* Fall through */ + case XPBD_NOT_BODY_IGNORE: /* Safe to proceed further */ + return lead_wsp_size + chunk_size; } return -1; } -asn_dec_rval_t xer_decode_primitive( - const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, - void **sptr, size_t struct_size, const char *opt_mname, const void *buf_ptr, - size_t size, xer_primitive_body_decoder_f *prim_body_decoder) { +asn_dec_rval_t +xer_decode_primitive(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **sptr, + size_t struct_size, const char *opt_mname, + const void *buf_ptr, size_t size, + xer_primitive_body_decoder_f *prim_body_decoder) { const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; asn_struct_ctx_t s_ctx; struct xdp_arg_s s_arg; @@ -124,9 +128,9 @@ asn_dec_rval_t xer_decode_primitive( /* * Create the structure if does not exist. */ - if (!*sptr) { + if(!*sptr) { *sptr = CALLOC(1, struct_size); - if (!*sptr) ASN__DECODE_FAILED; + if(!*sptr) ASN__DECODE_FAILED; } memset(&s_ctx, 0, sizeof(s_ctx)); @@ -136,44 +140,45 @@ asn_dec_rval_t xer_decode_primitive( s_arg.decoded_something = 0; s_arg.want_more = 0; - rc = xer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, xml_tag, buf_ptr, - size, xer_decode__unexpected_tag, + rc = xer_decode_general(opt_codec_ctx, &s_ctx, &s_arg, + xml_tag, buf_ptr, size, + xer_decode__unexpected_tag, xer_decode__primitive_body); - switch (rc.code) { - case RC_OK: - if (!s_arg.decoded_something) { - char ch; - ASN_DEBUG( - "Primitive body is not recognized, " - "supplying empty one"); - /* - * Decoding opportunity has come and gone. - * Where's the result? - * Try to feed with empty body, see if it eats it. - */ - if (prim_body_decoder(s_arg.type_descriptor, s_arg.struct_key, - &ch, 0) != XPBD_BODY_CONSUMED) { - /* - * This decoder does not like empty stuff. - */ - ASN__DECODE_FAILED; - } - } - break; - case RC_WMORE: + switch(rc.code) { + case RC_OK: + if(!s_arg.decoded_something) { + char ch = '\0'; + ASN_DEBUG("Primitive body is not recognized, " + "supplying empty one"); /* - * Redo the whole thing later. - * We don't have a context to save intermediate parsing state. + * Decoding opportunity has come and gone. + * Where's the result? + * Try to feed with empty body, see if it eats it. */ - rc.consumed = 0; - break; - case RC_FAIL: - rc.consumed = 0; - if (s_arg.want_more) - rc.code = RC_WMORE; - else + if(prim_body_decoder(s_arg.type_descriptor, + s_arg.struct_key, &ch, 0) + != XPBD_BODY_CONSUMED) { + /* + * This decoder does not like empty stuff. + */ ASN__DECODE_FAILED; - break; + } + } + break; + case RC_WMORE: + /* + * Redo the whole thing later. + * We don't have a context to save intermediate parsing state. + */ + rc.consumed = 0; + break; + case RC_FAIL: + rc.consumed = 0; + if(s_arg.want_more) + rc.code = RC_WMORE; + else + ASN__DECODE_FAILED; + break; } return rc; } diff --git a/src/icspacket/include/skeletons/asn_constraint_value.c b/src/icspacket/include/skeletons/asn_constraint_value.c new file mode 100644 index 00000000..f71ffa5c --- /dev/null +++ b/src/icspacket/include/skeletons/asn_constraint_value.c @@ -0,0 +1,327 @@ +/*- + * Runtime helpers for asn_cval_t constraint bounds. See asn_constraint_value.h. + */ +#include +#include +#include + +/* ===== canonical two's-complement content-octet comparison ===== */ + +/* A bound's content octets are negative iff the top bit of the first octet + * is set (and there is at least one octet). */ +static int +acv_bytes_negative(const uint8_t *buf, size_t size) { + return (size > 0) && (buf[0] & 0x80); +} + +/* + * Defensive canonicalization: return a pointer/length pair stripped of + * redundant leading sign octets. Operates on the caller's buffer (no copy). + */ +static void +acv_bytes_canonical(const uint8_t *buf, size_t size, + const uint8_t **out_buf, size_t *out_size) { + if(size == 0) { + *out_buf = buf; + *out_size = 0; + return; + } + if(buf[0] & 0x80) { + /* negative: drop leading 0xFF while next octet keeps the sign bit */ + while(size > 1 && buf[0] == 0xFF && (buf[1] & 0x80)) { + buf++; + size--; + } + } else { + /* non-negative: drop leading 0x00 while next octet lacks the sign bit */ + while(size > 1 && buf[0] == 0x00 && !(buf[1] & 0x80)) { + buf++; + size--; + } + } + *out_buf = buf; + *out_size = size; +} + +/* Compare two canonical INTEGER content-octet arrays as signed integers. */ +static int +acv_cmp_bytes(const uint8_t *ab, size_t as, const uint8_t *bb, size_t bs) { + int an, bn; + acv_bytes_canonical(ab, as, &ab, &as); + acv_bytes_canonical(bb, bs, &bb, &bs); + an = acv_bytes_negative(ab, as); + bn = acv_bytes_negative(bb, bs); + if(an != bn) + return an ? -1 : 1; /* negative < non-negative */ + if(!an) { + /* both non-negative: longer canonical form is larger */ + if(as != bs) return as < bs ? -1 : 1; + return memcmp(ab, bb, as); + } else { + /* both negative: longer canonical form is more negative (smaller) */ + if(as != bs) return as < bs ? 1 : -1; + /* same width two's complement: unsigned order == signed order */ + return memcmp(ab, bb, as); + } +} + +/* Materialize a scalar as canonical content octets into an INTEGER_t. */ +static int +acv_sint_to_INTEGER(intmax_t v, INTEGER_t *tmp) { + memset(tmp, 0, sizeof(*tmp)); + return asn_imax2INTEGER(tmp, v); +} +static int +acv_uint_to_INTEGER(uintmax_t v, INTEGER_t *tmp) { + memset(tmp, 0, sizeof(*tmp)); + return asn_umax2INTEGER(tmp, v); +} + +/* Compare a materialized scalar (as INTEGER_t bytes) against cval bytes. */ +static int +acv_cmp_scalarbytes_vs_cvalbytes(const INTEGER_t *s, const asn_cval_t *b) { + return acv_cmp_bytes(s->buf, s->size, b->value.b.buf, b->value.b.size); +} + +/* ===== scalar vs cval ===== */ + +int +asn_cval_cmp_uint(uintmax_t a, const asn_cval_t *b) { + switch(b->kind) { + case ACV_UINT: + if(a < b->value.u) return -1; + if(a > b->value.u) return 1; + return 0; + case ACV_SINT: + if(b->value.s < 0) return 1; /* a >= 0 > b */ + if(a < (uintmax_t)b->value.s) return -1; + if(a > (uintmax_t)b->value.s) return 1; + return 0; + case ACV_INTEGER_BYTES: { + INTEGER_t tmp; + int r; + if(acv_uint_to_INTEGER(a, &tmp) != 0) return 0; + r = acv_cmp_scalarbytes_vs_cvalbytes(&tmp, b); + if(tmp.buf) FREEMEM(tmp.buf); + return r; + } + case ACV_ABSENT: + default: + return 0; + } +} + +int +asn_cval_cmp_sint(intmax_t a, const asn_cval_t *b) { + switch(b->kind) { + case ACV_SINT: + if(a < b->value.s) return -1; + if(a > b->value.s) return 1; + return 0; + case ACV_UINT: + if(a < 0) return -1; /* a < 0 <= b */ + if((uintmax_t)a < b->value.u) return -1; + if((uintmax_t)a > b->value.u) return 1; + return 0; + case ACV_INTEGER_BYTES: { + INTEGER_t tmp; + int r; + if(acv_sint_to_INTEGER(a, &tmp) != 0) return 0; + r = acv_cmp_scalarbytes_vs_cvalbytes(&tmp, b); + if(tmp.buf) FREEMEM(tmp.buf); + return r; + } + case ACV_ABSENT: + default: + return 0; + } +} + +/* Convert a cval scalar into canonical content octets in *tmp. */ +static int +acv_to_INTEGER(const asn_cval_t *v, INTEGER_t *tmp, int *materialized) { + *materialized = 0; + switch(v->kind) { + case ACV_SINT: + if(acv_sint_to_INTEGER(v->value.s, tmp) != 0) return -1; + *materialized = 1; + return 0; + case ACV_UINT: + if(acv_uint_to_INTEGER(v->value.u, tmp) != 0) return -1; + *materialized = 1; + return 0; + case ACV_INTEGER_BYTES: { + /* Copy the read-only bytes into an owned buffer. + * Aliasing v->value.b.buf (const uint8_t *) directly into tmp->buf + * (uint8_t *) would drop const. A copy is correct and lets the + * existing materialized=1 cleanup path (FREEMEM) handle it. */ + size_t sz = v->value.b.size; + tmp->buf = (uint8_t *)MALLOC(sz ? sz : 1); + if(!tmp->buf) return -1; + memcpy(tmp->buf, v->value.b.buf, sz); + tmp->size = sz; + *materialized = 1; + return 0; + } + case ACV_ABSENT: + default: + return -1; + } +} + +int +asn_cval_cmp(const asn_cval_t *a, const asn_cval_t *b) { + /* Fast scalar paths */ + if(a->kind == ACV_SINT) return asn_cval_cmp_sint(a->value.s, b); + if(a->kind == ACV_UINT) return asn_cval_cmp_uint(a->value.u, b); + if(a->kind == ACV_INTEGER_BYTES) { + INTEGER_t tb; + int mat = 0, r; + if(b->kind == ACV_INTEGER_BYTES) + return acv_cmp_bytes(a->value.b.buf, a->value.b.size, + b->value.b.buf, b->value.b.size); + if(acv_to_INTEGER(b, &tb, &mat) != 0) return 0; + r = acv_cmp_bytes(a->value.b.buf, a->value.b.size, tb.buf, tb.size); + if(mat && tb.buf) FREEMEM(tb.buf); + return r; + } + return 0; +} + +/* ===== INTEGER_t vs cval ===== */ + +int +asn_INTEGER_cmp_cval(const INTEGER_t *a, const asn_cval_t *b, + int a_is_unsigned) { + /* Try the scalar fast paths first. */ + if(a_is_unsigned) { + uintmax_t uv; + if(asn_INTEGER2umax(a, &uv) == 0) + return asn_cval_cmp_uint(uv, b); + } else { + intmax_t sv; + if(asn_INTEGER2imax(a, &sv) == 0) + return asn_cval_cmp_sint(sv, b); + } + /* Value does not fit a native scalar: compare canonical octets. */ + { + INTEGER_t tb; + int mat = 0, r; + if(b->kind == ACV_INTEGER_BYTES) { + return acv_cmp_bytes(a->buf, a->size, + b->value.b.buf, b->value.b.size); + } + if(acv_to_INTEGER(b, &tb, &mat) != 0) return 0; + r = acv_cmp_bytes(a->buf, a->size, tb.buf, tb.size); + if(mat && tb.buf) FREEMEM(tb.buf); + return r; + } +} + +/* ===== range checks ===== */ + +int +asn_check_integer_range_sint(intmax_t value, + const asn_cval_t *lb, const asn_cval_t *ub) { + if(lb && lb->kind != ACV_ABSENT && asn_cval_cmp_sint(value, lb) < 0) + return -1; + if(ub && ub->kind != ACV_ABSENT && asn_cval_cmp_sint(value, ub) > 0) + return -1; + return 0; +} + +int +asn_check_integer_range_uint(uintmax_t value, + const asn_cval_t *lb, const asn_cval_t *ub) { + if(lb && lb->kind != ACV_ABSENT && asn_cval_cmp_uint(value, lb) < 0) + return -1; + if(ub && ub->kind != ACV_ABSENT && asn_cval_cmp_uint(value, ub) > 0) + return -1; + return 0; +} + +int +asn_check_INTEGER_range(const INTEGER_t *value, + const asn_cval_t *lb, const asn_cval_t *ub, + int value_is_unsigned) { + if(lb && lb->kind != ACV_ABSENT + && asn_INTEGER_cmp_cval(value, lb, value_is_unsigned) < 0) + return -1; + if(ub && ub->kind != ACV_ABSENT + && asn_INTEGER_cmp_cval(value, ub, value_is_unsigned) > 0) + return -1; + return 0; +} + +/* ===== v2 range arithmetic ===== */ + +/* Extract a scalar bound as a uintmax_t offset from 0; returns 0 on success. + * For ACV_INTEGER_BYTES (beyond uintmax) returns -1 (caller treats as big). */ +static int +acv_as_imax(const asn_cval_t *v, intmax_t *out) { + switch(v->kind) { + case ACV_SINT: *out = v->value.s; return 0; + case ACV_UINT: + if(v->value.u > (uintmax_t)INTMAX_MAX) return -1; + *out = (intmax_t)v->value.u; return 0; + default: return -1; + } +} + +int +asn_cval_compute_range(const asn_cval_t *lb, const asn_cval_t *ub, + asn_range_info_t *out) { + intmax_t l, u; + uintmax_t range_minus_1; + int bits; + + if(!out) return -1; + out->kind = ASN_RANGE_UNCONSTRAINED; + out->u64_range = 0; + out->range_bits = -1; + out->effective_bits = -1; + + if(!lb || !ub || lb->kind == ACV_ABSENT || ub->kind == ACV_ABSENT) + return -1; /* open range: unconstrained for this helper */ + + /* Big bounds are out of scope for the native fast path. */ + if(lb->kind == ACV_INTEGER_BYTES || ub->kind == ACV_INTEGER_BYTES) { + out->kind = ASN_RANGE_BIG; + return -1; + } + + /* + * Compute (ub - lb) as an unsigned magnitude without overflow. Both + * bounds fit intmax_t here (UINT bounds above INTMAX_MAX are rare for + * native ranges; if encountered, fall back to big). + */ + if(ub->kind == ACV_UINT && lb->kind == ACV_UINT) { + if(ub->value.u < lb->value.u) return -1; + range_minus_1 = ub->value.u - lb->value.u; + } else if(acv_as_imax(lb, &l) == 0 && acv_as_imax(ub, &u) == 0) { + if(u < l) return -1; + /* u - l fits uintmax_t even across the sign boundary */ + range_minus_1 = (uintmax_t)u - (uintmax_t)l; + } else { + out->kind = ASN_RANGE_BIG; + return -1; + } + + /* range = range_minus_1 + 1; guard the all-ones case. */ + if(range_minus_1 == UINTMAX_MAX) { + out->kind = ASN_RANGE_BIG; /* range == 2^64, not representable in u64 */ + return -1; + } + out->u64_range = (uint64_t)(range_minus_1 + 1); + out->kind = ASN_RANGE_NATIVE_U64; + + /* bits = ceil(log2(range)) computed from range_minus_1 */ + bits = 0; + { + uintmax_t v = range_minus_1; /* values 0..range-1 need this many bits */ + while(v) { bits++; v >>= 1; } + } + out->range_bits = bits; + out->effective_bits = bits; + return 0; +} diff --git a/src/icspacket/include/skeletons/asn_constraint_value.h b/src/icspacket/include/skeletons/asn_constraint_value.h new file mode 100644 index 00000000..4e60d013 --- /dev/null +++ b/src/icspacket/include/skeletons/asn_constraint_value.h @@ -0,0 +1,128 @@ +/*- + * Tagged constraint-value representation for ASN.1 INTEGER bounds. + * + * ASN.1 INTEGER constraint bounds may exceed the range of any signed scalar + * (consider 18446744073709551615 == UINT64_MAX, or values beyond 2^64). + * Storing a bound only as a signed long/intmax_t loses the distinction + * between UINT64_MAX and -1. This type carries each bound together with the + * domain it must be interpreted in: + * + * ACV_ABSENT - open/unconstrained side (MIN or MAX). + * ACV_SINT - fits intmax_t, interpreted as signed. + * ACV_UINT - non-negative, fits uintmax_t (may exceed INTMAX_MAX). + * ACV_INTEGER_BYTES - exceeds native scalars; stored as canonical ASN.1 + * INTEGER two's-complement content octets. + * + * Generated constraint descriptors use static storage of this type; no heap + * allocation is required for the bounds themselves. Runtime helpers may + * materialize a temporary INTEGER_t only when a comparison needs it. + */ +#ifndef ASN_CONSTRAINT_VALUE_H +#define ASN_CONSTRAINT_VALUE_H + +#include /* INTEGER_t and conversion helpers */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum asn_cval_kind_e { + ACV_ABSENT = 0, + ACV_SINT, + ACV_UINT, + ACV_INTEGER_BYTES +} asn_cval_kind_e; + +typedef struct asn_cval_bytes_s { + const uint8_t *buf; /* canonical INTEGER content octets */ + size_t size; +} asn_cval_bytes_t; + +typedef struct asn_cval_s { + asn_cval_kind_e kind; + union { + intmax_t s; + uintmax_t u; + asn_cval_bytes_t b; + } value; +} asn_cval_t; + +/* + * Three-way comparisons. Return convention: + * <0 : left < right + * 0 : left == right + * >0 : left > right + * ACV_ABSENT must not be passed to these comparison helpers; the range-check + * helpers below handle absent (open) bounds. + */ +int asn_cval_cmp(const asn_cval_t *a, const asn_cval_t *b); +int asn_cval_cmp_sint(intmax_t a, const asn_cval_t *b); +int asn_cval_cmp_uint(uintmax_t a, const asn_cval_t *b); + +/* + * Compare an INTEGER_t against a constraint value. a_is_unsigned indicates + * that the INTEGER_t encodes a non-negative value whose magnitude may exceed + * INTMAX_MAX (e.g. a uint64_t-backed field round-tripped through INTEGER_t). + */ +int asn_INTEGER_cmp_cval(const INTEGER_t *a, const asn_cval_t *b, + int a_is_unsigned); + +/* + * Range membership checks. An ACV_ABSENT bound denotes an open side. + * Return 0 if value is within [lb, ub], non-zero (-1) if out of range. + */ +int asn_check_integer_range_sint(intmax_t value, + const asn_cval_t *lb, const asn_cval_t *ub); +int asn_check_integer_range_uint(uintmax_t value, + const asn_cval_t *lb, const asn_cval_t *ub); +int asn_check_INTEGER_range(const INTEGER_t *value, + const asn_cval_t *lb, const asn_cval_t *ub, + int value_is_unsigned); + +/* =================================================================== + * v2 integer constraint descriptor (additive; ABI-compatible). + * + * The legacy asn_per_constraint_t stores bounds as intmax_t, which cannot + * represent UINT64_MAX (it aliases to -1) or values beyond 64 bits. This + * substructure carries bounds as asn_cval_t so PER/OER descriptors can + * describe unsigned-native and oversized ranges without wraparound. It is + * defined here as shared infrastructure; encode/decode paths may adopt it + * incrementally alongside the existing asn_per_constraint_t. + * =================================================================== */ +typedef struct asn_integer_constraint_s { + asn_cval_t lower_bound; + asn_cval_t upper_bound; + int range_bits; /* ceil(log2(range)); -1 if not applicable */ + int effective_bits; /* effective per-element bits; -1 if N/A */ + unsigned range_is_native:1; /* range fits uint64_t */ + unsigned range_is_big:1; /* range exceeds uint64_t */ +} asn_integer_constraint_t; + +typedef enum asn_range_kind_e { + ASN_RANGE_UNCONSTRAINED, + ASN_RANGE_NATIVE_U64, + ASN_RANGE_BIG +} asn_range_kind_e; + +typedef struct asn_range_info_s { + asn_range_kind_e kind; + uint64_t u64_range; /* valid when kind == ASN_RANGE_NATIVE_U64 */ + int range_bits; + int effective_bits; +} asn_range_info_t; + +/* + * Compute range = (upper_bound - lower_bound) + 1 and the number of bits + * required to encode it, without overflow, for scalar bounds. This is the + * safe PER/OER range arithmetic for the common (native) case: it succeeds + * (returns 0) when both bounds are concrete and the resulting range fits + * uint64_t, filling *out; otherwise it reports ASN_RANGE_BIG / returns -1. + */ +int asn_cval_compute_range(const asn_cval_t *lb, const asn_cval_t *ub, + asn_range_info_t *out); + +#ifdef __cplusplus +} +#endif + +#endif /* ASN_CONSTRAINT_VALUE_H */ diff --git a/src/icspacket/include/skeletons/asn_internal.c b/src/icspacket/include/skeletons/asn_internal.c index b3a1eb50..09214657 100644 --- a/src/icspacket/include/skeletons/asn_internal.c +++ b/src/icspacket/include/skeletons/asn_internal.c @@ -1,11 +1,57 @@ #include -#ifdef ASN_EMIT_DEBUG +#ifdef ASN__DEBUG_INDENT_NEEDS_DEFINITION +/* + * The single definition of the debugging indentation level, shared by all + * units which refer to it via "extern" in asn_internal.h. The macro is set + * by asn_internal.h under exactly the same configuration which declares the + * variable (ASN_EMIT_DEBUG=1, C99, !ASN_THREAD_SAFE, no ASN_DEBUG override), + * so the definition can never go out of sync with the declaration. + */ int asn_debug_indent = 0; #endif -ssize_t asn__format_to_callback(int (*cb)(const void *, size_t, void *key), - void *key, const char *fmt, ...) { +/* + * Thread-local encoding recursion depth counters for preventing stack overflow. + * Separate counters per format allow independent depth tracking. + */ +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) +/* C11 thread support */ +thread_local int asn1_encoding_depth = 0; /* BER/DER */ +thread_local int uper_encoding_depth = 0; /* UPER */ +thread_local int aper_encoding_depth = 0; /* APER */ +thread_local int oer_encoding_depth = 0; /* OER */ +thread_local int xer_encoding_depth = 0; /* XER */ +thread_local int jer_encoding_depth = 0; /* JER */ +#elif defined(__GNUC__) || defined(__clang__) +/* GCC/Clang thread-local extension */ +__thread int asn1_encoding_depth = 0; /* BER/DER */ +__thread int uper_encoding_depth = 0; /* UPER */ +__thread int aper_encoding_depth = 0; /* APER */ +__thread int oer_encoding_depth = 0; /* OER */ +__thread int xer_encoding_depth = 0; /* XER */ +__thread int jer_encoding_depth = 0; /* JER */ +#elif defined(_MSC_VER) +/* MSVC thread-local */ +__declspec(thread) int asn1_encoding_depth = 0; /* BER/DER */ +__declspec(thread) int uper_encoding_depth = 0; /* UPER */ +__declspec(thread) int aper_encoding_depth = 0; /* APER */ +__declspec(thread) int oer_encoding_depth = 0; /* OER */ +__declspec(thread) int xer_encoding_depth = 0; /* XER */ +__declspec(thread) int jer_encoding_depth = 0; /* JER */ +#else +/* No thread-local support, use regular variable (not thread-safe) */ +int asn1_encoding_depth = 0; /* BER/DER */ +int uper_encoding_depth = 0; /* UPER */ +int aper_encoding_depth = 0; /* APER */ +int oer_encoding_depth = 0; /* OER */ +int xer_encoding_depth = 0; /* XER */ +int jer_encoding_depth = 0; /* JER */ +#endif + +ssize_t +asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key, + const char *fmt, ...) { char scratch[64]; char *buf = scratch; size_t buf_size = sizeof(scratch); diff --git a/src/icspacket/include/skeletons/asn_internal.h b/src/icspacket/include/skeletons/asn_internal.h index 6ce35dbf..2cb3a24c 100644 --- a/src/icspacket/include/skeletons/asn_internal.h +++ b/src/icspacket/include/skeletons/asn_internal.h @@ -11,10 +11,16 @@ #define __EXTENSIONS__ /* for Sun */ #endif -#include "asn_application.h" /* Application-visible API */ +typedef enum asn_type_kind { + ASN_KIND_PRIMITIVE, + ASN_KIND_SEQUENCE, + ASN_KIND_SET, + ASN_KIND_CHOICE, + ASN_KIND_SEQUENCE_OF, + ASN_KIND_SET_OF, +} asn_type_kind_t; -#define PY_SSIZE_T_CLEAN -#include +#include "asn_application.h" /* Application-visible API */ #ifndef __NO_ASSERT_H__ /* Include assert.h only for internal use. */ #include /* for assert() macro */ @@ -37,10 +43,10 @@ extern "C" { #define ASN1C_ENVIRONMENT_VERSION 923 /* Compile-time version */ int get_asn1c_environment_version(void); /* Run-time version */ -#define CALLOC(nmemb, size) PyMem_RawCalloc(nmemb, size) -#define MALLOC(size) PyMem_RawMalloc(size) -#define REALLOC(oldptr, size) PyMem_RawRealloc(oldptr, size) -#define FREEMEM(ptr) PyMem_RawFree(ptr) +#define CALLOC(nmemb, size) calloc(nmemb, size) +#define MALLOC(size) malloc(size) +#define REALLOC(oldptr, size) realloc(oldptr, size) +#define FREEMEM(ptr) free(ptr) #define asn_debug_indent 0 #define ASN_DEBUG_INDENT_ADD(i) \ @@ -62,23 +68,21 @@ int get_asn1c_environment_version(void); /* Run-time version */ #ifdef ASN_THREAD_SAFE /* Thread safety requires sacrifice in output indentation: * Retain empty definition of ASN_DEBUG_INDENT_ADD. */ -#else /* !ASN_THREAD_SAFE */ -#undef ASN_DEBUG_INDENT_ADD -#undef asn_debug_indent -extern int asn_debug_indent; -#define ASN_DEBUG_INDENT_ADD(i) \ - do { \ - asn_debug_indent += i; \ - } while (0) -#endif /* ASN_THREAD_SAFE */ -#define ASN_DEBUG(fmt, args...) \ - do { \ - int adi = asn_debug_indent; \ - while (adi--) fprintf(stderr, " "); \ - fprintf(stderr, fmt, ##args); \ - fprintf(stderr, " (%s:%d)\n", __FILE__, __LINE__); \ - } while (0) -#else /* !C99 */ +#else /* !ASN_THREAD_SAFE */ +#undef ASN_DEBUG_INDENT_ADD +#undef asn_debug_indent +extern int asn_debug_indent; /* A single definition is in asn_internal.c */ +#define ASN__DEBUG_INDENT_NEEDS_DEFINITION 1 +#define ASN_DEBUG_INDENT_ADD(i) do { asn_debug_indent += i; } while(0) +#endif /* ASN_THREAD_SAFE */ +#define ASN_DEBUG(fmt, args...) do { \ + int adi = asn_debug_indent; \ + while(adi--) fprintf(stderr, " "); \ + fprintf(stderr, fmt, ##args); \ + fprintf(stderr, " (%s:%d)\n", \ + __FILE__, __LINE__); \ + } while(0) +#else /* !C99 */ void CC_PRINTFLIKE(1, 2) ASN_DEBUG_f(const char *fmt, ...); #define ASN_DEBUG ASN_DEBUG_f #endif /* C99 */ @@ -133,13 +137,27 @@ ssize_t CC_PRINTFLIKE(3, 4) for (tmp_i = 0; tmp_i < tmp_level; tmp_i++) ASN__CALLBACK(" ", 4); \ } while (0) -#define _i_INDENT(nl) \ - do { \ - int tmp_i; \ - if ((nl) && cb("\n", 1, app_key) < 0) return -1; \ - for (tmp_i = 0; tmp_i < ilevel; tmp_i++) \ - if (cb(" ", 4, app_key) < 0) return -1; \ - } while (0) +/* + * Check if an ASN.1 type is a structured type that outputs newlines in XER. + * Structured types (SEQUENCE, SET, CHOICE, SEQUENCE_OF, SET_OF) output + * multi-line XER content, so their closing tags need indentation. + * Primitive types output inline content, so no indentation is needed. + */ +#define ASN__IS_STRUCTURED_TYPE(elm) \ + ((elm)->type->op->kind == ASN_KIND_SEQUENCE || \ + (elm)->type->op->kind == ASN_KIND_SET || \ + (elm)->type->op->kind == ASN_KIND_CHOICE || \ + (elm)->type->op->kind == ASN_KIND_SEQUENCE_OF || \ + (elm)->type->op->kind == ASN_KIND_SET_OF) + +#define _i_INDENT(nl) do { \ + int tmp_i; \ + if((nl) && cb("\n", 1, app_key) < 0) \ + return -1; \ + for(tmp_i = 0; tmp_i < ilevel; tmp_i++) \ + if(cb(" ", 4, app_key) < 0) \ + return -1; \ + } while(0) /* * Check stack against overflow, if limit is set. @@ -163,6 +181,15 @@ ssize_t CC_PRINTFLIKE(3, 4) #define ASN__DEFAULT_STACK_MAX (30000) +/* + * Recursion depth limit for encoding/decoding to prevent stack overflow + * from circular references in ASN.1 structures. Can be overridden at + * compile time with -DASN_STACK_OVERFLOW_LIMIT= + */ +#ifndef ASN_STACK_OVERFLOW_LIMIT +#define ASN_STACK_OVERFLOW_LIMIT 30 +#endif + #if defined(ASN__SANITIZE_ENABLED) || defined(ASN_DISABLE_STACK_OVERFLOW_CHECK) static int CC_NOTUSED ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) { (void)ctx; @@ -185,7 +212,227 @@ static int CC_NOTUSED ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) { } #endif -#ifdef __cplusplus +/* +* Decoder recursion/stack depth tracking. + * Use ASN__STACK_OVERFLOW_CHECK() to detect when the decoding context + * has exhausted the allowed stack space and abort decoding to prevent + * stack overflow from deep or circular references. + */ +#define ASN__DECODER_RECURSION_DEPTH_CHECK(ctx) \ + do { \ + if(ASN__STACK_OVERFLOW_CHECK((ctx)) != 0) { \ + ASN_DEBUG("Decoding stack limit reached"); \ + } \ + } while(0) + +/* + * Encoder recursion depth tracking using thread-local storage. + * For encoders, we use a thread-local counter since they don't have ctx. + * Separate counters per format allow independent depth tracking and + * better debugging (know which format hit the limit). + */ +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) +/* C11 thread support */ +#include +extern thread_local int asn1_encoding_depth; /* BER/DER */ +extern thread_local int uper_encoding_depth; /* UPER */ +extern thread_local int aper_encoding_depth; /* APER */ +extern thread_local int oer_encoding_depth; /* OER */ +extern thread_local int xer_encoding_depth; /* XER */ +extern thread_local int jer_encoding_depth; /* JER */ +#elif defined(__GNUC__) || defined(__clang__) +/* GCC/Clang thread-local extension */ +extern __thread int asn1_encoding_depth; /* BER/DER */ +extern __thread int uper_encoding_depth; /* UPER */ +extern __thread int aper_encoding_depth; /* APER */ +extern __thread int oer_encoding_depth; /* OER */ +extern __thread int xer_encoding_depth; /* XER */ +extern __thread int jer_encoding_depth; /* JER */ +#elif defined(_MSC_VER) +/* MSVC thread-local */ +extern __declspec(thread) int asn1_encoding_depth; /* BER/DER */ +extern __declspec(thread) int uper_encoding_depth; /* UPER */ +extern __declspec(thread) int aper_encoding_depth; /* APER */ +extern __declspec(thread) int oer_encoding_depth; /* OER */ +extern __declspec(thread) int xer_encoding_depth; /* XER */ +extern __declspec(thread) int jer_encoding_depth; /* JER */ +#else +/* No thread-local support, use regular variable (not thread-safe) */ +extern int asn1_encoding_depth; /* BER/DER */ +extern int uper_encoding_depth; /* UPER */ +extern int aper_encoding_depth; /* APER */ +extern int oer_encoding_depth; /* OER */ +extern int xer_encoding_depth; /* XER */ +extern int jer_encoding_depth; /* JER */ +#endif + +/* BER/DER encoder depth tracking (already implemented) */ +#define ASN__ENCODER_RECURSION_DEPTH_INC() \ + do { \ + if(asn1_encoding_depth >= ASN_STACK_OVERFLOW_LIMIT) { \ + ASN_DEBUG("Encoding recursion depth limit exceeded"); \ + ASN__ENCODE_FAILED; \ + } \ + asn1_encoding_depth++; \ + } while(0) + +#define ASN__ENCODER_RECURSION_DEPTH_DEC() \ + do { \ + if(asn1_encoding_depth > 0) { \ + asn1_encoding_depth--; \ + } else { \ + ASN_DEBUG("BER/DER encoding depth underflow detected"); \ + } \ + } while(0) + +/* UPER encoder depth tracking */ +#define UPER_ENCODER_RECURSION_DEPTH_INC() \ + do { \ + if(uper_encoding_depth >= ASN_STACK_OVERFLOW_LIMIT) { \ + ASN_DEBUG("UPER encoding recursion depth limit exceeded"); \ + ASN__ENCODE_FAILED; \ + } \ + uper_encoding_depth++; \ + } while(0) + +#define UPER_ENCODER_RECURSION_DEPTH_DEC() \ + do { \ + if(uper_encoding_depth > 0) { \ + uper_encoding_depth--; \ + } else { \ + ASN_DEBUG("UPER encoding depth underflow detected"); \ + } \ + } while(0) + +/* APER encoder depth tracking */ +#define APER_ENCODER_RECURSION_DEPTH_INC() \ + do { \ + if(aper_encoding_depth >= ASN_STACK_OVERFLOW_LIMIT) { \ + ASN_DEBUG("APER encoding recursion depth limit exceeded"); \ + ASN__ENCODE_FAILED; \ + } \ + aper_encoding_depth++; \ + } while(0) + +#define APER_ENCODER_RECURSION_DEPTH_DEC() \ + do { \ + if(aper_encoding_depth > 0) { \ + aper_encoding_depth--; \ + } else { \ + ASN_DEBUG("APER encoding depth underflow detected"); \ + } \ + } while(0) + +/* OER encoder depth tracking */ +#define OER_ENCODER_RECURSION_DEPTH_INC() \ + do { \ + if(oer_encoding_depth >= ASN_STACK_OVERFLOW_LIMIT) { \ + ASN_DEBUG("OER encoding recursion depth limit exceeded"); \ + ASN__ENCODE_FAILED; \ + } \ + oer_encoding_depth++; \ + } while(0) + +#define OER_ENCODER_RECURSION_DEPTH_DEC() \ + do { \ + if(oer_encoding_depth > 0) { \ + oer_encoding_depth--; \ + } else { \ + ASN_DEBUG("OER encoding depth underflow detected"); \ + } \ + } while(0) + +/* XER encoder depth tracking */ +#define XER_ENCODER_RECURSION_DEPTH_INC() \ + do { \ + if(xer_encoding_depth >= ASN_STACK_OVERFLOW_LIMIT) { \ + ASN_DEBUG("XER encoding recursion depth limit exceeded"); \ + ASN__ENCODE_FAILED; \ + } \ + xer_encoding_depth++; \ + } while(0) + +#define XER_ENCODER_RECURSION_DEPTH_DEC() \ + do { \ + if(xer_encoding_depth > 0) { \ + xer_encoding_depth--; \ + } else { \ + ASN_DEBUG("XER encoding depth underflow detected"); \ + } \ + } while(0) + +/* JER encoder depth tracking */ +#define JER_ENCODER_RECURSION_DEPTH_INC() \ + do { \ + if(jer_encoding_depth >= ASN_STACK_OVERFLOW_LIMIT) { \ + ASN_DEBUG("JER encoding recursion depth limit exceeded"); \ + ASN__ENCODE_FAILED; \ + } \ + jer_encoding_depth++; \ + } while(0) + +#define JER_ENCODER_RECURSION_DEPTH_DEC() \ + do { \ + if(jer_encoding_depth > 0) { \ + jer_encoding_depth--; \ + } else { \ + ASN_DEBUG("JER encoding depth underflow detected"); \ + } \ + } while(0) + +/* + * XER decoder support for empty OPTIONAL fields. + * When enabled, the XER decoder treats empty tags (e.g., or ) + * in OPTIONAL fields as absent rather than invalid. + * Define XER_ALLOW_EMPTY_OPTIONALS at compile time to enable this feature: + * -DXER_ALLOW_EMPTY_OPTIONALS + */ +#ifdef XER_ALLOW_EMPTY_OPTIONALS +#define XER_EMPTY_OPTIONALS_ENABLED 1 +#else +#define XER_EMPTY_OPTIONALS_ENABLED 0 +#endif + +/** + * Check if the given name is an ASN.1 meta-syntax keyword that should + * not be output as an XML wrapper tag (e.g., "SEQUENCE OF", "SET OF"). + * + * Returns 1 if the name is a meta-syntax keyword, 0 otherwise. + */ +static inline int +asn_is_meta_syntax_keyword(const char *name) { + if(!name) return 0; + + size_t len = strlen(name); + + /* Check for "SEQUENCE OF", "SEQUENCE-OF", "SET OF", "SET-OF" */ + /* Match if keyword is at start, followed by anything except lowercase letter */ + if((len >= 11 && strncmp(name, "SEQUENCE OF", 11) == 0 && + (len == 11 || !(name[11] >= 'a' && name[11] <= 'z'))) || + (len >= 11 && strncmp(name, "SEQUENCE-OF", 11) == 0 && + (len == 11 || !(name[11] >= 'a' && name[11] <= 'z'))) || + (len >= 6 && strncmp(name, "SET OF", 6) == 0 && + (len == 6 || !(name[6] >= 'a' && name[6] <= 'z'))) || + (len >= 6 && strncmp(name, "SET-OF", 6) == 0 && + (len == 6 || !(name[6] >= 'a' && name[6] <= 'z')))) { + return 1; + } + + return 0; +} + +static inline int +asn_is_synthetic_collection_member_name(const char *name) { + size_t len; + + if(!name) return 0; + if(strcmp(name, "Member") == 0) return 1; + + len = strlen(name); + return len > 7 && strcmp(name + len - 7, "_Member") == 0; +} + +#ifdef __cplusplus } #endif diff --git a/src/icspacket/include/skeletons/constr_CHOICE.c b/src/icspacket/include/skeletons/constr_CHOICE.c index ec891995..b30d8116 100644 --- a/src/icspacket/include/skeletons/constr_CHOICE.c +++ b/src/icspacket/include/skeletons/constr_CHOICE.c @@ -5,7 +5,9 @@ #include #include -asn_TYPE_operation_t asn_OP_CHOICE = {CHOICE_free, +asn_TYPE_operation_t asn_OP_CHOICE = { + .kind = ASN_KIND_CHOICE, + CHOICE_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) CHOICE_print, #else @@ -52,8 +54,16 @@ asn_TYPE_operation_t asn_OP_CHOICE = {CHOICE_free, CHOICE_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - CHOICE_outmost_tag}; +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + CHOICE_outmost_tag, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + CHOICE_decode_cbor, + CHOICE_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ +}; ber_tlv_tag_t CHOICE_outmost_tag(const asn_TYPE_descriptor_t *td, const void *ptr, int tag_mode, diff --git a/src/icspacket/include/skeletons/constr_CHOICE.h b/src/icspacket/include/skeletons/constr_CHOICE.h index 106c888d..5c64fa70 100644 --- a/src/icspacket/include/skeletons/constr_CHOICE.h +++ b/src/icspacket/include/skeletons/constr_CHOICE.h @@ -68,7 +68,11 @@ jer_type_encoder_f CHOICE_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f CHOICE_decode_oer; oer_type_encoder_f CHOICE_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f CHOICE_decode_cbor; +cbor_type_encoder_f CHOICE_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f CHOICE_decode_uper; diff --git a/src/icspacket/include/skeletons/constr_CHOICE_ber.c b/src/icspacket/include/skeletons/constr_CHOICE_ber.c index 44b6cc7f..b80c6632 100644 --- a/src/icspacket/include/skeletons/constr_CHOICE_ber.c +++ b/src/icspacket/include/skeletons/constr_CHOICE_ber.c @@ -11,7 +11,7 @@ * (ctx->left) indicates the number of bytes _transferred_ for the structure. * (size) contains the number of bytes in the buffer passed. */ -#define LEFT ((size < (size_t)ctx->left) ? size : (size_t)ctx->left) +#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) /* * If the subprocessor function returns with an indication that it wants @@ -31,57 +31,59 @@ * i.e. was correctly converted into local representation or rightfully skipped. */ #undef ADVANCE -#define ADVANCE(num_bytes) \ - do { \ - size_t num = num_bytes; \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - if (ctx->left >= 0) ctx->left -= num; \ - consumed_myself += num; \ - } while (0) +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + if(ctx->left >= 0) \ + ctx->left -= num; \ + consumed_myself += num; \ + } while(0) /* * Switch to the next phase of parsing. */ #undef NEXT_PHASE -#define NEXT_PHASE(ctx) \ - do { \ - ctx->phase++; \ - ctx->step = 0; \ - } while (0) +#define NEXT_PHASE(ctx) \ + do { \ + ctx->phase++; \ + ctx->step = 0; \ + } while(0) /* * Return a standardized complex structure. */ #undef RETURN -#define RETURN(_code) \ - do { \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ - } while (0) +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) /* * Tags are canonically sorted in the tag to member table. */ -static int _search4tag(const void *ap, const void *bp) { +static int +_search4tag(const void *ap, const void *bp) { const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; int a_class = BER_TAG_CLASS(a->el_tag); int b_class = BER_TAG_CLASS(b->el_tag); - if (a_class == b_class) { + if(a_class == b_class) { ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); - if (a_value == b_value) + if(a_value == b_value) return 0; - else if (a_value < b_value) + else if(a_value < b_value) return -1; else return 1; - } else if (a_class < b_class) { + } else if(a_class < b_class) { return -1; } else { return 1; @@ -91,10 +93,10 @@ static int _search4tag(const void *ap, const void *bp) { /* * The decoder of the CHOICE type. */ -asn_dec_rval_t CHOICE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - void **struct_ptr, const void *ptr, - size_t size, int tag_mode) { +asn_dec_rval_t +CHOICE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size, int tag_mode) { /* * Bring closer parts of structure description. */ @@ -105,23 +107,23 @@ asn_dec_rval_t CHOICE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, /* * Parts of the structure being constructed. */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ - ber_tlv_tag_t tlv_tag; /* T from TLV */ - ssize_t tag_len; /* Length of TLV's T */ - asn_dec_rval_t rval; /* Return code from subparsers */ + ber_tlv_tag_t tlv_tag; /* T from TLV */ + ssize_t tag_len; /* Length of TLV's T */ + asn_dec_rval_t rval; /* Return code from subparsers */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ ASN_DEBUG("Decoding %s as CHOICE", td->name); /* * Create the target structure if it is not present already. */ - if (st == 0) { + if(st == 0) { st = *struct_ptr = CALLOC(1, specs->struct_size); - if (st == 0) { + if(st == 0) { RETURN(RC_FAIL); } } @@ -131,273 +133,289 @@ asn_dec_rval_t CHOICE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + ASN__DECODER_RECURSION_DEPTH_CHECK(opt_codec_ctx); + /* * Start to parse where left previously */ - switch (ctx->phase) { - case 0: - /* - * PHASE 0. - * Check that the set of tags associated with given structure - * perfectly fits our expectations. - */ + switch(ctx->phase) { + case 0: + /* + * PHASE 0. + * Check that the set of tags associated with given structure + * perfectly fits our expectations. + */ - if (tag_mode || td->tags_count) { - rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, - tag_mode, -1, &ctx->left, 0); - if (rval.code != RC_OK) { - ASN_DEBUG("%s tagging check failed: %d", td->name, - rval.code); - return rval; - } + if(tag_mode || td->tags_count) { + rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, + tag_mode, -1, &ctx->left, 0); + if(rval.code != RC_OK) { + ASN_DEBUG("%s tagging check failed: %d", + td->name, rval.code); + return rval; + } - if (ctx->left >= 0) { - /* ?Subtracted below! */ - ctx->left += rval.consumed; - } - ADVANCE(rval.consumed); - } else { - ctx->left = -1; + if(ctx->left >= 0) { + /* ?Subtracted below! */ + ctx->left += rval.consumed; } + ADVANCE(rval.consumed); + } else { + ctx->left = -1; + } - NEXT_PHASE(ctx); + NEXT_PHASE(ctx); - ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", - (long)ctx->left, (long)size); + ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", + (long)ctx->left, (long)size); + /* Fall through */ + case 1: + /* + * Fetch the T from TLV. + */ + tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); + ASN_DEBUG("In %s CHOICE tag length %d", td->name, (int)tag_len); + switch(tag_len) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); /* Fall through */ - case 1: - /* - * Fetch the T from TLV. - */ - tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); - ASN_DEBUG("In %s CHOICE tag length %d", td->name, (int)tag_len); - switch (tag_len) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: - RETURN(RC_FAIL); - } + case -1: RETURN(RC_FAIL); + } - do { - const asn_TYPE_tag2member_t *t2m; - asn_TYPE_tag2member_t key; + do { + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t key; - key.el_tag = tlv_tag; - t2m = (const asn_TYPE_tag2member_t *)bsearch( - &key, specs->tag2el, specs->tag2el_count, + key.el_tag = tlv_tag; + t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, + specs->tag2el, specs->tag2el_count, sizeof(specs->tag2el[0]), _search4tag); - if (t2m) { - /* - * Found the element corresponding to the tag. - */ - NEXT_PHASE(ctx); - ctx->step = t2m->el_no; - break; - } else if (specs->ext_start == -1) { - ASN_DEBUG( - "Unexpected tag %s " - "in non-extensible CHOICE %s", - ber_tlv_tag_string(tlv_tag), td->name); - RETURN(RC_FAIL); - } else { - /* Skip this tag */ - ssize_t skip; - - ASN_DEBUG("Skipping unknown tag %s", - ber_tlv_tag_string(tlv_tag)); - - skip = ber_skip_length( - opt_codec_ctx, BER_TLV_CONSTRUCTED(ptr), - (const char *)ptr + tag_len, LEFT - tag_len); - - switch (skip) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: - RETURN(RC_FAIL); - } - - ADVANCE(skip + tag_len); - RETURN(RC_OK); - } - } while (0); + if(t2m) { + /* + * Found the element corresponding to the tag. + */ + NEXT_PHASE(ctx); + ctx->step = t2m->el_no; + break; + } else if(specs->ext_start == -1) { + ASN_DEBUG("Unexpected tag %s " + "in non-extensible CHOICE %s", + ber_tlv_tag_string(tlv_tag), td->name); + RETURN(RC_FAIL); + } else { + /* Skip this tag */ + ssize_t skip; - case 2: - /* - * PHASE 2. - * Read in the element. - */ - do { - asn_TYPE_member_t *elm; /* CHOICE's element */ - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ + ASN_DEBUG("Skipping unknown tag %s", + ber_tlv_tag_string(tlv_tag)); - elm = &elements[ctx->step]; + skip = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tag_len, + LEFT - tag_len); - /* - * Compute the position of the member inside a structure, - * and also a type of containment (it may be contained - * as pointer or using inline inclusion). - */ - if (elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - /* - * A pointer to a pointer - * holding the start of the structure - */ - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; + switch(skip) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); } - /* Set presence to be able to free it properly at any time */ - _set_present_idx(st, specs->pres_offset, specs->pres_size, - ctx->step + 1); - /* - * Invoke the member fetch routine according to member's type - */ - rval = elm->type->op->ber_decoder(opt_codec_ctx, elm->type, - memb_ptr2, ptr, LEFT, - elm->tag_mode); - switch (rval.code) { - case RC_OK: - break; - case RC_WMORE: /* More data expected */ - if (!SIZE_VIOLATION) { - ADVANCE(rval.consumed); - RETURN(RC_WMORE); - } - RETURN(RC_FAIL); - case RC_FAIL: /* Fatal error */ - RETURN(rval.code); - } /* switch(rval) */ - ADVANCE(rval.consumed); - } while (0); + ADVANCE(skip + tag_len); + RETURN(RC_OK); + } + } while(0); - NEXT_PHASE(ctx); + case 2: + /* + * PHASE 2. + * Read in the element. + */ + do { + asn_TYPE_member_t *elm;/* CHOICE's element */ + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ - /* Fall through */ - case 3: - ASN_DEBUG("CHOICE %s Leftover: %ld, size = %ld, tm=%d, tc=%d", - td->name, (long)ctx->left, (long)size, tag_mode, - td->tags_count); + elm = &elements[ctx->step]; - if (ctx->left > 0) { + /* + * Compute the position of the member inside a structure, + * and also a type of containment (it may be contained + * as pointer or using inline inclusion). + */ + if(elm->flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elm->memb_offset); + } else { /* - * The type must be fully decoded - * by the CHOICE member-specific decoder. + * A pointer to a pointer + * holding the start of the structure */ - RETURN(RC_FAIL); + memb_ptr = (char *)st + elm->memb_offset; + memb_ptr2 = &memb_ptr; } - - if (ctx->left == -1 && !(tag_mode || td->tags_count)) { - /* - * This is an untagged CHOICE. - * It doesn't contain nothing - * except for the member itself, including all its tags. - * The decoding is completed. - */ - NEXT_PHASE(ctx); + /* Set presence to be able to free it properly at any time */ + _set_present_idx(st, specs->pres_offset, + specs->pres_size, ctx->step + 1); + /* + * Invoke the member fetch routine according to member's type + */ + rval = elm->type->op->ber_decoder(opt_codec_ctx, elm->type, + memb_ptr2, ptr, LEFT, + elm->tag_mode); + switch(rval.code) { + case RC_OK: break; + case RC_WMORE: /* More data expected */ + if(!SIZE_VIOLATION) { + ADVANCE(rval.consumed); + RETURN(RC_WMORE); + } + RETURN(RC_FAIL); + case RC_FAIL: /* Fatal error */ + RETURN(rval.code); + } /* switch(rval) */ + + ADVANCE(rval.consumed); + } while(0); + + NEXT_PHASE(ctx); + + /* Fall through */ + case 3: + ASN_DEBUG("CHOICE %s Leftover: %ld, size = %ld, tm=%d, tc=%d", + td->name, (long)ctx->left, (long)size, + tag_mode, td->tags_count); + + if(ctx->left > 0) { + /* + * The type must be fully decoded + * by the CHOICE member-specific decoder. + */ + RETURN(RC_FAIL); + } + + if(ctx->left == -1 + && !(tag_mode || td->tags_count)) { + /* + * This is an untagged CHOICE. + * It doesn't contain nothing + * except for the member itself, including all its tags. + * The decoding is completed. + */ + NEXT_PHASE(ctx); + break; + } + + /* + * Read in the "end of data chunks"'s. + */ + while(ctx->left < 0) { + ssize_t tl; + + tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tl) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); } /* - * Read in the "end of data chunks"'s. + * Expected <0><0>... */ - while (ctx->left < 0) { - ssize_t tl; - - tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); - switch (tl) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: + if(((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) RETURN(RC_FAIL); - } - - /* - * Expected <0><0>... - */ - if (((const uint8_t *)ptr)[0] == 0) { - if (LEFT < 2) { - if (SIZE_VIOLATION) - RETURN(RC_FAIL); - else - RETURN(RC_WMORE); - } else if (((const uint8_t *)ptr)[1] == 0) { - /* - * Correctly finished with <0><0>. - */ - ADVANCE(2); - ctx->left++; - continue; - } + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Correctly finished with <0><0>. + */ + ADVANCE(2); + ctx->left++; + continue; } else { - ASN_DEBUG("Unexpected continuation in %s", td->name); + /* + * Malformed end-of-contents: <0> followed by + * a non-zero byte. Fail instead of spinning + * forever on the same input (CWE-835). + */ + ASN_DEBUG("Unexpected continuation in %s", + td->name); RETURN(RC_FAIL); } - - /* UNREACHABLE */ + } else { + ASN_DEBUG("Unexpected continuation in %s", + td->name); + RETURN(RC_FAIL); } - NEXT_PHASE(ctx); - case 4: - /* No meaningful work here */ - break; + /* UNREACHABLE */ + } + + NEXT_PHASE(ctx); + case 4: + /* No meaningful work here */ + break; } RETURN(RC_OK); } -asn_enc_rval_t CHOICE_encode_der(const asn_TYPE_descriptor_t *td, - const void *sptr, int tag_mode, - ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, - void *app_key) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - asn_TYPE_member_t *elm; /* CHOICE element */ - asn_enc_rval_t erval = {0, 0, 0}; +asn_enc_rval_t +CHOICE_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, + void *app_key) { + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; + asn_TYPE_member_t *elm; /* CHOICE element */ + asn_enc_rval_t erval = {0,0,0}; const void *memb_ptr; size_t computed_size = 0; unsigned present; - if (!sptr) ASN__ENCODE_FAILED; + if(!sptr) ASN__ENCODE_FAILED; + + ASN_DEBUG("%s %s as CHOICE", + cb ? "Encoding" : "Estimating", td->name); - ASN_DEBUG("%s %s as CHOICE", cb ? "Encoding" : "Estimating", td->name); + /* Check encoding recursion depth to prevent stack overflow */ + ASN__ENCODER_RECURSION_DEPTH_INC(); - present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); + present = _fetch_present_idx(sptr, + specs->pres_offset, specs->pres_size); /* * If the structure was not initialized, it cannot be encoded: * can't deduce what to encode in the choice type. */ - if (present == 0 || present > td->elements_count) { - if (present == 0 && td->elements_count == 0) { + if(present == 0 || present > td->elements_count) { + if(present == 0 && td->elements_count == 0) { /* The CHOICE is empty?! */ + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = 0; ASN__ENCODED_OK(erval); } + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } /* * Seek over the present member of the structure. */ - elm = &td->elements[present - 1]; - if (elm->flags & ATF_POINTER) { + elm = &td->elements[present-1]; + if(elm->flags & ATF_POINTER) { memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); - if (memb_ptr == 0) { - if (elm->optional) { + if(memb_ptr == 0) { + if(elm->optional) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = 0; ASN__ENCODED_OK(erval); } /* Mandatory element absent */ + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } } else { @@ -409,34 +427,47 @@ asn_enc_rval_t CHOICE_encode_der(const asn_TYPE_descriptor_t *td, * T ::= [2] EXPLICIT CHOICE { ... } * Then emit the appropriate tags. */ - if (tag_mode == 1 || td->tags_count) { + if(tag_mode == 1 || td->tags_count) { /* * For this, we need to pre-compute the member. */ ssize_t ret; /* Encode member with its tag */ - erval = elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + elm->tag_mode, elm->tag, 0, 0); - if (erval.encoded == -1) return erval; + if(erval.encoded == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return erval; + } /* Encode CHOICE with parent or my own tag */ - ret = der_write_tags(td, erval.encoded, tag_mode, 1, tag, cb, app_key); - if (ret == -1) ASN__ENCODE_FAILED; + ret = der_write_tags(td, erval.encoded, tag_mode, 1, tag, + cb, app_key); + if(ret == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } computed_size += ret; } /* * Encode the single underlying member. */ - erval = elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, - elm->tag, cb, app_key); - if (erval.encoded == -1) return erval; + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + elm->tag_mode, elm->tag, + cb, app_key); + if(erval.encoded == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return erval; + } - ASN_DEBUG("Encoded CHOICE member in %ld bytes (+%ld)", (long)erval.encoded, - (long)computed_size); + ASN_DEBUG("Encoded CHOICE member in %ld bytes (+%ld)", + (long)erval.encoded, (long)computed_size); erval.encoded += computed_size; + ASN__ENCODER_RECURSION_DEPTH_DEC(); return erval; } diff --git a/src/icspacket/include/skeletons/constr_CHOICE_jer.c b/src/icspacket/include/skeletons/constr_CHOICE_jer.c index f58e49f8..de629d97 100644 --- a/src/icspacket/include/skeletons/constr_CHOICE_jer.c +++ b/src/icspacket/include/skeletons/constr_CHOICE_jer.c @@ -6,56 +6,61 @@ #include #include +#define JER_MEMBER_NAME(elm) \ + (((elm)->encoding_constraints.jer_constraints \ + && (elm)->encoding_constraints.jer_constraints->wire_name) \ + ? (elm)->encoding_constraints.jer_constraints->wire_name \ + : (elm)->name) + /* * Return a standardized complex structure. */ #undef RETURN -#define RETURN(_code) \ - do { \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ - } while (0) +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) #undef JER_ADVANCE -#define JER_ADVANCE(num_bytes) \ - do { \ - size_t num = num_bytes; \ - buf_ptr = (const void *)(((const char *)buf_ptr) + num); \ - size -= num; \ - consumed_myself += num; \ - } while (0) +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + buf_ptr = (const void *)(((const char *)buf_ptr) + num); \ + size -= num; \ + consumed_myself += num; \ + } while(0) /* * Decode the JER (JSON) data. */ -asn_dec_rval_t CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - void **struct_ptr, const void *buf_ptr, - size_t size) { +asn_dec_rval_t +CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *buf_ptr, size_t size) { /* * Bring closer parts of structure description. */ - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; + const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; /* * Parts of the structure being constructed. */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ - asn_dec_rval_t rval; /* Return value of a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - size_t edx; /* Element index */ + asn_dec_rval_t rval; /* Return value of a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* Element index */ /* * Create the target structure if it is not present already. */ - if (st == 0) { + if(st == 0) { st = *struct_ptr = CALLOC(1, specs->struct_size); - if (st == 0) RETURN(RC_FAIL); + if(st == 0) RETURN(RC_FAIL); } /* @@ -63,6 +68,10 @@ asn_dec_rval_t CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + /* * Phases of JER/JSON processing: * Phase 0: Check that the opening key matches our expectations. @@ -72,45 +81,51 @@ asn_dec_rval_t CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, * Phase 4: Skipping unknown extensions. * Phase 5: PHASED OUT */ - for (edx = ctx->step; ctx->phase <= 4;) { - pjer_chunk_type_e ch_type; /* JER chunk type */ - ssize_t ch_size; /* Chunk size */ - jer_check_sym_e scv; /* Tag check value */ + for(edx = ctx->step; ctx->phase <= 4;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ asn_TYPE_member_t *elm; /* * Go inside the member. */ - if (ctx->phase == 2) { + if(ctx->phase == 2) { asn_dec_rval_t tmprval; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - unsigned CC_UNUSED(old_present); + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + unsigned old_present __attribute__((unused)); elm = &td->elements[edx]; - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); + memb_ptr2 = (void **)((char *)st + + elm->memb_offset); } else { memb_ptr = (char *)st + elm->memb_offset; memb_ptr2 = &memb_ptr; } /* Start/Continue decoding the inner member */ - tmprval = elm->type->op->jer_decoder( - opt_codec_ctx, elm->type, - elm->encoding_constraints.jer_constraints, memb_ptr2, buf_ptr, - size); + tmprval = elm->type->op->jer_decoder(opt_codec_ctx, + elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr2, + buf_ptr, size); JER_ADVANCE(tmprval.consumed); - ASN_DEBUG("JER/CHOICE: itdf: [%s] code=%d", elm->type->name, - tmprval.code); - old_present = - _fetch_present_idx(st, specs->pres_offset, specs->pres_size); + ASN_DEBUG("JER/CHOICE: itdf: [%s] code=%d", + elm->type->name, tmprval.code); + old_present = _fetch_present_idx(st, + specs->pres_offset, + specs->pres_size); assert(old_present == 0 || old_present == edx + 1); /* Record what we've got */ - _set_present_idx(st, specs->pres_offset, specs->pres_size, edx + 1); - if (tmprval.code != RC_OK) RETURN(tmprval.code); + _set_present_idx(st, + specs->pres_offset, + specs->pres_size, edx + 1); + if(tmprval.code != RC_OK) + RETURN(tmprval.code); ctx->phase = 3; /* Fall through */ } @@ -119,200 +134,213 @@ asn_dec_rval_t CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, * Get the next part of the JSON stream. */ ch_size = jer_next_token(&ctx->context, buf_ptr, size, &ch_type); - if (ch_size == -1) { + if(ch_size == -1) { RETURN(RC_FAIL); } else { - switch (ch_type) { - case PJER_WMORE: - RETURN(RC_WMORE); + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); - case PJER_TEXT: /* Ignore free-standing text */ - JER_ADVANCE(ch_size); /* Skip silently */ - continue; + case PJER_TEXT: /* Ignore free-standing text */ + JER_ADVANCE(ch_size); /* Skip silently */ + continue; - case PJER_DLM: - case PJER_VALUE: - case PJER_KEY: - break; /* Check the rest down there */ + case PJER_DLM: + case PJER_VALUE: + case PJER_KEY: + break; /* Check the rest down there */ } } scv = jer_check_sym(buf_ptr, ch_size, NULL); ASN_DEBUG("JER/CHOICE checked [%c%c%c%c] of [%s], scv=%d", - ch_size > 0 ? ((const uint8_t *)buf_ptr)[0] : '?', - ch_size > 1 ? ((const uint8_t *)buf_ptr)[1] : '?', - ch_size > 2 ? ((const uint8_t *)buf_ptr)[2] : '?', - ch_size > 3 ? ((const uint8_t *)buf_ptr)[3] : '?', td->name, - scv); + ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', + ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', + ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', + ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', + td->name, scv); /* Skip the extensions section */ - if (ctx->phase == 4) { - ASN_DEBUG("skip_unknown(%d, %ld)", scv, (long)ctx->left); - switch (jer_skip_unknown(scv, &ctx->left)) { - case -1: - ctx->phase = 5; - RETURN(RC_FAIL); - case 1: - ctx->phase = 3; - /* Fall through */ - case 0: - JER_ADVANCE(ch_size); - continue; - case 2: - ctx->phase = 3; - break; + if(ctx->phase == 4) { + ASN_DEBUG("skip_unknown(%d, %ld)", + scv, (long)ctx->left); + switch(jer_skip_unknown(scv, &ctx->left)) { + case -1: + ctx->phase = 5; + RETURN(RC_FAIL); + case 1: + ctx->phase = 3; + /* Fall through */ + case 0: + JER_ADVANCE(ch_size); + continue; + case 2: + ctx->phase = 3; + break; } } - switch (scv) { - case JCK_OEND: - if (ctx->phase != 3) break; - JER_ADVANCE(ch_size); - ctx->phase = 5; /* Phase out */ - RETURN(RC_OK); + switch(scv) { + case JCK_OEND: + if(ctx->phase != 3) + break; + JER_ADVANCE(ch_size); + ctx->phase = 5; /* Phase out */ + RETURN(RC_OK); - case JCK_COMMA: + case JCK_COMMA: + JER_ADVANCE(ch_size); + continue; + + case JCK_OSTART: + if(ctx->phase == 0) { JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ continue; - - case JCK_OSTART: - if (ctx->phase == 0) { - JER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } - /* Fall through */ - case JCK_KEY: - case JCK_UNKNOWN: - - if (ctx->phase != 1) break; /* Really unexpected */ - - /* - * Search which inner member corresponds to this key. - */ - for (edx = 0; edx < td->elements_count; edx++) { - elm = &td->elements[edx]; - scv = jer_check_sym(buf_ptr, ch_size, elm->name); - switch (scv) { - case JCK_KEY: - /* - * Process this member. - */ - ctx->step = edx; - ctx->phase = 2; - JER_ADVANCE(ch_size); /* skip key */ - /* skip colon */ - ch_size = jer_next_token(&ctx->context, buf_ptr, - size, &ch_type); - if (ch_size == -1) { - RETURN(RC_FAIL); - } else { - switch (ch_type) { - case PJER_WMORE: - RETURN(RC_WMORE); - case PJER_TEXT: - JER_ADVANCE(ch_size); - break; - default: - RETURN(RC_FAIL); - } - } + } + /* Fall through */ + case JCK_KEY: + case JCK_UNKNOWN: + + if(ctx->phase != 1) + break; /* Really unexpected */ + + /* + * Search which inner member corresponds to this key. + */ + for(edx = 0; edx < td->elements_count; edx++) { + elm = &td->elements[edx]; + scv = jer_check_sym(buf_ptr, ch_size, JER_MEMBER_NAME(elm)); + switch(scv) { + case JCK_KEY: + /* + * Process this member. + */ + ctx->step = edx; + ctx->phase = 2; + JER_ADVANCE(ch_size); /* skip key */ + /* skip colon */ + ch_size = jer_next_token(&ctx->context, buf_ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); break; - case JCK_UNKNOWN: - continue; default: - edx = td->elements_count; - break; /* Phase out */ + RETURN(RC_FAIL); + } } break; - } - if (edx != td->elements_count) continue; - - /* It is expected extension */ - if (specs->ext_start != -1) { - ASN_DEBUG("Got anticipated extension"); - ctx->left = 1; - ctx->phase = 4; /* Skip ...'s */ - JER_ADVANCE(ch_size); + case JCK_UNKNOWN: continue; + default: + edx = td->elements_count; + break; /* Phase out */ } - - /* Fall through */ - default: break; + } + if(edx != td->elements_count) + continue; + + /* It is expected extension */ + if(specs->ext_start != -1) { + ASN_DEBUG("Got anticipated extension"); + ctx->left = 1; + ctx->phase = 4; /* Skip ...'s */ + JER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; } - ASN_DEBUG( - "Unexpected JSON token [%c%c%c%c] in CHOICE [%s]" - " (ph=%d)", - ch_size > 0 ? ((const uint8_t *)buf_ptr)[0] : '?', - ch_size > 1 ? ((const uint8_t *)buf_ptr)[1] : '?', - ch_size > 2 ? ((const uint8_t *)buf_ptr)[2] : '?', - ch_size > 3 ? ((const uint8_t *)buf_ptr)[3] : '?', td->name, - ctx->phase); + ASN_DEBUG("Unexpected JSON token [%c%c%c%c] in CHOICE [%s]" + " (ph=%d)", + ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', + ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', + ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', + ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', + td->name, ctx->phase); break; } - ctx->phase = 5; /* Phase out, just in case */ + ctx->phase = 5; /* Phase out, just in case */ RETURN(RC_FAIL); } -asn_enc_rval_t CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - const void *sptr, int ilevel, - enum jer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { +asn_enc_rval_t +CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, + const void *sptr, int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; - asn_enc_rval_t er = {0, 0, 0}; + asn_enc_rval_t er = {0,0,0}; unsigned present = 0; int jmin = (flags & JER_F_MINIFIED); - if (!sptr) ASN__ENCODE_FAILED; + if(!sptr) + ASN__ENCODE_FAILED; + + /* Check recursion depth to prevent stack overflow */ + JER_ENCODER_RECURSION_DEPTH_INC(); /* * Figure out which CHOICE element is encoded. */ - present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); + present = _fetch_present_idx(sptr, specs->pres_offset,specs->pres_size); - if (present == 0 || present > td->elements_count) { + if(present == 0 || present > td->elements_count) { + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } else { - asn_enc_rval_t tmper = {0, 0, 0}; - asn_TYPE_member_t *elm = &td->elements[present - 1]; + asn_enc_rval_t tmper = {0,0,0}; + asn_TYPE_member_t *elm = &td->elements[present-1]; const void *memb_ptr = NULL; - const char *mname = elm->name; + const char *mname = JER_MEMBER_NAME(elm); unsigned int mlen = strlen(mname); - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); - if (!memb_ptr) ASN__ENCODE_FAILED; + if(!memb_ptr) { + JER_ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } } else { memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); } er.encoded = 0; - ASN__CALLBACK("{", 1); - if (!jmin) { + ASN__CALLBACK("{",1); + if(!jmin) { ASN__TEXT_INDENT(1, ilevel + 1); ASN__CALLBACK3("\"", 1, mname, mlen, "\": ", 3); } else { ASN__CALLBACK3("\"", 1, mname, mlen, "\":", 2); } - tmper = elm->type->op->jer_encoder( - elm->type, elm->encoding_constraints.jer_constraints, memb_ptr, - ilevel + 1, flags, cb, app_key); - if (tmper.encoded == -1) return tmper; + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, + ilevel + 1, flags, cb, app_key); + if(tmper.encoded == -1) return tmper; er.encoded += tmper.encoded; - if (!jmin) ASN__TEXT_INDENT(1, ilevel); + if(!jmin) ASN__TEXT_INDENT(1, ilevel); ASN__CALLBACK("}", 1); } + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); cb_failed: + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } diff --git a/src/icspacket/include/skeletons/constr_CHOICE_xer.c b/src/icspacket/include/skeletons/constr_CHOICE_xer.c index 8ecd15b0..deed5e13 100644 --- a/src/icspacket/include/skeletons/constr_CHOICE_xer.c +++ b/src/icspacket/include/skeletons/constr_CHOICE_xer.c @@ -26,6 +26,10 @@ consumed_myself += num; \ } while (0) +extern const asn_TYPE_operation_t asn_OP_SEQUENCE; +extern const asn_TYPE_operation_t asn_OP_SEQUENCE_OF; +extern const asn_TYPE_operation_t asn_OP_SET_OF; + /* * Decode the XER (XML) data. */ @@ -62,8 +66,13 @@ asn_dec_rval_t CHOICE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, * Restore parsing context. */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); - if (ctx->phase == 0 && !*xml_tag) - ctx->phase = 1; /* Skip the outer tag checking phase */ + + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + + if(ctx->phase == 0 && !*xml_tag) + ctx->phase = 1; /* Skip the outer tag checking phase */ /* * Phases of XER/XML processing: @@ -263,44 +272,76 @@ asn_enc_rval_t CHOICE_encode_xer(const asn_TYPE_descriptor_t *td, if (!sptr) ASN__ENCODE_FAILED; + /* Check recursion depth to prevent stack overflow */ + XER_ENCODER_RECURSION_DEPTH_INC(); + /* * Figure out which CHOICE element is encoded. */ present = _fetch_present_idx(sptr, specs->pres_offset, specs->pres_size); - if (present == 0 || present > td->elements_count) { + if(present == 0 || present > td->elements_count) { + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } else { asn_enc_rval_t tmper = {0, 0, 0}; asn_TYPE_member_t *elm = &td->elements[present - 1]; const void *memb_ptr = NULL; const char *mname = elm->name; - unsigned int mlen = strlen(mname); + + /* Check if mname contains ASN.1 meta-syntax keywords that should not be output as wrapper tags */ + unsigned int mlen = (mname && *mname) ? strlen(mname) : 0; + int skip_wrapper = asn_is_meta_syntax_keyword(mname); + if(skip_wrapper) { + mlen = 0; + } if (elm->flags & ATF_POINTER) { memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); - if (!memb_ptr) ASN__ENCODE_FAILED; + if(!memb_ptr) { + XER_ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } } else { memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); } er.encoded = 0; - if (!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel); - ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + /* Output opening tag (unless it's ASN.1 meta-syntax) */ + if(!skip_wrapper) { + if(!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel); + ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); + } - tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, - flags, cb, app_key); - if (tmper.encoded == -1) return tmper; + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, + skip_wrapper ? ilevel : ilevel + 1, flags, cb, app_key); + if(tmper.encoded == -1) { + XER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; - ASN__CALLBACK3("", 1); + /* Output closing tag (unless it's ASN.1 meta-syntax) */ + if(!skip_wrapper) { + if(!(flags & XER_F_CANONICAL)) { + /* Add indentation before closing tag only if element is a structured type + * that outputs newlines in its content (SEQUENCE, SET, CHOICE, etc.) + * Primitive types like INTEGER output inline content, so no indent needed. */ + if(tmper.encoded > 0 && ASN__IS_STRUCTURED_TYPE(elm)) { + ASN__TEXT_INDENT(0, ilevel); + } + ASN__CALLBACK3("\n", 2); + } else { + ASN__CALLBACK3("", 1); + } + } } - if (!(flags & XER_F_CANONICAL)) ASN__TEXT_INDENT(1, ilevel - 1); - + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); cb_failed: + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE.c b/src/icspacket/include/skeletons/constr_SEQUENCE.c index 2d4a5505..db579f6a 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE.c @@ -7,6 +7,7 @@ #include asn_TYPE_operation_t asn_OP_SEQUENCE = { + .kind = ASN_KIND_SEQUENCE, SEQUENCE_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) SEQUENCE_print, @@ -61,8 +62,15 @@ asn_TYPE_operation_t asn_OP_SEQUENCE = { SEQUENCE_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + SEQUENCE_decode_cbor, + SEQUENCE_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; void SEQUENCE_free(const asn_TYPE_descriptor_t *td, void *sptr, diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE.h b/src/icspacket/include/skeletons/constr_SEQUENCE.h index 49ee808f..b1458add 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE.h +++ b/src/icspacket/include/skeletons/constr_SEQUENCE.h @@ -72,7 +72,11 @@ jer_type_encoder_f SEQUENCE_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f SEQUENCE_decode_oer; oer_type_encoder_f SEQUENCE_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f SEQUENCE_decode_cbor; +cbor_type_encoder_f SEQUENCE_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f SEQUENCE_decode_uper; diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_OF.c b/src/icspacket/include/skeletons/constr_SEQUENCE_OF.c index 812e6811..d3621897 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_OF.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_OF.c @@ -7,7 +7,24 @@ #include #include +/* + * Generic placeholder descriptor for anonymous SEQUENCE OF. + * NOTE: not a concrete "OF T" — used only to satisfy references from + * some codegen paths. Concrete OF types still have their own descriptors. + */ +asn_TYPE_descriptor_t asn_DEF_SEQUENCE_OF = { + "SEQUENCE OF", + "SEQUENCE OF", + &asn_OP_SEQUENCE_OF, + 0, 0, + 0, 0, + {0}, /* No constraints */ + 0, 0, /* No members */ + 0 /* No specifics */ +}; + asn_TYPE_operation_t asn_OP_SEQUENCE_OF = { + .kind = ASN_KIND_SEQUENCE_OF, SEQUENCE_OF_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) SEQUENCE_OF_print, @@ -62,8 +79,15 @@ asn_TYPE_operation_t asn_OP_SEQUENCE_OF = { SEQUENCE_OF_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + SEQUENCE_OF_decode_cbor, + SEQUENCE_OF_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; int SEQUENCE_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr, diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_OF.h b/src/icspacket/include/skeletons/constr_SEQUENCE_OF.h index f6525bfd..aacfff10 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_OF.h +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_OF.h @@ -33,7 +33,7 @@ der_type_encoder_f SEQUENCE_OF_encode_der; #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ #if !defined(ASN_DISABLE_XER_SUPPORT) -#define SEQUENCE_OF_decode_xer SET_OF_decode_xer +xer_type_decoder_f SEQUENCE_OF_decode_xer; xer_type_encoder_f SEQUENCE_OF_encode_xer; #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ @@ -45,7 +45,11 @@ jer_type_encoder_f SEQUENCE_OF_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) #define SEQUENCE_OF_decode_oer SET_OF_decode_oer #define SEQUENCE_OF_encode_oer SET_OF_encode_oer -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f SEQUENCE_OF_decode_cbor; +cbor_type_encoder_f SEQUENCE_OF_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) #define SEQUENCE_OF_decode_uper SET_OF_decode_uper @@ -62,6 +66,13 @@ per_type_encoder_f SEQUENCE_OF_encode_aper; extern asn_TYPE_operation_t asn_OP_SEQUENCE_OF; +/* + * Generic descriptor for anonymous SEQUENCE OF (placeholder only). + * Not a concrete "OF T" for runtime encoding/decoding. Concrete OF types + * generated for specific elements still have their own descriptors. + */ +extern asn_TYPE_descriptor_t asn_DEF_SEQUENCE_OF; + #ifdef __cplusplus } #endif diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_OF_ber.c b/src/icspacket/include/skeletons/constr_SEQUENCE_OF_ber.c index 3b09380e..8731f9b5 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_OF_ber.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_OF_ber.c @@ -10,13 +10,12 @@ /* * The DER encoder of the SEQUENCE OF type. */ -asn_enc_rval_t SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, - const void *ptr, int tag_mode, - ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, - void *app_key) { +asn_enc_rval_t +SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { asn_TYPE_member_t *elm = td->elements; - const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(ptr); + const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(sptr); size_t computed_size = 0; ssize_t encoding_size = 0; asn_enc_rval_t erval = {0, 0, 0}; @@ -24,32 +23,65 @@ asn_enc_rval_t SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, ASN_DEBUG("Estimating size of SEQUENCE OF %s", td->name); + /* Check encoding recursion depth to prevent stack overflow */ + ASN__ENCODER_RECURSION_DEPTH_INC(); + /* * Gather the length of the underlying members sequence. */ - for (edx = 0; edx < list->count; edx++) { - void *memb_ptr = list->array[edx]; - if (!memb_ptr) continue; - erval = elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, - elm->tag, 0, 0); - if (erval.encoded == -1) return erval; - computed_size += erval.encoded; + if(!list) { + ASN_DEBUG("SEQUENCE OF list is null"); + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } + + if((!list->array) && (list->count != 0)) { + ASN_DEBUG("SEQUENCE OF list->array is null"); + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } + + if(list->count > 1000000) { // Arbitrary sanity check for count + ASN_DEBUG("SEQUENCE OF list->array (list->count) is invalid or count is nonsensical"); + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } + + ASN_DEBUG("SEQUENCE OF list pointer: %p, array pointer: %p, count: %d", + list, list->array, list->count); + + for(edx = 0; edx < list->count; edx++) { + void *memb_ptr = list->array[edx]; + if(!memb_ptr) { + ASN_DEBUG("SEQUENCE OF member pointer is null at index %d", edx); + continue; + } + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + elm->tag_mode, elm->tag, + 0, 0); + if(erval.encoded == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return erval; + } + computed_size += erval.encoded; } /* * Encode the TLV for the sequence itself. */ - encoding_size = - der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); - if (encoding_size == -1) { + encoding_size = der_write_tags(td, computed_size, tag_mode, 1, tag, + cb, app_key); + if(encoding_size == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = -1; erval.failed_type = td; - erval.structure_ptr = ptr; + erval.structure_ptr = sptr; return erval; } computed_size += encoding_size; - if (!cb) { + if(!cb) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = computed_size; ASN__ENCODED_OK(erval); } @@ -61,10 +93,14 @@ asn_enc_rval_t SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, */ for (edx = 0; edx < list->count; edx++) { void *memb_ptr = list->array[edx]; - if (!memb_ptr) continue; - erval = elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, - elm->tag, cb, app_key); - if (erval.encoded == -1) return erval; + if(!memb_ptr) continue; + erval = elm->type->op->der_encoder(elm->type, memb_ptr, + elm->tag_mode, elm->tag, + cb, app_key); + if(erval.encoded == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return erval; + } encoding_size += erval.encoded; } @@ -72,14 +108,16 @@ asn_enc_rval_t SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, /* * Encoded size is not equal to the computed size. */ + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = -1; erval.failed_type = td; - erval.structure_ptr = ptr; + erval.structure_ptr = sptr; } else { erval.encoded = computed_size; erval.structure_ptr = 0; erval.failed_type = 0; } + ASN__ENCODER_RECURSION_DEPTH_DEC(); return erval; } diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_OF_jer.c b/src/icspacket/include/skeletons/constr_SEQUENCE_OF_jer.c index f9d3ce81..7d3498c4 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_OF_jer.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_OF_jer.c @@ -23,6 +23,9 @@ asn_enc_rval_t SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, if (!sptr) ASN__ENCODE_FAILED; + /* Check recursion depth to prevent stack overflow */ + JER_ENCODER_RECURSION_DEPTH_INC(); + er.encoded = 0; ASN__CALLBACK("[", 1); @@ -31,13 +34,26 @@ asn_enc_rval_t SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, void *memb_ptr = list->array[i]; if (!memb_ptr) continue; - if (!jmin) ASN__TEXT_INDENT(1, ilevel + 1); - tmper = elm->type->op->jer_encoder( - elm->type, elm->encoding_constraints.jer_constraints, memb_ptr, - ilevel + 1, flags, cb, app_key); - if (tmper.encoded == -1) return tmper; + if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, ilevel + 1, + flags, cb, app_key); + if(tmper.encoded == -1) { + JER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; - if (tmper.encoded == 0 && specs->as_XMLValueList) { + /* Note: as_XMLValueList is for XER (XML Encoding Rules), not JER. + * For JER (JSON), we should never add XML tag names to arrays. + * If as_XMLValueList were incorrectly set for JER, it could produce + * unexpected or non-compliant JER output such as ["tagName"] instead of [] + * for empty elements, or mixed content like [value, "tagName"] that does not + * match the ASN.1/JER schema expectations (even though it is valid JSON). + * This check is kept for backwards compatibility with XER but should + * not affect JER since as_XMLValueList should only be set for XER contexts. + */ + if(tmper.encoded == 0 && specs->as_XMLValueList) { const char *name = elm->type->xml_tag; size_t len = strlen(name); if (!jmin) ASN__TEXT_INDENT(1, ilevel + 1); @@ -52,7 +68,9 @@ asn_enc_rval_t SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, if (!jmin) ASN__TEXT_INDENT(1, ilevel); ASN__CALLBACK("]", 1); + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); cb_failed: + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_OF_xer.c b/src/icspacket/include/skeletons/constr_SEQUENCE_OF_xer.c index ef5d02d0..c4ad44a2 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_OF_xer.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_OF_xer.c @@ -7,25 +7,161 @@ #include #include -asn_enc_rval_t SEQUENCE_OF_encode_xer(const asn_TYPE_descriptor_t *td, - const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, - void *app_key) { - asn_enc_rval_t er = {0, 0, 0}; - const asn_SET_OF_specifics_t *specs = - (const asn_SET_OF_specifics_t *)td->specifics; +/* + * SEQUENCE OF XER decoder with preprocessing to handle ASN.1 keyword wrapper tags. + * + * This implementation wraps SET_OF_decode_xer but first checks for and skips + * ASN.1 meta-syntax wrapper tags like that may appear in + * debug-annotated XER files but are not part of the standard XER encoding. + */ +asn_dec_rval_t +SEQUENCE_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const char *opt_mname, const void *buf_ptr, size_t size) { + asn_dec_rval_t rval; + const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; + const char *buf = (const char *)buf_ptr; + size_t consumed_myself = 0; + + /* Parse through leading whitespace and comments to find the first tag */ + while(size > 0) { + /* Skip whitespace */ + while(size > 0 && (*buf == ' ' || *buf == '\t' || *buf == '\r' || *buf == '\n')) { + buf++; + size--; + consumed_myself++; + } + + if(size == 0) break; + + /* Check for XML comments */ + if(size >= 4 && buf[0] == '<' && buf[1] == '!' && buf[2] == '-' && buf[3] == '-') { + /* Find end of comment */ + const char *p = buf + 4; + size_t remaining = size - 4; + while(remaining >= 3) { + if(p[0] == '-' && p[1] == '-' && p[2] == '>') { + size_t comment_len = (p - buf) + 3; + buf += comment_len; + size -= comment_len; + consumed_myself += comment_len; + break; + } + p++; + remaining--; + } + if(remaining < 3) { + /* Incomplete comment, let SET_OF_decode_xer handle it */ + break; + } + continue; + } + + /* Check for ASN.1 keyword wrapper tag like */ + if(size > 2 && buf[0] == '<' && buf[1] != '/' && buf[1] != '!') { + /* Look for the tag name */ + const char *tag_start = buf + 1; + const char *tag_end = tag_start; + while(tag_end < buf + size && *tag_end != '>' && *tag_end != ' ' + && *tag_end != '\t' && *tag_end != '\r' && *tag_end != '\n' && *tag_end != '/') { + tag_end++; + } + + /* Check if this matches "SEQUENCE OF" or "SEQUENCE-OF" */ + /* Note: tag_start points after '<', so we compare 11 characters of tag content (the part between '<' and '>') */ + /* The full tag including angle brackets is 13 characters: "" or "" */ + if((tag_end - tag_start >= 11) && (tag_start + 11 <= buf + size) && + (strncmp(tag_start, "SEQUENCE OF", 11) == 0 || + strncmp(tag_start, "SEQUENCE-OF", 11) == 0)) { + /* Find the end of the opening tag */ + const char *close = tag_end; + while(close < buf + size && *close != '>') { + close++; + } + if(close < buf + size) { + size_t tag_len = (close - buf) + 1; + ASN_DEBUG("SEQUENCE_OF_decode_xer: Skipping ASN.1 keyword wrapper tag"); + buf += tag_len; + size -= tag_len; + consumed_myself += tag_len; + continue; + } + } + } + + /* No more preprocessing needed */ + break; + } + + /* Call the standard SET_OF decoder with adjusted buffer */ + rval = SET_OF_decode_xer(opt_codec_ctx, td, struct_ptr, xml_tag, buf, size); + + /* Adjust consumed count to include what we skipped */ + if(rval.code != RC_FAIL) { + rval.consumed += consumed_myself; + } + + return rval; +} + +asn_enc_rval_t +SEQUENCE_OF_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + /* + * XER Encoding of SEQUENCE OF: + * + * IMPORTANT: This encoder outputs ONLY the member elements, NOT wrapper tags + * like . Such wrapper tags are ASN.1 meta-syntax and are NOT + * part of the XER encoding standard (ITU-T X.693). + * + * CORRECT XER encoding for SEQUENCE OF Integer { 1, 2, 3 } with member name "item": + * 1 + * 2 + * 3 + * + * INCORRECT (would include meta-syntax wrapper tags): + * + * 1 + * 2 + * 3 + * + * + * The decoder has been made tolerant to gracefully skip such wrapper tags + * if they appear in debug-annotated or malformed XER input files, but this + * encoder never outputs them. + */ + asn_enc_rval_t er = {0,0,0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; const asn_TYPE_member_t *elm = td->elements; const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(sptr); - const char *mname = specs->as_XMLValueList - ? 0 - : ((*elm->name) ? elm->name : elm->type->xml_tag); + const char *mname; + + if(specs->as_XMLValueList) { + mname = 0; + } else { + if(!elm) { + ASN_DEBUG("SEQUENCE OF has no element type descriptor"); + ASN__ENCODE_FAILED; + } + mname = (*elm->name && !asn_is_synthetic_collection_member_name(elm->name)) + ? elm->name : elm->type->xml_tag; + + /* Check if mname contains ASN.1 meta-syntax keywords that should not be output */ + if(asn_is_meta_syntax_keyword(mname)) { + /* This is an ASN.1 keyword wrapper tag - use element type instead */ + mname = elm->type->xml_tag; /* Use the element type's tag instead */ + } + } size_t mlen = mname ? strlen(mname) : 0; int xcan = (flags & XER_F_CANONICAL); int i; if (!sptr) ASN__ENCODE_FAILED; + /* Check recursion depth to prevent stack overflow */ + XER_ENCODER_RECURSION_DEPTH_INC(); + er.encoded = 0; for (i = 0; i < list->count; i++) { @@ -33,14 +169,26 @@ asn_enc_rval_t SEQUENCE_OF_encode_xer(const asn_TYPE_descriptor_t *td, void *memb_ptr = list->array[i]; if (!memb_ptr) continue; - if (mname) { - if (!xcan) ASN__TEXT_INDENT(1, ilevel); + if(mname) { + if(!xcan) { + if(i == 0 || er.encoded == 0) { + /* First member: output newline + indent */ + ASN__TEXT_INDENT(1, ilevel); + } else { + /* Subsequent members: output only indent (newline comes from previous closing tag) */ + int tmp_i; + for(tmp_i = 0; tmp_i < ilevel; tmp_i++) ASN__CALLBACK(" ", 4); + } + } ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); } tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, flags, cb, app_key); - if (tmper.encoded == -1) return tmper; + if(tmper.encoded == -1) { + XER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; if (tmper.encoded == 0 && specs->as_XMLValueList) { const char *name = elm->type->xml_tag; @@ -49,14 +197,24 @@ asn_enc_rval_t SEQUENCE_OF_encode_xer(const asn_TYPE_descriptor_t *td, ASN__CALLBACK3("<", 1, name, len, "/>", 2); } - if (mname) { - ASN__CALLBACK3("", 1); + if(mname) { + if(!xcan) { + /* Add indentation before closing tag only if element is a structured type + * that outputs newlines in its content (SEQUENCE, SET, CHOICE, etc.) + * Primitive types like INTEGER output inline content, so no indent needed. */ + if(tmper.encoded > 0 && ASN__IS_STRUCTURED_TYPE(elm)) { + ASN__TEXT_INDENT(0, ilevel); + } + ASN__CALLBACK3("\n", 2); + } else { + ASN__CALLBACK3("", 1); + } } } - if (!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); cb_failed: + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_ber.c b/src/icspacket/include/skeletons/constr_SEQUENCE_ber.c index d47e5b81..10a6390d 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_ber.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_ber.c @@ -5,6 +5,7 @@ */ #include #include +#include #include /* @@ -12,7 +13,7 @@ * (ctx->left) indicates the number of bytes _transferred_ for the structure. * (size) contains the number of bytes in the buffer passed. */ -#define LEFT ((size < (size_t)ctx->left) ? size : (size_t)ctx->left) +#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) /* * If the subprocessor function returns with an indication that it wants @@ -32,74 +33,77 @@ * i.e. was correctly converted into local representation or rightfully skipped. */ #undef ADVANCE -#define ADVANCE(num_bytes) \ - do { \ - size_t num = num_bytes; \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - if (ctx->left >= 0) ctx->left -= num; \ - consumed_myself += num; \ - } while (0) +#define ADVANCE(num_bytes) \ + do { \ + size_t num = num_bytes; \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + if(ctx->left >= 0) \ + ctx->left -= num; \ + consumed_myself += num; \ + } while(0) /* * Switch to the next phase of parsing. */ #undef NEXT_PHASE -#define NEXT_PHASE(ctx) \ - do { \ - ctx->phase++; \ - ctx->step = 0; \ - } while (0) -#undef PHASE_OUT -#define PHASE_OUT(ctx) \ +#define NEXT_PHASE(ctx) \ do { \ - ctx->phase = 10; \ - } while (0) + ctx->phase++; \ + ctx->step = 0; \ + } while(0) +#undef PHASE_OUT +#define PHASE_OUT(ctx) \ + do { \ + ctx->phase = 10; \ + } while(0) /* * Return a standardized complex structure. */ #undef RETURN -#define RETURN(_code) \ - do { \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ - } while (0) +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) /* * Check whether we are inside the extensions group. */ -#define IN_EXTENSION_GROUP(specs, memb_idx) \ - ((specs)->first_extension >= 0 && \ - (unsigned)(specs)->first_extension <= (memb_idx)) +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) /* * Tags are canonically sorted in the tag2element map. */ -static int _t2e_cmp(const void *ap, const void *bp) { +static int +_t2e_cmp(const void *ap, const void *bp) { const asn_TYPE_tag2member_t *a = (const asn_TYPE_tag2member_t *)ap; const asn_TYPE_tag2member_t *b = (const asn_TYPE_tag2member_t *)bp; int a_class = BER_TAG_CLASS(a->el_tag); int b_class = BER_TAG_CLASS(b->el_tag); - if (a_class == b_class) { + if(a_class == b_class) { ber_tlv_tag_t a_value = BER_TAG_VALUE(a->el_tag); ber_tlv_tag_t b_value = BER_TAG_VALUE(b->el_tag); - if (a_value == b_value) { - if (a->el_no > b->el_no) return 1; + if(a_value == b_value) { + if(a->el_no > b->el_no) + return 1; /* * Important: we do not check * for a->el_no <= b->el_no! */ return 0; - } else if (a_value < b_value) + } else if(a_value < b_value) return -1; else return 1; - } else if (a_class < b_class) { + } else if(a_class < b_class) { return -1; } else { return 1; @@ -109,37 +113,36 @@ static int _t2e_cmp(const void *ap, const void *bp) { /* * The decoder of the SEQUENCE type. */ -asn_dec_rval_t SEQUENCE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - void **struct_ptr, const void *ptr, - size_t size, int tag_mode) { +asn_dec_rval_t +SEQUENCE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const void *ptr, size_t size, int tag_mode) { /* * Bring closer parts of structure description. */ - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; + const asn_SEQUENCE_specifics_t *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; const asn_TYPE_member_t *elements = td->elements; /* * Parts of the structure being constructed. */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ - ber_tlv_tag_t tlv_tag; /* T from TLV */ - asn_dec_rval_t rval; /* Return code from subparsers */ + ber_tlv_tag_t tlv_tag; /* T from TLV */ + asn_dec_rval_t rval; /* Return code from subparsers */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - size_t edx; /* SEQUENCE element's index */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* SEQUENCE element's index */ ASN_DEBUG("Decoding %s as SEQUENCE", td->name); /* * Create the target structure if it is not present already. */ - if (st == 0) { + if(st == 0) { st = *struct_ptr = CALLOC(1, specs->struct_size); - if (st == 0) { + if(st == 0) { RETURN(RC_FAIL); } } @@ -149,402 +152,410 @@ asn_dec_rval_t SEQUENCE_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* + * Check recursion depth to prevent stack overflow from circular references, + * using ctx->step + */ + ASN__DECODER_RECURSION_DEPTH_CHECK(opt_codec_ctx); + /* * Start to parse where left previously */ - switch (ctx->phase) { - case 0: - /* - * PHASE 0. - * Check that the set of tags associated with given structure - * perfectly fits our expectations. - */ + switch(ctx->phase) { + case 0: + /* + * PHASE 0. + * Check that the set of tags associated with given structure + * perfectly fits our expectations. + */ - rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, tag_mode, - 1, &ctx->left, 0); - if (rval.code != RC_OK) { - ASN_DEBUG("%s tagging check failed: %d", td->name, rval.code); - return rval; - } + rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size, + tag_mode, 1, &ctx->left, 0); + if(rval.code != RC_OK) { + ASN_DEBUG("%s tagging check failed: %d", + td->name, rval.code); + return rval; + } + + if(ctx->left >= 0) + ctx->left += rval.consumed; /* ?Subtracted below! */ + ADVANCE(rval.consumed); - if (ctx->left >= 0) - ctx->left += rval.consumed; /* ?Subtracted below! */ - ADVANCE(rval.consumed); + NEXT_PHASE(ctx); - NEXT_PHASE(ctx); + ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", + (long)ctx->left, (long)size); - ASN_DEBUG("Structure consumes %ld bytes, buffer %ld", - (long)ctx->left, (long)size); + /* Fall through */ + case 1: + /* + * PHASE 1. + * From the place where we've left it previously, + * try to decode the next member from the list of + * this structure's elements. + * (ctx->step) stores the member being processed + * between invocations and the microphase {0,1} of parsing + * that member: + * step = ( * 2 + ). + */ + for(edx = ((size_t)ctx->step >> 1); edx < td->elements_count; + edx++, ctx->step = (ctx->step & ~1) + 2) { + void *memb_ptr; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ + ssize_t tag_len; /* Length of TLV's T */ + size_t opt_edx_end; /* Next non-optional element */ + size_t n; + int use_bsearch; + + if(ctx->step & 1) + goto microphase2; - /* Fall through */ - case 1: /* - * PHASE 1. - * From the place where we've left it previously, - * try to decode the next member from the list of - * this structure's elements. - * (ctx->step) stores the member being processed - * between invocations and the microphase {0,1} of parsing - * that member: - * step = ( * 2 + ). + * MICROPHASE 1: Synchronize decoding. */ - for (edx = ((size_t)ctx->step >> 1); edx < td->elements_count; - edx++, ctx->step = (ctx->step & ~1) + 2) { - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - ssize_t tag_len; /* Length of TLV's T */ - size_t opt_edx_end; /* Next non-optional element */ - size_t n; - int use_bsearch; - - if (ctx->step & 1) goto microphase2; - + ASN_DEBUG("In %s SEQUENCE left %d, edx=%" ASN_PRI_SIZE " flags=%d" + " opt=%d ec=%d", + td->name, (int)ctx->left, edx, + elements[edx].flags, elements[edx].optional, + td->elements_count); + + if(ctx->left == 0 /* No more stuff is expected */ + && ( + /* Explicit OPTIONAL specification reaches the end */ + (edx + elements[edx].optional == td->elements_count) || + /* All extensions are optional */ + IN_EXTENSION_GROUP(specs, edx))) { + ASN_DEBUG("End of SEQUENCE %s", td->name); /* - * MICROPHASE 1: Synchronize decoding. + * Found the legitimate end of the structure. */ - ASN_DEBUG("In %s SEQUENCE left %d, edx=%" ASN_PRI_SIZE - " flags=%d" - " opt=%d ec=%d", - td->name, (int)ctx->left, edx, elements[edx].flags, - elements[edx].optional, td->elements_count); - - if (ctx->left == 0 /* No more stuff is expected */ - && - ( - /* Explicit OPTIONAL specification reaches the end */ - (edx + elements[edx].optional == td->elements_count) || - /* All extensions are optional */ - IN_EXTENSION_GROUP(specs, edx))) { - ASN_DEBUG("End of SEQUENCE %s", td->name); - /* - * Found the legitimate end of the structure. - */ - PHASE_OUT(ctx); - RETURN(RC_OK); - } + PHASE_OUT(ctx); + RETURN(RC_OK); + } - /* - * Fetch the T from TLV. - */ - tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); - ASN_DEBUG( - "Current tag in %s SEQUENCE for element %" ASN_PRI_SIZE - " " - "(%s) is %s encoded in %d bytes, of frame %ld", - td->name, edx, elements[edx].name, - ber_tlv_tag_string(tlv_tag), (int)tag_len, (long)LEFT); - switch (tag_len) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: - RETURN(RC_FAIL); - } + /* + * Fetch the T from TLV. + */ + tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag); + ASN_DEBUG("Current tag in %s SEQUENCE for element %" ASN_PRI_SIZE " " + "(%s) is %s encoded in %d bytes, of frame %ld", + td->name, edx, elements[edx].name, + ber_tlv_tag_string(tlv_tag), (int)tag_len, (long)LEFT); + switch(tag_len) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } - if (ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { - if (LEFT < 2) { - if (SIZE_VIOLATION) { - RETURN(RC_FAIL); - } else { - RETURN(RC_WMORE); - } - } else if (((const uint8_t *)ptr)[1] == 0) { - ASN_DEBUG("edx = %" ASN_PRI_SIZE ", opt = %d, ec=%d", - edx, elements[edx].optional, - td->elements_count); - if ((edx + elements[edx].optional == - td->elements_count) || - IN_EXTENSION_GROUP(specs, edx)) { - /* - * Yeah, baby! Found the terminator - * of the indefinite length structure. - */ - /* - * Proceed to the canonical - * finalization function. - * No advancing is necessary. - */ - goto phase3; - } + if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) { + RETURN(RC_FAIL); + } else { + RETURN(RC_WMORE); } - } - - /* - * Find the next available type with this tag. - */ - use_bsearch = 0; - opt_edx_end = edx + elements[edx].optional + 1; - if (opt_edx_end > td->elements_count) - opt_edx_end = td->elements_count; /* Cap */ - else if (opt_edx_end - edx > 8) { - /* Limit the scope of linear search... */ - opt_edx_end = edx + 8; - use_bsearch = 1; - /* ... and resort to bsearch() */ - } - for (n = edx; n < opt_edx_end; n++) { - if (BER_TAGS_EQUAL(tlv_tag, elements[n].tag)) { + } else if(((const uint8_t *)ptr)[1] == 0) { + ASN_DEBUG("edx = %" ASN_PRI_SIZE ", opt = %d, ec=%d", edx, + elements[edx].optional, td->elements_count); + if((edx + elements[edx].optional == td->elements_count) + || IN_EXTENSION_GROUP(specs, edx)) { /* - * Found element corresponding to the tag - * being looked at. - * Reposition over the right element. + * Yeah, baby! Found the terminator + * of the indefinite length structure. */ - edx = n; - ctx->step = 1 + 2 * edx; /* Remember! */ - goto microphase2; - } else if (elements[n].flags & ATF_ANY_TYPE) { /* - * This is the ANY type, which may bear - * any flag whatsoever. + * Proceed to the canonical + * finalization function. + * No advancing is necessary. */ - edx = n; - ctx->step = 1 + 2 * edx; /* Remember! */ - goto microphase2; - } else if (elements[n].tag == (ber_tlv_tag_t)-1) { - use_bsearch = 1; - break; + goto phase3; } } - if (use_bsearch) { + } + + /* + * Find the next available type with this tag. + */ + use_bsearch = 0; + opt_edx_end = edx + elements[edx].optional + 1; + if(opt_edx_end > td->elements_count) + opt_edx_end = td->elements_count; /* Cap */ + else if(opt_edx_end - edx > 8) { + /* Limit the scope of linear search... */ + opt_edx_end = edx + 8; + use_bsearch = 1; + /* ... and resort to bsearch() */ + } + for(n = edx; n < opt_edx_end; n++) { + if(BER_TAGS_EQUAL(tlv_tag, elements[n].tag)) { /* - * Resort to a binary search over - * sorted array of tags. + * Found element corresponding to the tag + * being looked at. + * Reposition over the right element. */ - const asn_TYPE_tag2member_t *t2m; - asn_TYPE_tag2member_t key = {0, 0, 0, 0}; - key.el_tag = tlv_tag; - key.el_no = edx; - t2m = (const asn_TYPE_tag2member_t *)bsearch( - &key, specs->tag2el, specs->tag2el_count, - sizeof(specs->tag2el[0]), _t2e_cmp); - if (t2m) { - const asn_TYPE_tag2member_t *best = 0; - const asn_TYPE_tag2member_t *t2m_f, *t2m_l; - size_t edx_max = edx + elements[edx].optional; - /* - * Rewind to the first element with that tag, - * `cause bsearch() does not guarantee order. - */ - t2m_f = t2m + t2m->toff_first; - t2m_l = t2m + t2m->toff_last; - for (t2m = t2m_f; t2m <= t2m_l; t2m++) { - if (t2m->el_no > edx_max) break; - if (t2m->el_no < edx) continue; - best = t2m; - } - if (best) { - edx = best->el_no; - ctx->step = 1 + 2 * edx; - goto microphase2; - } - } - n = opt_edx_end; - } - if (n == opt_edx_end) { + edx = n; + ctx->step = 1 + 2 * edx; /* Remember! */ + goto microphase2; + } else if(elements[n].flags & ATF_ANY_TYPE) { /* - * If tag is unknown, it may be either - * an unknown (thus, incorrect) tag, - * or an extension (...), - * or an end of the indefinite-length structure. + * This is the ANY type, which may bear + * any flag whatsoever. */ - if (!IN_EXTENSION_GROUP(specs, - edx + elements[edx].optional)) { - ASN_DEBUG("Unexpected tag %s (at %" ASN_PRI_SIZE ")", - ber_tlv_tag_string(tlv_tag), edx); - ASN_DEBUG( - "Expected tag %s (%s)%s", - ber_tlv_tag_string(elements[edx].tag), - elements[edx].name, - elements[edx].optional ? " or alternatives" : ""); - RETURN(RC_FAIL); - } else { - /* Skip this tag */ - ssize_t skip; - edx += elements[edx].optional; - - ASN_DEBUG("Skipping unexpected %s (at %" ASN_PRI_SIZE - ")", - ber_tlv_tag_string(tlv_tag), edx); - skip = ber_skip_length( - opt_codec_ctx, BER_TLV_CONSTRUCTED(ptr), - (const char *)ptr + tag_len, LEFT - tag_len); - ASN_DEBUG("Skip length %d in %s", (int)skip, td->name); - switch (skip) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: - RETURN(RC_FAIL); - } - - ADVANCE(skip + tag_len); - ctx->step -= 2; - edx--; - continue; /* Try again with the next tag */ - } + edx = n; + ctx->step = 1 + 2 * edx; /* Remember! */ + goto microphase2; + } else if(elements[n].flags & ATF_OPEN_TYPE) { + /* + * This is the OPEN TYPE, which may bear + * any tag whatsoever. + */ + edx = n; + ctx->step = 1 + 2 * edx; /* Remember! */ + goto microphase2; + } else if(elements[n].tag == (ber_tlv_tag_t)-1) { + use_bsearch = 1; + break; } - - /* - * MICROPHASE 2: Invoke the member-specific decoder. - */ - ctx->step |= 1; /* Confirm entering next microphase */ - microphase2: - ASN_DEBUG("Inside SEQUENCE %s MF2", td->name); - + } + if(use_bsearch) { /* - * Compute the position of the member inside a structure, - * and also a type of containment (it may be contained - * as pointer or using inline inclusion). + * Resort to a binary search over + * sorted array of tags. */ - if (elements[edx].flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = - (void **)((char *)st + elements[edx].memb_offset); - } else { + const asn_TYPE_tag2member_t *t2m; + asn_TYPE_tag2member_t key = {0, 0, 0, 0}; + key.el_tag = tlv_tag; + key.el_no = edx; + t2m = (const asn_TYPE_tag2member_t *)bsearch(&key, + specs->tag2el, specs->tag2el_count, + sizeof(specs->tag2el[0]), _t2e_cmp); + if(t2m) { + const asn_TYPE_tag2member_t *best = 0; + const asn_TYPE_tag2member_t *t2m_f, *t2m_l; + size_t edx_max = edx + elements[edx].optional; /* - * A pointer to a pointer - * holding the start of the structure + * Rewind to the first element with that tag, + * `cause bsearch() does not guarantee order. */ - memb_ptr = (char *)st + elements[edx].memb_offset; - memb_ptr2 = &memb_ptr; + t2m_f = t2m + t2m->toff_first; + t2m_l = t2m + t2m->toff_last; + for(t2m = t2m_f; t2m <= t2m_l; t2m++) { + if(t2m->el_no > edx_max) break; + if(t2m->el_no < edx) continue; + best = t2m; + } + if(best) { + edx = best->el_no; + ctx->step = 1 + 2 * edx; + goto microphase2; + } } + n = opt_edx_end; + } + if(n == opt_edx_end) { /* - * Invoke the member fetch routine according to member's type + * If tag is unknown, it may be either + * an unknown (thus, incorrect) tag, + * or an extension (...), + * or an end of the indefinite-length structure. */ - if (elements[edx].flags & ATF_OPEN_TYPE) { - rval = OPEN_TYPE_ber_get(opt_codec_ctx, td, st, - &elements[edx], ptr, LEFT); + if(!IN_EXTENSION_GROUP(specs, + edx + elements[edx].optional)) { + ASN_DEBUG("Unexpected tag %s (at %" ASN_PRI_SIZE ")", + ber_tlv_tag_string(tlv_tag), edx); + ASN_DEBUG("Expected tag %s (%s)%s", + ber_tlv_tag_string(elements[edx].tag), + elements[edx].name, + elements[edx].optional ?" or alternatives":""); + RETURN(RC_FAIL); } else { - rval = elements[edx].type->op->ber_decoder( - opt_codec_ctx, elements[edx].type, memb_ptr2, ptr, LEFT, - elements[edx].tag_mode); - } - ASN_DEBUG("In %s SEQUENCE decoded %" ASN_PRI_SIZE - " %s of %d " - "in %d bytes rval.code %d, size=%d", - td->name, edx, elements[edx].type->name, (int)LEFT, - (int)rval.consumed, rval.code, (int)size); - switch (rval.code) { - case RC_OK: - break; - case RC_WMORE: /* More data expected */ - if (!SIZE_VIOLATION) { - ADVANCE(rval.consumed); - RETURN(RC_WMORE); - } - ASN_DEBUG("Size violation (c->l=%ld <= s=%ld)", - (long)ctx->left, (long)size); + /* Skip this tag */ + ssize_t skip; + edx += elements[edx].optional; + + ASN_DEBUG("Skipping unexpected %s (at %" ASN_PRI_SIZE ")", + ber_tlv_tag_string(tlv_tag), edx); + skip = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tag_len, + LEFT - tag_len); + ASN_DEBUG("Skip length %d in %s", + (int)skip, td->name); + switch(skip) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); /* Fall through */ - case RC_FAIL: /* Fatal error */ - RETURN(RC_FAIL); - } /* switch(rval) */ - - ADVANCE(rval.consumed); - } /* for(all structure members) */ - - phase3: - ctx->phase = 3; - /* Fall through */ - case 3: /* 00 and other tags expected */ - case 4: /* only 00's expected */ + case -1: RETURN(RC_FAIL); + } - ASN_DEBUG("SEQUENCE %s Leftover: %ld, size = %ld", td->name, - (long)ctx->left, (long)size); + ADVANCE(skip + tag_len); + ctx->step -= 2; + edx--; + continue; /* Try again with the next tag */ + } + } /* - * Skip everything until the end of the SEQUENCE. + * MICROPHASE 2: Invoke the member-specific decoder. */ - while (ctx->left) { - ssize_t tl, ll; - - tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); - switch (tl) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: - RETURN(RC_FAIL); - } + ctx->step |= 1; /* Confirm entering next microphase */ + microphase2: + ASN_DEBUG("Inside SEQUENCE %s MF2", td->name); + /* + * Compute the position of the member inside a structure, + * and also a type of containment (it may be contained + * as pointer or using inline inclusion). + */ + if(elements[edx].flags & ATF_POINTER) { + /* Member is a pointer to another structure */ + memb_ptr2 = (void **)((char *)st + elements[edx].memb_offset); + } else { /* - * If expected <0><0>... + * A pointer to a pointer + * holding the start of the structure */ - if (ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { - if (LEFT < 2) { - if (SIZE_VIOLATION) - RETURN(RC_FAIL); - else - RETURN(RC_WMORE); - } else if (((const uint8_t *)ptr)[1] == 0) { - /* - * Correctly finished with <0><0>. - */ - ADVANCE(2); - ctx->left++; - ctx->phase = 4; - continue; - } + memb_ptr = (char *)st + elements[edx].memb_offset; + memb_ptr2 = &memb_ptr; + } + /* + * Invoke the member fetch routine according to member's type + */ + if(elements[edx].flags & ATF_OPEN_TYPE) { + rval = OPEN_TYPE_ber_get(opt_codec_ctx, td, st, &elements[edx], ptr, LEFT); + } else { + rval = elements[edx].type->op->ber_decoder(opt_codec_ctx, elements[edx].type, + memb_ptr2, ptr, LEFT, + elements[edx].tag_mode); + } + + ASN_DEBUG("In %s SEQUENCE decoded %" ASN_PRI_SIZE " %s of %d " + "in %d bytes rval.code %d, size=%d", + td->name, edx, elements[edx].type->name, + (int)LEFT, (int)rval.consumed, rval.code, (int)size); + switch(rval.code) { + case RC_OK: + break; + case RC_WMORE: /* More data expected */ + if(!SIZE_VIOLATION) { + ADVANCE(rval.consumed); + RETURN(RC_WMORE); } + ASN_DEBUG("Size violation (c->l=%ld <= s=%ld)", + (long)ctx->left, (long)size); + /* Fall through */ + case RC_FAIL: /* Fatal error */ + RETURN(RC_FAIL); + } /* switch(rval) */ - if (!IN_EXTENSION_GROUP(specs, td->elements_count) || - ctx->phase == 4) { - ASN_DEBUG( - "Unexpected continuation " - "of a non-extensible type " - "%s (SEQUENCE): %s", - td->name, ber_tlv_tag_string(tlv_tag)); - RETURN(RC_FAIL); - } + ADVANCE(rval.consumed); + } /* for(all structure members) */ - ll = ber_skip_length(opt_codec_ctx, BER_TLV_CONSTRUCTED(ptr), - (const char *)ptr + tl, LEFT - tl); - switch (ll) { - case 0: - if (!SIZE_VIOLATION) RETURN(RC_WMORE); - /* Fall through */ - case -1: + phase3: + ctx->phase = 3; + /* Fall through */ + case 3: /* 00 and other tags expected */ + case 4: /* only 00's expected */ + + ASN_DEBUG("SEQUENCE %s Leftover: %ld, size = %ld", + td->name, (long)ctx->left, (long)size); + + /* + * Skip everything until the end of the SEQUENCE. + */ + while(ctx->left) { + ssize_t tl, ll; + + tl = ber_fetch_tag(ptr, LEFT, &tlv_tag); + switch(tl) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); + } + + /* + * If expected <0><0>... + */ + if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) { + if(LEFT < 2) { + if(SIZE_VIOLATION) RETURN(RC_FAIL); + else + RETURN(RC_WMORE); + } else if(((const uint8_t *)ptr)[1] == 0) { + /* + * Correctly finished with <0><0>. + */ + ADVANCE(2); + ctx->left++; + ctx->phase = 4; + continue; } + } + + if(!IN_EXTENSION_GROUP(specs, td->elements_count) + || ctx->phase == 4) { + ASN_DEBUG("Unexpected continuation " + "of a non-extensible type " + "%s (SEQUENCE): %s", + td->name, + ber_tlv_tag_string(tlv_tag)); + RETURN(RC_FAIL); + } - ADVANCE(tl + ll); + ll = ber_skip_length(opt_codec_ctx, + BER_TLV_CONSTRUCTED(ptr), + (const char *)ptr + tl, LEFT - tl); + switch(ll) { + case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE); + /* Fall through */ + case -1: RETURN(RC_FAIL); } - PHASE_OUT(ctx); + ADVANCE(tl + ll); + } + + PHASE_OUT(ctx); } RETURN(RC_OK); } + /* * The DER encoder of the SEQUENCE type. */ -asn_enc_rval_t SEQUENCE_encode_der(const asn_TYPE_descriptor_t *td, - const void *sptr, int tag_mode, - ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { +asn_enc_rval_t +SEQUENCE_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, + int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { size_t computed_size = 0; - asn_enc_rval_t erval = {0, 0, 0}; + asn_enc_rval_t erval = {0,0,0}; ssize_t ret; size_t edx; - ASN_DEBUG("%s %s as SEQUENCE", cb ? "Encoding" : "Estimating", td->name); + ASN_DEBUG("%s %s as SEQUENCE", + cb?"Encoding":"Estimating", td->name); + + /* Check encoding recursion depth to prevent stack overflow */ + ASN__ENCODER_RECURSION_DEPTH_INC(); /* * Gather the length of the underlying members sequence. */ - for (edx = 0; edx < td->elements_count; edx++) { + for(edx = 0; edx < td->elements_count; edx++) { asn_TYPE_member_t *elm = &td->elements[edx]; - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { memb_ptr2 = (const void *const *)((const char *)sptr + elm->memb_offset); - if (!*memb_ptr2) { - ASN_DEBUG("Element %s %" ASN_PRI_SIZE " not present", elm->name, - edx); - if (elm->optional) continue; + if(!*memb_ptr2) { + ASN_DEBUG("Element %s %" ASN_PRI_SIZE " not present", + elm->name, edx); + if(elm->optional) + continue; /* Mandatory element is missing */ ASN__ENCODE_FAILED; } @@ -554,15 +565,24 @@ asn_enc_rval_t SEQUENCE_encode_der(const asn_TYPE_descriptor_t *td, } /* Eliminate default values */ - if (elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) continue; - erval = elm->type->op->der_encoder(elm->type, *memb_ptr2, elm->tag_mode, - elm->tag, 0, 0); - if (erval.encoded == -1) return erval; + if(elm->flags & ATF_OPEN_TYPE) { + erval = OPEN_TYPE_ber_put(td, sptr, elm, + elm->tag_mode, elm->tag, + 0, 0); /* NULL callback for size estimation */ + } else { + erval = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, + 0, 0); /* NULL callback for size estimation */ + } + + if(erval.encoded == -1) + return erval; computed_size += erval.encoded; - ASN_DEBUG("Member %" ASN_PRI_SIZE " %s estimated %ld bytes", edx, - elm->name, (long)erval.encoded); + ASN_DEBUG("Member %" ASN_PRI_SIZE " %s estimated %ld bytes", + edx, elm->name, (long)erval.encoded); } /* @@ -570,47 +590,74 @@ asn_enc_rval_t SEQUENCE_encode_der(const asn_TYPE_descriptor_t *td, */ ret = der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); ASN_DEBUG("Wrote tags: %ld (+%ld)", (long)ret, (long)computed_size); - if (ret == -1) ASN__ENCODE_FAILED; + if(ret == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } erval.encoded = computed_size + ret; - if (!cb) ASN__ENCODED_OK(erval); + if(!cb) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODED_OK(erval); + } /* * Encode all members. */ - for (edx = 0; edx < td->elements_count; edx++) { + for(edx = 0; edx < td->elements_count; edx++) { asn_TYPE_member_t *elm = &td->elements[edx]; - asn_enc_rval_t tmperval = {0, 0, 0}; - const void *memb_ptr; /* Pointer to the member */ - const void *const *memb_ptr2; /* Pointer to that pointer */ + asn_enc_rval_t tmperval = {0,0,0}; + const void *memb_ptr; /* Pointer to the member */ + const void *const *memb_ptr2; /* Pointer to that pointer */ - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { memb_ptr2 = (const void *const *)((const char *)sptr + elm->memb_offset); - if (!*memb_ptr2) continue; + if(!*memb_ptr2) continue; } else { memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); memb_ptr2 = &memb_ptr; } /* Eliminate default values */ - if (elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) + if(elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) continue; - tmperval = elm->type->op->der_encoder( - elm->type, *memb_ptr2, elm->tag_mode, elm->tag, cb, app_key); - if (tmperval.encoded == -1) return tmperval; + if(elm->flags & ATF_OPEN_TYPE) { + tmperval = OPEN_TYPE_ber_put(td, sptr, elm, + elm->tag_mode, elm->tag, cb, app_key); + } else { + tmperval = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, cb, app_key); + } + + + if(tmperval.encoded == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return tmperval; + } + + if(computed_size < (size_t)tmperval.encoded) { + /* This should never happen if estimation and encoding are consistent */ + ASN_DEBUG("Size mismatch: computed_size=%zu < tmperval.encoded=%zd for element %s", + computed_size, tmperval.encoded, elm->name); + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } + computed_size -= tmperval.encoded; - ASN_DEBUG("Member %" ASN_PRI_SIZE - " %s of SEQUENCE %s encoded in %ld bytes", + ASN_DEBUG("Member %" ASN_PRI_SIZE " %s of SEQUENCE %s encoded in %ld bytes", edx, elm->name, td->name, (long)tmperval.encoded); } - if (computed_size != 0) + if(computed_size != 0) { /* * Encoded size is not equal to the computed size. */ + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; + } + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(erval); } diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_jer.c b/src/icspacket/include/skeletons/constr_SEQUENCE_jer.c index a460ac3d..3965bfc9 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_jer.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_jer.c @@ -7,64 +7,70 @@ #include #include +#define JER_MEMBER_NAME(elm) \ + (((elm)->encoding_constraints.jer_constraints \ + && (elm)->encoding_constraints.jer_constraints->wire_name) \ + ? (elm)->encoding_constraints.jer_constraints->wire_name \ + : (elm)->name) + /* * Return a standardized complex structure. */ #undef RETURN -#define RETURN(_code) \ - do { \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ - } while (0) +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) /* * Check whether we are inside the extensions group. */ -#define IN_EXTENSION_GROUP(specs, memb_idx) \ - ((specs)->first_extension >= 0 && \ - (unsigned)(specs)->first_extension <= (memb_idx)) +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) #undef JER_ADVANCE -#define JER_ADVANCE(num_bytes) \ - do { \ - size_t num = (num_bytes); \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - consumed_myself += num; \ - } while (0) +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = (num_bytes); \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) /* * Decode the JER (JSON) data. */ -asn_dec_rval_t SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - void **struct_ptr, const void *ptr, - size_t size) { +asn_dec_rval_t +SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *ptr, size_t size) { /* * Bring closer parts of structure description. */ - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; asn_TYPE_member_t *elements = td->elements; /* * ... and parts of the structure being constructed. */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ - asn_dec_rval_t rval; /* Return value from a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - ssize_t edx; /* Element index */ + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + ssize_t edx; /* Element index */ /* * Create the target structure if it is not present already. */ - if (st == 0) { + if(st == 0) { st = *struct_ptr = CALLOC(1, specs->struct_size); - if (st == 0) RETURN(RC_FAIL); + if(st == 0) RETURN(RC_FAIL); } /* @@ -72,6 +78,10 @@ asn_dec_rval_t SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + /* * Phases of JER/JSON processing: * Phase 0: Check that the key matches our expectations. @@ -80,259 +90,267 @@ asn_dec_rval_t SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, * Phase 3: Skipping unknown extensions. * Phase 4: PHASED OUT */ - for (edx = ctx->step; ctx->phase <= 3;) { - pjer_chunk_type_e ch_type; /* JER chunk type */ - ssize_t ch_size; /* Chunk size */ - jer_check_sym_e scv; /* Tag check value */ + for(edx = ctx->step; ctx->phase <= 3;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ asn_TYPE_member_t *elm; + /* * Go inside the inner member of a sequence. */ - if (ctx->phase == 2) { + if(ctx->phase == 2) { asn_dec_rval_t tmprval; - void *memb_ptr_dontuse; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ elm = &td->elements[edx]; - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { /* Member is a pointer to another structure */ memb_ptr2 = (void **)((char *)st + elm->memb_offset); } else { memb_ptr_dontuse = (char *)st + elm->memb_offset; - memb_ptr2 = - &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ } - if (elm->flags & ATF_OPEN_TYPE) { - tmprval = - OPEN_TYPE_jer_get(opt_codec_ctx, td, st, elm, ptr, size); + if(elm->flags & ATF_OPEN_TYPE) { + tmprval = OPEN_TYPE_jer_get(opt_codec_ctx, td, st, elm, ptr, size); } else { /* Invoke the inner type decoder, m.b. multiple times */ - tmprval = elm->type->op->jer_decoder( - opt_codec_ctx, elm->type, - elm->encoding_constraints.jer_constraints, memb_ptr2, ptr, - size); + tmprval = elm->type->op->jer_decoder(opt_codec_ctx, + elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr2, + ptr, size); } JER_ADVANCE(tmprval.consumed); - if (tmprval.code != RC_OK) RETURN(tmprval.code); - ctx->phase = 1; /* Back to body processing */ + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ ctx->step = ++edx; - ASN_DEBUG("JER/SEQUENCE phase => %d, step => %d", ctx->phase, - ctx->step); + ASN_DEBUG("JER/SEQUENCE phase => %d, step => %d", + ctx->phase, ctx->step); /* Fall through */ } /* * Get the next part of the JSON stream. */ - ch_size = jer_next_token(&ctx->context, ptr, size, &ch_type); - if (ch_size == -1) { + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { RETURN(RC_FAIL); } else { - switch (ch_type) { - case PJER_WMORE: - RETURN(RC_WMORE); + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); - case PJER_TEXT: /* Ignore free-standing text */ - JER_ADVANCE(ch_size); /* Skip silently */ - continue; + case PJER_TEXT: /* Ignore free-standing text */ + JER_ADVANCE(ch_size); /* Skip silently */ + continue; - case PJER_DLM: - case PJER_VALUE: - case PJER_KEY: - break; /* Check the rest down there */ + case PJER_DLM: + case PJER_VALUE: + case PJER_KEY: + break; /* Check the rest down there */ } } scv = jer_check_sym(ptr, ch_size, NULL); - ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d [%s]", scv, ctx->phase, - td->name); + ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d [%s]", + scv, ctx->phase, td->name); + /* Skip the extensions section */ - if (ctx->phase == 3) { - switch (jer_skip_unknown(scv, &ctx->left)) { - case -1: - ctx->phase = 4; - RETURN(RC_FAIL); - case 0: - JER_ADVANCE(ch_size); - continue; - case 1: - JER_ADVANCE(ch_size); - ctx->phase = 1; - continue; - case 2: - ctx->phase = 1; - break; + if(ctx->phase == 3) { + switch(jer_skip_unknown(scv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 0: + JER_ADVANCE(ch_size); + continue; + case 1: + JER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + case 2: + ctx->phase = 1; + break; } } - switch (scv) { - case JCK_OEND: - if (ctx->phase == 0) break; - ctx->phase = 0; - - if (edx >= td->elements_count || - /* Explicit OPTIONAL specs reaches the end */ - (edx + elements[edx].optional == td->elements_count) || - /* All extensions are optional */ - IN_EXTENSION_GROUP(specs, edx)) { - JER_ADVANCE(ch_size); - JER_ADVANCE(jer_whitespace_span(ptr, size)); - ctx->phase = 4; /* Phase out */ - RETURN(RC_OK); - } else { - ASN_DEBUG("Premature end of JER SEQUENCE"); - RETURN(RC_FAIL); - } - case JCK_COMMA: - ADVANCE(ch_size); + switch(scv) { + case JCK_OEND: + if(ctx->phase == 0) break; + ctx->phase = 0; + + if(edx >= td->elements_count || + /* Explicit OPTIONAL specs reaches the end */ + (edx + elements[edx].optional == td->elements_count) || + /* All extensions are optional */ + IN_EXTENSION_GROUP(specs, edx)) { + JER_ADVANCE(ch_size); + JER_ADVANCE(jer_whitespace_span(ptr, size)); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of JER SEQUENCE"); + RETURN(RC_FAIL); + } + case JCK_COMMA: + JER_ADVANCE(ch_size); + continue; + /* Fall through */ + case JCK_OSTART: /* '{' */ + if(ctx->phase == 0) { + JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ continue; - /* Fall through */ - case JCK_OSTART: /* '{' */ - if (ctx->phase == 0) { - JER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } + } - /* Fall through */ - case JCK_KEY: - case JCK_UNKNOWN: - ASN_DEBUG("JER/SEQUENCE: scv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", - scv, ctx->phase, edx); - if (ctx->phase != 1) { - break; /* Really unexpected */ - } + /* Fall through */ + case JCK_KEY: + case JCK_UNKNOWN: + ASN_DEBUG("JER/SEQUENCE: scv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", + scv, ctx->phase, edx); + if(ctx->phase != 1) { + break; /* Really unexpected */ + } - if (td->elements_count == 0) { - JER_ADVANCE(ch_size); - continue; - } + if (td->elements_count == 0) { + JER_ADVANCE(ch_size); + continue; + } - if (edx < td->elements_count) { - /* - * We have to check which member is next. - */ - size_t n; - size_t edx_end = edx + elements[edx].optional + 1; - if (edx_end > td->elements_count) { - edx_end = td->elements_count; - } + if(edx < td->elements_count) { + /* + * We have to check which member is next. + */ + size_t n; + size_t edx_end = edx + elements[edx].optional + 1; + if(edx_end > td->elements_count) { + edx_end = td->elements_count; + } - for (n = edx; n < edx_end; n++) { - elm = &td->elements[n]; - scv = jer_check_sym(ptr, ch_size, elm->name); - switch (scv) { - case JCK_KEY: - ctx->step = edx = n; - ctx->phase = 2; - - ADVANCE(ch_size); /* skip key */ - /* skip colon */ - ch_size = jer_next_token(&ctx->context, ptr, - size, &ch_type); - if (ch_size == -1) { + for(n = edx; n < edx_end; n++) { + elm = &td->elements[n]; + scv = jer_check_sym(ptr, ch_size, JER_MEMBER_NAME(elm)); + switch (scv) { + case JCK_KEY: + ctx->step = edx = n; + ctx->phase = 2; + + JER_ADVANCE(ch_size); /* skip key */ + /* skip colon */ + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); + break; + default: RETURN(RC_FAIL); - } else { - switch (ch_type) { - case PJER_WMORE: - RETURN(RC_WMORE); - case PJER_TEXT: - JER_ADVANCE(ch_size); - break; - default: - RETURN(RC_FAIL); - } } - break; - case JCK_UNKNOWN: - continue; - default: - n = edx_end; - break; /* Phase out */ - } - break; + } + break; + case JCK_UNKNOWN: + continue; + default: + n = edx_end; + break; /* Phase out */ } - if (n != edx_end) continue; - } else { - ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", - edx, td->elements_count); + break; } - - /* It is expected extension */ - if (IN_EXTENSION_GROUP( - specs, - edx + (edx < td->elements_count ? elements[edx].optional - : 0))) { - ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", - edx); - ctx->left = 1; - ctx->phase = 3; /* Skip ...'s */ - JER_ADVANCE(ch_size); + if(n != edx_end) continue; - } + } else { + ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", + edx, td->elements_count); + } - /* Fall through */ - default: - break; + /* It is expected extension */ + if(IN_EXTENSION_GROUP(specs, + edx + (edx < td->elements_count + ? elements[edx].optional : 0))) { + ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", + edx); + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ + JER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; } ASN_DEBUG("Unexpected JSON key in SEQUENCE [%c%c%c%c%c%c]", - size > 0 ? ((const char *)ptr)[0] : '.', - size > 1 ? ((const char *)ptr)[1] : '.', - size > 2 ? ((const char *)ptr)[2] : '.', - size > 3 ? ((const char *)ptr)[3] : '.', - size > 4 ? ((const char *)ptr)[4] : '.', - size > 5 ? ((const char *)ptr)[5] : '.'); + size>0?((const char *)ptr)[0]:'.', + size>1?((const char *)ptr)[1]:'.', + size>2?((const char *)ptr)[2]:'.', + size>3?((const char *)ptr)[3]:'.', + size>4?((const char *)ptr)[4]:'.', + size>5?((const char *)ptr)[5]:'.'); break; } - ctx->phase = 4; /* "Phase out" on hard failure */ + ctx->phase = 4; /* "Phase out" on hard failure */ RETURN(RC_FAIL); } + asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - const void *sptr, int ilevel, - enum jer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er = {0, 0, 0}; + const asn_jer_constraints_t* constraints, const void *sptr, + int ilevel, enum jer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; int jmin = (flags & JER_F_MINIFIED); asn_TYPE_descriptor_t *tmp_def_val_td = 0; void *tmp_def_val = 0; size_t edx; - if (!sptr) ASN__ENCODE_FAILED; + if(!sptr) ASN__ENCODE_FAILED; + + /* Check recursion depth to prevent stack overflow */ + JER_ENCODER_RECURSION_DEPTH_INC(); er.encoded = 0; int bAddComma = 0; ASN__CALLBACK("{", 1); - for (edx = 0; edx < td->elements_count; edx++) { - asn_enc_rval_t tmper = {0, 0, 0}; + for(edx = 0; edx < td->elements_count; edx++) { + asn_enc_rval_t tmper = {0,0,0}; asn_TYPE_member_t *elm = &td->elements[edx]; const void *memb_ptr; - const char *mname = elm->name; + const char *mname = JER_MEMBER_NAME(elm); unsigned int mlen = strlen(mname); - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); - if (!memb_ptr) { + if(!memb_ptr) { assert(tmp_def_val == 0); - if (elm->default_value_set) { - if (elm->default_value_set(&tmp_def_val)) { + if(elm->default_value_set) { + if(elm->default_value_set(&tmp_def_val)) { + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } else { memb_ptr = tmp_def_val; tmp_def_val_td = elm->type; } - } else if (elm->optional) { + } else if(elm->optional) { continue; } else { /* Mandatory element is missing */ + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } } @@ -341,11 +359,11 @@ asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, } if (bAddComma == 1) { - ASN__CALLBACK(",", 1); - bAddComma = 0; + ASN__CALLBACK(",", 1); + bAddComma = 0; } - if (!jmin) { + if(!jmin) { ASN__TEXT_INDENT(1, ilevel + 1); ASN__CALLBACK3("\"", 1, mname, mlen, "\": ", 3); } else { @@ -353,24 +371,35 @@ asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, } /* Print the member itself */ - tmper = elm->type->op->jer_encoder( - elm->type, elm->encoding_constraints.jer_constraints, memb_ptr, - ilevel + 1, flags, cb, app_key); - if (tmp_def_val) { + if(elm->flags & ATF_OPEN_TYPE) { + tmper = OPEN_TYPE_jer_put(td, sptr, elm, ilevel + 1, flags, cb, app_key); + } else { + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, + ilevel + 1, flags, cb, app_key); + } + if(tmp_def_val) { ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); tmp_def_val = 0; } - if (tmper.encoded == -1) return tmper; + if(tmper.encoded == -1) { + JER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; if (edx != td->elements_count - 1) { - bAddComma = 1; + bAddComma = 1; } } - if (!jmin) ASN__TEXT_INDENT(1, ilevel); + if(!jmin) ASN__TEXT_INDENT(1, ilevel); ASN__CALLBACK("}", 1); + + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); cb_failed: - if (tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + if(tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_print.c b/src/icspacket/include/skeletons/constr_SEQUENCE_print.c index a73b2d6c..5fcc8fa7 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_print.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_print.c @@ -5,6 +5,7 @@ */ #include #include +#include int SEQUENCE_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { @@ -43,9 +44,13 @@ int SEQUENCE_print(const asn_TYPE_descriptor_t *td, const void *sptr, return -1; /* Print the member itself */ - ret = elm->type->op->print_struct(elm->type, memb_ptr, ilevel + 1, cb, - app_key); - if (ret) return ret; + if(elm->flags & ATF_OPEN_TYPE) { + ret = OPEN_TYPE_print_member(td, sptr, elm, ilevel + 1, cb, app_key); + } else { + ret = elm->type->op->print_struct(elm->type, memb_ptr, ilevel + 1, + cb, app_key); + } + if(ret) return ret; } ilevel--; diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_xer.c b/src/icspacket/include/skeletons/constr_SEQUENCE_xer.c index 9431f83a..a8e72ade 100644 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_xer.c +++ b/src/icspacket/include/skeletons/constr_SEQUENCE_xer.c @@ -11,60 +11,60 @@ * Return a standardized complex structure. */ #undef RETURN -#define RETURN(_code) \ - do { \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ - } while (0) +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) /* * Check whether we are inside the extensions group. */ -#define IN_EXTENSION_GROUP(specs, memb_idx) \ - ((specs)->first_extension >= 0 && \ - (unsigned)(specs)->first_extension <= (memb_idx)) +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) #undef XER_ADVANCE -#define XER_ADVANCE(num_bytes) \ - do { \ - size_t num = (num_bytes); \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - consumed_myself += num; \ - } while (0) +#define XER_ADVANCE(num_bytes) \ + do { \ + size_t num = (num_bytes); \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) /* * Decode the XER (XML) data. */ -asn_dec_rval_t SEQUENCE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - void **struct_ptr, const char *opt_mname, - const void *ptr, size_t size) { +asn_dec_rval_t +SEQUENCE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, void **struct_ptr, + const char *opt_mname, const void *ptr, size_t size) { /* * Bring closer parts of structure description. */ - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; + const asn_SEQUENCE_specifics_t *specs + = (const asn_SEQUENCE_specifics_t *)td->specifics; asn_TYPE_member_t *elements = td->elements; const char *xml_tag = opt_mname ? opt_mname : td->xml_tag; /* * ... and parts of the structure being constructed. */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ - asn_dec_rval_t rval; /* Return value from a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - size_t edx; /* Element index */ + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + size_t edx; /* Element index */ /* * Create the target structure if it is not present already. */ - if (st == 0) { + if(st == 0) { st = *struct_ptr = CALLOC(1, specs->struct_size); - if (st == 0) RETURN(RC_FAIL); + if(st == 0) RETURN(RC_FAIL); } /* @@ -72,6 +72,11 @@ asn_dec_rval_t SEQUENCE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + + /* * Phases of XER/XML processing: * Phase 0: Check that the opening tag matches our expectations. @@ -80,240 +85,403 @@ asn_dec_rval_t SEQUENCE_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, * Phase 3: Skipping unknown extensions. * Phase 4: PHASED OUT */ - for (edx = ctx->step; ctx->phase <= 3;) { - pxer_chunk_type_e ch_type; /* XER chunk type */ - ssize_t ch_size; /* Chunk size */ - xer_check_tag_e tcv; /* Tag check value */ + for(edx = ctx->step; ctx->phase <= 3;) { + pxer_chunk_type_e ch_type; /* XER chunk type */ + ssize_t ch_size; /* Chunk size */ + xer_check_tag_e tcv; /* Tag check value */ asn_TYPE_member_t *elm; /* * Go inside the inner member of a sequence. */ - if (ctx->phase == 2) { + if(ctx->phase == 2) { asn_dec_rval_t tmprval; - void *memb_ptr_dontuse; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ elm = &td->elements[edx]; - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { /* Member is a pointer to another structure */ memb_ptr2 = (void **)((char *)st + elm->memb_offset); } else { memb_ptr_dontuse = (char *)st + elm->memb_offset; - memb_ptr2 = - &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ } - if (elm->flags & ATF_OPEN_TYPE) { - tmprval = - OPEN_TYPE_xer_get(opt_codec_ctx, td, st, elm, ptr, size); + if(elm->flags & ATF_OPEN_TYPE) { + tmprval = OPEN_TYPE_xer_get(opt_codec_ctx, td, st, elm, ptr, size); + /* Debug: Check if CHOICE present field was set (only in CHOICE wrapper mode) */ + if(tmprval.code == RC_OK && elm->type->elements_count > 0) { + void *choice_ptr = (elm->flags & ATF_POINTER) + ? *(void**)((char*)st + elm->memb_offset) + : (void*)((char*)st + elm->memb_offset); + if(choice_ptr) { + unsigned int *present __attribute__((unused)) = (unsigned int*)choice_ptr; + ASN_DEBUG("OPEN_TYPE decoded: present=%u", *present); + } + } } else { /* Invoke the inner type decoder, m.b. multiple times */ - tmprval = elm->type->op->xer_decoder( - opt_codec_ctx, elm->type, memb_ptr2, elm->name, ptr, size); + tmprval = elm->type->op->xer_decoder(opt_codec_ctx, + elm->type, memb_ptr2, elm->name, + ptr, size); } XER_ADVANCE(tmprval.consumed); - if (tmprval.code != RC_OK) RETURN(tmprval.code); - ctx->phase = 1; /* Back to body processing */ + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ ctx->step = ++edx; - ASN_DEBUG("XER/SEQUENCE phase => %d, step => %d", ctx->phase, - ctx->step); + ASN_DEBUG("XER/SEQUENCE phase => %d, step => %d", + ctx->phase, ctx->step); /* Fall through */ } /* * Get the next part of the XML stream. */ - ch_size = xer_next_token(&ctx->context, ptr, size, &ch_type); - if (ch_size == -1) { + ch_size = xer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { RETURN(RC_FAIL); } else { - switch (ch_type) { - case PXER_WMORE: - RETURN(RC_WMORE); - case PXER_COMMENT: /* Got XML comment */ - case PXER_TEXT: /* Ignore free-standing text */ - XER_ADVANCE(ch_size); /* Skip silently */ - continue; - case PXER_TAG: - break; /* Check the rest down there */ + switch(ch_type) { + case PXER_WMORE: + RETURN(RC_WMORE); + case PXER_COMMENT: /* Got XML comment */ + case PXER_TEXT: /* Ignore free-standing text */ + XER_ADVANCE(ch_size); /* Skip silently */ + continue; + case PXER_TAG: + break; /* Check the rest down there */ } } tcv = xer_check_tag(ptr, ch_size, xml_tag); - ASN_DEBUG("XER/SEQUENCE: tcv = %d, ph=%d [%s]", tcv, ctx->phase, - xml_tag); + ASN_DEBUG("XER/SEQUENCE: tcv = %d, ph=%d [%s]", + tcv, ctx->phase, xml_tag); /* Skip the extensions section */ - if (ctx->phase == 3) { - switch (xer_skip_unknown(tcv, &ctx->left)) { - case -1: - ctx->phase = 4; - RETURN(RC_FAIL); - case 0: - XER_ADVANCE(ch_size); - continue; - case 1: - XER_ADVANCE(ch_size); - ctx->phase = 1; - continue; - case 2: - ctx->phase = 1; - break; + if(ctx->phase == 3) { + switch(xer_skip_unknown(tcv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 0: + XER_ADVANCE(ch_size); + continue; + case 1: + XER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + case 2: + ctx->phase = 1; + break; } } - switch (tcv) { - case XCT_CLOSING: - if (ctx->phase == 0) break; - ctx->phase = 0; - /* Fall through */ - case XCT_BOTH: - if (ctx->phase == 0) { - if (edx >= td->elements_count || - /* Explicit OPTIONAL specs reaches the end */ - (edx + elements[edx].optional == td->elements_count) || - /* All extensions are optional */ - IN_EXTENSION_GROUP(specs, edx)) { - XER_ADVANCE(ch_size); - ctx->phase = 4; /* Phase out */ - RETURN(RC_OK); - } else { - ASN_DEBUG("Premature end of XER SEQUENCE"); - RETURN(RC_FAIL); - } + switch(tcv) { + case XCT_CLOSING: + if(ctx->phase == 0) break; + ctx->phase = 0; + /* Fall through */ + case XCT_BOTH: + if(ctx->phase == 0) { + if(edx >= td->elements_count || + /* Explicit OPTIONAL specs reaches the end */ + (edx + elements[edx].optional == td->elements_count) || + /* All extensions are optional */ + IN_EXTENSION_GROUP(specs, edx)) { + XER_ADVANCE(ch_size); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of XER SEQUENCE"); + RETURN(RC_FAIL); } - /* Fall through */ - case XCT_OPENING: - if (ctx->phase == 0) { + } + /* Fall through */ + case XCT_OPENING: + if(ctx->phase == 0) { + XER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + + ASN_DEBUG("XER/SEQUENCE: tcv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", + tcv, ctx->phase, edx); + + /* In phase 0, check if this is the generic tag */ + if(ctx->phase == 0) { + xer_check_tag_e seq_tcv = xer_check_tag(ptr, ch_size, "SEQUENCE"); + if(seq_tcv == XCT_OPENING || seq_tcv == XCT_BOTH) { + ASN_DEBUG("XER/SEQUENCE: Accepting generic tag in phase 0"); XER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ + ctx->phase = 1; /* Processing body phase */ continue; } - /* Fall through */ - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - - ASN_DEBUG("XER/SEQUENCE: tcv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", - tcv, ctx->phase, edx); - if (ctx->phase != 1) { - break; /* Really unexpected */ - } + break; /* Really unexpected */ + } + + if(ctx->phase != 1) { + break; /* Really unexpected */ + } - if (edx < td->elements_count) { - /* - * Search which member corresponds to this tag. - */ - size_t n; - size_t edx_end = edx + elements[edx].optional + 1; - if (edx_end > td->elements_count) - edx_end = td->elements_count; - for (n = edx; n < edx_end; n++) { - elm = &td->elements[n]; - tcv = xer_check_tag(ptr, ch_size, elm->name); - switch (tcv) { - case XCT_BOTH: - case XCT_OPENING: - /* - * Process this member. - */ - ctx->step = edx = n; - ctx->phase = 2; - break; - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - continue; - default: - n = edx_end; - break; /* Phase out */ + if(edx < td->elements_count) { + /* + * Search which member corresponds to this tag. + */ + size_t n; + size_t edx_end = edx + elements[edx].optional + 1; + if(edx_end > td->elements_count) + edx_end = td->elements_count; + for(n = edx; n < edx_end; n++) { + elm = &td->elements[n]; + tcv = xer_check_tag(ptr, ch_size, elm->name); + + ASN_DEBUG("XER/SEQUENCE: Checking member n=%zu, name='%s', tcv=%d, tag='%.*s'", + n, elm->name ? elm->name : "(null)", tcv, + (int)(ch_size < 50 ? ch_size : 50), (const char*)ptr); + + switch(tcv) { + case XCT_BOTH: +#if XER_EMPTY_OPTIONALS_ENABLED + /* + * Empty tag detected (e.g., ). + * If this field is OPTIONAL, treat it as absent. + */ + if(elm->optional) { + ASN_DEBUG("XER/SEQUENCE: Empty optional field '%s', treating as absent", + elm->name ? elm->name : "(null)"); + XER_ADVANCE(ch_size); + ctx->step = edx = n + 1; + break; /* Exit inner loop to get next token */ } +#endif + /* Fall through for non-optional or when feature disabled */ + case XCT_OPENING: +#if XER_EMPTY_OPTIONALS_ENABLED + /* + * Check if this is an empty optional field with separate + * opening/closing tags (e.g., ). + */ + if(elm->optional) { + const char *peek_ptr = (const char *)ptr + ch_size; + size_t peek_size = size - ch_size; + int peek_ctx = 0; + pxer_chunk_type_e peek_type; + ssize_t peek_ch_size; + ssize_t closing_tag_size = 0; + + /* Skip whitespace and comments to find next token */ + while(peek_size > 0) { + peek_ch_size = xer_next_token(&peek_ctx, peek_ptr, peek_size, &peek_type); + if(peek_ch_size <= 0) break; + + if(peek_type == PXER_COMMENT || peek_type == PXER_TEXT) { + /* Skip whitespace/comments */ + size_t ws_span = xer_whitespace_span(peek_ptr, peek_ch_size); + if(ws_span == (size_t)peek_ch_size) { + /* Pure whitespace, skip it */ + peek_ptr += peek_ch_size; + peek_size -= peek_ch_size; + peek_ctx = 0; + continue; + } else if(peek_type == PXER_COMMENT) { + /* Comment, skip it */ + peek_ptr += peek_ch_size; + peek_size -= peek_ch_size; + peek_ctx = 0; + continue; + } + } + + /* Found a non-whitespace token */ + if(peek_type == PXER_TAG) { + xer_check_tag_e peek_tcv = xer_check_tag(peek_ptr, peek_ch_size, elm->name); + if(peek_tcv == XCT_CLOSING) { + /* This is an empty optional field! */ + ASN_DEBUG("XER/SEQUENCE: Empty optional field '%s' (separate tags), treating as absent", + elm->name ? elm->name : "(null)"); + /* Capture closing tag size before using it */ + closing_tag_size = peek_ch_size; + /* Skip both opening and closing tags */ + XER_ADVANCE((peek_ptr - (const char *)ptr) + closing_tag_size); + ctx->step = edx = n + 1; + break; /* Exit inner loop to get next token */ + } + } + break; /* Not an empty tag, proceed normally */ + } + + /* If we found and handled an empty optional, skip normal processing */ + if(closing_tag_size > 0) { + break; /* Exit switch to skip normal member processing */ + } + } +#endif + /* + * Process this member. + */ + ctx->step = edx = n; + ctx->phase = 2; break; + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_BO: + continue; + default: + n = edx_end; + break; /* Phase out */ } - if (n != edx_end) continue; + break; + } + if(n != edx_end) + continue; + } else { + ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", + edx, td->elements_count); + } + + /* It is expected extension */ + if(IN_EXTENSION_GROUP(specs, + edx + (edx < td->elements_count + ? elements[edx].optional : 0))) { + ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", + edx); + /* + * Check for (XCT_BOTH or XCT_UNKNOWN_BO) + * By using a mask. Only record a pure + * tags. + */ + if(tcv & XCT_CLOSING) { + /* Found without body */ } else { - ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", - edx, td->elements_count); + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ } + XER_ADVANCE(ch_size); + continue; + } - /* It is expected extension */ - if (IN_EXTENSION_GROUP( - specs, - edx + (edx < td->elements_count ? elements[edx].optional - : 0))) { - ASN_DEBUG("Got anticipated extension at %" ASN_PRI_SIZE "", - edx); - /* - * Check for (XCT_BOTH or XCT_UNKNOWN_BO) - * By using a mask. Only record a pure - * tags. - */ - if (tcv & XCT_CLOSING) { - /* Found without body */ - } else { - ctx->left = 1; - ctx->phase = 3; /* Skip ...'s */ - } + /* Check if this is a type wrapper tag (e.g., when opt_mname="value") */ + if(ctx->phase == 1 && td->xml_tag && opt_mname && + strcmp(td->xml_tag, opt_mname) != 0) { + tcv = xer_check_tag(ptr, ch_size, td->xml_tag); + if(tcv == XCT_OPENING || tcv == XCT_BOTH) { + ASN_DEBUG("XER/SEQUENCE: Skipping type wrapper tag <%s>", td->xml_tag); XER_ADVANCE(ch_size); + /* Stay in phase 1 to process the actual content */ continue; } + } + + /* Fall through */ + case XCT_UNKNOWN_CL: + /* Check if this is a type wrapper closing tag (e.g., when opt_mname="value") */ + if(ctx->phase == 1 && td->xml_tag && opt_mname && + strcmp(td->xml_tag, opt_mname) != 0) { + xer_check_tag_e wrapper_tcv = xer_check_tag(ptr, ch_size, td->xml_tag); + if(wrapper_tcv == XCT_CLOSING) { + ASN_DEBUG("XER/SEQUENCE: Closing type wrapper tag ", td->xml_tag); + XER_ADVANCE(ch_size); + /* Stay in phase 1, expecting the element closing tag */ + continue; + } + } + + /* Check if this is the closing generic tag */ + if(ctx->phase == 1) { + xer_check_tag_e seq_tcv = xer_check_tag(ptr, ch_size, "SEQUENCE"); + if(seq_tcv == XCT_CLOSING) { + ASN_DEBUG("XER/SEQUENCE: Accepting generic tag in phase 1"); + /* Check if we're done with all mandatory elements */ + if(edx >= td->elements_count || + (edx + elements[edx].optional == td->elements_count) || + IN_EXTENSION_GROUP(specs, edx)) { + XER_ADVANCE(ch_size); + ctx->phase = 0; /* Reset for next use */ + /* Check if there's an outer element tag to consume */ + if(opt_mname && td->xml_tag && strcmp(opt_mname, td->xml_tag) != 0) { + /* Element name differs from type name, so expect outer tag. + * Continue looping to consume it in the next iteration. */ + ASN_DEBUG("XER/SEQUENCE: Expecting outer closing tag ", opt_mname); + continue; + } else { + /* This was the only wrapper, we're done */ + ctx->phase = 4; + RETURN(RC_OK); + } + } else { + ASN_DEBUG("Missing mandatory elements after "); + break; /* Missing mandatory elements */ + } + } + } - /* Fall through */ - default: - break; + /* Fall through */ + default: + break; } ASN_DEBUG("Unexpected XML tag in SEQUENCE [%c%c%c%c%c%c]", - size > 0 ? ((const char *)ptr)[0] : '.', - size > 1 ? ((const char *)ptr)[1] : '.', - size > 2 ? ((const char *)ptr)[2] : '.', - size > 3 ? ((const char *)ptr)[3] : '.', - size > 4 ? ((const char *)ptr)[4] : '.', - size > 5 ? ((const char *)ptr)[5] : '.'); + size>0?((const char *)ptr)[0]:'.', + size>1?((const char *)ptr)[1]:'.', + size>2?((const char *)ptr)[2]:'.', + size>3?((const char *)ptr)[3]:'.', + size>4?((const char *)ptr)[4]:'.', + size>5?((const char *)ptr)[5]:'.'); break; } - ctx->phase = 4; /* "Phase out" on hard failure */ + ctx->phase = 4; /* "Phase out" on hard failure */ RETURN(RC_FAIL); } -asn_enc_rval_t SEQUENCE_encode_xer(const asn_TYPE_descriptor_t *td, - const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er = {0, 0, 0}; +asn_enc_rval_t +SEQUENCE_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + asn_enc_rval_t er = {0,0,0}; int xcan = (flags & XER_F_CANONICAL); asn_TYPE_descriptor_t *tmp_def_val_td = 0; void *tmp_def_val = 0; size_t edx; - if (!sptr) ASN__ENCODE_FAILED; + if(!sptr) ASN__ENCODE_FAILED; + + /* Check recursion depth to prevent stack overflow */ + XER_ENCODER_RECURSION_DEPTH_INC(); er.encoded = 0; - for (edx = 0; edx < td->elements_count; edx++) { - asn_enc_rval_t tmper = {0, 0, 0}; + for(edx = 0; edx < td->elements_count; edx++) { + asn_enc_rval_t tmper = {0,0,0}; asn_TYPE_member_t *elm = &td->elements[edx]; const void *memb_ptr; const char *mname = elm->name; unsigned int mlen = strlen(mname); - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { memb_ptr = *(const void *const *)((const char *)sptr + elm->memb_offset); - if (!memb_ptr) { + if(!memb_ptr) { assert(tmp_def_val == 0); - if (elm->default_value_set) { - if (elm->default_value_set(&tmp_def_val)) { + if(elm->default_value_set) { + if(elm->default_value_set(&tmp_def_val)) { + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } else { memb_ptr = tmp_def_val; tmp_def_val_td = elm->type; } - } else if (elm->optional) { + } else if(elm->optional) { continue; } else { /* Mandatory element is missing */ + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } } @@ -321,26 +489,53 @@ asn_enc_rval_t SEQUENCE_encode_xer(const asn_TYPE_descriptor_t *td, memb_ptr = (const void *)((const char *)sptr + elm->memb_offset); } - if (!xcan) ASN__TEXT_INDENT(1, ilevel); + if(!xcan) { + if(edx == 0 || er.encoded == 0) { + /* First member: output newline + indent */ + ASN__TEXT_INDENT(1, ilevel); + } else { + /* Subsequent members: output only indent (newline comes from previous closing tag) */ + int tmp_i; + for(tmp_i = 0; tmp_i < ilevel; tmp_i++) ASN__CALLBACK(" ", 4); + } + } ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); /* Print the member itself */ - tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, - flags, cb, app_key); - if (tmp_def_val) { + if(elm->flags & ATF_OPEN_TYPE) { + tmper = OPEN_TYPE_xer_put(td, sptr, elm, ilevel + 1, flags, cb, app_key); + } else { + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, ilevel + 1, + flags, cb, app_key); + } + if(tmp_def_val) { ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); tmp_def_val = 0; } - if (tmper.encoded == -1) return tmper; + if(tmper.encoded == -1) { + XER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; - ASN__CALLBACK3("", 1); + if(!xcan) { + /* Add indentation before closing tag only if element is a structured type + * that outputs newlines in its content (SEQUENCE, SET, CHOICE, etc.) + * Primitive types like INTEGER output inline content, so no indent needed. */ + if(tmper.encoded > 0 && + (ASN__IS_STRUCTURED_TYPE(elm) || elm->flags & ATF_OPEN_TYPE)) { + ASN__TEXT_INDENT(0, ilevel); + } + ASN__CALLBACK3("\n", 2); + } else { + ASN__CALLBACK3("", 1); + } } - if (!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); cb_failed: - if (tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + if(tmp_def_val) ASN_STRUCT_FREE(*tmp_def_val_td, tmp_def_val); + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } diff --git a/src/icspacket/include/skeletons/constr_SET.c b/src/icspacket/include/skeletons/constr_SET.c index f1f29020..4c881b65 100644 --- a/src/icspacket/include/skeletons/constr_SET.c +++ b/src/icspacket/include/skeletons/constr_SET.c @@ -7,6 +7,7 @@ #include asn_TYPE_operation_t asn_OP_SET = { + .kind = ASN_KIND_SET, SET_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) SET_print, @@ -61,8 +62,15 @@ asn_TYPE_operation_t asn_OP_SET = { SET_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + SET_decode_cbor, + SET_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; int _SET_is_populated(const asn_TYPE_descriptor_t *td, const void *st) { diff --git a/src/icspacket/include/skeletons/constr_SET.h b/src/icspacket/include/skeletons/constr_SET.h index ce6ce671..6ea787ee 100644 --- a/src/icspacket/include/skeletons/constr_SET.h +++ b/src/icspacket/include/skeletons/constr_SET.h @@ -68,7 +68,11 @@ xer_type_encoder_f SET_encode_xer; #if !defined(ASN_DISABLE_JER_SUPPORT) jer_type_decoder_f SET_decode_jer; jer_type_encoder_f SEQUENCE_encode_jer; /* X.697 29. (2021) */ -#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f SET_decode_cbor; +cbor_type_encoder_f SET_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f SET_decode_uper; diff --git a/src/icspacket/include/skeletons/constr_SET_OF.c b/src/icspacket/include/skeletons/constr_SET_OF.c index dfd1b5d5..aa10af56 100644 --- a/src/icspacket/include/skeletons/constr_SET_OF.c +++ b/src/icspacket/include/skeletons/constr_SET_OF.c @@ -6,7 +6,23 @@ #include #include +/* + * Generic placeholder descriptor for anonymous SET OF. + * NOTE: not a concrete "OF T" — used only to satisfy references. + */ +asn_TYPE_descriptor_t asn_DEF_SET_OF = { + "SET OF", + "SET OF", + &asn_OP_SET_OF, + 0, 0, + 0, 0, + {0}, /* No constraints */ + 0, 0, /* No members */ + 0 /* No specifics */ +}; + asn_TYPE_operation_t asn_OP_SET_OF = { + .kind = ASN_KIND_SET_OF, SET_OF_free, #if !defined(ASN_DISABLE_PRINT_SUPPORT) SET_OF_print, @@ -61,8 +77,15 @@ asn_TYPE_operation_t asn_OP_SET_OF = { SET_OF_random_fill, #else 0, -#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ - 0 /* Use generic outmost tag fetcher */ +#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ + 0 /* Use generic outmost tag fetcher */, +#if !defined(ASN_DISABLE_CBOR_SUPPORT) + SET_OF_decode_cbor, + SET_OF_encode_cbor, +#else + 0, + 0, +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ }; /* Append bytes to the above structure */ @@ -157,7 +180,8 @@ struct _el_buffer *SET_OF__encode_sorted(const asn_TYPE_member_t *elm, struct _el_buffer *encoding_el = &encoded_els[edx]; asn_enc_rval_t erval = {0, 0, 0}; - if (!memb_ptr) break; + if(!memb_ptr) break; + encoding_el->memb_ptr = memb_ptr; /* * Encode the member into the prepared space. diff --git a/src/icspacket/include/skeletons/constr_SET_OF.h b/src/icspacket/include/skeletons/constr_SET_OF.h index 3ff89753..a909b3a8 100644 --- a/src/icspacket/include/skeletons/constr_SET_OF.h +++ b/src/icspacket/include/skeletons/constr_SET_OF.h @@ -55,7 +55,11 @@ jer_type_encoder_f SET_OF_encode_jer; #if !defined(ASN_DISABLE_OER_SUPPORT) oer_type_decoder_f SET_OF_decode_oer; oer_type_encoder_f SET_OF_encode_oer; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +cbor_type_decoder_f SET_OF_decode_cbor; +cbor_type_encoder_f SET_OF_encode_cbor; +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) per_type_decoder_f SET_OF_decode_uper; @@ -72,10 +76,17 @@ asn_random_fill_f SET_OF_random_fill; extern asn_TYPE_operation_t asn_OP_SET_OF; +/* + * Generic descriptor for anonymous SET OF (placeholder only). + * Not a concrete "OF T". + */ +extern asn_TYPE_descriptor_t asn_DEF_SET_OF; + /* * Internally visible buffer holding a single encoded element. */ struct _el_buffer { + const void *memb_ptr; uint8_t *buf; size_t length; size_t allocated_size; diff --git a/src/icspacket/include/skeletons/constr_SET_OF_ber.c b/src/icspacket/include/skeletons/constr_SET_OF_ber.c index 146c0c87..bcbf37f3 100644 --- a/src/icspacket/include/skeletons/constr_SET_OF_ber.c +++ b/src/icspacket/include/skeletons/constr_SET_OF_ber.c @@ -109,6 +109,9 @@ asn_dec_rval_t SET_OF_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + ASN__DECODER_RECURSION_DEPTH_CHECK(opt_codec_ctx); + /* * Start to parse where left previously */ @@ -287,6 +290,9 @@ asn_enc_rval_t SET_OF_encode_der(const asn_TYPE_descriptor_t *td, ASN_DEBUG("Estimating size for SET OF %s", td->name); + /* Check encoding recursion depth to prevent stack overflow */ + ASN__ENCODER_RECURSION_DEPTH_INC(); + /* * Gather the length of the underlying members sequence. */ @@ -294,11 +300,17 @@ asn_enc_rval_t SET_OF_encode_der(const asn_TYPE_descriptor_t *td, void *memb_ptr = list->array[edx]; asn_enc_rval_t erval = {0, 0, 0}; - if (!memb_ptr) ASN__ENCODE_FAILED; + if(!memb_ptr) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } - erval = elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, - elm->tag, 0, 0); - if (erval.encoded == -1) return erval; + erval = + elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, elm->tag, 0, 0); + if(erval.encoded == -1) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return erval; + } computed_size += erval.encoded; } @@ -307,13 +319,15 @@ asn_enc_rval_t SET_OF_encode_der(const asn_TYPE_descriptor_t *td, */ encoding_size = der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); - if (encoding_size < 0) { + if(encoding_size < 0) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } computed_size += encoding_size; - if (!cb || list->count == 0) { - asn_enc_rval_t erval = {0, 0, 0}; + if(!cb || list->count == 0) { + asn_enc_rval_t erval = {0,0,0}; + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = computed_size; ASN__ENCODED_OK(erval); } @@ -346,9 +360,11 @@ asn_enc_rval_t SET_OF_encode_der(const asn_TYPE_descriptor_t *td, if (edx == list->count) { asn_enc_rval_t erval = {0, 0, 0}; assert(computed_size == (size_t)encoding_size); + ASN__ENCODER_RECURSION_DEPTH_DEC(); erval.encoded = computed_size; ASN__ENCODED_OK(erval); } else { + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } } diff --git a/src/icspacket/include/skeletons/constr_SET_OF_jer.c b/src/icspacket/include/skeletons/constr_SET_OF_jer.c index 24d85b48..6a5f05f2 100644 --- a/src/icspacket/include/skeletons/constr_SET_OF_jer.c +++ b/src/icspacket/include/skeletons/constr_SET_OF_jer.c @@ -63,6 +63,10 @@ asn_dec_rval_t SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + /* * Phases of JER/JSON processing: * Phase 0: Check that the opening tag matches our expectations. @@ -90,7 +94,13 @@ asn_dec_rval_t SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, buf_ptr, size); if (tmprval.code == RC_OK) { asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); - if (ASN_SET_ADD(list, ctx->ptr) != 0) RETURN(RC_FAIL); + if(tmprval.consumed == 0) { + ASN_STRUCT_FREE(*element->type, ctx->ptr); + ctx->ptr = 0; + RETURN(RC_FAIL); + } + if(ASN_SET_ADD(list, ctx->ptr) != 0) + RETURN(RC_FAIL); ctx->ptr = 0; JER_ADVANCE(tmprval.consumed); } else { @@ -187,6 +197,9 @@ asn_enc_rval_t SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, if (!sptr) ASN__ENCODE_FAILED; + /* Check recursion depth to prevent stack overflow */ + JER_ENCODER_RECURSION_DEPTH_INC(); + er.encoded = 0; ASN__CALLBACK("[", 1); @@ -196,11 +209,16 @@ asn_enc_rval_t SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, void *memb_ptr = list->array[i]; if (!memb_ptr) continue; - if (!jmin) ASN__TEXT_INDENT(1, ilevel + 1); - tmper = elm->type->op->jer_encoder( - elm->type, elm->encoding_constraints.jer_constraints, memb_ptr, - ilevel + (specs->as_XMLValueList != 2), flags, cb, app_key); - if (tmper.encoded == -1) return tmper; + if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, + ilevel + (specs->as_XMLValueList != 2), + flags, cb, app_key); + if(tmper.encoded == -1) { + JER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; if (tmper.encoded == 0 && specs->as_XMLValueList) { const char *name = elm->type->xml_tag; @@ -217,7 +235,9 @@ asn_enc_rval_t SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, goto cleanup; cb_failed: + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; cleanup: + JER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); } diff --git a/src/icspacket/include/skeletons/constr_SET_OF_xer.c b/src/icspacket/include/skeletons/constr_SET_OF_xer.c index 362d9d30..05e4138e 100644 --- a/src/icspacket/include/skeletons/constr_SET_OF_xer.c +++ b/src/icspacket/include/skeletons/constr_SET_OF_xer.c @@ -26,6 +26,97 @@ consumed_myself += num; \ } while (0) +/* + * Extract the (opening) tag name from a PXER_TAG token. + * Returns 1 if it equals `name`, 0 otherwise. + * Comparison is case-sensitive and stops at first whitespace, '/', or '>'. + */ +static int +xer_token_name_equals(const void *buf, ssize_t len, const char *name) { + const char *p = (const char *)buf; + const char *q = name; + ssize_t i; + + if(!buf || len < 3 || !name || !*name) return 0; + if(p[0] != '<') return 0; + + /* Skip optional '/' for closing tags */ + i = 1; + if(p[i] == '/') { + i++; + /* We only match opening/both here */ + return 0; + } + + /* Compare character-by-character with name */ + for(; i < len && *q; i++, q++) { + char c = p[i]; + if(c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '/' || c == '>') + return 0; /* token shorter than name */ + if(c != *q) return 0; + } + + if(*q) return 0; /* name longer than token head */ + + /* Ensure token boundary at this point */ + if(i < len) { + char c = p[i]; + if(!(c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '/' || c == '>')) + return 0; + } + + return 1; +} + +/* + * Compare XML tag name, allowing "SEQUENCE OF X" to match "" or "". + * XER encoding rules replace spaces in type names with hyphens. + */ +static int +xer_token_name_equals_normalized(const void *buf, ssize_t len, const char *name) { + const char *p = (const char *)buf; + const char *q = name; + ssize_t i; + + if(!buf || len < 3 || !name || !*name) return 0; + if(p[0] != '<') return 0; + + /* Skip optional '/' for closing tags */ + i = 1; + if(p[i] == '/') { + i++; + /* Continue - we DO want to match closing tags */ + } + if(i >= len) return 0; + + /* Compare character-by-character, treating space in name as hyphen in token */ + for(; i < len && *q; i++, q++) { + char c = p[i]; + char expected = *q; + + /* End of token name? */ + if(c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '/' || c == '>') + break; + + /* Normalize: space in name matches hyphen in XML */ + if(expected == ' ') expected = '-'; + + if(c != expected) return 0; + } + + /* Name must be fully consumed */ + if(*q) return 0; + + /* Ensure we're at token boundary */ + if(i < len) { + char c = p[i]; + if(!(c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '/' || c == '>')) + return 0; + } + + return 1; +} + /* * Decode the XER (XML) data. */ @@ -63,7 +154,12 @@ asn_dec_rval_t SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, if (specs->as_XMLValueList) { elm_tag = (specs->as_XMLValueList == 1) ? 0 : ""; } else { - elm_tag = (*element->name) ? element->name : element->type->xml_tag; + if(!element) { + ASN_DEBUG("SET OF has no element type descriptor"); + RETURN(RC_FAIL); + } + elm_tag = (*element->name && !asn_is_synthetic_collection_member_name(element->name)) + ? element->name : element->type->xml_tag; } /* @@ -71,6 +167,10 @@ asn_dec_rval_t SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + /* * Phases of XER/XML processing: * Phase 0: Check that the opening tag matches our expectations. @@ -85,8 +185,8 @@ asn_dec_rval_t SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, /* * Go inside the inner member of a set. */ - if (ctx->phase == 2) { - asn_dec_rval_t tmprval = {RC_OK, 0}; + if(ctx->phase == 2) { + asn_dec_rval_t tmprval = (asn_dec_rval_t){RC_OK, 0}; /* Invoke the inner type decoder, m.b. multiple times */ ASN_DEBUG("XER/SET OF element [%s]", elm_tag); @@ -95,7 +195,13 @@ asn_dec_rval_t SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, elm_tag, buf_ptr, size); if (tmprval.code == RC_OK) { asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); - if (ASN_SET_ADD(list, ctx->ptr) != 0) RETURN(RC_FAIL); + if(tmprval.consumed == 0) { + ASN_STRUCT_FREE(*element->type, ctx->ptr); + ctx->ptr = 0; + RETURN(RC_FAIL); + } + if(ASN_SET_ADD(list, ctx->ptr) != 0) + RETURN(RC_FAIL); ctx->ptr = 0; XER_ADVANCE(tmprval.consumed); } else { @@ -126,42 +232,133 @@ asn_dec_rval_t SET_OF_decode_xer(const asn_codec_ctx_t *opt_codec_ctx, } } - tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); - ASN_DEBUG("XER/SET OF: tcv = %d, ph=%d t=%s", tcv, ctx->phase, xml_tag); - switch (tcv) { - case XCT_CLOSING: - if (ctx->phase == 0) break; - ctx->phase = 0; - /* Fall through */ - case XCT_BOTH: - if (ctx->phase == 0) { - /* No more things to decode */ - XER_ADVANCE(ch_size); - ctx->phase = 3; /* Phase out */ - RETURN(RC_OK); + /* Check if this is our closing tag (normalized comparison for tags with spaces) */ + if(xml_tag && ctx->phase == 1) { + /* Check for closing tag like matching "SEQUENCE OF X" */ + const char *p = (const char *)buf_ptr; + if(ch_size > 2 && p[0] == '<' && p[1] == '/') { + if(xer_token_name_equals_normalized(buf_ptr, ch_size, xml_tag)) { + /* This is our closing tag */ + XER_ADVANCE(ch_size); + ctx->phase = 3; /* Phase out successfully */ + RETURN(RC_OK); + } + } + } + + /* Check for ASN.1 type keyword tags like or + * These are meta-syntax tags that may appear in debug-annotated XER files + * but are not part of the standard XER encoding. Skip them if present. */ + { + static const char *keywords[] = {"SEQUENCE OF", "SET OF", NULL}; + xer_check_tag_e keyword_tcv = xer_check_tag(buf_ptr, ch_size, NULL); + int skipped_keyword = 0; + if(keyword_tcv == XCT_OPENING || keyword_tcv == XCT_BOTH) { + /* Check if this is an ASN.1 keyword opening tag */ + if(ch_size > 2 && ((const char *)buf_ptr)[0] == '<') { + int i; + for(i = 0; keywords[i]; i++) { + if(xer_token_name_equals_normalized(buf_ptr, ch_size, keywords[i])) { + ASN_DEBUG("XER/SET OF: Skipping ASN.1 keyword opening tag <%s>", keywords[i]); + XER_ADVANCE(ch_size); + skipped_keyword = 1; + break; + } + } } - /* Fall through */ - case XCT_OPENING: - if (ctx->phase == 0) { - XER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } - /* Fall through */ - case XCT_UNKNOWN_OP: - case XCT_UNKNOWN_BO: - - ASN_DEBUG("XER/SET OF: tcv=%d, ph=%d", tcv, ctx->phase); - if (ctx->phase == 1) { - /* - * Process a single possible member. - */ - ctx->phase = 2; - continue; + } else if(keyword_tcv == XCT_CLOSING && ctx->phase < 3) { + /* Check if this is an ASN.1 keyword closing tag */ + if(ch_size > 2 && ((const char *)buf_ptr)[0] == '<' + && ((const char *)buf_ptr)[1] == '/') { + int i; + for(i = 0; keywords[i]; i++) { + if(xer_token_name_equals_normalized(buf_ptr, ch_size, keywords[i])) { + ASN_DEBUG("XER/SET OF: Skipping ASN.1 keyword closing tag ", keywords[i]); + XER_ADVANCE(ch_size); + skipped_keyword = 1; + break; + } + } } - /* Fall through */ - default: - break; + } + if(skipped_keyword) continue; + } + + tcv = xer_check_tag(buf_ptr, ch_size, xml_tag); + ASN_DEBUG("XER/SET OF: tcv = %d, ph=%d t=%s", + tcv, ctx->phase, xml_tag); + switch(tcv) { + case XCT_CLOSING: + if(ctx->phase == 0) break; + ctx->phase = 0; + /* Fall through */ + case XCT_BOTH: + if(ctx->phase == 0) { + /* No more things to decode */ + XER_ADVANCE(ch_size); + ctx->phase = 3; /* Phase out */ + RETURN(RC_OK); + } + /* Fall through */ + case XCT_OPENING: + if(ctx->phase == 0) { + XER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ + continue; + } + /* Fall through */ + case XCT_UNKNOWN_OP: + case XCT_UNKNOWN_CL: + case XCT_UNKNOWN_BO: + + ASN_DEBUG("XER/SET OF: tcv=%d, ph=%d", tcv, ctx->phase); + + /* If we're in phase 1 and encounter an unknown closing tag, + * it's likely the closing tag of our parent wrapper (OPEN TYPE). + * Finish successfully and let parent handle the closing tag. */ + if(tcv == XCT_UNKNOWN_CL && ctx->phase == 1) { + ASN_DEBUG("XER/SET OF: unknown closing tag in phase 1, completing successfully"); + ctx->phase = 3; /* Phase out successfully */ + RETURN(RC_OK); + } + + /* Robust handling in phase 0... */ + if(ctx->phase == 0) { + int is_container = (xml_tag && xer_token_name_equals_normalized(buf_ptr, ch_size, xml_tag)); + int is_item = (element->type->xml_tag + && xer_token_name_equals(buf_ptr, ch_size, element->type->xml_tag)); + + ASN_DEBUG("XER/SET OF phase 0: is_container=%d, is_item=%d, xml_tag='%s'", + is_container, is_item, xml_tag ? xml_tag : "(null)"); + + if(is_container) { + ASN_DEBUG("XER/SET OF: found container <%s>, consume and enter body", xml_tag); + XER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + } + if(is_item) { + ASN_DEBUG("XER/SET OF: found item <%s> without container, decode element", + element->type->xml_tag); + ctx->phase = 2; + continue; + } + ASN_DEBUG("XER/SET OF phase 0: neither container nor item matched, falling to fallback"); + } + + /* Accept item tag without explicit container presence as a + * last-resort fallback (value-list tolerance) */ + ASN_DEBUG("XER/SET OF: checking fallback, phase=%d", ctx->phase); + if(ctx->phase == 1 || ctx->phase == 0) { + ASN_DEBUG("XER/SET OF: accept item tag without container (phase=%d)", ctx->phase); + ctx->phase = 2; + continue; + } + ASN_DEBUG("XER/SET OF: fallback condition failed, phase=%d", ctx->phase); + + /* Fall through */ + default: + break; } ASN_DEBUG("Unexpected XML tag in SET OF"); @@ -207,18 +404,55 @@ static int SET_OF_xer_order(const void *aptr, const void *bptr) { return 1; } -asn_enc_rval_t SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, - const void *sptr, int ilevel, - enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - asn_enc_rval_t er = {0, 0, 0}; - const asn_SET_OF_specifics_t *specs = - (const asn_SET_OF_specifics_t *)td->specifics; +asn_enc_rval_t +SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, + enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, + void *app_key) { + /* + * XER Encoding of SET OF: + * + * IMPORTANT: This encoder outputs ONLY the member elements, NOT wrapper tags + * like or . Such wrapper tags are ASN.1 meta-syntax + * and are NOT part of the XER encoding standard (ITU-T X.693). + * + * CORRECT XER encoding for SET OF Integer { 1, 2, 3 } with member name "item": + * 1 + * 2 + * 3 + * + * INCORRECT (would include meta-syntax wrapper tags): + * + * 1 + * 2 + * 3 + * + * + * The decoder (SET_OF_decode_xer) has been made tolerant to gracefully + * skip such wrapper tags if they appear in debug-annotated or malformed + * XER input files, but this encoder never outputs them. + */ + asn_enc_rval_t er = {0,0,0}; + const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics; const asn_TYPE_member_t *elm = td->elements; const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr); - const char *mname = specs->as_XMLValueList - ? 0 - : ((*elm->name) ? elm->name : elm->type->xml_tag); + const char *mname; + + if(specs->as_XMLValueList) { + mname = 0; + } else { + if(!elm) { + ASN_DEBUG("SET OF has no element type descriptor"); + ASN__ENCODE_FAILED; + } + mname = (*elm->name && !asn_is_synthetic_collection_member_name(elm->name)) + ? elm->name : elm->type->xml_tag; + + /* Check if mname contains ASN.1 meta-syntax keywords that should not be output */ + if(asn_is_meta_syntax_keyword(mname)) { + /* This is an ASN.1 keyword wrapper tag - use element type instead */ + mname = elm->type->xml_tag; /* Use the element type's tag instead */ + } + } size_t mlen = mname ? strlen(mname) : 0; int xcan = (flags & XER_F_CANONICAL); xer_tmp_enc_t *encs = 0; @@ -229,9 +463,15 @@ asn_enc_rval_t SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, if (!sptr) ASN__ENCODE_FAILED; - if (xcan) { + /* Check recursion depth to prevent stack overflow */ + XER_ENCODER_RECURSION_DEPTH_INC(); + + if(xcan) { encs = (xer_tmp_enc_t *)MALLOC(list->count * sizeof(encs[0])); - if (!encs) ASN__ENCODE_FAILED; + if(!encs) { + XER_ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } cb = SET_OF_encode_xer_callback; } @@ -249,17 +489,40 @@ asn_enc_rval_t SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, encs_count++; } - if (mname) { - if (!xcan) ASN__TEXT_INDENT(1, ilevel); + if(mname) { + if(!xcan) { + if(i == 0 || er.encoded == 0) { + /* First member: output newline + indent */ + ASN__TEXT_INDENT(1, ilevel); + } else { + /* Subsequent members: output only indent (newline comes from previous closing tag) */ + int tmp_i; + for(tmp_i = 0; tmp_i < ilevel; tmp_i++) ASN__CALLBACK(" ", 4); + } + } ASN__CALLBACK3("<", 1, mname, mlen, ">", 1); } if (!xcan && specs->as_XMLValueList == 1) ASN__TEXT_INDENT(1, ilevel + 1); - tmper = elm->type->op->xer_encoder( - elm->type, memb_ptr, ilevel + (specs->as_XMLValueList != 2), flags, - cb, app_key); - if (tmper.encoded == -1) return tmper; + tmper = elm->type->op->xer_encoder(elm->type, memb_ptr, + ilevel + (specs->as_XMLValueList != 2), + flags, cb, app_key); + if(tmper.encoded == -1) { + /* Error during encoding - cleanup and return */ + if(encs) { + size_t n; + /* Note: encs_count was already incremented, so clean up encs_count entries + * (indices 0 through encs_count-1, including the partially initialized one) */ + for(n = 0; n < encs_count; n++) { + FREEMEM(encs[n].buffer); + } + FREEMEM(encs); + encs = NULL; + } + XER_ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } er.encoded += tmper.encoded; if (tmper.encoded == 0 && specs->as_XMLValueList) { const char *name = elm->type->xml_tag; @@ -267,14 +530,22 @@ asn_enc_rval_t SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, ASN__CALLBACK3("<", 1, name, len, "/>", 2); } - if (mname) { - ASN__CALLBACK3("", 1); + if(mname) { + if(!xcan) { + /* Add indentation before closing tag only if element is a structured type + * that outputs newlines in its content (SEQUENCE, SET, CHOICE, etc.) + * Primitive types like INTEGER output inline content, so no indent needed. */ + if(tmper.encoded > 0 && ASN__IS_STRUCTURED_TYPE(elm)) { + ASN__TEXT_INDENT(0, ilevel); + } + ASN__CALLBACK3("\n", 2); + } else { + ASN__CALLBACK3("", 1); + } } } - if (!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - - if (encs) { + if(encs) { xer_tmp_enc_t *enc = encs; xer_tmp_enc_t *end = encs + encs_count; ssize_t control_size = 0; @@ -295,6 +566,7 @@ asn_enc_rval_t SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, goto cleanup; cb_failed: + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; cleanup: if (encs) { @@ -304,5 +576,6 @@ asn_enc_rval_t SET_OF_encode_xer(const asn_TYPE_descriptor_t *td, } FREEMEM(encs); } + XER_ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); } diff --git a/src/icspacket/include/skeletons/constr_SET_ber.c b/src/icspacket/include/skeletons/constr_SET_ber.c index 9597e66e..2689058b 100644 --- a/src/icspacket/include/skeletons/constr_SET_ber.c +++ b/src/icspacket/include/skeletons/constr_SET_ber.c @@ -133,6 +133,9 @@ asn_dec_rval_t SET_decode_ber(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + ASN__DECODER_RECURSION_DEPTH_CHECK(opt_codec_ctx); + /* * Start to parse where left previously */ @@ -417,13 +420,19 @@ asn_enc_rval_t SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, ssize_t ret; size_t edx; + /* Check encoding recursion depth to prevent stack overflow */ + ASN__ENCODER_RECURSION_DEPTH_INC(); + /* * Use existing, or build our own tags map. */ if (t2m_build_own) { t2m_build = (asn_TYPE_tag2member_t *)CALLOC(td->elements_count, sizeof(t2m_build[0])); - if (!t2m_build) ASN__ENCODE_FAILED; + if(!t2m_build) { + ASN__ENCODER_RECURSION_DEPTH_DEC(); + ASN__ENCODE_FAILED; + } t2m_count = 0; } else { t2m_build = NULL; @@ -452,6 +461,7 @@ asn_enc_rval_t SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, if (!elm->optional) { /* Mandatory elements missing */ FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } if (t2m_build) { @@ -477,9 +487,14 @@ asn_enc_rval_t SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, continue; } - tmper = elm->type->op->der_encoder(elm->type, *memb_ptr2, elm->tag_mode, - elm->tag, 0, 0); - if (tmper.encoded == -1) return tmper; + tmper = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, + 0, 0); + if(tmper.encoded == -1) { + FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } computed_size += tmper.encoded; /* @@ -522,12 +537,14 @@ asn_enc_rval_t SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, ret = der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key); if (ret == -1) { FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } er.encoded = computed_size + ret; if (!cb) { FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); } @@ -558,9 +575,14 @@ asn_enc_rval_t SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, if (elm->default_value_cmp && elm->default_value_cmp(*memb_ptr2) == 0) continue; - tmper = elm->type->op->der_encoder(elm->type, *memb_ptr2, elm->tag_mode, - elm->tag, cb, app_key); - if (tmper.encoded == -1) return tmper; + tmper = elm->type->op->der_encoder(elm->type, *memb_ptr2, + elm->tag_mode, elm->tag, + cb, app_key); + if(tmper.encoded == -1) { + FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); + return tmper; + } computed_size -= tmper.encoded; } @@ -569,9 +591,11 @@ asn_enc_rval_t SET_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr, * Encoded size is not equal to the computed size. */ FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODE_FAILED; } FREEMEM(t2m_build); + ASN__ENCODER_RECURSION_DEPTH_DEC(); ASN__ENCODED_OK(er); } diff --git a/src/icspacket/include/skeletons/constr_SET_jer.c b/src/icspacket/include/skeletons/constr_SET_jer.c index ab466db4..d9b033a1 100644 --- a/src/icspacket/include/skeletons/constr_SET_jer.c +++ b/src/icspacket/include/skeletons/constr_SET_jer.c @@ -6,63 +6,70 @@ #include #include +#define JER_MEMBER_NAME(elm) \ + (((elm)->encoding_constraints.jer_constraints \ + && (elm)->encoding_constraints.jer_constraints->wire_name) \ + ? (elm)->encoding_constraints.jer_constraints->wire_name \ + : (elm)->name) + /* * Return a standardized complex structure. */ #undef RETURN -#define RETURN(_code) \ - do { \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ - } while (0) +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) /* * Check whether we are inside the extensions group. */ -#define IN_EXTENSION_GROUP(specs, memb_idx) \ - ((specs)->first_extension >= 0 && \ - (unsigned)(specs)->first_extension <= (memb_idx)) +#define IN_EXTENSION_GROUP(specs, memb_idx) \ + ((specs)->first_extension >= 0 \ + && (unsigned)(specs)->first_extension <= (memb_idx)) #undef JER_ADVANCE -#define JER_ADVANCE(num_bytes) \ - do { \ - size_t num = (num_bytes); \ - ptr = ((const char *)ptr) + num; \ - size -= num; \ - consumed_myself += num; \ - } while (0) +#define JER_ADVANCE(num_bytes) \ + do { \ + size_t num = (num_bytes); \ + ptr = ((const char *)ptr) + num; \ + size -= num; \ + consumed_myself += num; \ + } while(0) /* * Decode the JER (JSON) data. */ -asn_dec_rval_t SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, - const asn_jer_constraints_t *constraints, - void **struct_ptr, const void *ptr, size_t size) { +asn_dec_rval_t +SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *ptr, size_t size) { /* * Bring closer parts of structure description. */ - const asn_SET_specifics_t *specs = - (const asn_SET_specifics_t *)td->specifics; + const asn_SET_specifics_t *specs + = (const asn_SET_specifics_t *)td->specifics; asn_TYPE_member_t *elements = td->elements; /* * ... and parts of the structure being constructed. */ - void *st = *struct_ptr; /* Target structure. */ - asn_struct_ctx_t *ctx; /* Decoder context */ + void *st = *struct_ptr; /* Target structure. */ + asn_struct_ctx_t *ctx; /* Decoder context */ - asn_dec_rval_t rval; /* Return value from a decoder */ - ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ - ssize_t edx; /* Element index */ + asn_dec_rval_t rval; /* Return value from a decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from ptr */ + ssize_t edx; /* Element index */ /* * Create the target structure if it is not present already. */ - if (st == 0) { + if(st == 0) { st = *struct_ptr = CALLOC(1, specs->struct_size); - if (st == 0) RETURN(RC_FAIL); + if(st == 0) RETURN(RC_FAIL); } /* @@ -70,6 +77,11 @@ asn_dec_rval_t SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, */ ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); + /* Check recursion depth to prevent stack overflow */ + if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) + RETURN(RC_FAIL); + + /* * Phases of JER/JSON processing: * Phase 0: Check that the key matches our expectations. @@ -78,44 +90,47 @@ asn_dec_rval_t SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, * Phase 3: Skipping unknown extensions. * Phase 4: PHASED OUT */ - for (edx = ctx->step; ctx->phase <= 3;) { - pjer_chunk_type_e ch_type; /* JER chunk type */ - ssize_t ch_size; /* Chunk size */ - jer_check_sym_e scv; /* Tag check value */ + for(edx = ctx->step; ctx->phase <= 3;) { + pjer_chunk_type_e ch_type; /* JER chunk type */ + ssize_t ch_size; /* Chunk size */ + jer_check_sym_e scv; /* Tag check value */ asn_TYPE_member_t *elm; + /* * Go inside the inner member of a sequence. */ - if (ctx->phase == 2) { + if(ctx->phase == 2) { asn_dec_rval_t tmprval; - void *memb_ptr_dontuse; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ + void *memb_ptr_dontuse; /* Pointer to the member */ + void **memb_ptr2; /* Pointer to that pointer */ - if (ASN_SET_ISPRESENT2((char *)st + specs->pres_offset, edx)) { + if(ASN_SET_ISPRESENT2((char *)st + specs->pres_offset, + edx)) { ASN_DEBUG("SET %s: Duplicate element %s (%" ASN_PRI_SSIZE ")", td->name, elements[edx].name, edx); RETURN(RC_FAIL); } elm = &elements[edx]; - if (elm->flags & ATF_POINTER) { + if(elm->flags & ATF_POINTER) { /* Member is a pointer to another structure */ memb_ptr2 = (void **)((char *)st + elm->memb_offset); } else { memb_ptr_dontuse = (char *)st + elm->memb_offset; - memb_ptr2 = - &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ + memb_ptr2 = &memb_ptr_dontuse; /* Only use of memb_ptr_dontuse */ } /* Invoke the inner type decoder, m.b. multiple times */ - tmprval = elm->type->op->jer_decoder( - opt_codec_ctx, elm->type, - elm->encoding_constraints.jer_constraints, memb_ptr2, ptr, - size); + tmprval = elm->type->op->jer_decoder(opt_codec_ctx, + elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr2, + ptr, size); JER_ADVANCE(tmprval.consumed); - if (tmprval.code != RC_OK) RETURN(tmprval.code); - ctx->phase = 1; /* Back to body processing */ + if(tmprval.code != RC_OK) + RETURN(tmprval.code); + ctx->phase = 1; /* Back to body processing */ ASN_SET_MKPRESENT((char *)st + specs->pres_offset, edx); ASN_DEBUG("JER/SET phase => %d", ctx->phase); /* Fall through */ @@ -124,155 +139,159 @@ asn_dec_rval_t SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, /* * Get the next part of the JSON stream. */ - ch_size = jer_next_token(&ctx->context, ptr, size, &ch_type); - if (ch_size == -1) { + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { RETURN(RC_FAIL); } else { - switch (ch_type) { - case PJER_WMORE: - RETURN(RC_WMORE); + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); - case PJER_TEXT: /* Ignore free-standing text */ - JER_ADVANCE(ch_size); /* Skip silently */ - continue; + case PJER_TEXT: /* Ignore free-standing text */ + JER_ADVANCE(ch_size); /* Skip silently */ + continue; - case PJER_DLM: - case PJER_VALUE: /* Ignore free-standing text */ - case PJER_KEY: - break; /* Check the rest down there */ + case PJER_DLM: + case PJER_VALUE: /* Ignore free-standing text */ + case PJER_KEY: + break; /* Check the rest down there */ } } scv = jer_check_sym(ptr, ch_size, NULL); - ASN_DEBUG("JER/SET: scv = %d, ph=%d [%s]", scv, ctx->phase, td->name); + ASN_DEBUG("JER/SET: scv = %d, ph=%d [%s]", + scv, ctx->phase, td->name); + /* Skip the extensions section */ - if (ctx->phase == 3) { - switch (jer_skip_unknown(scv, &ctx->left)) { - case -1: - ctx->phase = 4; - RETURN(RC_FAIL); - case 0: - JER_ADVANCE(ch_size); - continue; - case 1: - JER_ADVANCE(ch_size); - ctx->phase = 1; - continue; - case 2: - ctx->phase = 1; - break; + if(ctx->phase == 3) { + switch(jer_skip_unknown(scv, &ctx->left)) { + case -1: + ctx->phase = 4; + RETURN(RC_FAIL); + case 0: + JER_ADVANCE(ch_size); + continue; + case 1: + JER_ADVANCE(ch_size); + ctx->phase = 1; + continue; + case 2: + ctx->phase = 1; + break; } } - switch (scv) { - case JCK_OEND: - if (ctx->phase == 0) break; - ctx->phase = 0; - - if (_SET_is_populated(td, st)) { - JER_ADVANCE(ch_size); - JER_ADVANCE(jer_whitespace_span(ptr, size)); - ctx->phase = 4; /* Phase out */ - RETURN(RC_OK); - } else { - ASN_DEBUG("Premature end of JER SET"); - RETURN(RC_FAIL); - } + switch(scv) { + case JCK_OEND: + if(ctx->phase == 0) break; + ctx->phase = 0; + + if(_SET_is_populated(td, st)) { + JER_ADVANCE(ch_size); + JER_ADVANCE(jer_whitespace_span(ptr, size)); + ctx->phase = 4; /* Phase out */ + RETURN(RC_OK); + } else { + ASN_DEBUG("Premature end of JER SET"); + RETURN(RC_FAIL); + } + + case JCK_COMMA: + JER_ADVANCE(ch_size); + continue; - case JCK_COMMA: + case JCK_OSTART: + if(ctx->phase == 0) { JER_ADVANCE(ch_size); + ctx->phase = 1; /* Processing body phase */ continue; + } - case JCK_OSTART: - if (ctx->phase == 0) { - JER_ADVANCE(ch_size); - ctx->phase = 1; /* Processing body phase */ - continue; - } + /* Fall through */ + case JCK_KEY: + case JCK_UNKNOWN: + ASN_DEBUG("JER/SET: scv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", + scv, ctx->phase, edx); + if(ctx->phase != 1) { + break; /* Really unexpected */ + } - /* Fall through */ - case JCK_KEY: - case JCK_UNKNOWN: - ASN_DEBUG("JER/SET: scv=%d, ph=%d, edx=%" ASN_PRI_SIZE "", scv, - ctx->phase, edx); - if (ctx->phase != 1) { - break; /* Really unexpected */ - } + if (td->elements_count == 0) { + JER_ADVANCE(ch_size); + continue; + } - if (td->elements_count == 0) { - JER_ADVANCE(ch_size); - continue; - } + if(edx < td->elements_count) { + /* + * We have to check which member is next. + */ + for(edx = 0; edx < td->elements_count; edx++) { + elm = &elements[edx]; + scv = jer_check_sym(ptr, ch_size, JER_MEMBER_NAME(elm)); + switch (scv) { + case JCK_KEY: + ctx->step = edx; + ctx->phase = 2; - if (edx < td->elements_count) { - /* - * We have to check which member is next. - */ - for (edx = 0; edx < td->elements_count; edx++) { - elm = &elements[edx]; - scv = jer_check_sym(ptr, ch_size, elm->name); - switch (scv) { - case JCK_KEY: - ctx->step = edx; - ctx->phase = 2; - - JER_ADVANCE(ch_size); /* skip key */ - /* skip colon */ - ch_size = jer_next_token(&ctx->context, ptr, - size, &ch_type); - if (ch_size == -1) { + JER_ADVANCE(ch_size); /* skip key */ + /* skip colon */ + ch_size = jer_next_token(&ctx->context, ptr, size, + &ch_type); + if(ch_size == -1) { + RETURN(RC_FAIL); + } else { + switch(ch_type) { + case PJER_WMORE: + RETURN(RC_WMORE); + case PJER_TEXT: + JER_ADVANCE(ch_size); + break; + default: RETURN(RC_FAIL); - } else { - switch (ch_type) { - case PJER_WMORE: - RETURN(RC_WMORE); - case PJER_TEXT: - JER_ADVANCE(ch_size); - break; - default: - RETURN(RC_FAIL); - } - } - break; - case JCK_UNKNOWN: - continue; - default: - edx = td->elements_count; - break; /* Phase out */ + } } break; + case JCK_UNKNOWN: + continue; + default: + edx = td->elements_count; + break; /* Phase out */ } - if (edx != td->elements_count) continue; - } else { - ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", - edx, td->elements_count); + break; } - - /* It is expected extension */ - if (specs->extensible) { - ASN_DEBUG("Got anticipated extension"); - ctx->left = 1; - ctx->phase = 3; /* Skip ...'s */ - JER_ADVANCE(ch_size); + if(edx != td->elements_count) continue; - } + } else { + ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", + edx, td->elements_count); + } - /* Fall through */ - default: - break; + /* It is expected extension */ + if(specs->extensible) { + ASN_DEBUG("Got anticipated extension"); + ctx->left = 1; + ctx->phase = 3; /* Skip ...'s */ + JER_ADVANCE(ch_size); + continue; + } + + /* Fall through */ + default: + break; } ASN_DEBUG("Unexpected JSON key in SET [%c%c%c%c%c%c]", - size > 0 ? ((const char *)ptr)[0] : '.', - size > 1 ? ((const char *)ptr)[1] : '.', - size > 2 ? ((const char *)ptr)[2] : '.', - size > 3 ? ((const char *)ptr)[3] : '.', - size > 4 ? ((const char *)ptr)[4] : '.', - size > 5 ? ((const char *)ptr)[5] : '.'); + size>0?((const char *)ptr)[0]:'.', + size>1?((const char *)ptr)[1]:'.', + size>2?((const char *)ptr)[2]:'.', + size>3?((const char *)ptr)[3]:'.', + size>4?((const char *)ptr)[4]:'.', + size>5?((const char *)ptr)[5]:'.'); break; } - ctx->phase = 4; /* "Phase out" on hard failure */ + ctx->phase = 4; /* "Phase out" on hard failure */ RETURN(RC_FAIL); } diff --git a/src/icspacket/include/skeletons/constr_SET_xer.c b/src/icspacket/include/skeletons/constr_SET_xer.c index 944def9c..2e7abd55 100644 --- a/src/icspacket/include/skeletons/constr_SET_xer.c +++ b/src/icspacket/include/skeletons/constr_SET_xer.c @@ -289,11 +289,19 @@ asn_enc_rval_t SET_encode_xer(const asn_TYPE_descriptor_t *td, const void *sptr, if (tmper.encoded == -1) return tmper; er.encoded += tmper.encoded; - ASN__CALLBACK3("", 1); + if(!xcan) { + /* Add indentation before closing tag only if element is a structured type + * that outputs newlines in its content (SEQUENCE, SET, CHOICE, etc.) + * Primitive types like INTEGER output inline content, so no indent needed. */ + if(tmper.encoded > 0 && ASN__IS_STRUCTURED_TYPE(elm)) { + ASN__TEXT_INDENT(0, ilevel); + } + ASN__CALLBACK3("\n", 2); + } else { + ASN__CALLBACK3("", 1); + } } - if (!xcan) ASN__TEXT_INDENT(1, ilevel - 1); - ASN__ENCODED_OK(er); cb_failed: ASN__ENCODE_FAILED; diff --git a/src/icspacket/include/skeletons/constr_TYPE.h b/src/icspacket/include/skeletons/constr_TYPE.h index 4783a357..a7775766 100644 --- a/src/icspacket/include/skeletons/constr_TYPE.h +++ b/src/icspacket/include/skeletons/constr_TYPE.h @@ -11,6 +11,8 @@ #ifndef _CONSTR_TYPE_H_ #define _CONSTR_TYPE_H_ +#include "asn_internal.h" + #include #include @@ -83,6 +85,14 @@ typedef void(oer_type_decoder_f)(void); typedef void(oer_type_encoder_f)(void); #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_CBOR_SUPPORT) +#include /* Decoder of CBOR (binary) */ +#include /* Encoder into CBOR (binary) */ +#else +typedef void (cbor_type_decoder_f)(void); +typedef void (cbor_type_encoder_f)(void); +#endif /* !defined(ASN_DISABLE_CBOR_SUPPORT) */ + /* * Free the structure according to its specification. * Use one of ASN_STRUCT_{FREE,RESET,CONTENTS_ONLY} macros instead. @@ -195,8 +205,9 @@ typedef asn_type_selector_result_t(asn_type_selector_f)( * May be directly invoked by applications. */ typedef struct asn_TYPE_operation_s { - asn_struct_free_f *free_struct; /* Free the structure */ - asn_struct_print_f *print_struct; /* Human readable output */ + asn_type_kind_t kind; /* The kind/category of this type */ + asn_struct_free_f *free_struct; /* Free the structure */ + asn_struct_print_f *print_struct; /* Human readable output */ asn_struct_compare_f *compare_struct; /* Compare two structures */ asn_struct_copy_f *copy_struct; /* Copy method */ ber_type_decoder_f *ber_decoder; /* Generic BER decoder */ @@ -213,6 +224,8 @@ typedef struct asn_TYPE_operation_s { per_type_encoder_f *aper_encoder; /* Aligned PER encoder */ asn_random_fill_f *random_fill; /* Initialize with a random value */ asn_outmost_tag_f *outmost_tag; /* */ + cbor_type_decoder_f *cbor_decoder; /* Generic CBOR decoder */ + cbor_type_encoder_f *cbor_encoder; /* Canonical CBOR encoder */ } asn_TYPE_operation_t; /* diff --git a/src/icspacket/include/skeletons/jer_decoder.c b/src/icspacket/include/skeletons/jer_decoder.c index 5c50be33..d5e23268 100644 --- a/src/icspacket/include/skeletons/jer_decoder.c +++ b/src/icspacket/include/skeletons/jer_decoder.c @@ -68,11 +68,13 @@ ssize_t jer_next_token(int *stateContext, const void *buffer, size_t size, if (arg.callback_not_invoked) { assert(ret == 0); /* No data was consumed */ *ch_type = PJER_WMORE; - return 0; /* Try again with more data */ - } else { - assert(arg.chunk_size); - assert(arg.chunk_buf == buffer); - } + return 0; /* Try again with more data */ + } else { + if(arg.chunk_size == 0 + || arg.chunk_size > size + || arg.chunk_buf != buffer) + return -1; + } /* * Translate the JSON chunk types into more convenient ones. @@ -249,7 +251,10 @@ asn_dec_rval_t jer_decode_general( } } - ctx->phase = 2; /* Phase out */ + if(consumed_myself == 0) + RETURN(RC_FAIL); + + ctx->phase = 2; /* Phase out */ RETURN(RC_OK); break; /* Dark and mysterious things have just happened */ diff --git a/src/icspacket/include/skeletons/jer_support.h b/src/icspacket/include/skeletons/jer_support.h index 6087a1b0..c6228e97 100644 --- a/src/icspacket/include/skeletons/jer_support.h +++ b/src/icspacket/include/skeletons/jer_support.h @@ -16,7 +16,9 @@ extern "C" { * Pre-computed JER constraints */ typedef struct asn_jer_constraints_s { - ssize_t size; /* -1 (no constraint) or >= 0 */ + ssize_t size; /* -1 (no constraint) or >= 0 */ + const char *wire_name; /* Optional JER NAME override for members */ + unsigned int flags; /* Reserved for instruction-specific flags */ } asn_jer_constraints_t; /* diff --git a/src/icspacket/include/skeletons/py_application.c b/src/icspacket/include/skeletons/py_application.c index f326deea..7434e17d 100644 --- a/src/icspacket/include/skeletons/py_application.c +++ b/src/icspacket/include/skeletons/py_application.c @@ -12,6 +12,8 @@ PyCompatTable_t *PyCompatTable = NULL; int PyCompat_GetFlagsFromArgs(PyObject *kwargs, PyAsnFlags_t *flags) { static char *kwlist[] = {"minified", "aligned", "canonical", NULL}; + PyObject *empty_args; + int ok; flags->aligned = 0; flags->canonical = 0; @@ -19,9 +21,16 @@ int PyCompat_GetFlagsFromArgs(PyObject *kwargs, PyAsnFlags_t *flags) { if (kwargs == NULL) { return 0; } - return PyArg_ParseTupleAndKeywords(NULL, kwargs, "|$ppp", kwlist, - &flags->minified, &flags->aligned, - &flags->canonical); + + empty_args = PyTuple_New(0); + if (empty_args == NULL) { + return -1; + } + ok = PyArg_ParseTupleAndKeywords(empty_args, kwargs, "|$ppp", kwlist, + &flags->minified, &flags->aligned, + &flags->canonical); + Py_DECREF(empty_args); + return ok ? 0 : -1; } void PyCompat_Clear(void) { diff --git a/src/icspacket/include/skeletons/py_application.h b/src/icspacket/include/skeletons/py_application.h index bb3d1045..665f58e4 100644 --- a/src/icspacket/include/skeletons/py_application.h +++ b/src/icspacket/include/skeletons/py_application.h @@ -9,6 +9,7 @@ #define PY_SSIZE_T_CLEAN #include #include +#include /* for strnlen(), used by PyCompat_CheckConstraints */ typedef struct { PyObject* str__write; @@ -56,9 +57,12 @@ static inline PyObject* PyCompat_CheckConstraints( size_t errbuf_size = sizeof(errbuf); size_t used = errbuf_size; + errbuf[0] = '\0'; + int res = asn_check_constraints(pTypeDescriptor, pValue, errbuf, &used); if (res) { if (used > errbuf_size) used = errbuf_size; + used = strnlen(errbuf, used); return PyUnicode_FromStringAndSize(errbuf, used); } Py_RETURN_NONE; @@ -676,6 +680,24 @@ static PyObject* PyCompat_Encode(enum asn_transfer_syntax ats, return 0; \ } +#define PY_IMPL_CHOICE_PTR_ATTR_FROMPY(typeName, enumTypeName, safeName, \ + attrName, targetTypeName, ...) \ + static inline int PyAsn##typeName##__##safeName##_FromPython( \ + PyObject* value, typeName##_t* dst) { \ + if (value == NULL) { \ + dst->present = enumTypeName##_PR_NOTHING; \ + return 0; \ + } \ + if (dst->choice.safeName == NULL) { \ + PY_IMPL_SAFE_MALLOC(dst->choice.safeName, targetTypeName##_t); \ + if (dst->choice.safeName == NULL) return -1; \ + ASN_STRUCT_RESET(asn_DEF_##targetTypeName, dst->choice.safeName); \ + } \ + if ((__VA_ARGS__) < 0) return -1; \ + dst->present = enumTypeName##_PR_##attrName; \ + return 0; \ + } + #define PY_IMPL_CHOICE_SETATTR(typeName, enumTypeName, safeName, attrName) \ PY_IMPL_CHOICE_GENERIC_SETATTR(typeName, enumTypeName, safeName, attrName, \ asn_DEF_##typeName) @@ -905,6 +927,20 @@ static PyObject* PyCompat_Encode(enum asn_transfer_syntax ats, (PyObject*)self); \ } +#define PY_IMPL_SEQ_AUTOVIV_GETATTR(typeName, attrName) \ + static PyObject* PyAsn##typeName##__get_##attrName( \ + PyAsn##typeName##Object* self, void* Py_UNUSED(closure)) { \ + if (!(self->ob_value->attrName)) { \ + self->ob_value->attrName = \ + PyAsn##typeName##__##attrName##_New(); \ + if (!(self->ob_value->attrName)) { \ + return PyErr_NoMemory(); \ + } \ + } \ + return PyAsn##typeName##__##attrName##_ToPython(self->ob_value, \ + (PyObject*)self); \ + } + #define PY_IMPL_SEQ_SETATTR(typeName, attrName) \ static int PyAsn##typeName##__set_##attrName( \ PyAsn##typeName##Object* self, PyObject* value, \ @@ -1091,6 +1127,7 @@ static PyObject* PyCompat_Encode(enum asn_transfer_syntax ats, static int PyAsn##typeName##__set_##attrName( \ PyAsn##typeName##Object* self, PyObject* value, \ void* Py_UNUSED(closure)) { \ + int result = 0; \ if (value == Py_None) { \ if (self->ob_value->attrName != NULL) { \ ASN_STRUCT_RESET((type_DEF), self->ob_value->attr); \ @@ -1107,17 +1144,21 @@ static PyObject* PyCompat_Encode(enum asn_transfer_syntax ats, return -1; \ } \ } \ - return PyAsn##innerTypeName##_FromPython(value, self->ob_value->attr); \ + result = PyAsn##innerTypeName##_FromPython(value, \ + self->ob_value->attr); \ + if (result == 0) { \ + ASN_SET_MKPRESENT(&self->ob_value->_presence_map, \ + enumTypeName##_PR_##attrName); \ + } \ + return result; \ } #define PY_IMPL_SET_INNER_GETATTR(typeName, enumTypeName, attrName, attr, \ innerTypeName) \ static PyObject* PyAsn##typeName##__get_##attrName( \ PyAsn##typeName##Object* self, void* Py_UNUSED(closure)) { \ - if (!(ASN_SET_ISPRESENT(self->ob_value, \ - enumTypeName##_PR_##attrName))) { \ - Py_RETURN_NONE; \ - } \ + ASN_SET_MKPRESENT(&self->ob_value->_presence_map, \ + enumTypeName##_PR_##attrName); \ return PyAsn##innerTypeName##_ToPython((attr), (PyObject*)self); \ } @@ -1149,14 +1190,28 @@ static PyObject* PyCompat_Encode(enum asn_transfer_syntax ats, #define PY_IMPL_SET_GETATTR(typeName, enumTypeName, attrName) \ static PyObject* PyAsn##typeName##__get_##attrName( \ PyAsn##typeName##Object* self, void* Py_UNUSED(closure)) { \ - if (!(ASN_SET_ISPRESENT(self->ob_value, \ - enumTypeName##_PR_##attrName))) { \ - Py_RETURN_NONE; \ - } \ + ASN_SET_MKPRESENT(&self->ob_value->_presence_map, \ + enumTypeName##_PR_##attrName); \ return PyAsn##typeName##__##attrName##_ToPython(self->ob_value, \ (PyObject*)self); \ } +#define PY_IMPL_SET_AUTOVIV_GETATTR(typeName, enumTypeName, attrName) \ + static PyObject* PyAsn##typeName##__get_##attrName( \ + PyAsn##typeName##Object* self, void* Py_UNUSED(closure)) { \ + if (!(self->ob_value->attrName)) { \ + self->ob_value->attrName = \ + PyAsn##typeName##__##attrName##_New(); \ + if (!(self->ob_value->attrName)) { \ + return PyErr_NoMemory(); \ + } \ + } \ + ASN_SET_MKPRESENT(&self->ob_value->_presence_map, \ + enumTypeName##_PR_##attrName); \ + return PyAsn##typeName##__##attrName##_ToPython(self->ob_value, \ + (PyObject*)self); \ + } + #define PY_IMPL_SET_SETATTR(typeName, enumTypeName, attrName) \ static int PyAsn##typeName##__set_##attrName( \ PyAsn##typeName##Object* self, PyObject* value, \ diff --git a/src/icspacket/include/skeletons/py_convert.h b/src/icspacket/include/skeletons/py_convert.h index b30e2e7c..ce0500f1 100644 --- a/src/icspacket/include/skeletons/py_convert.h +++ b/src/icspacket/include/skeletons/py_convert.h @@ -6,7 +6,6 @@ #ifndef _PyConvert_H_ #define _PyConvert_H_ -#define PY_SSIZE_T_CLEAN #include #include diff --git a/src/icspacket/include/skeletons/py_convert_BIT_STRING.h b/src/icspacket/include/skeletons/py_convert_BIT_STRING.h index ff3eecdc..b2ee3c1b 100644 --- a/src/icspacket/include/skeletons/py_convert_BIT_STRING.h +++ b/src/icspacket/include/skeletons/py_convert_BIT_STRING.h @@ -106,7 +106,7 @@ static inline PyObject *PyCompatBITSTRING_GetFlag(BIT_STRING_t *src, index, src->size); return NULL; } - if ((src->buf[index + extra_off] & (1 << shift))) { + if ((src->buf[index + extra_off] & (1 << shift))) { Py_RETURN_TRUE; } Py_RETURN_FALSE; diff --git a/src/icspacket/include/skeletons/xer_decoder.c b/src/icspacket/include/skeletons/xer_decoder.c index 4a4da717..a538cdc7 100644 --- a/src/icspacket/include/skeletons/xer_decoder.c +++ b/src/icspacket/include/skeletons/xer_decoder.c @@ -68,11 +68,13 @@ ssize_t xer_next_token(int *stateContext, const void *buffer, size_t size, if (arg.callback_not_invoked) { assert(ret == 0); /* No data was consumed */ *ch_type = PXER_WMORE; - return 0; /* Try again with more data */ - } else { - assert(arg.chunk_size); - assert(arg.chunk_buf == buffer); - } + return 0; /* Try again with more data */ + } else { + if(arg.chunk_size == 0 + || arg.chunk_size > size + || arg.chunk_buf != buffer) + return -1; + } /* * Translate the XML chunk types into more convenient ones. @@ -131,8 +133,50 @@ xer_check_tag_e xer_check_tag(const void *buf_ptr, int size, } } - /* Sometimes we don't care about the tag */ - if (!need_tag || !*need_tag) return (xer_check_tag_e)(XCT__UNK__MASK | ct); + /* Sometimes we don't care about the tag */ + if(!need_tag || !*need_tag) { + /* When need_tag is NULL, check if this is an ASN.1 keyword tag to skip */ + static const char *asn1_keywords[] = { + "SEQUENCE OF", "SET OF", "SEQUENCE", "SET", "CHOICE", NULL + }; + const char **kw; + + for(kw = asn1_keywords; *kw; kw++) { + const char *keyword = *kw; + const char *b = buf; + const char *k = keyword; + int match = 1; + + /* Check if tag matches keyword (with space->hyphen normalization) */ + while(*k && b < buf + size) { + char bc = *b; + char kc = *k; + + /* Normalize: space in keyword should match hyphen or space in tag */ + if(kc == ' ') { + if(bc != '-' && bc != ' ') { + match = 0; + break; + } + } else if(bc != kc) { + match = 0; + break; + } + b++; + k++; + } + + /* If keyword fully matched and we're at tag boundary, this is an ASN.1 keyword tag */ + if(match && *k == 0) { + if(b == buf + size || *b == ' ' || *b == '\t' || *b == '\r' || *b == '\n') { + /* Return the tag type (opening/closing/both) for ASN.1 keywords */ + return ct; + } + } + } + + return (xer_check_tag_e)(XCT__UNK__MASK | ct); + } /* * Determine the tag name. diff --git a/src/icspacket/include/skeletons/xer_encoder.h b/src/icspacket/include/skeletons/xer_encoder.h index e3f7b8a7..72edf43a 100644 --- a/src/icspacket/include/skeletons/xer_encoder.h +++ b/src/icspacket/include/skeletons/xer_encoder.h @@ -15,9 +15,10 @@ struct asn_TYPE_descriptor_s; /* Forward declaration */ /* Flags used by the xer_encode() and (*xer_type_encoder_f), defined below */ enum xer_encoder_flags_e { - /* Mode of encoding */ - XER_F_BASIC = 0x01, /* BASIC-XER (pretty-printing) */ - XER_F_CANONICAL = 0x02 /* Canonical XER (strict rules) */ + /* Mode of encoding */ + XER_F_BASIC = 0x01, /* BASIC-XER (pretty-printing) */ + XER_F_CANONICAL = 0x02, /* Canonical XER (strict rules) */ + XER_F_BASE64 = 0x04 }; /* From a5b63ba3b6fd00ea2d427402827b11e72145ab00 Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:21:11 +0200 Subject: [PATCH 3/9] refactor: remove rfill skeletons --- .../include/skeletons/BIT_STRING_rfill.c | 124 ----------- .../include/skeletons/BOOLEAN_rfill.c | 65 ------ .../include/skeletons/GeneralizedTime_rfill.c | 38 ---- .../include/skeletons/INTEGER_rfill.c | 93 -------- src/icspacket/include/skeletons/NULL_rfill.c | 30 --- .../include/skeletons/NativeInteger_rfill.c | 88 -------- .../skeletons/OBJECT_IDENTIFIER_rfill.c | 72 ------ .../include/skeletons/OCTET_STRING_rfill.c | 208 ------------------ .../include/skeletons/UTF8String_rfill.c | 94 -------- .../include/skeletons/asn_random_fill.c | 63 ------ .../include/skeletons/asn_random_fill.h | 51 ----- .../include/skeletons/constr_CHOICE_rfill.c | 59 ----- .../include/skeletons/constr_SEQUENCE_rfill.c | 73 ------ .../include/skeletons/constr_SET_OF_rfill.c | 166 -------------- .../include/skeletons/constr_SET_rfill.c | 73 ------ 15 files changed, 1297 deletions(-) delete mode 100644 src/icspacket/include/skeletons/BIT_STRING_rfill.c delete mode 100644 src/icspacket/include/skeletons/BOOLEAN_rfill.c delete mode 100644 src/icspacket/include/skeletons/GeneralizedTime_rfill.c delete mode 100644 src/icspacket/include/skeletons/INTEGER_rfill.c delete mode 100644 src/icspacket/include/skeletons/NULL_rfill.c delete mode 100644 src/icspacket/include/skeletons/NativeInteger_rfill.c delete mode 100644 src/icspacket/include/skeletons/OBJECT_IDENTIFIER_rfill.c delete mode 100644 src/icspacket/include/skeletons/OCTET_STRING_rfill.c delete mode 100644 src/icspacket/include/skeletons/UTF8String_rfill.c delete mode 100644 src/icspacket/include/skeletons/asn_random_fill.c delete mode 100644 src/icspacket/include/skeletons/asn_random_fill.h delete mode 100644 src/icspacket/include/skeletons/constr_CHOICE_rfill.c delete mode 100644 src/icspacket/include/skeletons/constr_SEQUENCE_rfill.c delete mode 100644 src/icspacket/include/skeletons/constr_SET_OF_rfill.c delete mode 100644 src/icspacket/include/skeletons/constr_SET_rfill.c diff --git a/src/icspacket/include/skeletons/BIT_STRING_rfill.c b/src/icspacket/include/skeletons/BIT_STRING_rfill.c deleted file mode 100644 index d34058b8..00000000 --- a/src/icspacket/include/skeletons/BIT_STRING_rfill.c +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t BIT_STRING_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const asn_OCTET_STRING_specifics_t *specs = - td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_BIT_STRING_specs; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - static unsigned lengths[] = {0, 1, 2, 3, 4, 8, - 126, 127, 128, 16383, 16384, 16385, - 65534, 65535, 65536, 65537}; - uint8_t *buf; - uint8_t *bend; - uint8_t *b; - size_t rnd_bits, rnd_len; - BIT_STRING_t *st; - - if (max_length == 0) return result_skipped; - - switch (specs->subvariant) { - case ASN_OSUBV_ANY: - return result_failed; - case ASN_OSUBV_BIT: - break; - default: - break; - } - - /* Figure out how far we should go */ - rnd_bits = lengths[asn_random_between( - 0, sizeof(lengths) / sizeof(lengths[0]) - 1)]; -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - if (!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if (constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->size; - if (pc->flags & APC_CONSTRAINED) { - long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length - ? pc->upper_bound - : (ssize_t)max_length; - if (max_length < (size_t)pc->lower_bound) { - return result_skipped; - } - if (pc->flags & APC_EXTENSIBLE) { - switch (asn_random_between(0, 5)) { - case 0: - if (pc->lower_bound > 0) { - rnd_bits = pc->lower_bound - 1; - break; - } - /* Fall through */ - case 1: - rnd_bits = pc->upper_bound + 1; - break; - case 2: - /* Keep rnd_bits from the table */ - if (rnd_bits < max_length) { - break; - } - /* Fall through */ - default: - rnd_bits = asn_random_between(pc->lower_bound, - suggested_upper_bound); - } - } else { - rnd_bits = - asn_random_between(pc->lower_bound, suggested_upper_bound); - } - } else { - rnd_bits = asn_random_between(0, max_length - 1); - } - } else { -#else - if (!constraints) constraints = &td->encoding_constraints; - { -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - if (rnd_bits >= max_length) { - rnd_bits = asn_random_between(0, max_length - 1); - } - } - - rnd_len = (rnd_bits + 7) / 8; - buf = CALLOC(1, rnd_len + 1); - if (!buf) return result_failed; - - bend = &buf[rnd_len]; - - for (b = buf; b < bend; b++) { - *(uint8_t *)b = asn_random_between(0, 255); - } - *b = 0; /* Zero-terminate just in case. */ - - if (*sptr) { - st = *sptr; - FREEMEM(st->buf); - } else { - st = (BIT_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if (!st) { - FREEMEM(buf); - return result_failed; - } - } - - st->buf = buf; - st->size = rnd_len; - st->bits_unused = (8 - (rnd_bits & 0x7)) & 0x7; - if (st->bits_unused) { - assert(st->size > 0); - st->buf[st->size - 1] &= 0xff << st->bits_unused; - } - - result_ok.length = st->size; - return result_ok; -} diff --git a/src/icspacket/include/skeletons/BOOLEAN_rfill.c b/src/icspacket/include/skeletons/BOOLEAN_rfill.c deleted file mode 100644 index a40e14bf..00000000 --- a/src/icspacket/include/skeletons/BOOLEAN_rfill.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t BOOLEAN_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - BOOLEAN_t *st = *sptr; - - if (max_length == 0) return result_skipped; - - if (st == NULL) { - st = (BOOLEAN_t *)(*sptr = CALLOC(1, sizeof(*st))); - if (st == NULL) { - return result_failed; - } - } - -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - if (!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if (constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->value; - if (pc->flags & APC_CONSTRAINED) { - *st = asn_random_between(pc->lower_bound, pc->upper_bound); - return result_ok; - } - } -#else - if (!constraints) constraints = &td->encoding_constraints; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - - /* Simulate booleans that are sloppily set and biased. */ - switch (asn_random_between(0, 7)) { - case 0: - case 1: - case 2: - *st = 0; - break; - case 3: - *st = -1; - break; - case 4: - *st = 1; - break; - case 5: - *st = INT_MIN; - break; - case 6: - *st = INT_MAX; - break; - default: - *st = asn_random_between(INT_MIN, INT_MAX); - break; - } - return result_ok; -} diff --git a/src/icspacket/include/skeletons/GeneralizedTime_rfill.c b/src/icspacket/include/skeletons/GeneralizedTime_rfill.c deleted file mode 100644 index 06214d40..00000000 --- a/src/icspacket/include/skeletons/GeneralizedTime_rfill.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t GeneralizedTime_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - static const char *values[] = { - "19700101000000", "19700101000000-0000", "19700101000000+0000", - "19700101000000Z", "19700101000000.3Z", "19821106210623.3", - "19821106210629.3Z", "19691106210827.3-0500", "19821106210629.456", - }; - size_t rnd = asn_random_between(0, sizeof(values) / sizeof(values[0]) - 1); - - (void)constraints; - - if (max_length < sizeof("yyyymmddhhmmss") && !*sptr) { - return result_skipped; - } - - if (*sptr) { - if (OCTET_STRING_fromBuf(*sptr, values[rnd], -1) != 0) { - if (!sptr) return result_failed; - } - } else { - *sptr = OCTET_STRING_new_fromBuf(td, values[rnd], -1); - if (!sptr) return result_failed; - } - - return result_ok; -} diff --git a/src/icspacket/include/skeletons/INTEGER_rfill.c b/src/icspacket/include/skeletons/INTEGER_rfill.c deleted file mode 100644 index 9f0cdd05..00000000 --- a/src/icspacket/include/skeletons/INTEGER_rfill.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t INTEGER_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - INTEGER_t *st = *sptr; - const asn_INTEGER_enum_map_t *emap; - size_t emap_len; - intmax_t value; - int find_inside_map; - - if (max_length == 0) return result_skipped; - - if (st == NULL) { - st = (INTEGER_t *)CALLOC(1, sizeof(*st)); - if (st == NULL) { - return result_failed; - } - } - - if (specs) { - emap = specs->value2enum; - emap_len = specs->map_count; - if (specs->strict_enumeration) { - find_inside_map = emap_len > 0; - } else { - find_inside_map = emap_len ? asn_random_between(0, 1) : 0; - } - } else { - emap = 0; - emap_len = 0; - find_inside_map = 0; - } - - if (find_inside_map) { - assert(emap_len > 0); - value = emap[asn_random_between(0, emap_len - 1)].nat_value; - } else { - static const long variants[] = { - -65536, -65535, -65534, -32769, -32768, -32767, -16385, -16384, - -16383, -257, -256, -255, -254, -129, -128, -127, - -126, -1, 0, 1, 126, 127, 128, 129, - 254, 255, 256, 257, 16383, 16384, 16385, 32767, - 32768, 32769, 65534, 65535, 65536, 65537}; - if (specs && specs->field_unsigned) { - assert(variants[18] == 0); - value = variants[asn_random_between( - 18, sizeof(variants) / sizeof(variants[0]) - 1)]; - } else { - value = variants[asn_random_between( - 0, sizeof(variants) / sizeof(variants[0]) - 1)]; - } - - if (!constraints) constraints = &td->encoding_constraints; -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - const asn_per_constraints_t *ct; - - ct = constraints ? constraints->per_constraints : 0; - if (ct && (ct->value.flags & APC_CONSTRAINED)) { - if (value < ct->value.lower_bound || - value > ct->value.upper_bound) { - value = asn_random_between(ct->value.lower_bound, - ct->value.upper_bound); - } - } -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - } - - if (asn_imax2INTEGER(st, value)) { - if (st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - return result_failed; - } else { - *sptr = st; - result_ok.length = st->size; - return result_ok; - } -} diff --git a/src/icspacket/include/skeletons/NULL_rfill.c b/src/icspacket/include/skeletons/NULL_rfill.c deleted file mode 100644 index f2c7da59..00000000 --- a/src/icspacket/include/skeletons/NULL_rfill.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t NULL_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - NULL_t *st = *sptr; - - (void)td; - (void)constr; - - if (max_length == 0) return result_skipped; - - if (st == NULL) { - st = (NULL_t *)(*sptr = CALLOC(1, sizeof(*st))); - if (st == NULL) { - return result_failed; - } - } - - return result_ok; -} diff --git a/src/icspacket/include/skeletons/NativeInteger_rfill.c b/src/icspacket/include/skeletons/NativeInteger_rfill.c deleted file mode 100644 index d2a56211..00000000 --- a/src/icspacket/include/skeletons/NativeInteger_rfill.c +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t NativeInteger_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const asn_INTEGER_specifics_t *specs = - (const asn_INTEGER_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - long *st = *sptr; - const asn_INTEGER_enum_map_t *emap; - size_t emap_len; - intmax_t value; - int find_inside_map; - - if (max_length == 0) return result_skipped; - - if (st == NULL) { - st = (long *)CALLOC(1, sizeof(*st)); - if (st == NULL) { - return result_failed; - } - } - - if (specs) { - emap = specs->value2enum; - emap_len = specs->map_count; - if (specs->strict_enumeration) { - find_inside_map = emap_len > 0; - } else { - find_inside_map = emap_len ? asn_random_between(0, 1) : 0; - } - } else { - emap = 0; - emap_len = 0; - find_inside_map = 0; - } - - if (find_inside_map) { - assert(emap_len > 0); - value = emap[asn_random_between(0, emap_len - 1)].nat_value; - } else { - static const long variants[] = { - -65536, -65535, -65534, -32769, -32768, -32767, -16385, -16384, - -16383, -257, -256, -255, -254, -129, -128, -127, - -126, -1, 0, 1, 126, 127, 128, 129, - 254, 255, 256, 257, 16383, 16384, 16385, 32767, - 32768, 32769, 65534, 65535, 65536, 65537}; - if (specs && specs->field_unsigned) { - assert(variants[18] == 0); - value = variants[asn_random_between( - 18, sizeof(variants) / sizeof(variants[0]) - 1)]; - } else { - value = variants[asn_random_between( - 0, sizeof(variants) / sizeof(variants[0]) - 1)]; - } - -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - if (!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - - const asn_per_constraints_t *ct; - - ct = constraints ? constraints->per_constraints : 0; - if (ct && (ct->value.flags & APC_CONSTRAINED)) { - if (value < ct->value.lower_bound || - value > ct->value.upper_bound) { - value = asn_random_between(ct->value.lower_bound, - ct->value.upper_bound); - } - } -#else - if (!constraints) constraints = &td->encoding_constraints; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - } - - *sptr = st; - *st = value; - return result_ok; -} diff --git a/src/icspacket/include/skeletons/OBJECT_IDENTIFIER_rfill.c b/src/icspacket/include/skeletons/OBJECT_IDENTIFIER_rfill.c deleted file mode 100644 index b808a845..00000000 --- a/src/icspacket/include/skeletons/OBJECT_IDENTIFIER_rfill.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -/* - * Generate values from the list of interesting values, or just a random - * value up to the upper limit. - */ -static asn_oid_arc_t OBJECT_IDENTIFIER__biased_random_arc( - asn_oid_arc_t upper_bound) { - const asn_oid_arc_t values[] = {0, 1, 127, 128, 129, 254, 255, 256}; - size_t idx; - - switch (asn_random_between(0, 2)) { - case 0: - idx = asn_random_between(0, sizeof(values) / sizeof(values[0]) - 1); - if (values[idx] < upper_bound) { - return values[idx]; - } - /* Fall through */ - case 1: - return asn_random_between(0, upper_bound); - case 2: - default: - return upper_bound; - } -} - -asn_random_fill_result_t OBJECT_IDENTIFIER_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - OBJECT_IDENTIFIER_t *st; - asn_oid_arc_t arcs[5]; - size_t arcs_len = asn_random_between(2, 5); - size_t i; - - (void)constraints; - - if (max_length < arcs_len) return result_skipped; - - if (*sptr) { - st = *sptr; - } else { - st = CALLOC(1, sizeof(*st)); - } - - arcs[0] = asn_random_between(0, 2); - arcs[1] = OBJECT_IDENTIFIER__biased_random_arc( - arcs[0] <= 1 ? 39 : (ASN_OID_ARC_MAX - 80)); - for (i = 2; i < arcs_len; i++) { - arcs[i] = OBJECT_IDENTIFIER__biased_random_arc(ASN_OID_ARC_MAX); - } - - if (OBJECT_IDENTIFIER_set_arcs(st, arcs, arcs_len)) { - if (st != *sptr) { - ASN_STRUCT_FREE(*td, st); - } - return result_failed; - } - - *sptr = st; - - result_ok.length = st->size; - return result_ok; -} diff --git a/src/icspacket/include/skeletons/OCTET_STRING_rfill.c b/src/icspacket/include/skeletons/OCTET_STRING_rfill.c deleted file mode 100644 index d8ea6d6f..00000000 --- a/src/icspacket/include/skeletons/OCTET_STRING_rfill.c +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -/* - * Biased function for randomizing character values around their limits. - */ -static uint32_t OCTET_STRING__random_char(unsigned long lb, unsigned long ub) { - assert(lb <= ub); - switch (asn_random_between(0, 16)) { - case 0: - if (lb < ub) return lb + 1; - /* Fall through */ - case 1: - return lb; - case 2: - if (lb < ub) return ub - 1; - /* Fall through */ - case 3: - return ub; - default: - return asn_random_between(lb, ub); - } -} - -asn_random_fill_result_t OCTET_STRING_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const asn_OCTET_STRING_specifics_t *specs = - td->specifics ? (const asn_OCTET_STRING_specifics_t *)td->specifics - : &asn_SPC_OCTET_STRING_specs; - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - unsigned int unit_bytes = 1; - unsigned long clb = 0; /* Lower bound on char */ - unsigned long cub = 255; /* Higher bound on char value */ - uint8_t *buf; - uint8_t *bend; - uint8_t *b; - size_t rnd_len; - OCTET_STRING_t *st; - - if (max_length == 0 && !*sptr) return result_skipped; - - switch (specs->subvariant) { - default: - case ASN_OSUBV_ANY: - return result_failed; - case ASN_OSUBV_BIT: - /* Handled by BIT_STRING itself. */ - return result_failed; - case ASN_OSUBV_STR: - unit_bytes = 1; - clb = 0; - cub = 255; - break; - case ASN_OSUBV_U16: - unit_bytes = 2; - clb = 0; - cub = 65535; - break; - case ASN_OSUBV_U32: - unit_bytes = 4; - clb = 0; - cub = 0x10FFFF; - break; - } - -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - if (!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if (constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->value; - if (pc->flags & APC_SEMI_CONSTRAINED) { - clb = pc->lower_bound; - } else if (pc->flags & APC_CONSTRAINED) { - clb = pc->lower_bound; - cub = pc->upper_bound; - } - } -#else - if (!constraints) constraints = &td->encoding_constraints; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - - rnd_len = - OCTET_STRING_random_length_constrained(td, constraints, max_length); - - buf = CALLOC(unit_bytes, rnd_len + 1); - if (!buf) return result_failed; - - bend = &buf[unit_bytes * rnd_len]; - - switch (unit_bytes) { - case 1: - for (b = buf; b < bend; b += unit_bytes) { - *(uint8_t *)b = OCTET_STRING__random_char(clb, cub); - } - *(uint8_t *)b = 0; - break; - case 2: - for (b = buf; b < bend; b += unit_bytes) { - uint32_t code = OCTET_STRING__random_char(clb, cub); - b[0] = code >> 8; - b[1] = code; - } - *(uint16_t *)b = 0; - break; - case 4: - for (b = buf; b < bend; b += unit_bytes) { - uint32_t code = OCTET_STRING__random_char(clb, cub); - b[0] = code >> 24; - b[1] = code >> 16; - b[2] = code >> 8; - b[3] = code; - } - *(uint32_t *)b = 0; - break; - } - - if (*sptr) { - st = *sptr; - FREEMEM(st->buf); - } else { - st = (OCTET_STRING_t *)(*sptr = CALLOC(1, specs->struct_size)); - if (!st) { - FREEMEM(buf); - return result_failed; - } - } - - st->buf = buf; - st->size = unit_bytes * rnd_len; - - result_ok.length = st->size; - return result_ok; -} - -size_t OCTET_STRING_random_length_constrained( - const asn_TYPE_descriptor_t *td, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const unsigned lengths[] = {0, 1, 2, 3, 4, 8, - 126, 127, 128, 16383, 16384, 16385, - 65534, 65535, 65536, 65537}; - size_t rnd_len; - - /* Figure out how far we should go */ - rnd_len = lengths[asn_random_between( - 0, sizeof(lengths) / sizeof(lengths[0]) - 1)]; - -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - if (!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if (constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->size; - if (pc->flags & APC_CONSTRAINED) { - long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length - ? pc->upper_bound - : (ssize_t)max_length; - if (max_length <= (size_t)pc->lower_bound) { - return pc->lower_bound; - } - if (pc->flags & APC_EXTENSIBLE) { - switch (asn_random_between(0, 5)) { - case 0: - if (pc->lower_bound > 0) { - rnd_len = pc->lower_bound - 1; - break; - } - /* Fall through */ - case 1: - rnd_len = pc->upper_bound + 1; - break; - case 2: - /* Keep rnd_len from the table */ - if (rnd_len <= max_length) { - break; - } - /* Fall through */ - default: - rnd_len = asn_random_between(pc->lower_bound, - suggested_upper_bound); - } - } else { - rnd_len = - asn_random_between(pc->lower_bound, suggested_upper_bound); - } - } else { - rnd_len = asn_random_between(0, max_length); - } - } else { -#else - if (!constraints) constraints = &td->encoding_constraints; - { -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - if (rnd_len > max_length) { - rnd_len = asn_random_between(0, max_length); - } - } - - return rnd_len; -} diff --git a/src/icspacket/include/skeletons/UTF8String_rfill.c b/src/icspacket/include/skeletons/UTF8String_rfill.c deleted file mode 100644 index 43974bf7..00000000 --- a/src/icspacket/include/skeletons/UTF8String_rfill.c +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -/* - * Biased function for randomizing UTF-8 sequences. - */ -static size_t UTF8String__random_char(uint8_t *b, size_t size) { - static const struct rnd_value { - const char *value; - size_t size; - } values[] = {{"\0", 1}, - {"\x01", 1}, - {"\x7f", 1}, - {"\xc2\xa2", 2}, - {"\xe2\x82\xac", 3}, - {"\xf0\x90\x8d\x88", 4}, - {"\xf4\x8f\xbf\xbf", 4}}; - - const struct rnd_value *v; - size_t max_idx = 0; - - switch (size) { - case 0: - assert(size != 0); - return 0; - case 1: - max_idx = 2; - break; - case 2: - max_idx = 3; - break; - default: - case 4: - max_idx = sizeof(values) / sizeof(values[0]) - 1; - break; - } - - v = &values[asn_random_between(0, max_idx)]; - memcpy(b, v->value, v->size); - return v->size; -} - -asn_random_fill_result_t UTF8String_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - asn_random_fill_result_t result_ok = {ARFILL_OK, 1}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - uint8_t *buf; - uint8_t *bend; - uint8_t *b; - size_t rnd_len; - size_t idx; - UTF8String_t *st; - - if (max_length == 0 && !*sptr) return result_skipped; - - /* Figure out how far we should go */ - rnd_len = - OCTET_STRING_random_length_constrained(td, constraints, max_length / 4); - - buf = CALLOC(4, rnd_len + 1); - if (!buf) return result_failed; - - bend = &buf[4 * rnd_len]; - - for (b = buf, idx = 0; idx < rnd_len; idx++) { - b += UTF8String__random_char(b, (bend - b)); - } - *(uint8_t *)b = 0; - - if (*sptr) { - st = *sptr; - FREEMEM(st->buf); - } else { - st = (OCTET_STRING_t *)(*sptr = CALLOC(1, sizeof(UTF8String_t))); - if (!st) { - FREEMEM(buf); - return result_failed; - } - } - - st->buf = buf; - st->size = b - buf; - - assert(UTF8String_length(st) == (ssize_t)rnd_len); - - return result_ok; -} diff --git a/src/icspacket/include/skeletons/asn_random_fill.c b/src/icspacket/include/skeletons/asn_random_fill.c deleted file mode 100644 index 62b9e9c8..00000000 --- a/src/icspacket/include/skeletons/asn_random_fill.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include -#include -#include - -int asn_random_fill(const struct asn_TYPE_descriptor_s *td, void **struct_ptr, - size_t length) { - if (td && td->op->random_fill) { - asn_random_fill_result_t res = - td->op->random_fill(td, struct_ptr, 0, length); - return (res.code == ARFILL_OK) ? 0 : -1; - } else { - return -1; - } -} - -static uintmax_t asn__intmax_range(intmax_t lb, intmax_t ub) { - assert(lb <= ub); - if ((ub < 0) == (lb < 0)) { - return ub - lb; - } else if (lb < 0) { - return 1 + ((uintmax_t)ub + (uintmax_t) - (lb + 1)); - } else { - assert(!"Unreachable"); - return 0; - } -} - -intmax_t asn_random_between(intmax_t lb, intmax_t rb) { - if (lb == rb) { - return lb; - } else { - const uintmax_t intmax_max = ((~(uintmax_t)0) >> 1); - uintmax_t range = asn__intmax_range(lb, rb); - uintmax_t value = 0; - uintmax_t got_entropy = 0; - (void)intmax_max; - int max = 0xffffff; - -#ifdef __WIN32__ - max = RAND_MAX - 1; -#endif - - assert(RAND_MAX > max); /* Seen 7ffffffd! */ - assert(range < intmax_max); - - for (; got_entropy < range;) { - got_entropy = (got_entropy << 24) | max; -#ifdef HAVE_RANDOM - value = (value << 24) | (random() % max); -#else - value = (value << 24) | (rand() % max); -#endif - } - - return lb + (intmax_t)(value % (range + 1)); - } -} diff --git a/src/icspacket/include/skeletons/asn_random_fill.h b/src/icspacket/include/skeletons/asn_random_fill.h deleted file mode 100644 index 040e0a22..00000000 --- a/src/icspacket/include/skeletons/asn_random_fill.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#ifndef ASN_RANDOM_FILL -#define ASN_RANDOM_FILL - -/* Forward declarations */ -struct asn_TYPE_descriptor_s; -struct asn_encoding_constraints_s; - -/* - * Initialize a structure with random data according to the type specification - * and optional member constraints. - * ARGUMENTS: - * (max_length) - See (approx_max_length_limit). - * (memb_constraints) - Member constraints, if exist. - * The type can be constrained differently according - * to PER and OER specifications, so we find a value - * at the intersection of these constraints. - * In case the return differs from ARFILL_OK, the (struct_ptr) contents - * and (current_length) value remain in their original state. - */ -typedef struct asn_random_fill_result_s { - enum { - ARFILL_FAILED = -1, /* System error (memory?) */ - ARFILL_OK = 0, /* Initialization succeeded */ - ARFILL_SKIPPED = 1 /* Not done due to (length?) constraint */ - } code; - size_t length; /* Approximate number of bytes created. */ -} asn_random_fill_result_t; -typedef asn_random_fill_result_t(asn_random_fill_f)( - const struct asn_TYPE_descriptor_s *td, void **struct_ptr, - const struct asn_encoding_constraints_s *memb_constraints, - size_t max_length); - -/* - * Returns 0 if the structure was properly initialized, -1 otherwise. - * The (approx_max_length_limit) specifies the approximate limit of the - * resulting structure in units closely resembling bytes. The actual result - * might be several times larger or smaller than the length limit. - */ -int asn_random_fill(const struct asn_TYPE_descriptor_s *td, void **struct_ptr, - size_t approx_max_length_limit); - -/* - * Returns a random number between min and max. - */ -intmax_t asn_random_between(intmax_t min, intmax_t max); - -#endif /* ASN_RANDOM_FILL */ diff --git a/src/icspacket/include/skeletons/constr_CHOICE_rfill.c b/src/icspacket/include/skeletons/constr_CHOICE_rfill.c deleted file mode 100644 index 99807c57..00000000 --- a/src/icspacket/include/skeletons/constr_CHOICE_rfill.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t CHOICE_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, size_t max_length) { - const asn_CHOICE_specifics_t *specs = - (const asn_CHOICE_specifics_t *)td->specifics; - asn_random_fill_result_t res; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - const asn_TYPE_member_t *elm; - unsigned present; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - void *st = *sptr; - - if (max_length == 0) return result_skipped; - - (void)constr; - - if (st == NULL) { - st = CALLOC(1, specs->struct_size); - if (st == NULL) { - return result_failed; - } - } - - present = asn_random_between(1, td->elements_count); - elm = &td->elements[present - 1]; - - if (elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - res = elm->type->op->random_fill(elm->type, memb_ptr2, - &elm->encoding_constraints, max_length); - _set_present_idx(st, specs->pres_offset, specs->pres_size, present); - if (res.code == ARFILL_OK) { - *sptr = st; - } else { - if (st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - } - - return res; -} diff --git a/src/icspacket/include/skeletons/constr_SEQUENCE_rfill.c b/src/icspacket/include/skeletons/constr_SEQUENCE_rfill.c deleted file mode 100644 index 552579c3..00000000 --- a/src/icspacket/include/skeletons/constr_SEQUENCE_rfill.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t SEQUENCE_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, size_t max_length) { - const asn_SEQUENCE_specifics_t *specs = - (const asn_SEQUENCE_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 0}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - void *st = *sptr; - size_t edx; - - if (max_length == 0) return result_skipped; - - (void)constr; - - if (st == NULL) { - st = CALLOC(1, specs->struct_size); - if (st == NULL) { - return result_failed; - } - } - - for (edx = 0; edx < td->elements_count; edx++) { - const asn_TYPE_member_t *elm = &td->elements[edx]; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - asn_random_fill_result_t tmpres; - - if (elm->optional && asn_random_between(0, 4) == 2) { - /* Sometimes decide not to fill the optional value */ - continue; - } - - if (elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - tmpres = elm->type->op->random_fill( - elm->type, memb_ptr2, &elm->encoding_constraints, - max_length > result_ok.length ? max_length - result_ok.length : 0); - switch (tmpres.code) { - case ARFILL_OK: - result_ok.length += tmpres.length; - continue; - case ARFILL_SKIPPED: - assert(!(elm->flags & ATF_POINTER) || *memb_ptr2 == NULL); - continue; - case ARFILL_FAILED: - if (st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - return tmpres; - } - } - - *sptr = st; - - return result_ok; -} diff --git a/src/icspacket/include/skeletons/constr_SET_OF_rfill.c b/src/icspacket/include/skeletons/constr_SET_OF_rfill.c deleted file mode 100644 index 545d023c..00000000 --- a/src/icspacket/include/skeletons/constr_SET_OF_rfill.c +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t SET_OF_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constraints, size_t max_length) { - const asn_SET_OF_specifics_t *specs = - (const asn_SET_OF_specifics_t *)td->specifics; - asn_random_fill_result_t res_ok = {ARFILL_OK, 0}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - const asn_TYPE_member_t *elm = td->elements; - void *st = *sptr; - long max_elements = 5; - long slb = 0; /* Lower size bound */ - long sub = 0; /* Upper size bound */ - size_t rnd_len; - - if (max_length == 0) return result_skipped; - - if (st == NULL) { - st = (*sptr = CALLOC(1, specs->struct_size)); - if (st == NULL) { - return result_failed; - } - } - - switch (asn_random_between(0, 6)) { - case 0: - max_elements = 0; - break; - case 1: - max_elements = 1; - break; - case 2: - max_elements = 5; - break; - case 3: - max_elements = max_length; - break; - case 4: - max_elements = max_length / 2; - break; - case 5: - max_elements = max_length / 4; - break; - default: - break; - } - sub = slb + max_elements; - -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - if (!constraints || !constraints->per_constraints) - constraints = &td->encoding_constraints; - if (constraints->per_constraints) { - const asn_per_constraint_t *pc = &constraints->per_constraints->size; - if (pc->flags & APC_SEMI_CONSTRAINED) { - slb = pc->lower_bound; - sub = pc->lower_bound + max_elements; - } else if (pc->flags & APC_CONSTRAINED) { - slb = pc->lower_bound; - sub = pc->upper_bound; - if (sub - slb > max_elements) sub = slb + max_elements; - } - } -#else - if (!constraints) constraints = &td->encoding_constraints; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - - /* Bias towards edges of allowed space */ - switch (asn_random_between(-1, 4)) { - default: - case -1: -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - /* Prepare lengths somewhat outside of constrained range. */ - if (constraints->per_constraints && - (constraints->per_constraints->size.flags & APC_EXTENSIBLE)) { - switch (asn_random_between(0, 5)) { - default: - case 0: - rnd_len = 0; - break; - case 1: - if (slb > 0) { - rnd_len = slb - 1; - } else { - rnd_len = 0; - } - break; - case 2: - rnd_len = asn_random_between(0, slb); - break; - case 3: - if (sub < (ssize_t)max_length) { - rnd_len = sub + 1; - } else { - rnd_len = max_length; - } - break; - case 4: - if (sub < (ssize_t)max_length) { - rnd_len = asn_random_between(sub + 1, max_length); - } else { - rnd_len = max_length; - } - break; - case 5: - rnd_len = max_length; - break; - } - break; - } -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || \ - !defined(ASN_DISABLE_APER_SUPPORT) */ - /* Fall through */ - case 0: - rnd_len = asn_random_between(slb, sub); - break; - case 1: - if (slb < sub) { - rnd_len = asn_random_between(slb + 1, sub); - break; - } - /* Fall through */ - case 2: - rnd_len = asn_random_between(slb, slb); - break; - case 3: - if (slb < sub) { - rnd_len = asn_random_between(slb, sub - 1); - break; - } - /* Fall through */ - case 4: - rnd_len = asn_random_between(sub, sub); - break; - } - - for (; rnd_len > 0; rnd_len--) { - asn_anonymous_set_ *list = _A_SET_FROM_VOID(st); - void *ptr = 0; - asn_random_fill_result_t tmpres = elm->type->op->random_fill( - elm->type, &ptr, &elm->encoding_constraints, - (max_length > res_ok.length ? max_length - res_ok.length : 0) / - rnd_len); - switch (tmpres.code) { - case ARFILL_OK: - ASN_SET_ADD(list, ptr); - res_ok.length += tmpres.length; - break; - case ARFILL_SKIPPED: - break; - case ARFILL_FAILED: - assert(ptr == 0); - return tmpres; - } - } - - return res_ok; -} diff --git a/src/icspacket/include/skeletons/constr_SET_rfill.c b/src/icspacket/include/skeletons/constr_SET_rfill.c deleted file mode 100644 index 78b09eb4..00000000 --- a/src/icspacket/include/skeletons/constr_SET_rfill.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2017 Lev Walkin . - * All rights reserved. - * Redistribution and modifications are permitted subject to BSD license. - */ -#include -#include - -asn_random_fill_result_t SET_random_fill( - const asn_TYPE_descriptor_t *td, void **sptr, - const asn_encoding_constraints_t *constr, size_t max_length) { - const asn_SET_specifics_t *specs = - (const asn_SET_specifics_t *)td->specifics; - asn_random_fill_result_t result_ok = {ARFILL_OK, 0}; - asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0}; - asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0}; - void *st = *sptr; - size_t edx; - - if (max_length == 0) return result_skipped; - - (void)constr; - - if (st == NULL) { - st = CALLOC(1, specs->struct_size); - if (st == NULL) { - return result_failed; - } - } - - for (edx = 0; edx < td->elements_count; edx++) { - const asn_TYPE_member_t *elm = &td->elements[edx]; - void *memb_ptr; /* Pointer to the member */ - void **memb_ptr2; /* Pointer to that pointer */ - asn_random_fill_result_t tmpres; - - if (elm->optional && asn_random_between(0, 4) == 2) { - /* Sometimes decide not to fill the optional value */ - continue; - } - - if (elm->flags & ATF_POINTER) { - /* Member is a pointer to another structure */ - memb_ptr2 = (void **)((char *)st + elm->memb_offset); - } else { - memb_ptr = (char *)st + elm->memb_offset; - memb_ptr2 = &memb_ptr; - } - - tmpres = elm->type->op->random_fill( - elm->type, memb_ptr2, &elm->encoding_constraints, - max_length > result_ok.length ? max_length - result_ok.length : 0); - switch (tmpres.code) { - case ARFILL_OK: - result_ok.length += tmpres.length; - continue; - case ARFILL_SKIPPED: - assert(!(elm->flags & ATF_POINTER) || *memb_ptr2 == NULL); - continue; - case ARFILL_FAILED: - if (st == *sptr) { - ASN_STRUCT_RESET(*td, st); - } else { - ASN_STRUCT_FREE(*td, st); - } - return tmpres; - } - } - - *sptr = st; - - return result_ok; -} From e7709c300ff64b4d38206ce91b3166b5af3e070b Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:24:48 +0200 Subject: [PATCH 4/9] refactor: sync MMS ASN1 types --- src/icspacket/proto/mms/_mms/AARE-apdu.c | 16 +- src/icspacket/proto/mms/_mms/AARE-apdu.h | 57 +-- src/icspacket/proto/mms/_mms/AARE-apdu_Py.c | 10 +- src/icspacket/proto/mms/_mms/AARE-apdu_Py.h | 2 +- src/icspacket/proto/mms/_mms/AARQ-apdu.c | 14 +- src/icspacket/proto/mms/_mms/AARQ-apdu.h | 56 +-- src/icspacket/proto/mms/_mms/AARQ-apdu_Py.c | 2 +- src/icspacket/proto/mms/_mms/AARQ-apdu_Py.h | 2 +- src/icspacket/proto/mms/_mms/ABRT-apdu.c | 2 +- src/icspacket/proto/mms/_mms/ABRT-apdu.h | 14 +- src/icspacket/proto/mms/_mms/ABRT-apdu_Py.c | 2 +- src/icspacket/proto/mms/_mms/ABRT-apdu_Py.h | 2 +- .../proto/mms/_mms/ABRT-diagnostic.c | 28 +- .../proto/mms/_mms/ABRT-diagnostic.h | 4 +- .../proto/mms/_mms/ABRT-diagnostic_Py.c | 2 +- .../proto/mms/_mms/ABRT-diagnostic_Py.h | 2 +- src/icspacket/proto/mms/_mms/ABRT-source.c | 2 +- src/icspacket/proto/mms/_mms/ABRT-source.h | 4 +- src/icspacket/proto/mms/_mms/ABRT-source_Py.c | 2 +- src/icspacket/proto/mms/_mms/ABRT-source_Py.h | 2 +- src/icspacket/proto/mms/_mms/ACSE-apdu.c | 12 +- src/icspacket/proto/mms/_mms/ACSE-apdu.h | 31 +- src/icspacket/proto/mms/_mms/ACSE-apdu_Py.c | 22 +- src/icspacket/proto/mms/_mms/ACSE-apdu_Py.h | 2 +- .../proto/mms/_mms/ACSE-requirements.c | 8 +- .../proto/mms/_mms/ACSE-requirements.h | 5 +- .../proto/mms/_mms/ACSE-requirements_Py.c | 2 +- .../proto/mms/_mms/ACSE-requirements_Py.h | 2 +- .../proto/mms/_mms/AE-invocation-identifier.c | 2 +- .../proto/mms/_mms/AE-invocation-identifier.h | 4 +- .../mms/_mms/AE-invocation-identifier_Py.c | 2 +- .../mms/_mms/AE-invocation-identifier_Py.h | 2 +- .../proto/mms/_mms/AE-qualifier-form1.c | 2 +- .../proto/mms/_mms/AE-qualifier-form1.h | 6 +- .../proto/mms/_mms/AE-qualifier-form1_Py.c | 2 +- .../proto/mms/_mms/AE-qualifier-form1_Py.h | 2 +- .../proto/mms/_mms/AE-qualifier-form2.c | 2 +- .../proto/mms/_mms/AE-qualifier-form2.h | 4 +- .../proto/mms/_mms/AE-qualifier-form2_Py.c | 2 +- .../proto/mms/_mms/AE-qualifier-form2_Py.h | 2 +- src/icspacket/proto/mms/_mms/AE-qualifier.c | 4 +- src/icspacket/proto/mms/_mms/AE-qualifier.h | 16 +- .../proto/mms/_mms/AE-qualifier_Py.c | 6 +- .../proto/mms/_mms/AE-qualifier_Py.h | 2 +- src/icspacket/proto/mms/_mms/AE-title-form1.c | 2 +- src/icspacket/proto/mms/_mms/AE-title-form1.h | 6 +- .../proto/mms/_mms/AE-title-form1_Py.c | 2 +- .../proto/mms/_mms/AE-title-form1_Py.h | 2 +- src/icspacket/proto/mms/_mms/AE-title-form2.c | 2 +- src/icspacket/proto/mms/_mms/AE-title-form2.h | 4 +- .../proto/mms/_mms/AE-title-form2_Py.c | 2 +- .../proto/mms/_mms/AE-title-form2_Py.h | 2 +- src/icspacket/proto/mms/_mms/AE-title.c | 4 +- src/icspacket/proto/mms/_mms/AE-title.h | 16 +- src/icspacket/proto/mms/_mms/AE-title_Py.c | 6 +- src/icspacket/proto/mms/_mms/AE-title_Py.h | 2 +- .../proto/mms/_mms/AP-invocation-identifier.c | 2 +- .../proto/mms/_mms/AP-invocation-identifier.h | 4 +- .../mms/_mms/AP-invocation-identifier_Py.c | 2 +- .../mms/_mms/AP-invocation-identifier_Py.h | 2 +- src/icspacket/proto/mms/_mms/AP-title-form1.c | 2 +- src/icspacket/proto/mms/_mms/AP-title-form1.h | 6 +- .../proto/mms/_mms/AP-title-form1_Py.c | 2 +- .../proto/mms/_mms/AP-title-form1_Py.h | 2 +- src/icspacket/proto/mms/_mms/AP-title-form2.c | 2 +- src/icspacket/proto/mms/_mms/AP-title-form2.h | 4 +- .../proto/mms/_mms/AP-title-form2_Py.c | 2 +- .../proto/mms/_mms/AP-title-form2_Py.h | 2 +- src/icspacket/proto/mms/_mms/AP-title.c | 4 +- src/icspacket/proto/mms/_mms/AP-title.h | 16 +- src/icspacket/proto/mms/_mms/AP-title_Py.c | 6 +- src/icspacket/proto/mms/_mms/AP-title_Py.h | 2 +- .../proto/mms/_mms/AccessCondition.c | 53 ++- .../proto/mms/_mms/AccessCondition.h | 21 +- .../proto/mms/_mms/AccessCondition_Py.c | 12 +- .../proto/mms/_mms/AccessCondition_Py.h | 9 +- src/icspacket/proto/mms/_mms/AccessResult.c | 4 +- src/icspacket/proto/mms/_mms/AccessResult.h | 15 +- .../proto/mms/_mms/AccessResult_Py.c | 6 +- .../proto/mms/_mms/AccessResult_Py.h | 2 +- .../AcknowledgeEventNotification-Request.c | 6 +- .../AcknowledgeEventNotification-Request.h | 20 +- .../AcknowledgeEventNotification-Request_Py.c | 18 +- .../AcknowledgeEventNotification-Request_Py.h | 2 +- .../AcknowledgeEventNotification-Response.c | 2 +- .../AcknowledgeEventNotification-Response.h | 4 +- ...AcknowledgeEventNotification-Response_Py.c | 2 +- ...AcknowledgeEventNotification-Response_Py.h | 2 +- .../AddEventConditionListReference-Error.c | 2 +- .../AddEventConditionListReference-Error.h | 6 +- .../AddEventConditionListReference-Error_Py.c | 2 +- .../AddEventConditionListReference-Error_Py.h | 2 +- .../AddEventConditionListReference-Request.c | 38 +- .../AddEventConditionListReference-Request.h | 7 +- ...ddEventConditionListReference-Request_Py.c | 10 +- ...ddEventConditionListReference-Request_Py.h | 8 +- .../AddEventConditionListReference-Response.c | 2 +- .../AddEventConditionListReference-Response.h | 4 +- ...dEventConditionListReference-Response_Py.c | 2 +- ...dEventConditionListReference-Response_Py.h | 2 +- .../proto/mms/_mms/AddToUnitControl-Request.c | 36 +- .../proto/mms/_mms/AddToUnitControl-Request.h | 6 +- .../mms/_mms/AddToUnitControl-Request_Py.c | 2 +- .../mms/_mms/AddToUnitControl-Request_Py.h | 8 +- .../mms/_mms/AddToUnitControl-Response.c | 2 +- .../mms/_mms/AddToUnitControl-Response.h | 4 +- .../mms/_mms/AddToUnitControl-Response_Py.c | 2 +- .../mms/_mms/AddToUnitControl-Response_Py.h | 2 +- .../proto/mms/_mms/AdditionalCBBOptions.c | 8 +- .../proto/mms/_mms/AdditionalCBBOptions.h | 5 +- .../proto/mms/_mms/AdditionalCBBOptions_Py.c | 2 +- .../proto/mms/_mms/AdditionalCBBOptions_Py.h | 2 +- .../proto/mms/_mms/AdditionalService-Error.c | 18 +- .../proto/mms/_mms/AdditionalService-Error.h | 47 +- .../mms/_mms/AdditionalService-Error_Py.c | 34 +- .../mms/_mms/AdditionalService-Error_Py.h | 2 +- .../mms/_mms/AdditionalService-Request.c | 34 +- .../mms/_mms/AdditionalService-Request.h | 115 +++-- .../mms/_mms/AdditionalService-Request_Py.c | 66 +-- .../mms/_mms/AdditionalService-Request_Py.h | 2 +- .../mms/_mms/AdditionalService-Response.c | 14 +- .../mms/_mms/AdditionalService-Response.h | 105 +++-- .../mms/_mms/AdditionalService-Response_Py.c | 26 +- .../mms/_mms/AdditionalService-Response_Py.h | 2 +- .../proto/mms/_mms/AdditionalSupportOptions.c | 8 +- .../proto/mms/_mms/AdditionalSupportOptions.h | 5 +- .../mms/_mms/AdditionalSupportOptions_Py.c | 2 +- .../mms/_mms/AdditionalSupportOptions_Py.h | 2 +- src/icspacket/proto/mms/_mms/Address.c | 2 +- src/icspacket/proto/mms/_mms/Address.h | 12 +- src/icspacket/proto/mms/_mms/Address_Py.c | 2 +- src/icspacket/proto/mms/_mms/Address_Py.h | 2 +- src/icspacket/proto/mms/_mms/AlarmAckRule.c | 2 +- src/icspacket/proto/mms/_mms/AlarmAckRule.h | 4 +- .../proto/mms/_mms/AlarmAckRule_Py.c | 2 +- .../proto/mms/_mms/AlarmAckRule_Py.h | 2 +- .../proto/mms/_mms/AlarmEnrollmentSummary.c | 4 +- .../proto/mms/_mms/AlarmEnrollmentSummary.h | 43 +- .../mms/_mms/AlarmEnrollmentSummary_Py.c | 10 +- .../mms/_mms/AlarmEnrollmentSummary_Py.h | 5 +- src/icspacket/proto/mms/_mms/AlarmSummary.c | 4 +- src/icspacket/proto/mms/_mms/AlarmSummary.h | 27 +- .../proto/mms/_mms/AlarmSummary_Py.c | 10 +- .../proto/mms/_mms/AlarmSummary_Py.h | 3 +- ...lterEventConditionListMonitoring-Request.c | 19 +- ...lterEventConditionListMonitoring-Request.h | 17 +- ...rEventConditionListMonitoring-Request_Py.c | 10 +- ...rEventConditionListMonitoring-Request_Py.h | 4 +- ...terEventConditionListMonitoring-Response.c | 2 +- ...terEventConditionListMonitoring-Response.h | 4 +- ...EventConditionListMonitoring-Response_Py.c | 2 +- ...EventConditionListMonitoring-Response_Py.h | 2 +- .../AlterEventConditionMonitoring-Request.c | 4 +- .../AlterEventConditionMonitoring-Request.h | 23 +- ...AlterEventConditionMonitoring-Request_Py.c | 10 +- ...AlterEventConditionMonitoring-Request_Py.h | 2 +- .../AlterEventConditionMonitoring-Response.c | 2 +- .../AlterEventConditionMonitoring-Response.h | 4 +- ...lterEventConditionMonitoring-Response_Py.c | 2 +- ...lterEventConditionMonitoring-Response_Py.h | 2 +- .../mms/_mms/AlterEventEnrollment-Request.c | 10 +- .../mms/_mms/AlterEventEnrollment-Request.h | 19 +- .../_mms/AlterEventEnrollment-Request_Py.c | 10 +- .../_mms/AlterEventEnrollment-Request_Py.h | 2 +- .../mms/_mms/AlterEventEnrollment-Response.c | 19 +- .../mms/_mms/AlterEventEnrollment-Response.h | 17 +- .../_mms/AlterEventEnrollment-Response_Py.c | 10 +- .../_mms/AlterEventEnrollment-Response_Py.h | 4 +- ...AlterProgramInvocationAttributes-Request.c | 2 +- ...AlterProgramInvocationAttributes-Request.h | 10 +- ...erProgramInvocationAttributes-Request_Py.c | 2 +- ...erProgramInvocationAttributes-Request_Py.h | 2 +- ...lterProgramInvocationAttributes-Response.c | 2 +- ...lterProgramInvocationAttributes-Response.h | 4 +- ...rProgramInvocationAttributes-Response_Py.c | 2 +- ...rProgramInvocationAttributes-Response_Py.h | 2 +- .../proto/mms/_mms/AlternateAccess.c | 53 ++- .../proto/mms/_mms/AlternateAccess.h | 34 +- .../proto/mms/_mms/AlternateAccessSelection.c | 55 ++- .../proto/mms/_mms/AlternateAccessSelection.h | 30 +- .../mms/_mms/AlternateAccessSelection_Py.c | 12 +- .../mms/_mms/AlternateAccessSelection_Py.h | 18 +- .../proto/mms/_mms/AlternateAccess_Py.c | 156 +++---- .../proto/mms/_mms/AlternateAccess_Py.h | 19 +- .../mms/_mms/Application-context-name-list.c | 4 +- .../mms/_mms/Application-context-name-list.h | 4 +- .../_mms/Application-context-name-list_Py.c | 2 +- .../_mms/Application-context-name-list_Py.h | 2 +- .../proto/mms/_mms/Application-context-name.c | 2 +- .../proto/mms/_mms/Application-context-name.h | 4 +- .../mms/_mms/Application-context-name_Py.c | 2 +- .../mms/_mms/Application-context-name_Py.h | 2 +- .../proto/mms/_mms/ApplicationReference.c | 2 +- .../proto/mms/_mms/ApplicationReference.h | 18 +- .../proto/mms/_mms/ApplicationReference_Py.c | 2 +- .../proto/mms/_mms/ApplicationReference_Py.h | 2 +- .../proto/mms/_mms/Associate-result.c | 2 +- .../proto/mms/_mms/Associate-result.h | 4 +- .../proto/mms/_mms/Associate-result_Py.c | 2 +- .../proto/mms/_mms/Associate-result_Py.h | 2 +- .../mms/_mms/Associate-source-diagnostic.c | 2 +- .../mms/_mms/Associate-source-diagnostic.h | 6 +- .../mms/_mms/Associate-source-diagnostic_Py.c | 2 +- .../mms/_mms/Associate-source-diagnostic_Py.h | 2 +- .../proto/mms/_mms/Association-information.c | 4 +- .../proto/mms/_mms/Association-information.h | 4 +- .../mms/_mms/Association-information_Py.c | 2 +- .../mms/_mms/Association-information_Py.h | 2 +- .../proto/mms/_mms/AttachToEventCondition.c | 12 +- .../proto/mms/_mms/AttachToEventCondition.h | 21 +- .../mms/_mms/AttachToEventCondition_Py.c | 18 +- .../mms/_mms/AttachToEventCondition_Py.h | 3 +- .../proto/mms/_mms/AttachToSemaphore.c | 4 +- .../proto/mms/_mms/AttachToSemaphore.h | 29 +- .../proto/mms/_mms/AttachToSemaphore_Py.c | 10 +- .../proto/mms/_mms/AttachToSemaphore_Py.h | 3 +- .../proto/mms/_mms/AttributeTypeAndValue.c | 2 +- .../proto/mms/_mms/AttributeTypeAndValue.h | 6 +- .../proto/mms/_mms/AttributeTypeAndValue_Py.c | 2 +- .../proto/mms/_mms/AttributeTypeAndValue_Py.h | 2 +- .../proto/mms/_mms/Authentication-value.c | 25 +- .../proto/mms/_mms/Authentication-value.h | 21 +- .../proto/mms/_mms/Authentication-value_Py.c | 8 +- .../proto/mms/_mms/Authentication-value_Py.h | 4 +- ...CS-AlterEventConditionMonitoring-Request.c | 17 +- ...CS-AlterEventConditionMonitoring-Request.h | 8 +- ...AlterEventConditionMonitoring-Request_Py.c | 2 +- ...AlterEventConditionMonitoring-Request_Py.h | 4 +- .../_mms/CS-AlterEventEnrollment-Request.c | 17 +- .../_mms/CS-AlterEventEnrollment-Request.h | 8 +- .../_mms/CS-AlterEventEnrollment-Request_Py.c | 2 +- .../_mms/CS-AlterEventEnrollment-Request_Py.h | 4 +- .../_mms/CS-CreateProgramInvocation-Request.c | 2 +- .../_mms/CS-CreateProgramInvocation-Request.h | 4 +- .../CS-CreateProgramInvocation-Request_Py.c | 2 +- .../CS-CreateProgramInvocation-Request_Py.h | 2 +- .../_mms/CS-DefineEventCondition-Request.c | 2 +- .../_mms/CS-DefineEventCondition-Request.h | 8 +- .../_mms/CS-DefineEventCondition-Request_Py.c | 2 +- .../_mms/CS-DefineEventCondition-Request_Py.h | 2 +- .../_mms/CS-DefineEventEnrollment-Request.c | 2 +- .../_mms/CS-DefineEventEnrollment-Request.h | 8 +- .../CS-DefineEventEnrollment-Request_Py.c | 2 +- .../CS-DefineEventEnrollment-Request_Py.h | 2 +- .../proto/mms/_mms/CS-EventNotification.c | 2 +- .../proto/mms/_mms/CS-EventNotification.h | 8 +- .../proto/mms/_mms/CS-EventNotification_Py.c | 2 +- .../proto/mms/_mms/CS-EventNotification_Py.h | 2 +- .../CS-GetEventConditionAttributes-Response.c | 49 +- .../CS-GetEventConditionAttributes-Response.h | 16 +- ...-GetEventConditionAttributes-Response_Py.c | 2 +- ...-GetEventConditionAttributes-Response_Py.h | 8 +- ...-GetProgramInvocationAttributes-Response.c | 79 +++- ...-GetProgramInvocationAttributes-Response.h | 20 +- ...tProgramInvocationAttributes-Response_Py.c | 6 +- ...tProgramInvocationAttributes-Response_Py.h | 13 +- .../proto/mms/_mms/CS-Resume-Request.c | 32 +- .../proto/mms/_mms/CS-Resume-Request.h | 10 +- .../proto/mms/_mms/CS-Resume-Request_Py.c | 4 +- .../proto/mms/_mms/CS-Resume-Request_Py.h | 6 +- .../proto/mms/_mms/CS-Start-Request.c | 17 +- .../proto/mms/_mms/CS-Start-Request.h | 10 +- .../proto/mms/_mms/CS-Start-Request_Py.c | 4 +- .../proto/mms/_mms/CS-Start-Request_Py.h | 4 +- .../proto/mms/_mms/CS-Status-Response.c | 44 +- .../proto/mms/_mms/CS-Status-Response.h | 20 +- .../proto/mms/_mms/CS-Status-Response_Py.c | 4 +- .../proto/mms/_mms/CS-Status-Response_Py.h | 7 +- .../proto/mms/_mms/Cancel-ErrorPDU.c | 4 +- .../proto/mms/_mms/Cancel-ErrorPDU.h | 15 +- .../proto/mms/_mms/Cancel-ErrorPDU_Py.c | 10 +- .../proto/mms/_mms/Cancel-ErrorPDU_Py.h | 2 +- .../proto/mms/_mms/Cancel-RequestPDU.c | 2 +- .../proto/mms/_mms/Cancel-RequestPDU.h | 6 +- .../proto/mms/_mms/Cancel-RequestPDU_Py.c | 2 +- .../proto/mms/_mms/Cancel-RequestPDU_Py.h | 2 +- .../proto/mms/_mms/Cancel-ResponsePDU.c | 2 +- .../proto/mms/_mms/Cancel-ResponsePDU.h | 6 +- .../proto/mms/_mms/Cancel-ResponsePDU_Py.c | 2 +- .../proto/mms/_mms/Cancel-ResponsePDU_Py.h | 2 +- .../mms/_mms/ChangeAccessControl-Error.c | 2 +- .../mms/_mms/ChangeAccessControl-Error.h | 6 +- .../mms/_mms/ChangeAccessControl-Error_Py.c | 2 +- .../mms/_mms/ChangeAccessControl-Error_Py.h | 2 +- .../mms/_mms/ChangeAccessControl-Request.c | 64 ++- .../mms/_mms/ChangeAccessControl-Request.h | 20 +- .../mms/_mms/ChangeAccessControl-Request_Py.c | 6 +- .../mms/_mms/ChangeAccessControl-Request_Py.h | 11 +- .../mms/_mms/ChangeAccessControl-Response.c | 2 +- .../mms/_mms/ChangeAccessControl-Response.h | 8 +- .../_mms/ChangeAccessControl-Response_Py.c | 2 +- .../_mms/ChangeAccessControl-Response_Py.h | 3 +- .../proto/mms/_mms/Conclude-ErrorPDU.c | 2 +- .../proto/mms/_mms/Conclude-ErrorPDU.h | 6 +- .../proto/mms/_mms/Conclude-ErrorPDU_Py.c | 2 +- .../proto/mms/_mms/Conclude-ErrorPDU_Py.h | 2 +- .../proto/mms/_mms/Conclude-RequestPDU.c | 2 +- .../proto/mms/_mms/Conclude-RequestPDU.h | 4 +- .../proto/mms/_mms/Conclude-RequestPDU_Py.c | 2 +- .../proto/mms/_mms/Conclude-RequestPDU_Py.h | 2 +- .../proto/mms/_mms/Conclude-ResponsePDU.c | 2 +- .../proto/mms/_mms/Conclude-ResponsePDU.h | 4 +- .../proto/mms/_mms/Conclude-ResponsePDU_Py.c | 2 +- .../proto/mms/_mms/Conclude-ResponsePDU_Py.h | 2 +- .../proto/mms/_mms/Confirmed-ErrorPDU.c | 4 +- .../proto/mms/_mms/Confirmed-ErrorPDU.h | 17 +- .../proto/mms/_mms/Confirmed-ErrorPDU_Py.c | 10 +- .../proto/mms/_mms/Confirmed-ErrorPDU_Py.h | 3 +- .../proto/mms/_mms/Confirmed-RequestPDU.c | 21 +- .../proto/mms/_mms/Confirmed-RequestPDU.h | 17 +- .../proto/mms/_mms/Confirmed-RequestPDU_Py.c | 10 +- .../proto/mms/_mms/Confirmed-RequestPDU_Py.h | 4 +- .../proto/mms/_mms/Confirmed-ResponsePDU.c | 4 +- .../proto/mms/_mms/Confirmed-ResponsePDU.h | 15 +- .../proto/mms/_mms/Confirmed-ResponsePDU_Py.c | 10 +- .../proto/mms/_mms/Confirmed-ResponsePDU_Py.h | 2 +- .../proto/mms/_mms/ConfirmedServiceRequest.c | 146 +++--- .../proto/mms/_mms/ConfirmedServiceRequest.h | 420 ++++++++++-------- .../mms/_mms/ConfirmedServiceRequest_Py.c | 292 ++++++------ .../mms/_mms/ConfirmedServiceRequest_Py.h | 2 +- .../proto/mms/_mms/ConfirmedServiceResponse.c | 84 ++-- .../proto/mms/_mms/ConfirmedServiceResponse.h | 392 ++++++++-------- .../mms/_mms/ConfirmedServiceResponse_Py.c | 166 +++---- .../mms/_mms/ConfirmedServiceResponse_Py.h | 2 +- src/icspacket/proto/mms/_mms/ControlElement.c | 81 +++- src/icspacket/proto/mms/_mms/ControlElement.h | 32 +- .../proto/mms/_mms/ControlElement_Py.c | 8 +- .../proto/mms/_mms/ControlElement_Py.h | 17 +- .../proto/mms/_mms/CreateJournal-Request.c | 4 +- .../proto/mms/_mms/CreateJournal-Request.h | 11 +- .../proto/mms/_mms/CreateJournal-Request_Py.c | 10 +- .../proto/mms/_mms/CreateJournal-Request_Py.h | 2 +- .../proto/mms/_mms/CreateJournal-Response.c | 2 +- .../proto/mms/_mms/CreateJournal-Response.h | 4 +- .../mms/_mms/CreateJournal-Response_Py.c | 2 +- .../mms/_mms/CreateJournal-Response_Py.h | 2 +- .../_mms/CreateProgramInvocation-Request.c | 19 +- .../_mms/CreateProgramInvocation-Request.h | 10 +- .../_mms/CreateProgramInvocation-Request_Py.c | 2 +- .../_mms/CreateProgramInvocation-Request_Py.h | 5 +- .../_mms/CreateProgramInvocation-Response.c | 2 +- .../_mms/CreateProgramInvocation-Response.h | 4 +- .../CreateProgramInvocation-Response_Py.c | 2 +- .../CreateProgramInvocation-Response_Py.h | 2 +- .../mms/_mms/CreateUnitControl-Request.c | 36 +- .../mms/_mms/CreateUnitControl-Request.h | 6 +- .../mms/_mms/CreateUnitControl-Request_Py.c | 2 +- .../mms/_mms/CreateUnitControl-Request_Py.h | 8 +- .../mms/_mms/CreateUnitControl-Response.c | 2 +- .../mms/_mms/CreateUnitControl-Response.h | 4 +- .../mms/_mms/CreateUnitControl-Response_Py.c | 2 +- .../mms/_mms/CreateUnitControl-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/Data.c | 48 +- src/icspacket/proto/mms/_mms/Data.h | 40 +- .../proto/mms/_mms/DataAccessError.c | 2 +- .../proto/mms/_mms/DataAccessError.h | 4 +- .../proto/mms/_mms/DataAccessError_Py.c | 2 +- .../proto/mms/_mms/DataAccessError_Py.h | 2 +- src/icspacket/proto/mms/_mms/Data_Py.c | 8 +- src/icspacket/proto/mms/_mms/Data_Py.h | 8 +- .../_mms/DefineAccessControlList-Request.c | 17 +- .../_mms/DefineAccessControlList-Request.h | 22 +- .../_mms/DefineAccessControlList-Request_Py.c | 2 +- .../_mms/DefineAccessControlList-Request_Py.h | 10 +- .../_mms/DefineAccessControlList-Response.c | 2 +- .../_mms/DefineAccessControlList-Response.h | 4 +- .../DefineAccessControlList-Response_Py.c | 2 +- .../DefineAccessControlList-Response_Py.h | 2 +- .../mms/_mms/DefineEventAction-Request.c | 21 +- .../mms/_mms/DefineEventAction-Request.h | 17 +- .../mms/_mms/DefineEventAction-Request_Py.c | 12 +- .../mms/_mms/DefineEventAction-Request_Py.h | 4 +- .../mms/_mms/DefineEventAction-Response.c | 2 +- .../mms/_mms/DefineEventAction-Response.h | 4 +- .../mms/_mms/DefineEventAction-Response_Py.c | 2 +- .../mms/_mms/DefineEventAction-Response_Py.h | 2 +- .../mms/_mms/DefineEventCondition-Request.c | 4 +- .../mms/_mms/DefineEventCondition-Request.h | 29 +- .../_mms/DefineEventCondition-Request_Py.c | 14 +- .../_mms/DefineEventCondition-Request_Py.h | 2 +- .../mms/_mms/DefineEventCondition-Response.c | 2 +- .../mms/_mms/DefineEventCondition-Response.h | 4 +- .../_mms/DefineEventCondition-Response_Py.c | 2 +- .../_mms/DefineEventCondition-Response_Py.h | 2 +- .../mms/_mms/DefineEventConditionList-Error.c | 2 +- .../mms/_mms/DefineEventConditionList-Error.h | 6 +- .../_mms/DefineEventConditionList-Error_Py.c | 2 +- .../_mms/DefineEventConditionList-Error_Py.h | 2 +- .../_mms/DefineEventConditionList-Request.c | 38 +- .../_mms/DefineEventConditionList-Request.h | 7 +- .../DefineEventConditionList-Request_Py.c | 10 +- .../DefineEventConditionList-Request_Py.h | 8 +- .../_mms/DefineEventConditionList-Response.c | 2 +- .../_mms/DefineEventConditionList-Response.h | 4 +- .../DefineEventConditionList-Response_Py.c | 2 +- .../DefineEventConditionList-Response_Py.h | 2 +- .../mms/_mms/DefineEventEnrollment-Error.c | 2 +- .../mms/_mms/DefineEventEnrollment-Error.h | 6 +- .../mms/_mms/DefineEventEnrollment-Error_Py.c | 2 +- .../mms/_mms/DefineEventEnrollment-Error_Py.h | 2 +- .../mms/_mms/DefineEventEnrollment-Request.c | 12 +- .../mms/_mms/DefineEventEnrollment-Request.h | 23 +- .../_mms/DefineEventEnrollment-Request_Py.c | 18 +- .../_mms/DefineEventEnrollment-Request_Py.h | 4 +- .../mms/_mms/DefineEventEnrollment-Response.c | 2 +- .../mms/_mms/DefineEventEnrollment-Response.h | 4 +- .../_mms/DefineEventEnrollment-Response_Py.c | 2 +- .../_mms/DefineEventEnrollment-Response_Py.h | 2 +- .../proto/mms/_mms/DefineNamedType-Request.c | 6 +- .../proto/mms/_mms/DefineNamedType-Request.h | 16 +- .../mms/_mms/DefineNamedType-Request_Py.c | 18 +- .../mms/_mms/DefineNamedType-Request_Py.h | 2 +- .../proto/mms/_mms/DefineNamedType-Response.c | 2 +- .../proto/mms/_mms/DefineNamedType-Response.h | 4 +- .../mms/_mms/DefineNamedType-Response_Py.c | 2 +- .../mms/_mms/DefineNamedType-Response_Py.h | 2 +- .../mms/_mms/DefineNamedVariable-Request.c | 6 +- .../mms/_mms/DefineNamedVariable-Request.h | 16 +- .../mms/_mms/DefineNamedVariable-Request_Py.c | 18 +- .../mms/_mms/DefineNamedVariable-Request_Py.h | 2 +- .../mms/_mms/DefineNamedVariable-Response.c | 2 +- .../mms/_mms/DefineNamedVariable-Response.h | 4 +- .../_mms/DefineNamedVariable-Response_Py.c | 2 +- .../_mms/DefineNamedVariable-Response_Py.h | 2 +- .../_mms/DefineNamedVariableList-Request.c | 61 +-- .../_mms/DefineNamedVariableList-Request.h | 21 +- .../_mms/DefineNamedVariableList-Request_Py.c | 142 +++--- .../_mms/DefineNamedVariableList-Request_Py.h | 14 +- .../_mms/DefineNamedVariableList-Response.c | 2 +- .../_mms/DefineNamedVariableList-Response.h | 4 +- .../DefineNamedVariableList-Response_Py.c | 2 +- .../DefineNamedVariableList-Response_Py.h | 2 +- .../mms/_mms/DefineScatteredAccess-Request.c | 6 +- .../mms/_mms/DefineScatteredAccess-Request.h | 16 +- .../_mms/DefineScatteredAccess-Request_Py.c | 18 +- .../_mms/DefineScatteredAccess-Request_Py.h | 2 +- .../mms/_mms/DefineScatteredAccess-Response.c | 2 +- .../mms/_mms/DefineScatteredAccess-Response.h | 4 +- .../_mms/DefineScatteredAccess-Response_Py.c | 2 +- .../_mms/DefineScatteredAccess-Response_Py.h | 2 +- .../proto/mms/_mms/DefineSemaphore-Request.c | 4 +- .../proto/mms/_mms/DefineSemaphore-Request.h | 15 +- .../mms/_mms/DefineSemaphore-Request_Py.c | 10 +- .../mms/_mms/DefineSemaphore-Request_Py.h | 2 +- .../proto/mms/_mms/DefineSemaphore-Response.c | 2 +- .../proto/mms/_mms/DefineSemaphore-Response.h | 4 +- .../mms/_mms/DefineSemaphore-Response_Py.c | 2 +- .../mms/_mms/DefineSemaphore-Response_Py.h | 2 +- .../_mms/DeleteAccessControlList-Request.c | 2 +- .../_mms/DeleteAccessControlList-Request.h | 6 +- .../_mms/DeleteAccessControlList-Request_Py.c | 2 +- .../_mms/DeleteAccessControlList-Request_Py.h | 2 +- .../_mms/DeleteAccessControlList-Response.c | 2 +- .../_mms/DeleteAccessControlList-Response.h | 4 +- .../DeleteAccessControlList-Response_Py.c | 2 +- .../DeleteAccessControlList-Response_Py.h | 2 +- .../proto/mms/_mms/DeleteDomain-Request.c | 2 +- .../proto/mms/_mms/DeleteDomain-Request.h | 6 +- .../proto/mms/_mms/DeleteDomain-Request_Py.c | 2 +- .../proto/mms/_mms/DeleteDomain-Request_Py.h | 2 +- .../proto/mms/_mms/DeleteDomain-Response.c | 2 +- .../proto/mms/_mms/DeleteDomain-Response.h | 4 +- .../proto/mms/_mms/DeleteDomain-Response_Py.c | 2 +- .../proto/mms/_mms/DeleteDomain-Response_Py.h | 2 +- .../mms/_mms/DeleteEventAction-Request.c | 19 +- .../mms/_mms/DeleteEventAction-Request.h | 12 +- .../mms/_mms/DeleteEventAction-Request_Py.c | 4 +- .../mms/_mms/DeleteEventAction-Request_Py.h | 4 +- .../mms/_mms/DeleteEventAction-Response.c | 2 +- .../mms/_mms/DeleteEventAction-Response.h | 6 +- .../mms/_mms/DeleteEventAction-Response_Py.c | 2 +- .../mms/_mms/DeleteEventAction-Response_Py.h | 2 +- .../mms/_mms/DeleteEventCondition-Request.c | 19 +- .../mms/_mms/DeleteEventCondition-Request.h | 12 +- .../_mms/DeleteEventCondition-Request_Py.c | 4 +- .../_mms/DeleteEventCondition-Request_Py.h | 4 +- .../mms/_mms/DeleteEventCondition-Response.c | 2 +- .../mms/_mms/DeleteEventCondition-Response.h | 6 +- .../_mms/DeleteEventCondition-Response_Py.c | 2 +- .../_mms/DeleteEventCondition-Response_Py.h | 2 +- .../_mms/DeleteEventConditionList-Request.c | 2 +- .../_mms/DeleteEventConditionList-Request.h | 6 +- .../DeleteEventConditionList-Request_Py.c | 2 +- .../DeleteEventConditionList-Request_Py.h | 2 +- .../_mms/DeleteEventConditionList-Response.c | 2 +- .../_mms/DeleteEventConditionList-Response.h | 4 +- .../DeleteEventConditionList-Response_Py.c | 2 +- .../DeleteEventConditionList-Response_Py.h | 2 +- .../mms/_mms/DeleteEventEnrollment-Request.c | 23 +- .../mms/_mms/DeleteEventEnrollment-Request.h | 9 +- .../_mms/DeleteEventEnrollment-Request_Py.c | 12 +- .../_mms/DeleteEventEnrollment-Request_Py.h | 6 +- .../mms/_mms/DeleteEventEnrollment-Response.c | 2 +- .../mms/_mms/DeleteEventEnrollment-Response.h | 6 +- .../_mms/DeleteEventEnrollment-Response_Py.c | 2 +- .../_mms/DeleteEventEnrollment-Response_Py.h | 2 +- .../proto/mms/_mms/DeleteJournal-Request.c | 4 +- .../proto/mms/_mms/DeleteJournal-Request.h | 11 +- .../proto/mms/_mms/DeleteJournal-Request_Py.c | 10 +- .../proto/mms/_mms/DeleteJournal-Request_Py.h | 2 +- .../proto/mms/_mms/DeleteJournal-Response.c | 2 +- .../proto/mms/_mms/DeleteJournal-Response.h | 4 +- .../mms/_mms/DeleteJournal-Response_Py.c | 2 +- .../mms/_mms/DeleteJournal-Response_Py.h | 2 +- .../proto/mms/_mms/DeleteNamedType-Error.c | 2 +- .../proto/mms/_mms/DeleteNamedType-Error.h | 6 +- .../proto/mms/_mms/DeleteNamedType-Error_Py.c | 2 +- .../proto/mms/_mms/DeleteNamedType-Error_Py.h | 2 +- .../proto/mms/_mms/DeleteNamedType-Request.c | 19 +- .../proto/mms/_mms/DeleteNamedType-Request.h | 10 +- .../mms/_mms/DeleteNamedType-Request_Py.c | 2 +- .../mms/_mms/DeleteNamedType-Request_Py.h | 4 +- .../proto/mms/_mms/DeleteNamedType-Response.c | 2 +- .../proto/mms/_mms/DeleteNamedType-Response.h | 8 +- .../mms/_mms/DeleteNamedType-Response_Py.c | 2 +- .../mms/_mms/DeleteNamedType-Response_Py.h | 3 +- .../mms/_mms/DeleteNamedVariableList-Error.c | 2 +- .../mms/_mms/DeleteNamedVariableList-Error.h | 6 +- .../_mms/DeleteNamedVariableList-Error_Py.c | 2 +- .../_mms/DeleteNamedVariableList-Error_Py.h | 2 +- .../_mms/DeleteNamedVariableList-Request.c | 19 +- .../_mms/DeleteNamedVariableList-Request.h | 10 +- .../_mms/DeleteNamedVariableList-Request_Py.c | 2 +- .../_mms/DeleteNamedVariableList-Request_Py.h | 4 +- .../_mms/DeleteNamedVariableList-Response.c | 2 +- .../_mms/DeleteNamedVariableList-Response.h | 8 +- .../DeleteNamedVariableList-Response_Py.c | 2 +- .../DeleteNamedVariableList-Response_Py.h | 3 +- .../_mms/DeleteProgramInvocation-Request.c | 2 +- .../_mms/DeleteProgramInvocation-Request.h | 6 +- .../_mms/DeleteProgramInvocation-Request_Py.c | 2 +- .../_mms/DeleteProgramInvocation-Request_Py.h | 2 +- .../_mms/DeleteProgramInvocation-Response.c | 2 +- .../_mms/DeleteProgramInvocation-Response.h | 4 +- .../DeleteProgramInvocation-Response_Py.c | 2 +- .../DeleteProgramInvocation-Response_Py.h | 2 +- .../proto/mms/_mms/DeleteSemaphore-Request.c | 2 +- .../proto/mms/_mms/DeleteSemaphore-Request.h | 6 +- .../mms/_mms/DeleteSemaphore-Request_Py.c | 2 +- .../mms/_mms/DeleteSemaphore-Request_Py.h | 2 +- .../proto/mms/_mms/DeleteSemaphore-Response.c | 2 +- .../proto/mms/_mms/DeleteSemaphore-Response.h | 4 +- .../mms/_mms/DeleteSemaphore-Response_Py.c | 2 +- .../mms/_mms/DeleteSemaphore-Response_Py.h | 2 +- .../proto/mms/_mms/DeleteUnitControl-Error.c | 2 +- .../proto/mms/_mms/DeleteUnitControl-Error.h | 8 +- .../mms/_mms/DeleteUnitControl-Error_Py.c | 2 +- .../mms/_mms/DeleteUnitControl-Error_Py.h | 3 +- .../mms/_mms/DeleteUnitControl-Request.c | 2 +- .../mms/_mms/DeleteUnitControl-Request.h | 6 +- .../mms/_mms/DeleteUnitControl-Request_Py.c | 2 +- .../mms/_mms/DeleteUnitControl-Request_Py.h | 2 +- .../mms/_mms/DeleteUnitControl-Response.c | 2 +- .../mms/_mms/DeleteUnitControl-Response.h | 4 +- .../mms/_mms/DeleteUnitControl-Response_Py.c | 2 +- .../mms/_mms/DeleteUnitControl-Response_Py.h | 2 +- .../mms/_mms/DeleteVariableAccess-Error.c | 2 +- .../mms/_mms/DeleteVariableAccess-Error.h | 6 +- .../mms/_mms/DeleteVariableAccess-Error_Py.c | 2 +- .../mms/_mms/DeleteVariableAccess-Error_Py.h | 2 +- .../mms/_mms/DeleteVariableAccess-Request.c | 19 +- .../mms/_mms/DeleteVariableAccess-Request.h | 10 +- .../_mms/DeleteVariableAccess-Request_Py.c | 2 +- .../_mms/DeleteVariableAccess-Request_Py.h | 4 +- .../mms/_mms/DeleteVariableAccess-Response.c | 2 +- .../mms/_mms/DeleteVariableAccess-Response.h | 8 +- .../_mms/DeleteVariableAccess-Response_Py.c | 2 +- .../_mms/DeleteVariableAccess-Response_Py.h | 3 +- src/icspacket/proto/mms/_mms/DirectoryEntry.c | 6 +- src/icspacket/proto/mms/_mms/DirectoryEntry.h | 16 +- .../proto/mms/_mms/DirectoryEntry_Py.c | 18 +- .../proto/mms/_mms/DirectoryEntry_Py.h | 2 +- src/icspacket/proto/mms/_mms/DomainName.c | 2 +- src/icspacket/proto/mms/_mms/DomainName.h | 4 +- src/icspacket/proto/mms/_mms/DomainName_Py.c | 2 +- src/icspacket/proto/mms/_mms/DomainName_Py.h | 2 +- src/icspacket/proto/mms/_mms/DomainState.c | 2 +- src/icspacket/proto/mms/_mms/DomainState.h | 4 +- src/icspacket/proto/mms/_mms/DomainState_Py.c | 2 +- src/icspacket/proto/mms/_mms/DomainState_Py.h | 2 +- .../proto/mms/_mms/DownloadSegment-Request.c | 2 +- .../proto/mms/_mms/DownloadSegment-Request.h | 6 +- .../mms/_mms/DownloadSegment-Request_Py.c | 2 +- .../mms/_mms/DownloadSegment-Request_Py.h | 2 +- .../proto/mms/_mms/DownloadSegment-Response.c | 4 +- .../proto/mms/_mms/DownloadSegment-Response.h | 13 +- .../mms/_mms/DownloadSegment-Response_Py.c | 10 +- .../mms/_mms/DownloadSegment-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/EC-Class.c | 2 +- src/icspacket/proto/mms/_mms/EC-Class.h | 4 +- src/icspacket/proto/mms/_mms/EC-Class_Py.c | 2 +- src/icspacket/proto/mms/_mms/EC-Class_Py.h | 2 +- src/icspacket/proto/mms/_mms/EC-State.c | 2 +- src/icspacket/proto/mms/_mms/EC-State.h | 4 +- src/icspacket/proto/mms/_mms/EC-State_Py.c | 2 +- src/icspacket/proto/mms/_mms/EC-State_Py.h | 2 +- src/icspacket/proto/mms/_mms/EE-Class.c | 2 +- src/icspacket/proto/mms/_mms/EE-Class.h | 4 +- src/icspacket/proto/mms/_mms/EE-Class_Py.c | 2 +- src/icspacket/proto/mms/_mms/EE-Class_Py.h | 2 +- src/icspacket/proto/mms/_mms/EE-Duration.c | 2 +- src/icspacket/proto/mms/_mms/EE-Duration.h | 4 +- src/icspacket/proto/mms/_mms/EE-Duration_Py.c | 2 +- src/icspacket/proto/mms/_mms/EE-Duration_Py.h | 2 +- src/icspacket/proto/mms/_mms/EE-State.c | 2 +- src/icspacket/proto/mms/_mms/EE-State.h | 4 +- src/icspacket/proto/mms/_mms/EE-State_Py.c | 2 +- src/icspacket/proto/mms/_mms/EE-State_Py.h | 2 +- src/icspacket/proto/mms/_mms/EEAttributes.c | 49 +- src/icspacket/proto/mms/_mms/EEAttributes.h | 46 +- .../proto/mms/_mms/EEAttributes_Py.c | 10 +- .../proto/mms/_mms/EEAttributes_Py.h | 11 +- src/icspacket/proto/mms/_mms/EMBEDDED-PDV.c | 47 +- src/icspacket/proto/mms/_mms/EMBEDDED-PDV.h | 20 +- .../proto/mms/_mms/EMBEDDED-PDV_Py.c | 6 +- .../proto/mms/_mms/EMBEDDED-PDV_Py.h | 12 +- .../proto/mms/_mms/EN-Additional-Detail.c | 2 +- .../proto/mms/_mms/EN-Additional-Detail.h | 8 +- .../proto/mms/_mms/EN-Additional-Detail_Py.c | 2 +- .../proto/mms/_mms/EN-Additional-Detail_Py.h | 2 +- src/icspacket/proto/mms/_mms/EntryContent.c | 64 ++- src/icspacket/proto/mms/_mms/EntryContent.h | 20 +- .../proto/mms/_mms/EntryContent_Py.c | 4 +- .../proto/mms/_mms/EntryContent_Py.h | 10 +- .../proto/mms/_mms/EventConditionStatus.c | 4 +- .../proto/mms/_mms/EventConditionStatus.h | 23 +- .../proto/mms/_mms/EventConditionStatus_Py.c | 10 +- .../proto/mms/_mms/EventConditionStatus_Py.h | 3 +- .../proto/mms/_mms/EventNotification.c | 70 ++- .../proto/mms/_mms/EventNotification.h | 48 +- .../proto/mms/_mms/EventNotification_Py.c | 38 +- .../proto/mms/_mms/EventNotification_Py.h | 12 +- src/icspacket/proto/mms/_mms/EventTime.c | 2 +- src/icspacket/proto/mms/_mms/EventTime.h | 12 +- src/icspacket/proto/mms/_mms/EventTime_Py.c | 2 +- src/icspacket/proto/mms/_mms/EventTime_Py.h | 2 +- .../proto/mms/_mms/ExchangeData-Request.c | 21 +- .../proto/mms/_mms/ExchangeData-Request.h | 9 +- .../proto/mms/_mms/ExchangeData-Request_Py.c | 10 +- .../proto/mms/_mms/ExchangeData-Request_Py.h | 4 +- .../proto/mms/_mms/ExchangeData-Response.c | 19 +- .../proto/mms/_mms/ExchangeData-Response.h | 4 +- .../proto/mms/_mms/ExchangeData-Response_Py.c | 2 +- .../proto/mms/_mms/ExchangeData-Response_Py.h | 4 +- src/icspacket/proto/mms/_mms/ExtendedStatus.c | 8 +- src/icspacket/proto/mms/_mms/ExtendedStatus.h | 5 +- .../proto/mms/_mms/ExtendedStatus_Py.c | 2 +- .../proto/mms/_mms/ExtendedStatus_Py.h | 2 +- src/icspacket/proto/mms/_mms/FileAttributes.c | 2 +- src/icspacket/proto/mms/_mms/FileAttributes.h | 8 +- .../proto/mms/_mms/FileAttributes_Py.c | 2 +- .../proto/mms/_mms/FileAttributes_Py.h | 2 +- .../proto/mms/_mms/FileClose-Request.c | 2 +- .../proto/mms/_mms/FileClose-Request.h | 6 +- .../proto/mms/_mms/FileClose-Request_Py.c | 2 +- .../proto/mms/_mms/FileClose-Request_Py.h | 2 +- .../proto/mms/_mms/FileClose-Response.c | 2 +- .../proto/mms/_mms/FileClose-Response.h | 4 +- .../proto/mms/_mms/FileClose-Response_Py.c | 2 +- .../proto/mms/_mms/FileClose-Response_Py.h | 2 +- .../proto/mms/_mms/FileDelete-Request.c | 2 +- .../proto/mms/_mms/FileDelete-Request.h | 6 +- .../proto/mms/_mms/FileDelete-Request_Py.c | 2 +- .../proto/mms/_mms/FileDelete-Request_Py.h | 2 +- .../proto/mms/_mms/FileDelete-Response.c | 2 +- .../proto/mms/_mms/FileDelete-Response.h | 4 +- .../proto/mms/_mms/FileDelete-Response_Py.c | 2 +- .../proto/mms/_mms/FileDelete-Response_Py.h | 2 +- .../proto/mms/_mms/FileDirectory-Request.c | 2 +- .../proto/mms/_mms/FileDirectory-Request.h | 8 +- .../proto/mms/_mms/FileDirectory-Request_Py.c | 2 +- .../proto/mms/_mms/FileDirectory-Request_Py.h | 3 +- .../proto/mms/_mms/FileDirectory-Response.c | 19 +- .../proto/mms/_mms/FileDirectory-Response.h | 6 +- .../mms/_mms/FileDirectory-Response_Py.c | 2 +- .../mms/_mms/FileDirectory-Response_Py.h | 4 +- src/icspacket/proto/mms/_mms/FileName.c | 4 +- src/icspacket/proto/mms/_mms/FileName.h | 2 +- src/icspacket/proto/mms/_mms/FileName_Py.c | 2 +- src/icspacket/proto/mms/_mms/FileName_Py.h | 2 +- .../proto/mms/_mms/FileOpen-Request.c | 4 +- .../proto/mms/_mms/FileOpen-Request.h | 15 +- .../proto/mms/_mms/FileOpen-Request_Py.c | 10 +- .../proto/mms/_mms/FileOpen-Request_Py.h | 2 +- .../proto/mms/_mms/FileOpen-Response.c | 4 +- .../proto/mms/_mms/FileOpen-Response.h | 15 +- .../proto/mms/_mms/FileOpen-Response_Py.c | 10 +- .../proto/mms/_mms/FileOpen-Response_Py.h | 2 +- .../proto/mms/_mms/FileRead-Request.c | 2 +- .../proto/mms/_mms/FileRead-Request.h | 6 +- .../proto/mms/_mms/FileRead-Request_Py.c | 2 +- .../proto/mms/_mms/FileRead-Request_Py.h | 2 +- .../proto/mms/_mms/FileRead-Response.c | 2 +- .../proto/mms/_mms/FileRead-Response.h | 6 +- .../proto/mms/_mms/FileRead-Response_Py.c | 2 +- .../proto/mms/_mms/FileRead-Response_Py.h | 2 +- .../proto/mms/_mms/FileRename-Error.c | 2 +- .../proto/mms/_mms/FileRename-Error.h | 4 +- .../proto/mms/_mms/FileRename-Error_Py.c | 2 +- .../proto/mms/_mms/FileRename-Error_Py.h | 2 +- .../proto/mms/_mms/FileRename-Request.c | 6 +- .../proto/mms/_mms/FileRename-Request.h | 13 +- .../proto/mms/_mms/FileRename-Request_Py.c | 18 +- .../proto/mms/_mms/FileRename-Request_Py.h | 3 +- .../proto/mms/_mms/FileRename-Response.c | 2 +- .../proto/mms/_mms/FileRename-Response.h | 4 +- .../proto/mms/_mms/FileRename-Response_Py.c | 2 +- .../proto/mms/_mms/FileRename-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/FloatingPoint.c | 2 +- src/icspacket/proto/mms/_mms/FloatingPoint.h | 4 +- .../proto/mms/_mms/FloatingPoint_Py.c | 2 +- .../proto/mms/_mms/FloatingPoint_Py.h | 2 +- .../GetAccessControlListAttributes-Request.c | 17 +- .../GetAccessControlListAttributes-Request.h | 16 +- ...etAccessControlListAttributes-Request_Py.c | 4 +- ...etAccessControlListAttributes-Request_Py.h | 4 +- .../GetAccessControlListAttributes-Response.c | 70 ++- .../GetAccessControlListAttributes-Response.h | 38 +- ...tAccessControlListAttributes-Response_Py.c | 130 +++--- ...tAccessControlListAttributes-Response_Py.h | 23 +- .../_mms/GetAlarmEnrollmentSummary-Request.c | 17 +- .../_mms/GetAlarmEnrollmentSummary-Request.h | 18 +- .../GetAlarmEnrollmentSummary-Request_Py.c | 2 +- .../GetAlarmEnrollmentSummary-Request_Py.h | 5 +- .../_mms/GetAlarmEnrollmentSummary-Response.c | 19 +- .../_mms/GetAlarmEnrollmentSummary-Response.h | 6 +- .../GetAlarmEnrollmentSummary-Response_Py.c | 2 +- .../GetAlarmEnrollmentSummary-Response_Py.h | 4 +- .../proto/mms/_mms/GetAlarmSummary-Request.c | 17 +- .../proto/mms/_mms/GetAlarmSummary-Request.h | 18 +- .../mms/_mms/GetAlarmSummary-Request_Py.c | 2 +- .../mms/_mms/GetAlarmSummary-Request_Py.h | 5 +- .../proto/mms/_mms/GetAlarmSummary-Response.c | 19 +- .../proto/mms/_mms/GetAlarmSummary-Response.h | 6 +- .../mms/_mms/GetAlarmSummary-Response_Py.c | 2 +- .../mms/_mms/GetAlarmSummary-Response_Py.h | 4 +- .../mms/_mms/GetCapabilityList-Request.c | 2 +- .../mms/_mms/GetCapabilityList-Request.h | 6 +- .../mms/_mms/GetCapabilityList-Request_Py.c | 2 +- .../mms/_mms/GetCapabilityList-Request_Py.h | 2 +- .../mms/_mms/GetCapabilityList-Response.c | 19 +- .../mms/_mms/GetCapabilityList-Response.h | 6 +- .../mms/_mms/GetCapabilityList-Response_Py.c | 2 +- .../mms/_mms/GetCapabilityList-Response_Py.h | 4 +- .../_mms/GetDataExchangeAttributes-Request.c | 2 +- .../_mms/GetDataExchangeAttributes-Request.h | 6 +- .../GetDataExchangeAttributes-Request_Py.c | 2 +- .../GetDataExchangeAttributes-Request_Py.h | 2 +- .../_mms/GetDataExchangeAttributes-Response.c | 36 +- .../_mms/GetDataExchangeAttributes-Response.h | 12 +- .../GetDataExchangeAttributes-Response_Py.c | 2 +- .../GetDataExchangeAttributes-Response_Py.h | 8 +- .../mms/_mms/GetDomainAttributes-Request.c | 2 +- .../mms/_mms/GetDomainAttributes-Request.h | 6 +- .../mms/_mms/GetDomainAttributes-Request_Py.c | 2 +- .../mms/_mms/GetDomainAttributes-Request_Py.h | 2 +- .../mms/_mms/GetDomainAttributes-Response.c | 36 +- .../mms/_mms/GetDomainAttributes-Response.h | 20 +- .../_mms/GetDomainAttributes-Response_Py.c | 2 +- .../_mms/GetDomainAttributes-Response_Py.h | 7 +- .../_mms/GetEventActionAttributes-Request.c | 2 +- .../_mms/GetEventActionAttributes-Request.h | 6 +- .../GetEventActionAttributes-Request_Py.c | 2 +- .../GetEventActionAttributes-Request_Py.h | 2 +- .../_mms/GetEventActionAttributes-Response.c | 21 +- .../_mms/GetEventActionAttributes-Response.h | 19 +- .../GetEventActionAttributes-Response_Py.c | 10 +- .../GetEventActionAttributes-Response_Py.h | 4 +- .../GetEventConditionAttributes-Request.c | 2 +- .../GetEventConditionAttributes-Request.h | 6 +- .../GetEventConditionAttributes-Request_Py.c | 2 +- .../GetEventConditionAttributes-Request_Py.h | 2 +- .../GetEventConditionAttributes-Response.c | 17 +- .../GetEventConditionAttributes-Response.h | 32 +- .../GetEventConditionAttributes-Response_Py.c | 6 +- .../GetEventConditionAttributes-Response_Py.h | 4 +- .../GetEventConditionListAttributes-Request.c | 2 +- .../GetEventConditionListAttributes-Request.h | 6 +- ...tEventConditionListAttributes-Request_Py.c | 2 +- ...tEventConditionListAttributes-Request_Py.h | 2 +- ...GetEventConditionListAttributes-Response.c | 36 +- ...GetEventConditionListAttributes-Response.h | 4 +- ...EventConditionListAttributes-Response_Py.c | 2 +- ...EventConditionListAttributes-Response_Py.h | 7 +- .../GetEventEnrollmentAttributes-Request.c | 19 +- .../GetEventEnrollmentAttributes-Request.h | 16 +- .../GetEventEnrollmentAttributes-Request_Py.c | 2 +- .../GetEventEnrollmentAttributes-Request_Py.h | 7 +- .../GetEventEnrollmentAttributes-Response.c | 19 +- .../GetEventEnrollmentAttributes-Response.h | 6 +- ...GetEventEnrollmentAttributes-Response_Py.c | 2 +- ...GetEventEnrollmentAttributes-Response_Py.h | 4 +- .../proto/mms/_mms/GetNameList-Request.c | 19 +- .../proto/mms/_mms/GetNameList-Request.h | 21 +- .../proto/mms/_mms/GetNameList-Request_Py.c | 10 +- .../proto/mms/_mms/GetNameList-Request_Py.h | 5 +- .../proto/mms/_mms/GetNameList-Response.c | 19 +- .../proto/mms/_mms/GetNameList-Response.h | 6 +- .../proto/mms/_mms/GetNameList-Response_Py.c | 2 +- .../proto/mms/_mms/GetNameList-Response_Py.h | 4 +- .../mms/_mms/GetNamedTypeAttributes-Request.c | 2 +- .../mms/_mms/GetNamedTypeAttributes-Request.h | 6 +- .../_mms/GetNamedTypeAttributes-Request_Py.c | 2 +- .../_mms/GetNamedTypeAttributes-Request_Py.h | 2 +- .../_mms/GetNamedTypeAttributes-Response.c | 4 +- .../_mms/GetNamedTypeAttributes-Response.h | 19 +- .../_mms/GetNamedTypeAttributes-Response_Py.c | 10 +- .../_mms/GetNamedTypeAttributes-Response_Py.h | 2 +- .../GetNamedVariableListAttributes-Request.c | 2 +- .../GetNamedVariableListAttributes-Request.h | 6 +- ...etNamedVariableListAttributes-Request_Py.c | 2 +- ...etNamedVariableListAttributes-Request_Py.h | 2 +- .../GetNamedVariableListAttributes-Response.c | 59 ++- .../GetNamedVariableListAttributes-Response.h | 22 +- ...tNamedVariableListAttributes-Response_Py.c | 134 +++--- ...tNamedVariableListAttributes-Response_Py.h | 14 +- .../GetProgramInvocationAttributes-Request.c | 2 +- .../GetProgramInvocationAttributes-Request.h | 6 +- ...etProgramInvocationAttributes-Request_Py.c | 2 +- ...etProgramInvocationAttributes-Request_Py.h | 2 +- .../GetProgramInvocationAttributes-Response.c | 34 +- .../GetProgramInvocationAttributes-Response.h | 28 +- ...tProgramInvocationAttributes-Response_Py.c | 2 +- ...tProgramInvocationAttributes-Response_Py.h | 7 +- .../GetScatteredAccessAttributes-Request.c | 2 +- .../GetScatteredAccessAttributes-Request.h | 6 +- .../GetScatteredAccessAttributes-Request_Py.c | 2 +- .../GetScatteredAccessAttributes-Request_Py.h | 2 +- .../GetScatteredAccessAttributes-Response.c | 4 +- .../GetScatteredAccessAttributes-Response.h | 17 +- ...GetScatteredAccessAttributes-Response_Py.c | 10 +- ...GetScatteredAccessAttributes-Response_Py.h | 2 +- .../_mms/GetUnitControlAttributes-Request.c | 2 +- .../_mms/GetUnitControlAttributes-Request.h | 6 +- .../GetUnitControlAttributes-Request_Py.c | 2 +- .../GetUnitControlAttributes-Request_Py.h | 2 +- .../_mms/GetUnitControlAttributes-Response.c | 36 +- .../_mms/GetUnitControlAttributes-Response.h | 4 +- .../GetUnitControlAttributes-Response_Py.c | 2 +- .../GetUnitControlAttributes-Response_Py.h | 7 +- .../GetVariableAccessAttributes-Request.c | 6 +- .../GetVariableAccessAttributes-Request.h | 16 +- .../GetVariableAccessAttributes-Request_Py.c | 10 +- .../GetVariableAccessAttributes-Request_Py.h | 2 +- .../GetVariableAccessAttributes-Response.c | 4 +- .../GetVariableAccessAttributes-Response.h | 19 +- .../GetVariableAccessAttributes-Response_Py.c | 10 +- .../GetVariableAccessAttributes-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/Identifier.c | 2 +- src/icspacket/proto/mms/_mms/Identifier.h | 4 +- src/icspacket/proto/mms/_mms/Identifier_Py.c | 2 +- src/icspacket/proto/mms/_mms/Identifier_Py.h | 2 +- .../proto/mms/_mms/Identify-Request.c | 2 +- .../proto/mms/_mms/Identify-Request.h | 4 +- .../proto/mms/_mms/Identify-Request_Py.c | 2 +- .../proto/mms/_mms/Identify-Request_Py.h | 2 +- .../proto/mms/_mms/Identify-Response.c | 19 +- .../proto/mms/_mms/Identify-Response.h | 10 +- .../proto/mms/_mms/Identify-Response_Py.c | 2 +- .../proto/mms/_mms/Identify-Response_Py.h | 6 +- .../proto/mms/_mms/Implementation-data.c | 2 +- .../proto/mms/_mms/Implementation-data.h | 4 +- .../proto/mms/_mms/Implementation-data_Py.c | 2 +- .../proto/mms/_mms/Implementation-data_Py.h | 2 +- .../proto/mms/_mms/InformationReport.c | 21 +- .../proto/mms/_mms/InformationReport.h | 9 +- .../proto/mms/_mms/InformationReport_Py.c | 10 +- .../proto/mms/_mms/InformationReport_Py.h | 4 +- .../mms/_mms/InitializeJournal-Request.c | 19 +- .../mms/_mms/InitializeJournal-Request.h | 17 +- .../mms/_mms/InitializeJournal-Request_Py.c | 10 +- .../mms/_mms/InitializeJournal-Request_Py.h | 4 +- .../mms/_mms/InitializeJournal-Response.c | 2 +- .../mms/_mms/InitializeJournal-Response.h | 6 +- .../mms/_mms/InitializeJournal-Response_Py.c | 2 +- .../mms/_mms/InitializeJournal-Response_Py.h | 2 +- .../proto/mms/_mms/Initiate-ErrorPDU.c | 2 +- .../proto/mms/_mms/Initiate-ErrorPDU.h | 6 +- .../proto/mms/_mms/Initiate-ErrorPDU_Py.c | 2 +- .../proto/mms/_mms/Initiate-ErrorPDU_Py.h | 2 +- .../proto/mms/_mms/Initiate-RequestPDU.c | 41 +- .../proto/mms/_mms/Initiate-RequestPDU.h | 36 +- .../proto/mms/_mms/Initiate-RequestPDU_Py.c | 2 +- .../proto/mms/_mms/Initiate-RequestPDU_Py.h | 6 +- .../proto/mms/_mms/Initiate-ResponsePDU.c | 41 +- .../proto/mms/_mms/Initiate-ResponsePDU.h | 36 +- .../proto/mms/_mms/Initiate-ResponsePDU_Py.c | 2 +- .../proto/mms/_mms/Initiate-ResponsePDU_Py.h | 6 +- .../_mms/InitiateDownloadSequence-Request.c | 19 +- .../_mms/InitiateDownloadSequence-Request.h | 10 +- .../InitiateDownloadSequence-Request_Py.c | 2 +- .../InitiateDownloadSequence-Request_Py.h | 4 +- .../_mms/InitiateDownloadSequence-Response.c | 2 +- .../_mms/InitiateDownloadSequence-Response.h | 4 +- .../InitiateDownloadSequence-Response_Py.c | 2 +- .../InitiateDownloadSequence-Response_Py.h | 2 +- .../mms/_mms/InitiateUnitControl-Error.c | 2 +- .../mms/_mms/InitiateUnitControl-Error.h | 8 +- .../mms/_mms/InitiateUnitControl-Error_Py.c | 2 +- .../mms/_mms/InitiateUnitControl-Error_Py.h | 3 +- .../_mms/InitiateUnitControlLoad-Request.c | 2 +- .../_mms/InitiateUnitControlLoad-Request.h | 6 +- .../_mms/InitiateUnitControlLoad-Request_Py.c | 2 +- .../_mms/InitiateUnitControlLoad-Request_Py.h | 2 +- .../_mms/InitiateUnitControlLoad-Response.c | 2 +- .../_mms/InitiateUnitControlLoad-Response.h | 4 +- .../InitiateUnitControlLoad-Response_Py.c | 2 +- .../InitiateUnitControlLoad-Response_Py.h | 2 +- .../mms/_mms/InitiateUploadSequence-Request.c | 2 +- .../mms/_mms/InitiateUploadSequence-Request.h | 6 +- .../_mms/InitiateUploadSequence-Request_Py.c | 2 +- .../_mms/InitiateUploadSequence-Request_Py.h | 2 +- .../_mms/InitiateUploadSequence-Response.c | 19 +- .../_mms/InitiateUploadSequence-Response.h | 8 +- .../_mms/InitiateUploadSequence-Response_Py.c | 2 +- .../_mms/InitiateUploadSequence-Response_Py.h | 4 +- src/icspacket/proto/mms/_mms/Input-Request.c | 19 +- src/icspacket/proto/mms/_mms/Input-Request.h | 14 +- .../proto/mms/_mms/Input-Request_Py.c | 2 +- .../proto/mms/_mms/Input-Request_Py.h | 4 +- src/icspacket/proto/mms/_mms/Input-Response.c | 2 +- src/icspacket/proto/mms/_mms/Input-Response.h | 6 +- .../proto/mms/_mms/Input-Response_Py.c | 2 +- .../proto/mms/_mms/Input-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/Integer16.c | 2 +- src/icspacket/proto/mms/_mms/Integer16.h | 4 +- src/icspacket/proto/mms/_mms/Integer16_Py.c | 2 +- src/icspacket/proto/mms/_mms/Integer16_Py.h | 2 +- src/icspacket/proto/mms/_mms/Integer32.c | 2 +- src/icspacket/proto/mms/_mms/Integer32.h | 4 +- src/icspacket/proto/mms/_mms/Integer32_Py.c | 2 +- src/icspacket/proto/mms/_mms/Integer32_Py.h | 2 +- src/icspacket/proto/mms/_mms/Integer8.c | 2 +- src/icspacket/proto/mms/_mms/Integer8.h | 4 +- src/icspacket/proto/mms/_mms/Integer8_Py.c | 2 +- src/icspacket/proto/mms/_mms/Integer8_Py.h | 2 +- .../proto/mms/_mms/Journal-Variable.c | 4 +- .../proto/mms/_mms/Journal-Variable.h | 15 +- .../proto/mms/_mms/Journal-Variable_Py.c | 10 +- .../proto/mms/_mms/Journal-Variable_Py.h | 2 +- src/icspacket/proto/mms/_mms/JournalEntry.c | 6 +- src/icspacket/proto/mms/_mms/JournalEntry.h | 18 +- .../proto/mms/_mms/JournalEntry_Py.c | 18 +- .../proto/mms/_mms/JournalEntry_Py.h | 2 +- src/icspacket/proto/mms/_mms/Kill-Request.c | 2 +- src/icspacket/proto/mms/_mms/Kill-Request.h | 6 +- .../proto/mms/_mms/Kill-Request_Py.c | 2 +- .../proto/mms/_mms/Kill-Request_Py.h | 2 +- src/icspacket/proto/mms/_mms/Kill-Response.c | 2 +- src/icspacket/proto/mms/_mms/Kill-Response.h | 4 +- .../proto/mms/_mms/Kill-Response_Py.c | 2 +- .../proto/mms/_mms/Kill-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/LoadData.c | 6 +- src/icspacket/proto/mms/_mms/LoadData.h | 18 +- src/icspacket/proto/mms/_mms/LoadData_Py.c | 10 +- src/icspacket/proto/mms/_mms/LoadData_Py.h | 2 +- .../mms/_mms/LoadDomainContent-Request.c | 21 +- .../mms/_mms/LoadDomainContent-Request.h | 19 +- .../mms/_mms/LoadDomainContent-Request_Py.c | 10 +- .../mms/_mms/LoadDomainContent-Request_Py.h | 4 +- .../mms/_mms/LoadDomainContent-Response.c | 2 +- .../mms/_mms/LoadDomainContent-Response.h | 4 +- .../mms/_mms/LoadDomainContent-Response_Py.c | 2 +- .../mms/_mms/LoadDomainContent-Response_Py.h | 2 +- .../mms/_mms/LoadUnitControlFromFile-Error.c | 2 +- .../mms/_mms/LoadUnitControlFromFile-Error.h | 10 +- .../_mms/LoadUnitControlFromFile-Error_Py.c | 2 +- .../_mms/LoadUnitControlFromFile-Error_Py.h | 3 +- .../_mms/LoadUnitControlFromFile-Request.c | 4 +- .../_mms/LoadUnitControlFromFile-Request.h | 15 +- .../_mms/LoadUnitControlFromFile-Request_Py.c | 10 +- .../_mms/LoadUnitControlFromFile-Request_Py.h | 2 +- .../_mms/LoadUnitControlFromFile-Response.c | 2 +- .../_mms/LoadUnitControlFromFile-Response.h | 4 +- .../LoadUnitControlFromFile-Response_Py.c | 2 +- .../LoadUnitControlFromFile-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/MMS255String.c | 2 +- src/icspacket/proto/mms/_mms/MMS255String.h | 4 +- .../proto/mms/_mms/MMS255String_Py.c | 2 +- .../proto/mms/_mms/MMS255String_Py.h | 2 +- src/icspacket/proto/mms/_mms/MMSString.c | 2 +- src/icspacket/proto/mms/_mms/MMSString.h | 4 +- src/icspacket/proto/mms/_mms/MMSString_Py.c | 2 +- src/icspacket/proto/mms/_mms/MMSString_Py.h | 2 +- src/icspacket/proto/mms/_mms/MMSpdu.c | 22 +- src/icspacket/proto/mms/_mms/MMSpdu.h | 73 +-- src/icspacket/proto/mms/_mms/MMSpdu_Py.c | 42 +- src/icspacket/proto/mms/_mms/MMSpdu_Py.h | 2 +- src/icspacket/proto/mms/_mms/Mechanism-name.c | 2 +- src/icspacket/proto/mms/_mms/Mechanism-name.h | 4 +- .../proto/mms/_mms/Mechanism-name_Py.c | 2 +- .../proto/mms/_mms/Mechanism-name_Py.h | 2 +- src/icspacket/proto/mms/_mms/Modifier.c | 6 +- src/icspacket/proto/mms/_mms/Modifier.h | 16 +- src/icspacket/proto/mms/_mms/ModifierStep.c | 4 +- src/icspacket/proto/mms/_mms/ModifierStep.h | 13 +- .../proto/mms/_mms/ModifierStep_Py.c | 10 +- .../proto/mms/_mms/ModifierStep_Py.h | 2 +- src/icspacket/proto/mms/_mms/Modifier_Py.c | 10 +- src/icspacket/proto/mms/_mms/Modifier_Py.h | 2 +- src/icspacket/proto/mms/_mms/Name.c | 4 +- src/icspacket/proto/mms/_mms/Name.h | 11 +- src/icspacket/proto/mms/_mms/Name_Py.c | 6 +- src/icspacket/proto/mms/_mms/Name_Py.h | 2 +- src/icspacket/proto/mms/_mms/ObjectClass.c | 2 +- src/icspacket/proto/mms/_mms/ObjectClass.h | 6 +- src/icspacket/proto/mms/_mms/ObjectClass_Py.c | 2 +- src/icspacket/proto/mms/_mms/ObjectClass_Py.h | 2 +- src/icspacket/proto/mms/_mms/ObjectName.c | 17 +- src/icspacket/proto/mms/_mms/ObjectName.h | 12 +- src/icspacket/proto/mms/_mms/ObjectName_Py.c | 4 +- src/icspacket/proto/mms/_mms/ObjectName_Py.h | 7 +- .../proto/mms/_mms/ObtainFile-Error.c | 2 +- .../proto/mms/_mms/ObtainFile-Error.h | 4 +- .../proto/mms/_mms/ObtainFile-Error_Py.c | 2 +- .../proto/mms/_mms/ObtainFile-Error_Py.h | 2 +- .../proto/mms/_mms/ObtainFile-Request.c | 6 +- .../proto/mms/_mms/ObtainFile-Request.h | 13 +- .../proto/mms/_mms/ObtainFile-Request_Py.c | 18 +- .../proto/mms/_mms/ObtainFile-Request_Py.h | 3 +- .../proto/mms/_mms/ObtainFile-Response.c | 2 +- .../proto/mms/_mms/ObtainFile-Response.h | 4 +- .../proto/mms/_mms/ObtainFile-Response_Py.c | 2 +- .../proto/mms/_mms/ObtainFile-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/OperationState.c | 2 +- src/icspacket/proto/mms/_mms/OperationState.h | 4 +- .../proto/mms/_mms/OperationState_Py.c | 2 +- .../proto/mms/_mms/OperationState_Py.h | 2 +- src/icspacket/proto/mms/_mms/Output-Request.c | 19 +- src/icspacket/proto/mms/_mms/Output-Request.h | 8 +- .../proto/mms/_mms/Output-Request_Py.c | 2 +- .../proto/mms/_mms/Output-Request_Py.h | 4 +- .../proto/mms/_mms/Output-Response.c | 2 +- .../proto/mms/_mms/Output-Response.h | 4 +- .../proto/mms/_mms/Output-Response_Py.c | 2 +- .../proto/mms/_mms/Output-Response_Py.h | 2 +- .../proto/mms/_mms/ParameterSupportOptions.c | 8 +- .../proto/mms/_mms/ParameterSupportOptions.h | 5 +- .../mms/_mms/ParameterSupportOptions_Py.c | 2 +- .../mms/_mms/ParameterSupportOptions_Py.h | 2 +- src/icspacket/proto/mms/_mms/Priority.c | 2 +- src/icspacket/proto/mms/_mms/Priority.h | 4 +- src/icspacket/proto/mms/_mms/Priority_Py.c | 2 +- src/icspacket/proto/mms/_mms/Priority_Py.h | 2 +- .../proto/mms/_mms/ProgramInvocationState.c | 2 +- .../proto/mms/_mms/ProgramInvocationState.h | 4 +- .../mms/_mms/ProgramInvocationState_Py.c | 2 +- .../mms/_mms/ProgramInvocationState_Py.h | 2 +- src/icspacket/proto/mms/_mms/RDNSequence.c | 4 +- src/icspacket/proto/mms/_mms/RDNSequence.h | 4 +- src/icspacket/proto/mms/_mms/RDNSequence_Py.c | 2 +- src/icspacket/proto/mms/_mms/RDNSequence_Py.h | 2 +- src/icspacket/proto/mms/_mms/RLRE-apdu.c | 2 +- src/icspacket/proto/mms/_mms/RLRE-apdu.h | 10 +- src/icspacket/proto/mms/_mms/RLRE-apdu_Py.c | 2 +- src/icspacket/proto/mms/_mms/RLRE-apdu_Py.h | 2 +- src/icspacket/proto/mms/_mms/RLRQ-apdu.c | 2 +- src/icspacket/proto/mms/_mms/RLRQ-apdu.h | 10 +- src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.c | 2 +- src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.h | 2 +- src/icspacket/proto/mms/_mms/Read-Request.c | 4 +- src/icspacket/proto/mms/_mms/Read-Request.h | 13 +- .../proto/mms/_mms/Read-Request_Py.c | 10 +- .../proto/mms/_mms/Read-Request_Py.h | 2 +- src/icspacket/proto/mms/_mms/Read-Response.c | 19 +- src/icspacket/proto/mms/_mms/Read-Response.h | 8 +- .../proto/mms/_mms/Read-Response_Py.c | 2 +- .../proto/mms/_mms/Read-Response_Py.h | 4 +- .../proto/mms/_mms/ReadJournal-Request.c | 66 ++- .../proto/mms/_mms/ReadJournal-Request.h | 27 +- .../proto/mms/_mms/ReadJournal-Request_Py.c | 11 +- .../proto/mms/_mms/ReadJournal-Request_Py.h | 12 +- .../proto/mms/_mms/ReadJournal-Response.c | 19 +- .../proto/mms/_mms/ReadJournal-Response.h | 6 +- .../proto/mms/_mms/ReadJournal-Response_Py.c | 2 +- .../proto/mms/_mms/ReadJournal-Response_Py.h | 4 +- src/icspacket/proto/mms/_mms/RejectPDU.c | 17 +- src/icspacket/proto/mms/_mms/RejectPDU.h | 28 +- src/icspacket/proto/mms/_mms/RejectPDU_Py.c | 2 +- src/icspacket/proto/mms/_mms/RejectPDU_Py.h | 4 +- .../mms/_mms/RelativeDistinguishedName.c | 4 +- .../mms/_mms/RelativeDistinguishedName.h | 4 +- .../mms/_mms/RelativeDistinguishedName_Py.c | 2 +- .../mms/_mms/RelativeDistinguishedName_Py.h | 2 +- .../proto/mms/_mms/Release-request-reason.c | 2 +- .../proto/mms/_mms/Release-request-reason.h | 4 +- .../mms/_mms/Release-request-reason_Py.c | 2 +- .../mms/_mms/Release-request-reason_Py.h | 2 +- .../proto/mms/_mms/Release-response-reason.c | 2 +- .../proto/mms/_mms/Release-response-reason.h | 4 +- .../mms/_mms/Release-response-reason_Py.c | 2 +- .../mms/_mms/Release-response-reason_Py.h | 2 +- .../mms/_mms/RelinquishControl-Request.c | 4 +- .../mms/_mms/RelinquishControl-Request.h | 15 +- .../mms/_mms/RelinquishControl-Request_Py.c | 10 +- .../mms/_mms/RelinquishControl-Request_Py.h | 2 +- .../mms/_mms/RelinquishControl-Response.c | 2 +- .../mms/_mms/RelinquishControl-Response.h | 4 +- .../mms/_mms/RelinquishControl-Response_Py.c | 2 +- .../mms/_mms/RelinquishControl-Response_Py.h | 2 +- .../RemoveEventConditionListReference-Error.c | 6 +- .../RemoveEventConditionListReference-Error.h | 13 +- ...moveEventConditionListReference-Error_Py.c | 10 +- ...moveEventConditionListReference-Error_Py.h | 3 +- ...emoveEventConditionListReference-Request.c | 38 +- ...emoveEventConditionListReference-Request.h | 7 +- ...veEventConditionListReference-Request_Py.c | 10 +- ...veEventConditionListReference-Request_Py.h | 8 +- ...moveEventConditionListReference-Response.c | 2 +- ...moveEventConditionListReference-Response.h | 4 +- ...eEventConditionListReference-Response_Py.c | 2 +- ...eEventConditionListReference-Response_Py.h | 2 +- .../mms/_mms/RemoveFromUnitControl-Request.c | 36 +- .../mms/_mms/RemoveFromUnitControl-Request.h | 6 +- .../_mms/RemoveFromUnitControl-Request_Py.c | 2 +- .../_mms/RemoveFromUnitControl-Request_Py.h | 8 +- .../mms/_mms/RemoveFromUnitControl-Response.c | 2 +- .../mms/_mms/RemoveFromUnitControl-Response.h | 4 +- .../_mms/RemoveFromUnitControl-Response_Py.c | 2 +- .../_mms/RemoveFromUnitControl-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/Rename-Request.c | 6 +- src/icspacket/proto/mms/_mms/Rename-Request.h | 20 +- .../proto/mms/_mms/Rename-Request_Py.c | 18 +- .../proto/mms/_mms/Rename-Request_Py.h | 2 +- .../proto/mms/_mms/Rename-Response.c | 2 +- .../proto/mms/_mms/Rename-Response.h | 4 +- .../proto/mms/_mms/Rename-Response_Py.c | 2 +- .../proto/mms/_mms/Rename-Response_Py.h | 2 +- .../ReportAccessControlledObjects-Request.c | 4 +- .../ReportAccessControlledObjects-Request.h | 15 +- ...ReportAccessControlledObjects-Request_Py.c | 10 +- ...ReportAccessControlledObjects-Request_Py.h | 2 +- .../ReportAccessControlledObjects-Response.c | 19 +- .../ReportAccessControlledObjects-Response.h | 6 +- ...eportAccessControlledObjects-Response_Py.c | 2 +- ...eportAccessControlledObjects-Response_Py.h | 4 +- .../_mms/ReportEventActionStatus-Request.c | 2 +- .../_mms/ReportEventActionStatus-Request.h | 6 +- .../_mms/ReportEventActionStatus-Request_Py.c | 2 +- .../_mms/ReportEventActionStatus-Request_Py.h | 2 +- .../_mms/ReportEventActionStatus-Response.c | 2 +- .../_mms/ReportEventActionStatus-Response.h | 6 +- .../ReportEventActionStatus-Response_Py.c | 2 +- .../ReportEventActionStatus-Response_Py.h | 2 +- .../ReportEventConditionListStatus-Request.c | 4 +- .../ReportEventConditionListStatus-Request.h | 15 +- ...eportEventConditionListStatus-Request_Py.c | 10 +- ...eportEventConditionListStatus-Request_Py.h | 2 +- .../ReportEventConditionListStatus-Response.c | 19 +- .../ReportEventConditionListStatus-Response.h | 6 +- ...portEventConditionListStatus-Response_Py.c | 2 +- ...portEventConditionListStatus-Response_Py.h | 4 +- .../_mms/ReportEventConditionStatus-Request.c | 2 +- .../_mms/ReportEventConditionStatus-Request.h | 6 +- .../ReportEventConditionStatus-Request_Py.c | 2 +- .../ReportEventConditionStatus-Request_Py.h | 2 +- .../ReportEventConditionStatus-Response.c | 2 +- .../ReportEventConditionStatus-Response.h | 18 +- .../ReportEventConditionStatus-Response_Py.c | 2 +- .../ReportEventConditionStatus-Response_Py.h | 3 +- .../ReportEventEnrollmentStatus-Request.c | 2 +- .../ReportEventEnrollmentStatus-Request.h | 6 +- .../ReportEventEnrollmentStatus-Request_Py.c | 2 +- .../ReportEventEnrollmentStatus-Request_Py.h | 2 +- .../ReportEventEnrollmentStatus-Response.c | 8 +- .../ReportEventEnrollmentStatus-Response.h | 20 +- .../ReportEventEnrollmentStatus-Response_Py.c | 2 +- .../ReportEventEnrollmentStatus-Response_Py.h | 2 +- .../mms/_mms/ReportJournalStatus-Request.c | 2 +- .../mms/_mms/ReportJournalStatus-Request.h | 6 +- .../mms/_mms/ReportJournalStatus-Request_Py.c | 2 +- .../mms/_mms/ReportJournalStatus-Request_Py.h | 2 +- .../mms/_mms/ReportJournalStatus-Response.c | 2 +- .../mms/_mms/ReportJournalStatus-Response.h | 12 +- .../_mms/ReportJournalStatus-Response_Py.c | 2 +- .../_mms/ReportJournalStatus-Response_Py.h | 2 +- .../_mms/ReportPoolSemaphoreStatus-Request.c | 4 +- .../_mms/ReportPoolSemaphoreStatus-Request.h | 15 +- .../ReportPoolSemaphoreStatus-Request_Py.c | 10 +- .../ReportPoolSemaphoreStatus-Request_Py.h | 2 +- .../_mms/ReportPoolSemaphoreStatus-Response.c | 47 +- .../_mms/ReportPoolSemaphoreStatus-Response.h | 34 +- .../ReportPoolSemaphoreStatus-Response_Py.c | 164 +++---- .../ReportPoolSemaphoreStatus-Response_Py.h | 18 +- .../_mms/ReportSemaphoreEntryStatus-Request.c | 4 +- .../_mms/ReportSemaphoreEntryStatus-Request.h | 15 +- .../ReportSemaphoreEntryStatus-Request_Py.c | 10 +- .../ReportSemaphoreEntryStatus-Request_Py.h | 2 +- .../ReportSemaphoreEntryStatus-Response.c | 19 +- .../ReportSemaphoreEntryStatus-Response.h | 6 +- .../ReportSemaphoreEntryStatus-Response_Py.c | 2 +- .../ReportSemaphoreEntryStatus-Response_Py.h | 4 +- .../mms/_mms/ReportSemaphoreStatus-Request.c | 2 +- .../mms/_mms/ReportSemaphoreStatus-Request.h | 6 +- .../_mms/ReportSemaphoreStatus-Request_Py.c | 2 +- .../_mms/ReportSemaphoreStatus-Request_Py.h | 2 +- .../mms/_mms/ReportSemaphoreStatus-Response.c | 2 +- .../mms/_mms/ReportSemaphoreStatus-Response.h | 18 +- .../_mms/ReportSemaphoreStatus-Response_Py.c | 8 +- .../_mms/ReportSemaphoreStatus-Response_Py.h | 4 +- src/icspacket/proto/mms/_mms/Request-Detail.c | 14 +- src/icspacket/proto/mms/_mms/Request-Detail.h | 42 +- .../proto/mms/_mms/Request-Detail_Py.c | 26 +- .../proto/mms/_mms/Request-Detail_Py.h | 2 +- .../mms/_mms/RequestDomainDownload-Request.c | 21 +- .../mms/_mms/RequestDomainDownload-Request.h | 19 +- .../_mms/RequestDomainDownload-Request_Py.c | 10 +- .../_mms/RequestDomainDownload-Request_Py.h | 4 +- .../mms/_mms/RequestDomainDownload-Response.c | 2 +- .../mms/_mms/RequestDomainDownload-Response.h | 4 +- .../_mms/RequestDomainDownload-Response_Py.c | 2 +- .../_mms/RequestDomainDownload-Response_Py.h | 2 +- .../mms/_mms/RequestDomainUpload-Request.c | 4 +- .../mms/_mms/RequestDomainUpload-Request.h | 15 +- .../mms/_mms/RequestDomainUpload-Request_Py.c | 10 +- .../mms/_mms/RequestDomainUpload-Request_Py.h | 2 +- .../mms/_mms/RequestDomainUpload-Response.c | 2 +- .../mms/_mms/RequestDomainUpload-Response.h | 4 +- .../_mms/RequestDomainUpload-Response_Py.c | 2 +- .../_mms/RequestDomainUpload-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/Reset-Error.c | 2 +- src/icspacket/proto/mms/_mms/Reset-Error.h | 6 +- src/icspacket/proto/mms/_mms/Reset-Error_Py.c | 2 +- src/icspacket/proto/mms/_mms/Reset-Error_Py.h | 2 +- src/icspacket/proto/mms/_mms/Reset-Request.c | 2 +- src/icspacket/proto/mms/_mms/Reset-Request.h | 6 +- .../proto/mms/_mms/Reset-Request_Py.c | 2 +- .../proto/mms/_mms/Reset-Request_Py.h | 2 +- src/icspacket/proto/mms/_mms/Reset-Response.c | 2 +- src/icspacket/proto/mms/_mms/Reset-Response.h | 4 +- .../proto/mms/_mms/Reset-Response_Py.c | 2 +- .../proto/mms/_mms/Reset-Response_Py.h | 2 +- .../proto/mms/_mms/Response-Detail.c | 8 +- .../proto/mms/_mms/Response-Detail.h | 23 +- .../proto/mms/_mms/Response-Detail_Py.c | 14 +- .../proto/mms/_mms/Response-Detail_Py.h | 2 +- src/icspacket/proto/mms/_mms/Resume-Error.c | 2 +- src/icspacket/proto/mms/_mms/Resume-Error.h | 6 +- .../proto/mms/_mms/Resume-Error_Py.c | 2 +- .../proto/mms/_mms/Resume-Error_Py.h | 2 +- src/icspacket/proto/mms/_mms/Resume-Request.c | 17 +- src/icspacket/proto/mms/_mms/Resume-Request.h | 18 +- .../proto/mms/_mms/Resume-Request_Py.c | 2 +- .../proto/mms/_mms/Resume-Request_Py.h | 4 +- .../proto/mms/_mms/Resume-Response.c | 2 +- .../proto/mms/_mms/Resume-Response.h | 4 +- .../proto/mms/_mms/Resume-Response_Py.c | 2 +- .../proto/mms/_mms/Resume-Response_Py.h | 2 +- .../mms/_mms/ScatteredAccessDescription.c | 46 +- .../mms/_mms/ScatteredAccessDescription.h | 20 +- .../mms/_mms/ScatteredAccessDescription_Py.c | 154 +++---- .../mms/_mms/ScatteredAccessDescription_Py.h | 12 +- src/icspacket/proto/mms/_mms/Select-Request.c | 19 +- src/icspacket/proto/mms/_mms/Select-Request.h | 6 +- .../proto/mms/_mms/Select-Request_Py.c | 2 +- .../proto/mms/_mms/Select-Request_Py.h | 5 +- .../proto/mms/_mms/Select-Response.c | 2 +- .../proto/mms/_mms/Select-Response.h | 4 +- .../proto/mms/_mms/Select-Response_Py.c | 2 +- .../proto/mms/_mms/Select-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/SemaphoreEntry.c | 4 +- src/icspacket/proto/mms/_mms/SemaphoreEntry.h | 31 +- .../proto/mms/_mms/SemaphoreEntry_Py.c | 10 +- .../proto/mms/_mms/SemaphoreEntry_Py.h | 2 +- src/icspacket/proto/mms/_mms/ServiceError.c | 34 +- src/icspacket/proto/mms/_mms/ServiceError.h | 85 ++-- .../proto/mms/_mms/ServiceError_Py.c | 6 +- .../proto/mms/_mms/ServiceError_Py.h | 6 +- .../proto/mms/_mms/ServiceSupportOptions.c | 8 +- .../proto/mms/_mms/ServiceSupportOptions.h | 5 +- .../proto/mms/_mms/ServiceSupportOptions_Py.c | 2 +- .../proto/mms/_mms/ServiceSupportOptions_Py.h | 2 +- src/icspacket/proto/mms/_mms/Severity.c | 2 +- src/icspacket/proto/mms/_mms/Severity.h | 4 +- src/icspacket/proto/mms/_mms/Severity_Py.c | 2 +- src/icspacket/proto/mms/_mms/Severity_Py.h | 2 +- src/icspacket/proto/mms/_mms/Start-Error.c | 2 +- src/icspacket/proto/mms/_mms/Start-Error.h | 6 +- src/icspacket/proto/mms/_mms/Start-Error_Py.c | 2 +- src/icspacket/proto/mms/_mms/Start-Error_Py.h | 2 +- src/icspacket/proto/mms/_mms/Start-Request.c | 17 +- src/icspacket/proto/mms/_mms/Start-Request.h | 18 +- .../proto/mms/_mms/Start-Request_Py.c | 2 +- .../proto/mms/_mms/Start-Request_Py.h | 4 +- src/icspacket/proto/mms/_mms/Start-Response.c | 2 +- src/icspacket/proto/mms/_mms/Start-Response.h | 4 +- .../proto/mms/_mms/Start-Response_Py.c | 2 +- .../proto/mms/_mms/Start-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/StartCount.c | 2 +- src/icspacket/proto/mms/_mms/StartCount.h | 8 +- src/icspacket/proto/mms/_mms/StartCount_Py.c | 2 +- src/icspacket/proto/mms/_mms/StartCount_Py.h | 2 +- .../proto/mms/_mms/StartUnitControl-Error.c | 2 +- .../proto/mms/_mms/StartUnitControl-Error.h | 10 +- .../mms/_mms/StartUnitControl-Error_Py.c | 2 +- .../mms/_mms/StartUnitControl-Error_Py.h | 2 +- .../proto/mms/_mms/StartUnitControl-Request.c | 17 +- .../proto/mms/_mms/StartUnitControl-Request.h | 18 +- .../mms/_mms/StartUnitControl-Request_Py.c | 2 +- .../mms/_mms/StartUnitControl-Request_Py.h | 4 +- .../mms/_mms/StartUnitControl-Response.c | 2 +- .../mms/_mms/StartUnitControl-Response.h | 4 +- .../mms/_mms/StartUnitControl-Response_Py.c | 2 +- .../mms/_mms/StartUnitControl-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/Status-Request.c | 2 +- src/icspacket/proto/mms/_mms/Status-Request.h | 4 +- .../proto/mms/_mms/Status-Request_Py.c | 2 +- .../proto/mms/_mms/Status-Request_Py.h | 2 +- .../proto/mms/_mms/Status-Response.c | 2 +- .../proto/mms/_mms/Status-Response.h | 6 +- .../proto/mms/_mms/Status-Response_Py.c | 2 +- .../proto/mms/_mms/Status-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/StatusResponse.c | 6 +- src/icspacket/proto/mms/_mms/StatusResponse.h | 8 +- .../proto/mms/_mms/StatusResponse_Py.c | 2 +- .../proto/mms/_mms/StatusResponse_Py.h | 2 +- src/icspacket/proto/mms/_mms/Stop-Error.c | 2 +- src/icspacket/proto/mms/_mms/Stop-Error.h | 6 +- src/icspacket/proto/mms/_mms/Stop-Error_Py.c | 2 +- src/icspacket/proto/mms/_mms/Stop-Error_Py.h | 2 +- src/icspacket/proto/mms/_mms/Stop-Request.c | 2 +- src/icspacket/proto/mms/_mms/Stop-Request.h | 6 +- .../proto/mms/_mms/Stop-Request_Py.c | 2 +- .../proto/mms/_mms/Stop-Request_Py.h | 2 +- src/icspacket/proto/mms/_mms/Stop-Response.c | 2 +- src/icspacket/proto/mms/_mms/Stop-Response.h | 4 +- .../proto/mms/_mms/Stop-Response_Py.c | 2 +- .../proto/mms/_mms/Stop-Response_Py.h | 2 +- .../proto/mms/_mms/StopUnitControl-Error.c | 2 +- .../proto/mms/_mms/StopUnitControl-Error.h | 10 +- .../proto/mms/_mms/StopUnitControl-Error_Py.c | 2 +- .../proto/mms/_mms/StopUnitControl-Error_Py.h | 2 +- .../proto/mms/_mms/StopUnitControl-Request.c | 2 +- .../proto/mms/_mms/StopUnitControl-Request.h | 6 +- .../mms/_mms/StopUnitControl-Request_Py.c | 2 +- .../mms/_mms/StopUnitControl-Request_Py.h | 2 +- .../proto/mms/_mms/StopUnitControl-Response.c | 2 +- .../proto/mms/_mms/StopUnitControl-Response.h | 4 +- .../mms/_mms/StopUnitControl-Response_Py.c | 2 +- .../mms/_mms/StopUnitControl-Response_Py.h | 2 +- .../mms/_mms/StoreDomainContent-Request.c | 4 +- .../mms/_mms/StoreDomainContent-Request.h | 15 +- .../mms/_mms/StoreDomainContent-Request_Py.c | 10 +- .../mms/_mms/StoreDomainContent-Request_Py.h | 2 +- .../mms/_mms/StoreDomainContent-Response.c | 2 +- .../mms/_mms/StoreDomainContent-Response.h | 4 +- .../mms/_mms/StoreDomainContent-Response_Py.c | 2 +- .../mms/_mms/StoreDomainContent-Response_Py.h | 2 +- .../mms/_mms/StoreUnitControlToFile-Request.c | 4 +- .../mms/_mms/StoreUnitControlToFile-Request.h | 15 +- .../_mms/StoreUnitControlToFile-Request_Py.c | 10 +- .../_mms/StoreUnitControlToFile-Request_Py.h | 2 +- .../_mms/StoreUnitControlToFile-Response.c | 2 +- .../_mms/StoreUnitControlToFile-Response.h | 4 +- .../_mms/StoreUnitControlToFile-Response_Py.c | 2 +- .../_mms/StoreUnitControlToFile-Response_Py.h | 2 +- .../proto/mms/_mms/TakeControl-Request.c | 4 +- .../proto/mms/_mms/TakeControl-Request.h | 29 +- .../proto/mms/_mms/TakeControl-Request_Py.c | 10 +- .../proto/mms/_mms/TakeControl-Request_Py.h | 3 +- .../proto/mms/_mms/TakeControl-Response.c | 2 +- .../proto/mms/_mms/TakeControl-Response.h | 8 +- .../proto/mms/_mms/TakeControl-Response_Py.c | 2 +- .../proto/mms/_mms/TakeControl-Response_Py.h | 2 +- .../_mms/TerminateDownloadSequence-Request.c | 2 +- .../_mms/TerminateDownloadSequence-Request.h | 10 +- .../TerminateDownloadSequence-Request_Py.c | 2 +- .../TerminateDownloadSequence-Request_Py.h | 2 +- .../_mms/TerminateDownloadSequence-Response.c | 2 +- .../_mms/TerminateDownloadSequence-Response.h | 4 +- .../TerminateDownloadSequence-Response_Py.c | 2 +- .../TerminateDownloadSequence-Response_Py.h | 2 +- .../_mms/TerminateUploadSequence-Request.c | 2 +- .../_mms/TerminateUploadSequence-Request.h | 6 +- .../_mms/TerminateUploadSequence-Request_Py.c | 2 +- .../_mms/TerminateUploadSequence-Request_Py.h | 2 +- .../_mms/TerminateUploadSequence-Response.c | 2 +- .../_mms/TerminateUploadSequence-Response.h | 4 +- .../TerminateUploadSequence-Response_Py.c | 2 +- .../TerminateUploadSequence-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/TimeOfDay.c | 2 +- src/icspacket/proto/mms/_mms/TimeOfDay.h | 4 +- src/icspacket/proto/mms/_mms/TimeOfDay_Py.c | 2 +- src/icspacket/proto/mms/_mms/TimeOfDay_Py.h | 2 +- src/icspacket/proto/mms/_mms/Transitions.c | 8 +- src/icspacket/proto/mms/_mms/Transitions.h | 5 +- src/icspacket/proto/mms/_mms/Transitions_Py.c | 2 +- src/icspacket/proto/mms/_mms/Transitions_Py.h | 2 +- .../proto/mms/_mms/TriggerEvent-Request.c | 4 +- .../proto/mms/_mms/TriggerEvent-Request.h | 15 +- .../proto/mms/_mms/TriggerEvent-Request_Py.c | 10 +- .../proto/mms/_mms/TriggerEvent-Request_Py.h | 2 +- .../proto/mms/_mms/TriggerEvent-Response.c | 2 +- .../proto/mms/_mms/TriggerEvent-Response.h | 4 +- .../proto/mms/_mms/TriggerEvent-Response_Py.c | 2 +- .../proto/mms/_mms/TriggerEvent-Response_Py.h | 2 +- .../proto/mms/_mms/TypeDescription.c | 104 +++-- .../proto/mms/_mms/TypeDescription.h | 60 +-- .../proto/mms/_mms/TypeDescription_Py.c | 148 +++--- .../proto/mms/_mms/TypeDescription_Py.h | 28 +- .../proto/mms/_mms/TypeSpecification.c | 4 +- .../proto/mms/_mms/TypeSpecification.h | 11 +- .../proto/mms/_mms/TypeSpecification_Py.c | 8 +- .../proto/mms/_mms/TypeSpecification_Py.h | 2 +- .../proto/mms/_mms/Unconfirmed-Detail.c | 4 +- .../proto/mms/_mms/Unconfirmed-Detail.h | 13 +- .../proto/mms/_mms/Unconfirmed-Detail_Py.c | 6 +- .../proto/mms/_mms/Unconfirmed-Detail_Py.h | 2 +- .../proto/mms/_mms/Unconfirmed-PDU.c | 4 +- .../proto/mms/_mms/Unconfirmed-PDU.h | 11 +- .../proto/mms/_mms/Unconfirmed-PDU_Py.c | 10 +- .../proto/mms/_mms/Unconfirmed-PDU_Py.h | 2 +- .../proto/mms/_mms/UnconfirmedService.c | 8 +- .../proto/mms/_mms/UnconfirmedService.h | 22 +- .../proto/mms/_mms/UnconfirmedService_Py.c | 14 +- .../proto/mms/_mms/UnconfirmedService_Py.h | 2 +- .../mms/_mms/UnitControlLoadSegment-Request.c | 2 +- .../mms/_mms/UnitControlLoadSegment-Request.h | 6 +- .../_mms/UnitControlLoadSegment-Request_Py.c | 2 +- .../_mms/UnitControlLoadSegment-Request_Py.h | 2 +- .../_mms/UnitControlLoadSegment-Response.c | 19 +- .../_mms/UnitControlLoadSegment-Response.h | 6 +- .../_mms/UnitControlLoadSegment-Response_Py.c | 2 +- .../_mms/UnitControlLoadSegment-Response_Py.h | 4 +- .../mms/_mms/UnitControlUpload-Request.c | 17 +- .../mms/_mms/UnitControlUpload-Request.h | 12 +- .../mms/_mms/UnitControlUpload-Request_Py.c | 2 +- .../mms/_mms/UnitControlUpload-Request_Py.h | 6 +- .../mms/_mms/UnitControlUpload-Response.c | 34 +- .../mms/_mms/UnitControlUpload-Response.h | 12 +- .../mms/_mms/UnitControlUpload-Response_Py.c | 2 +- .../mms/_mms/UnitControlUpload-Response_Py.h | 7 +- src/icspacket/proto/mms/_mms/Unsigned16.c | 2 +- src/icspacket/proto/mms/_mms/Unsigned16.h | 4 +- src/icspacket/proto/mms/_mms/Unsigned16_Py.c | 2 +- src/icspacket/proto/mms/_mms/Unsigned16_Py.h | 2 +- src/icspacket/proto/mms/_mms/Unsigned32.c | 2 +- src/icspacket/proto/mms/_mms/Unsigned32.h | 4 +- src/icspacket/proto/mms/_mms/Unsigned32_Py.c | 2 +- src/icspacket/proto/mms/_mms/Unsigned32_Py.h | 2 +- src/icspacket/proto/mms/_mms/Unsigned8.c | 2 +- src/icspacket/proto/mms/_mms/Unsigned8.h | 4 +- src/icspacket/proto/mms/_mms/Unsigned8_Py.c | 2 +- src/icspacket/proto/mms/_mms/Unsigned8_Py.h | 2 +- .../proto/mms/_mms/UnsolicitedStatus.c | 2 +- .../proto/mms/_mms/UnsolicitedStatus.h | 6 +- .../proto/mms/_mms/UnsolicitedStatus_Py.c | 2 +- .../proto/mms/_mms/UnsolicitedStatus_Py.h | 2 +- .../proto/mms/_mms/UploadSegment-Request.c | 2 +- .../proto/mms/_mms/UploadSegment-Request.h | 6 +- .../proto/mms/_mms/UploadSegment-Request_Py.c | 2 +- .../proto/mms/_mms/UploadSegment-Request_Py.h | 2 +- .../proto/mms/_mms/UploadSegment-Response.c | 4 +- .../proto/mms/_mms/UploadSegment-Response.h | 13 +- .../mms/_mms/UploadSegment-Response_Py.c | 10 +- .../mms/_mms/UploadSegment-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/UtcTime.c | 2 +- src/icspacket/proto/mms/_mms/UtcTime.h | 4 +- src/icspacket/proto/mms/_mms/UtcTime_Py.c | 2 +- src/icspacket/proto/mms/_mms/UtcTime_Py.h | 2 +- .../proto/mms/_mms/VMDReset-Request.c | 2 +- .../proto/mms/_mms/VMDReset-Request.h | 4 +- .../proto/mms/_mms/VMDReset-Request_Py.c | 2 +- .../proto/mms/_mms/VMDReset-Request_Py.h | 2 +- .../proto/mms/_mms/VMDReset-Response.c | 2 +- .../proto/mms/_mms/VMDReset-Response.h | 6 +- .../proto/mms/_mms/VMDReset-Response_Py.c | 2 +- .../proto/mms/_mms/VMDReset-Response_Py.h | 2 +- .../proto/mms/_mms/VMDStop-Request.c | 2 +- .../proto/mms/_mms/VMDStop-Request.h | 4 +- .../proto/mms/_mms/VMDStop-Request_Py.c | 2 +- .../proto/mms/_mms/VMDStop-Request_Py.h | 2 +- .../proto/mms/_mms/VMDStop-Response.c | 2 +- .../proto/mms/_mms/VMDStop-Response.h | 4 +- .../proto/mms/_mms/VMDStop-Response_Py.c | 2 +- .../proto/mms/_mms/VMDStop-Response_Py.h | 2 +- .../mms/_mms/VariableAccessSpecification.c | 61 +-- .../mms/_mms/VariableAccessSpecification.h | 21 +- .../mms/_mms/VariableAccessSpecification_Py.c | 140 +++--- .../mms/_mms/VariableAccessSpecification_Py.h | 14 +- .../proto/mms/_mms/VariableSpecification.c | 21 +- .../proto/mms/_mms/VariableSpecification.h | 25 +- .../proto/mms/_mms/VariableSpecification_Py.c | 14 +- .../proto/mms/_mms/VariableSpecification_Py.h | 5 +- src/icspacket/proto/mms/_mms/Write-Request.c | 21 +- src/icspacket/proto/mms/_mms/Write-Request.h | 9 +- .../proto/mms/_mms/Write-Request_Py.c | 10 +- .../proto/mms/_mms/Write-Request_Py.h | 4 +- src/icspacket/proto/mms/_mms/Write-Response.c | 30 +- src/icspacket/proto/mms/_mms/Write-Response.h | 28 +- .../proto/mms/_mms/Write-Response_Py.c | 150 +++---- .../proto/mms/_mms/Write-Response_Py.h | 14 +- .../proto/mms/_mms/WriteJournal-Request.c | 21 +- .../proto/mms/_mms/WriteJournal-Request.h | 9 +- .../proto/mms/_mms/WriteJournal-Request_Py.c | 10 +- .../proto/mms/_mms/WriteJournal-Request_Py.h | 4 +- .../proto/mms/_mms/WriteJournal-Response.c | 2 +- .../proto/mms/_mms/WriteJournal-Response.h | 4 +- .../proto/mms/_mms/WriteJournal-Response_Py.c | 2 +- .../proto/mms/_mms/WriteJournal-Response_Py.h | 2 +- src/icspacket/proto/mms/_mms/asn_config.h | 2 + src/icspacket/proto/mms/_mms/asn_constant.h | 6 +- src/icspacket/proto/mms/_mms/py_module.c | 210 ++++----- src/icspacket/proto/mms/_mms/py_module.h | 70 +-- 1504 files changed, 8625 insertions(+), 5791 deletions(-) diff --git a/src/icspacket/proto/mms/_mms/AARE-apdu.c b/src/icspacket/proto/mms/_mms/AARE-apdu.c index dc11444c..c56713c7 100644 --- a/src/icspacket/proto/mms/_mms/AARE-apdu.c +++ b/src/icspacket/proto/mms/_mms/AARE-apdu.c @@ -1,9 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_version_constr_2 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_responder_acse_requirements_constr_11 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_AARE_apdu_1[] = { { ATF_POINTER, 1, offsetof(struct AARE_apdu, protocol_version), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), @@ -65,7 +77,7 @@ asn_TYPE_member_t asn_MBR_AARE_apdu_1[] = { 0, 0, /* No default value */ "result" }, - { ATF_NOFLAGS, 0, offsetof(struct AARE_apdu, result_source_diagnostic), + { ATF_POINTER, 0, offsetof(struct AARE_apdu, result_source_diagnostic), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_Associate_source_diagnostic, diff --git a/src/icspacket/proto/mms/_mms/AARE-apdu.h b/src/icspacket/proto/mms/_mms/AARE-apdu.h index 407ab055..fe7c6c77 100644 --- a/src/icspacket/proto/mms/_mms/AARE-apdu.h +++ b/src/icspacket/proto/mms/_mms/AARE-apdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -11,14 +11,13 @@ /* Including external dependencies */ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "Application-context-name.h" +#include "Associate-result.h" +#include "AP-invocation-identifier.h" +#include "AE-invocation-identifier.h" +#include "ACSE-requirements.h" +#include "Mechanism-name.h" +#include "Implementation-data.h" #include #ifdef __cplusplus @@ -31,6 +30,7 @@ typedef enum AARE_apdu__protocol_version { } e_AARE_apdu__protocol_version; /* Forward declarations */ +struct Associate_source_diagnostic; struct AP_title; struct AE_qualifier; struct Authentication_value; @@ -39,20 +39,20 @@ struct Association_information; /* AARE-apdu */ typedef struct AARE_apdu { - BIT_STRING_t *protocol_version; /* DEFAULT {version1} */ - Application_context_name_t application_context_name; - Associate_result_t result; - Associate_source_diagnostic_t result_source_diagnostic; - struct AP_title *responding_AP_title; /* OPTIONAL */ - struct AE_qualifier *responding_AE_qualifier; /* OPTIONAL */ - AP_invocation_identifier_t *responding_AP_invocation_identifier; /* OPTIONAL */ - AE_invocation_identifier_t *responding_AE_invocation_identifier; /* OPTIONAL */ - ACSE_requirements_t *responder_acse_requirements; /* OPTIONAL */ - Mechanism_name_t *mechanism_name; /* OPTIONAL */ - struct Authentication_value *responding_authentication_value; /* OPTIONAL */ - struct Application_context_name_list *application_context_name_list; /* OPTIONAL */ - Implementation_data_t *implementation_information; /* OPTIONAL */ - struct Association_information *user_information; /* OPTIONAL */ + BIT_STRING_t *protocol_version; /* DEFAULT {version1} */ + Application_context_name_t application_context_name; + Associate_result_t result; + struct Associate_source_diagnostic *result_source_diagnostic; + struct AP_title *responding_AP_title; /* OPTIONAL */ + struct AE_qualifier *responding_AE_qualifier; /* OPTIONAL */ + AP_invocation_identifier_t *responding_AP_invocation_identifier; /* OPTIONAL */ + AE_invocation_identifier_t *responding_AE_invocation_identifier; /* OPTIONAL */ + ACSE_requirements_t *responder_acse_requirements; /* OPTIONAL */ + Mechanism_name_t *mechanism_name; /* OPTIONAL */ + struct Authentication_value *responding_authentication_value; /* OPTIONAL */ + struct Application_context_name_list *application_context_name_list; /* OPTIONAL */ + Implementation_data_t *implementation_information; /* OPTIONAL */ + struct Association_information *user_information; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -68,11 +68,12 @@ extern asn_TYPE_member_t asn_MBR_AARE_apdu_1[14]; #endif /* Referred external types */ -#include -#include -#include -#include -#include +#include "Associate-source-diagnostic.h" +#include "AP-title.h" +#include "AE-qualifier.h" +#include "Authentication-value.h" +#include "Application-context-name-list.h" +#include "Association-information.h" #endif /* _AARE_apdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AARE-apdu_Py.c b/src/icspacket/proto/mms/_mms/AARE-apdu_Py.c index 3a6f8d0d..6316c2e3 100644 --- a/src/icspacket/proto/mms/_mms/AARE-apdu_Py.c +++ b/src/icspacket/proto/mms/_mms/AARE-apdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -48,9 +48,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(AARE_apdu, result, PyAsnAssociate_result_FromPython(valu PY_IMPL_SEQ_REF_ATTR_TOPY(AARE_apdu, result, Associate_result); PY_IMPL_SEQ_GETATTR(AARE_apdu, result); PY_IMPL_SEQ_SETATTR(AARE_apdu, result); -PY_IMPL_SEQ_ATTR_FROMPY(AARE_apdu, result_source_diagnostic, PyAsnAssociate_source_diagnostic_FromPython(value, (Associate_source_diagnostic_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AARE_apdu, result_source_diagnostic, Associate_source_diagnostic); -PY_IMPL_SEQ_GETATTR(AARE_apdu, result_source_diagnostic); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AARE_apdu, result_source_diagnostic); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AARE_apdu, result_source_diagnostic, Associate_source_diagnostic_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AARE_apdu, result_source_diagnostic, PyAsnAssociate_source_diagnostic_FromPython(value, (Associate_source_diagnostic_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AARE_apdu, result_source_diagnostic, Associate_source_diagnostic); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AARE_apdu, result_source_diagnostic); PY_IMPL_SEQ_SETATTR(AARE_apdu, result_source_diagnostic); PY_IMPL_SEQ_ATTR_GENERIC_FREE(AARE_apdu, responding_AP_title); PY_IMPL_SEQ_ATTR_GENERIC_NEW(AARE_apdu, responding_AP_title, AP_title_t); diff --git a/src/icspacket/proto/mms/_mms/AARE-apdu_Py.h b/src/icspacket/proto/mms/_mms/AARE-apdu_Py.h index 801f7159..3481d13f 100644 --- a/src/icspacket/proto/mms/_mms/AARE-apdu_Py.h +++ b/src/icspacket/proto/mms/_mms/AARE-apdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AARQ-apdu.c b/src/icspacket/proto/mms/_mms/AARQ-apdu.c index 5e769010..aa97df4e 100644 --- a/src/icspacket/proto/mms/_mms/AARQ-apdu.c +++ b/src/icspacket/proto/mms/_mms/AARQ-apdu.c @@ -1,9 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_version_constr_2 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_sender_acse_requirements_constr_13 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_AARQ_apdu_1[] = { { ATF_POINTER, 1, offsetof(struct AARQ_apdu, protocol_version), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), diff --git a/src/icspacket/proto/mms/_mms/AARQ-apdu.h b/src/icspacket/proto/mms/_mms/AARQ-apdu.h index dedbc421..80337a27 100644 --- a/src/icspacket/proto/mms/_mms/AARQ-apdu.h +++ b/src/icspacket/proto/mms/_mms/AARQ-apdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -11,12 +11,12 @@ /* Including external dependencies */ #include -#include -#include -#include -#include -#include -#include +#include "Application-context-name.h" +#include "AP-invocation-identifier.h" +#include "AE-invocation-identifier.h" +#include "ACSE-requirements.h" +#include "Mechanism-name.h" +#include "Implementation-data.h" #include #ifdef __cplusplus @@ -37,22 +37,22 @@ struct Association_information; /* AARQ-apdu */ typedef struct AARQ_apdu { - BIT_STRING_t *protocol_version; /* DEFAULT {version1} */ - Application_context_name_t application_context_name; - struct AP_title *called_AP_title; /* OPTIONAL */ - struct AE_qualifier *called_AE_qualifier; /* OPTIONAL */ - AP_invocation_identifier_t *called_AP_invocation_identifier; /* OPTIONAL */ - AE_invocation_identifier_t *called_AE_invocation_identifier; /* OPTIONAL */ - struct AP_title *calling_AP_title; /* OPTIONAL */ - struct AE_qualifier *calling_AE_qualifier; /* OPTIONAL */ - AP_invocation_identifier_t *calling_AP_invocation_identifier; /* OPTIONAL */ - AE_invocation_identifier_t *calling_AE_invocation_identifier; /* OPTIONAL */ - ACSE_requirements_t *sender_acse_requirements; /* OPTIONAL */ - Mechanism_name_t *mechanism_name; /* OPTIONAL */ - struct Authentication_value *calling_authentication_value; /* OPTIONAL */ - struct Application_context_name_list *application_context_name_list; /* OPTIONAL */ - Implementation_data_t *implementation_information; /* OPTIONAL */ - struct Association_information *user_information; /* OPTIONAL */ + BIT_STRING_t *protocol_version; /* DEFAULT {version1} */ + Application_context_name_t application_context_name; + struct AP_title *called_AP_title; /* OPTIONAL */ + struct AE_qualifier *called_AE_qualifier; /* OPTIONAL */ + AP_invocation_identifier_t *called_AP_invocation_identifier; /* OPTIONAL */ + AE_invocation_identifier_t *called_AE_invocation_identifier; /* OPTIONAL */ + struct AP_title *calling_AP_title; /* OPTIONAL */ + struct AE_qualifier *calling_AE_qualifier; /* OPTIONAL */ + AP_invocation_identifier_t *calling_AP_invocation_identifier; /* OPTIONAL */ + AE_invocation_identifier_t *calling_AE_invocation_identifier; /* OPTIONAL */ + ACSE_requirements_t *sender_acse_requirements; /* OPTIONAL */ + Mechanism_name_t *mechanism_name; /* OPTIONAL */ + struct Authentication_value *calling_authentication_value; /* OPTIONAL */ + struct Application_context_name_list *application_context_name_list; /* OPTIONAL */ + Implementation_data_t *implementation_information; /* OPTIONAL */ + struct Association_information *user_information; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -68,11 +68,11 @@ extern asn_TYPE_member_t asn_MBR_AARQ_apdu_1[16]; #endif /* Referred external types */ -#include -#include -#include -#include -#include +#include "AP-title.h" +#include "AE-qualifier.h" +#include "Authentication-value.h" +#include "Application-context-name-list.h" +#include "Association-information.h" #endif /* _AARQ_apdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.c b/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.c index 77123428..86523569 100644 --- a/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.c +++ b/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.h b/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.h index e1ff1403..3e7b7e89 100644 --- a/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.h +++ b/src/icspacket/proto/mms/_mms/AARQ-apdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-apdu.c b/src/icspacket/proto/mms/_mms/ABRT-apdu.c index aaa00c20..67b59109 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-apdu.c +++ b/src/icspacket/proto/mms/_mms/ABRT-apdu.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-apdu.h b/src/icspacket/proto/mms/_mms/ABRT-apdu.h index 5e2fb79d..4ddacf95 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-apdu.h +++ b/src/icspacket/proto/mms/_mms/ABRT-apdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "ABRT-source.h" +#include "ABRT-diagnostic.h" #include #ifdef __cplusplus @@ -23,9 +23,9 @@ struct Association_information; /* ABRT-apdu */ typedef struct ABRT_apdu { - ABRT_source_t abort_source; - ABRT_diagnostic_t *abort_diagnostic; /* OPTIONAL */ - struct Association_information *user_information; /* OPTIONAL */ + ABRT_source_t abort_source; + ABRT_diagnostic_t *abort_diagnostic; /* OPTIONAL */ + struct Association_information *user_information; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,7 @@ extern asn_TYPE_member_t asn_MBR_ABRT_apdu_1[3]; #endif /* Referred external types */ -#include +#include "Association-information.h" #endif /* _ABRT_apdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.c b/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.c index afae593d..ba758b2a 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.c +++ b/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.h b/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.h index 9cb9e8e3..75783016 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.h +++ b/src/icspacket/proto/mms/_mms/ABRT-apdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-diagnostic.c b/src/icspacket/proto/mms/_mms/ABRT-diagnostic.c index 9fd47fa3..44e86803 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-diagnostic.c +++ b/src/icspacket/proto/mms/_mms/ABRT-diagnostic.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -16,6 +16,30 @@ static const asn_INTEGER_enum_map_t asn_MAP_ABRT_diagnostic_value2enum_1[] = { { 5, 22, "authentication-failure" }, { 6, 23, "authentication-required" } }; +static int asn_validate_ABRT_diagnostic_1(const asn_TYPE_descriptor_t *td, + const void *sptr, + asn_app_constraint_failed_f *ctfailcb, + void* app_key) { + if(! sptr) { + ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + e_ABRT_diagnostic value = *(e_ABRT_diagnostic*)sptr; + switch(value) { + case ABRT_diagnostic_no_reason_given: + case ABRT_diagnostic_protocol_error: + case ABRT_diagnostic_authentication_mechanism_name_not_recognized: + case ABRT_diagnostic_authentication_mechanism_name_required: + case ABRT_diagnostic_authentication_failure: + case ABRT_diagnostic_authentication_required: + return 0; + } + ASN__CTFAIL(app_key, td, sptr, + "%s: %ld does not correspond to any enumeration value (%s:%d)", + td->name, (long)value, __FILE__, __LINE__); + return -1; +} static const unsigned int asn_MAP_ABRT_diagnostic_enum2value_1[] = { 4, /* authentication-failure(5) */ 2, /* authentication-mechanism-name-not-recognized(3) */ @@ -56,7 +80,7 @@ asn_TYPE_descriptor_t asn_DEF_ABRT_diagnostic = { #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ - NativeEnumerated_constraint + asn_validate_ABRT_diagnostic_1 }, 0, 0, /* Defined elsewhere */ &asn_SPC_ABRT_diagnostic_specs_1 /* Additional specs */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-diagnostic.h b/src/icspacket/proto/mms/_mms/ABRT-diagnostic.h index 1f10b111..8e1b2f10 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-diagnostic.h +++ b/src/icspacket/proto/mms/_mms/ABRT-diagnostic.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -27,7 +27,7 @@ typedef enum ABRT_diagnostic { } e_ABRT_diagnostic; /* ABRT-diagnostic */ -typedef long ABRT_diagnostic_t; +typedef long ABRT_diagnostic_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ABRT_diagnostic; diff --git a/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.c b/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.c index a89a0c7a..75fc09e3 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.c +++ b/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.h b/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.h index 9e2abc38..16e054af 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.h +++ b/src/icspacket/proto/mms/_mms/ABRT-diagnostic_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-source.c b/src/icspacket/proto/mms/_mms/ABRT-source.c index 605269ca..1a1d69b0 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-source.c +++ b/src/icspacket/proto/mms/_mms/ABRT-source.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-source.h b/src/icspacket/proto/mms/_mms/ABRT-source.h index 537138cf..8d320176 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-source.h +++ b/src/icspacket/proto/mms/_mms/ABRT-source.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -23,7 +23,7 @@ typedef enum ABRT_source { } e_ABRT_source; /* ABRT-source */ -typedef long ABRT_source_t; +typedef long ABRT_source_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ABRT_source; diff --git a/src/icspacket/proto/mms/_mms/ABRT-source_Py.c b/src/icspacket/proto/mms/_mms/ABRT-source_Py.c index dcb858ed..f8fb272d 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-source_Py.c +++ b/src/icspacket/proto/mms/_mms/ABRT-source_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ABRT-source_Py.h b/src/icspacket/proto/mms/_mms/ABRT-source_Py.h index 9a21a501..7fb38f05 100644 --- a/src/icspacket/proto/mms/_mms/ABRT-source_Py.h +++ b/src/icspacket/proto/mms/_mms/ABRT-source_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ACSE-apdu.c b/src/icspacket/proto/mms/_mms/ACSE-apdu.c index 04680102..c5bd8c57 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-apdu.c +++ b/src/icspacket/proto/mms/_mms/ACSE-apdu.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include static asn_TYPE_member_t asn_MBR_ACSE_apdu_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ACSE_apdu, choice.aarq), + { ATF_POINTER, 0, offsetof(struct ACSE_apdu, choice.aarq), (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, &asn_DEF_AARQ_apdu, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_ACSE_apdu_1[] = { 0, 0, /* No default value */ "aarq" }, - { ATF_NOFLAGS, 0, offsetof(struct ACSE_apdu, choice.aare), + { ATF_POINTER, 0, offsetof(struct ACSE_apdu, choice.aare), (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 0, &asn_DEF_AARE_apdu, @@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_ACSE_apdu_1[] = { 0, 0, /* No default value */ "aare" }, - { ATF_NOFLAGS, 0, offsetof(struct ACSE_apdu, choice.rlrq), + { ATF_POINTER, 0, offsetof(struct ACSE_apdu, choice.rlrq), (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 0, &asn_DEF_RLRQ_apdu, @@ -65,7 +65,7 @@ static asn_TYPE_member_t asn_MBR_ACSE_apdu_1[] = { 0, 0, /* No default value */ "rlrq" }, - { ATF_NOFLAGS, 0, offsetof(struct ACSE_apdu, choice.rlre), + { ATF_POINTER, 0, offsetof(struct ACSE_apdu, choice.rlre), (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 0, &asn_DEF_RLRE_apdu, @@ -85,7 +85,7 @@ static asn_TYPE_member_t asn_MBR_ACSE_apdu_1[] = { 0, 0, /* No default value */ "rlre" }, - { ATF_NOFLAGS, 0, offsetof(struct ACSE_apdu, choice.abrt), + { ATF_POINTER, 0, offsetof(struct ACSE_apdu, choice.abrt), (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 0, &asn_DEF_ABRT_apdu, diff --git a/src/icspacket/proto/mms/_mms/ACSE-apdu.h b/src/icspacket/proto/mms/_mms/ACSE-apdu.h index 87a231b9..07f55a9f 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-apdu.h +++ b/src/icspacket/proto/mms/_mms/ACSE-apdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,11 +10,6 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include #include #ifdef __cplusplus @@ -31,15 +26,22 @@ typedef enum ACSE_apdu_PR { ACSE_apdu_PR_abrt } ACSE_apdu_PR; +/* Forward declarations */ +struct AARQ_apdu; +struct AARE_apdu; +struct RLRQ_apdu; +struct RLRE_apdu; +struct ABRT_apdu; + /* ACSE-apdu */ typedef struct ACSE_apdu { ACSE_apdu_PR present; union ACSE_apdu_u { - AARQ_apdu_t aarq; - AARE_apdu_t aare; - RLRQ_apdu_t rlrq; - RLRE_apdu_t rlre; - ABRT_apdu_t abrt; + struct AARQ_apdu *aarq; + struct AARE_apdu *aare; + struct RLRQ_apdu *rlrq; + struct RLRE_apdu *rlre; + struct ABRT_apdu *abrt; } choice; /* Context for parsing across buffer boundaries */ @@ -53,5 +55,12 @@ extern asn_TYPE_descriptor_t asn_DEF_ACSE_apdu; } #endif +/* Referred external types */ +#include "AARQ-apdu.h" +#include "AARE-apdu.h" +#include "RLRQ-apdu.h" +#include "RLRE-apdu.h" +#include "ABRT-apdu.h" + #endif /* _ACSE_apdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.c b/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.c index 7dad15ba..56f63d34 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.c +++ b/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.c @@ -1,29 +1,29 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, aarq, aarq,PyAsnAARQ_apdu_FromPython(value, &dst->choice.aarq)); -PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, aarq, PyCompatAsnType_FromParent(&PyAsnAARQ_apdu_Type, parent, (void *)&src->choice.aarq)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, aarq, aarq, AARQ_apdu,PyAsnAARQ_apdu_FromPython(value, dst->choice.aarq)); +PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, aarq, PyCompatAsnType_FromParent(&PyAsnAARQ_apdu_Type, parent, (void *)src->choice.aarq)); PY_IMPL_CHOICE_GETATTR(ACSE_apdu, ACSE_apdu, aarq, aarq); PY_IMPL_CHOICE_SETATTR(ACSE_apdu, ACSE_apdu, aarq, aarq); -PY_IMPL_CHOICE_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, aare, aare,PyAsnAARE_apdu_FromPython(value, &dst->choice.aare)); -PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, aare, PyCompatAsnType_FromParent(&PyAsnAARE_apdu_Type, parent, (void *)&src->choice.aare)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, aare, aare, AARE_apdu,PyAsnAARE_apdu_FromPython(value, dst->choice.aare)); +PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, aare, PyCompatAsnType_FromParent(&PyAsnAARE_apdu_Type, parent, (void *)src->choice.aare)); PY_IMPL_CHOICE_GETATTR(ACSE_apdu, ACSE_apdu, aare, aare); PY_IMPL_CHOICE_SETATTR(ACSE_apdu, ACSE_apdu, aare, aare); -PY_IMPL_CHOICE_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, rlrq, rlrq,PyAsnRLRQ_apdu_FromPython(value, &dst->choice.rlrq)); -PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, rlrq, PyCompatAsnType_FromParent(&PyAsnRLRQ_apdu_Type, parent, (void *)&src->choice.rlrq)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, rlrq, rlrq, RLRQ_apdu,PyAsnRLRQ_apdu_FromPython(value, dst->choice.rlrq)); +PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, rlrq, PyCompatAsnType_FromParent(&PyAsnRLRQ_apdu_Type, parent, (void *)src->choice.rlrq)); PY_IMPL_CHOICE_GETATTR(ACSE_apdu, ACSE_apdu, rlrq, rlrq); PY_IMPL_CHOICE_SETATTR(ACSE_apdu, ACSE_apdu, rlrq, rlrq); -PY_IMPL_CHOICE_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, rlre, rlre,PyAsnRLRE_apdu_FromPython(value, &dst->choice.rlre)); -PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, rlre, PyCompatAsnType_FromParent(&PyAsnRLRE_apdu_Type, parent, (void *)&src->choice.rlre)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, rlre, rlre, RLRE_apdu,PyAsnRLRE_apdu_FromPython(value, dst->choice.rlre)); +PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, rlre, PyCompatAsnType_FromParent(&PyAsnRLRE_apdu_Type, parent, (void *)src->choice.rlre)); PY_IMPL_CHOICE_GETATTR(ACSE_apdu, ACSE_apdu, rlre, rlre); PY_IMPL_CHOICE_SETATTR(ACSE_apdu, ACSE_apdu, rlre, rlre); -PY_IMPL_CHOICE_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, abrt, abrt,PyAsnABRT_apdu_FromPython(value, &dst->choice.abrt)); -PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, abrt, PyCompatAsnType_FromParent(&PyAsnABRT_apdu_Type, parent, (void *)&src->choice.abrt)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ACSE_apdu, ACSE_apdu, abrt, abrt, ABRT_apdu,PyAsnABRT_apdu_FromPython(value, dst->choice.abrt)); +PY_IMPL_CHOICE_ATTR_TOPY(ACSE_apdu, abrt, PyCompatAsnType_FromParent(&PyAsnABRT_apdu_Type, parent, (void *)src->choice.abrt)); PY_IMPL_CHOICE_GETATTR(ACSE_apdu, ACSE_apdu, abrt, abrt); PY_IMPL_CHOICE_SETATTR(ACSE_apdu, ACSE_apdu, abrt, abrt); PY_IMPL_GENERIC_DEALLOC(ACSE_apdu); diff --git a/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.h b/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.h index 0e012917..2fbae2c6 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.h +++ b/src/icspacket/proto/mms/_mms/ACSE-apdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ACSE-requirements.c b/src/icspacket/proto/mms/_mms/ACSE-requirements.c index 111ba658..d35e39f2 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-requirements.c +++ b/src/icspacket/proto/mms/_mms/ACSE-requirements.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_ACSE_requirements_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_ACSE_requirements_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_ACSE_requirements_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/ACSE-requirements.h b/src/icspacket/proto/mms/_mms/ACSE-requirements.h index b5dba2d8..513d042d 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-requirements.h +++ b/src/icspacket/proto/mms/_mms/ACSE-requirements.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -23,9 +23,10 @@ typedef enum ACSE_requirements { } e_ACSE_requirements; /* ACSE-requirements */ -typedef BIT_STRING_t ACSE_requirements_t; +typedef BIT_STRING_t ACSE_requirements_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_ACSE_requirements_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ACSE_requirements; asn_struct_free_f ACSE_requirements_free; asn_struct_print_f ACSE_requirements_print; diff --git a/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.c b/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.c index 9937ef71..07335c81 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.c +++ b/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.h b/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.h index 6f79705f..715f47bf 100644 --- a/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.h +++ b/src/icspacket/proto/mms/_mms/ACSE-requirements_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-invocation-identifier.c b/src/icspacket/proto/mms/_mms/AE-invocation-identifier.c index fc9d961d..09169be4 100644 --- a/src/icspacket/proto/mms/_mms/AE-invocation-identifier.c +++ b/src/icspacket/proto/mms/_mms/AE-invocation-identifier.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-invocation-identifier.h b/src/icspacket/proto/mms/_mms/AE-invocation-identifier.h index 3a176738..c5403841 100644 --- a/src/icspacket/proto/mms/_mms/AE-invocation-identifier.h +++ b/src/icspacket/proto/mms/_mms/AE-invocation-identifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AE-invocation-identifier */ -typedef long AE_invocation_identifier_t; +typedef long AE_invocation_identifier_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AE_invocation_identifier; diff --git a/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.c b/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.c index 12b5b739..7084077f 100644 --- a/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.h b/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.h index eed5ea46..aa627ab4 100644 --- a/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-invocation-identifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form1.c b/src/icspacket/proto/mms/_mms/AE-qualifier-form1.c index 3f3e62cf..104b6071 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form1.c +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form1.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form1.h b/src/icspacket/proto/mms/_mms/AE-qualifier-form1.h index 41c67564..3ad628a6 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form1.h +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form1.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "RelativeDistinguishedName.h" #ifdef __cplusplus extern "C" { #endif /* AE-qualifier-form1 */ -typedef RelativeDistinguishedName_t AE_qualifier_form1_t; +typedef RelativeDistinguishedName_t AE_qualifier_form1_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AE_qualifier_form1; diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.c b/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.c index d6d40611..4a16f833 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.h b/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.h index aaff76c8..e6669154 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form1_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form2.c b/src/icspacket/proto/mms/_mms/AE-qualifier-form2.c index 5b605521..404418de 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form2.c +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form2.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form2.h b/src/icspacket/proto/mms/_mms/AE-qualifier-form2.h index 6a567509..82173b6b 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form2.h +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form2.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AE-qualifier-form2 */ -typedef long AE_qualifier_form2_t; +typedef long AE_qualifier_form2_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AE_qualifier_form2; diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.c b/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.c index 7c2f0c26..ea8b2ee7 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.h b/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.h index 49004103..74a1ca9d 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-qualifier-form2_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier.c b/src/icspacket/proto/mms/_mms/AE-qualifier.c index 53fa8470..cee20d3f 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier.c +++ b/src/icspacket/proto/mms/_mms/AE-qualifier.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include asn_TYPE_member_t asn_MBR_AE_qualifier_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AE_qualifier, choice.ae_qualifier_form1), + { ATF_POINTER, 0, offsetof(struct AE_qualifier, choice.ae_qualifier_form1), (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, &asn_DEF_AE_qualifier_form1, diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier.h b/src/icspacket/proto/mms/_mms/AE-qualifier.h index adc5d147..17b93e5d 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier.h +++ b/src/icspacket/proto/mms/_mms/AE-qualifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "AE-qualifier-form2.h" #include #ifdef __cplusplus @@ -25,12 +24,16 @@ typedef enum AE_qualifier_PR { AE_qualifier_PR_ae_qualifier_form2 } AE_qualifier_PR; +/* Forward declarations */ +struct AE_qualifier_form1; +struct RelativeDistinguishedName; + /* AE-qualifier */ typedef struct AE_qualifier { AE_qualifier_PR present; union AE_qualifier_u { - AE_qualifier_form1_t ae_qualifier_form1; - AE_qualifier_form2_t ae_qualifier_form2; + struct RelativeDistinguishedName *ae_qualifier_form1; + AE_qualifier_form2_t ae_qualifier_form2; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +49,8 @@ extern asn_TYPE_member_t asn_MBR_AE_qualifier_1[2]; } #endif +/* Referred external types */ +#include "AE-qualifier-form1.h" + #endif /* _AE_qualifier_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier_Py.c b/src/icspacket/proto/mms/_mms/AE-qualifier_Py.c index d95c812a..ddce93e6 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-qualifier_Py.c @@ -1,13 +1,13 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(AE_qualifier, AE_qualifier, ae_qualifier_form1, ae_qualifier_form1,PyAsnAE_qualifier_form1_FromPython(value, &dst->choice.ae_qualifier_form1)); -PY_IMPL_CHOICE_ATTR_TOPY(AE_qualifier, ae_qualifier_form1, PyCompatAsnType_FromParent(&PyAsnAE_qualifier_form1_Type, parent, (void *)&src->choice.ae_qualifier_form1)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AE_qualifier, AE_qualifier, ae_qualifier_form1, ae_qualifier_form1, AE_qualifier_form1,PyAsnAE_qualifier_form1_FromPython(value, dst->choice.ae_qualifier_form1)); +PY_IMPL_CHOICE_ATTR_TOPY(AE_qualifier, ae_qualifier_form1, PyCompatAsnType_FromParent(&PyAsnAE_qualifier_form1_Type, parent, (void *)src->choice.ae_qualifier_form1)); PY_IMPL_CHOICE_GETATTR(AE_qualifier, AE_qualifier, ae_qualifier_form1, ae_qualifier_form1); PY_IMPL_CHOICE_SETATTR(AE_qualifier, AE_qualifier, ae_qualifier_form1, ae_qualifier_form1); PY_IMPL_CHOICE_ATTR_FROMPY(AE_qualifier, AE_qualifier, ae_qualifier_form2, ae_qualifier_form2,PyAsnAE_qualifier_form2_FromPython(value, &dst->choice.ae_qualifier_form2)); diff --git a/src/icspacket/proto/mms/_mms/AE-qualifier_Py.h b/src/icspacket/proto/mms/_mms/AE-qualifier_Py.h index c9a94ba7..c3c90393 100644 --- a/src/icspacket/proto/mms/_mms/AE-qualifier_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-qualifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title-form1.c b/src/icspacket/proto/mms/_mms/AE-title-form1.c index 32711d9b..098acf13 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form1.c +++ b/src/icspacket/proto/mms/_mms/AE-title-form1.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title-form1.h b/src/icspacket/proto/mms/_mms/AE-title-form1.h index fa3951be..3b507849 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form1.h +++ b/src/icspacket/proto/mms/_mms/AE-title-form1.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Name.h" #ifdef __cplusplus extern "C" { #endif /* AE-title-form1 */ -typedef Name_t AE_title_form1_t; +typedef Name_t AE_title_form1_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AE_title_form1; diff --git a/src/icspacket/proto/mms/_mms/AE-title-form1_Py.c b/src/icspacket/proto/mms/_mms/AE-title-form1_Py.c index e4b5e1f9..95a510ce 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form1_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-title-form1_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title-form1_Py.h b/src/icspacket/proto/mms/_mms/AE-title-form1_Py.h index 02b2e31e..40db290b 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form1_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-title-form1_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title-form2.c b/src/icspacket/proto/mms/_mms/AE-title-form2.c index dc1254df..436726c0 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form2.c +++ b/src/icspacket/proto/mms/_mms/AE-title-form2.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title-form2.h b/src/icspacket/proto/mms/_mms/AE-title-form2.h index b98740ac..cb1296eb 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form2.h +++ b/src/icspacket/proto/mms/_mms/AE-title-form2.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AE-title-form2 */ -typedef OBJECT_IDENTIFIER_t AE_title_form2_t; +typedef OBJECT_IDENTIFIER_t AE_title_form2_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AE_title_form2; diff --git a/src/icspacket/proto/mms/_mms/AE-title-form2_Py.c b/src/icspacket/proto/mms/_mms/AE-title-form2_Py.c index a13cc860..032f7646 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form2_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-title-form2_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title-form2_Py.h b/src/icspacket/proto/mms/_mms/AE-title-form2_Py.h index 6276222f..074f3a98 100644 --- a/src/icspacket/proto/mms/_mms/AE-title-form2_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-title-form2_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AE-title.c b/src/icspacket/proto/mms/_mms/AE-title.c index 36b59691..8aebf13e 100644 --- a/src/icspacket/proto/mms/_mms/AE-title.c +++ b/src/icspacket/proto/mms/_mms/AE-title.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include static asn_TYPE_member_t asn_MBR_AE_title_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AE_title, choice.ae_title_form1), + { ATF_POINTER, 0, offsetof(struct AE_title, choice.ae_title_form1), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_AE_title_form1, diff --git a/src/icspacket/proto/mms/_mms/AE-title.h b/src/icspacket/proto/mms/_mms/AE-title.h index f2652516..5e7e2386 100644 --- a/src/icspacket/proto/mms/_mms/AE-title.h +++ b/src/icspacket/proto/mms/_mms/AE-title.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "AE-title-form2.h" #include #ifdef __cplusplus @@ -25,12 +24,16 @@ typedef enum AE_title_PR { AE_title_PR_ae_title_form2 } AE_title_PR; +/* Forward declarations */ +struct AE_title_form1; +struct Name; + /* AE-title */ typedef struct AE_title { AE_title_PR present; union AE_title_u { - AE_title_form1_t ae_title_form1; - AE_title_form2_t ae_title_form2; + struct Name *ae_title_form1; + AE_title_form2_t ae_title_form2; } choice; /* Context for parsing across buffer boundaries */ @@ -44,5 +47,8 @@ extern asn_TYPE_descriptor_t asn_DEF_AE_title; } #endif +/* Referred external types */ +#include "AE-title-form1.h" + #endif /* _AE_title_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AE-title_Py.c b/src/icspacket/proto/mms/_mms/AE-title_Py.c index 1b2512f4..148cf207 100644 --- a/src/icspacket/proto/mms/_mms/AE-title_Py.c +++ b/src/icspacket/proto/mms/_mms/AE-title_Py.c @@ -1,13 +1,13 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(AE_title, AE_title, ae_title_form1, ae_title_form1,PyAsnAE_title_form1_FromPython(value, &dst->choice.ae_title_form1)); -PY_IMPL_CHOICE_ATTR_TOPY(AE_title, ae_title_form1, PyCompatAsnType_FromParent(&PyAsnAE_title_form1_Type, parent, (void *)&src->choice.ae_title_form1)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AE_title, AE_title, ae_title_form1, ae_title_form1, AE_title_form1,PyAsnAE_title_form1_FromPython(value, dst->choice.ae_title_form1)); +PY_IMPL_CHOICE_ATTR_TOPY(AE_title, ae_title_form1, PyCompatAsnType_FromParent(&PyAsnAE_title_form1_Type, parent, (void *)src->choice.ae_title_form1)); PY_IMPL_CHOICE_GETATTR(AE_title, AE_title, ae_title_form1, ae_title_form1); PY_IMPL_CHOICE_SETATTR(AE_title, AE_title, ae_title_form1, ae_title_form1); PY_IMPL_CHOICE_ATTR_FROMPY(AE_title, AE_title, ae_title_form2, ae_title_form2,PyAsnAE_title_form2_FromPython(value, &dst->choice.ae_title_form2)); diff --git a/src/icspacket/proto/mms/_mms/AE-title_Py.h b/src/icspacket/proto/mms/_mms/AE-title_Py.h index 128cb9d5..6fc47b0d 100644 --- a/src/icspacket/proto/mms/_mms/AE-title_Py.h +++ b/src/icspacket/proto/mms/_mms/AE-title_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-invocation-identifier.c b/src/icspacket/proto/mms/_mms/AP-invocation-identifier.c index ee624d8b..57e5d607 100644 --- a/src/icspacket/proto/mms/_mms/AP-invocation-identifier.c +++ b/src/icspacket/proto/mms/_mms/AP-invocation-identifier.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-invocation-identifier.h b/src/icspacket/proto/mms/_mms/AP-invocation-identifier.h index cee7ec96..8989da7f 100644 --- a/src/icspacket/proto/mms/_mms/AP-invocation-identifier.h +++ b/src/icspacket/proto/mms/_mms/AP-invocation-identifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AP-invocation-identifier */ -typedef long AP_invocation_identifier_t; +typedef long AP_invocation_identifier_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AP_invocation_identifier; diff --git a/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.c b/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.c index 1a5c58ce..3866d089 100644 --- a/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.c +++ b/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.h b/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.h index 579c124c..d5370030 100644 --- a/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.h +++ b/src/icspacket/proto/mms/_mms/AP-invocation-identifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title-form1.c b/src/icspacket/proto/mms/_mms/AP-title-form1.c index dd7b1acb..914302e2 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form1.c +++ b/src/icspacket/proto/mms/_mms/AP-title-form1.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title-form1.h b/src/icspacket/proto/mms/_mms/AP-title-form1.h index 1086e29b..817eb9cc 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form1.h +++ b/src/icspacket/proto/mms/_mms/AP-title-form1.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Name.h" #ifdef __cplusplus extern "C" { #endif /* AP-title-form1 */ -typedef Name_t AP_title_form1_t; +typedef Name_t AP_title_form1_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AP_title_form1; diff --git a/src/icspacket/proto/mms/_mms/AP-title-form1_Py.c b/src/icspacket/proto/mms/_mms/AP-title-form1_Py.c index 5c7b4a01..3f5be844 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form1_Py.c +++ b/src/icspacket/proto/mms/_mms/AP-title-form1_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title-form1_Py.h b/src/icspacket/proto/mms/_mms/AP-title-form1_Py.h index 6f155c27..41733ba2 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form1_Py.h +++ b/src/icspacket/proto/mms/_mms/AP-title-form1_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title-form2.c b/src/icspacket/proto/mms/_mms/AP-title-form2.c index 6eec9775..491a4e54 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form2.c +++ b/src/icspacket/proto/mms/_mms/AP-title-form2.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title-form2.h b/src/icspacket/proto/mms/_mms/AP-title-form2.h index 9f15c1a0..9b7d24bb 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form2.h +++ b/src/icspacket/proto/mms/_mms/AP-title-form2.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AP-title-form2 */ -typedef OBJECT_IDENTIFIER_t AP_title_form2_t; +typedef OBJECT_IDENTIFIER_t AP_title_form2_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AP_title_form2; diff --git a/src/icspacket/proto/mms/_mms/AP-title-form2_Py.c b/src/icspacket/proto/mms/_mms/AP-title-form2_Py.c index abd76759..1637cdf9 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form2_Py.c +++ b/src/icspacket/proto/mms/_mms/AP-title-form2_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title-form2_Py.h b/src/icspacket/proto/mms/_mms/AP-title-form2_Py.h index ae230ecf..a5a7c34d 100644 --- a/src/icspacket/proto/mms/_mms/AP-title-form2_Py.h +++ b/src/icspacket/proto/mms/_mms/AP-title-form2_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AP-title.c b/src/icspacket/proto/mms/_mms/AP-title.c index f609874b..0299967e 100644 --- a/src/icspacket/proto/mms/_mms/AP-title.c +++ b/src/icspacket/proto/mms/_mms/AP-title.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include asn_TYPE_member_t asn_MBR_AP_title_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AP_title, choice.ap_title_form1), + { ATF_POINTER, 0, offsetof(struct AP_title, choice.ap_title_form1), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_AP_title_form1, diff --git a/src/icspacket/proto/mms/_mms/AP-title.h b/src/icspacket/proto/mms/_mms/AP-title.h index 3064322b..fa298772 100644 --- a/src/icspacket/proto/mms/_mms/AP-title.h +++ b/src/icspacket/proto/mms/_mms/AP-title.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "AP-title-form2.h" #include #ifdef __cplusplus @@ -25,12 +24,16 @@ typedef enum AP_title_PR { AP_title_PR_ap_title_form2 } AP_title_PR; +/* Forward declarations */ +struct AP_title_form1; +struct Name; + /* AP-title */ typedef struct AP_title { AP_title_PR present; union AP_title_u { - AP_title_form1_t ap_title_form1; - AP_title_form2_t ap_title_form2; + struct Name *ap_title_form1; + AP_title_form2_t ap_title_form2; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +49,8 @@ extern asn_TYPE_member_t asn_MBR_AP_title_1[2]; } #endif +/* Referred external types */ +#include "AP-title-form1.h" + #endif /* _AP_title_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AP-title_Py.c b/src/icspacket/proto/mms/_mms/AP-title_Py.c index 970eda3c..5e4a8a0b 100644 --- a/src/icspacket/proto/mms/_mms/AP-title_Py.c +++ b/src/icspacket/proto/mms/_mms/AP-title_Py.c @@ -1,13 +1,13 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(AP_title, AP_title, ap_title_form1, ap_title_form1,PyAsnAP_title_form1_FromPython(value, &dst->choice.ap_title_form1)); -PY_IMPL_CHOICE_ATTR_TOPY(AP_title, ap_title_form1, PyCompatAsnType_FromParent(&PyAsnAP_title_form1_Type, parent, (void *)&src->choice.ap_title_form1)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AP_title, AP_title, ap_title_form1, ap_title_form1, AP_title_form1,PyAsnAP_title_form1_FromPython(value, dst->choice.ap_title_form1)); +PY_IMPL_CHOICE_ATTR_TOPY(AP_title, ap_title_form1, PyCompatAsnType_FromParent(&PyAsnAP_title_form1_Type, parent, (void *)src->choice.ap_title_form1)); PY_IMPL_CHOICE_GETATTR(AP_title, AP_title, ap_title_form1, ap_title_form1); PY_IMPL_CHOICE_SETATTR(AP_title, AP_title, ap_title_form1, ap_title_form1); PY_IMPL_CHOICE_ATTR_FROMPY(AP_title, AP_title, ap_title_form2, ap_title_form2,PyAsnAP_title_form2_FromPython(value, &dst->choice.ap_title_form2)); diff --git a/src/icspacket/proto/mms/_mms/AP-title_Py.h b/src/icspacket/proto/mms/_mms/AP-title_Py.h index 4f6044e4..5067f1b3 100644 --- a/src/icspacket/proto/mms/_mms/AP-title_Py.h +++ b/src/icspacket/proto/mms/_mms/AP-title_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AccessCondition.c b/src/icspacket/proto/mms/_mms/AccessCondition.c index 05382603..d3f220c0 100644 --- a/src/icspacket/proto/mms/_mms/AccessCondition.c +++ b/src/icspacket/proto/mms/_mms/AccessCondition.c @@ -1,10 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_user_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_user __attribute__((weak, alias("asn_DEF_user_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_user_4; +static asn_TYPE_descriptor_t asn_DEF_user; +__attribute__((constructor)) static void asn_DEF_user_4_alias_init(void) { + asn_DEF_user = asn_DEF_user_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_joint __attribute__((weak, alias("asn_DEF_joint_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_joint_8; +static asn_TYPE_descriptor_t asn_DEF_joint; +__attribute__((constructor)) static void asn_DEF_joint_8_alias_init(void) { + asn_DEF_joint = asn_DEF_joint_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_alternate __attribute__((weak, alias("asn_DEF_alternate_10"))); +#else +static asn_TYPE_descriptor_t asn_DEF_alternate_10; +static asn_TYPE_descriptor_t asn_DEF_alternate; +__attribute__((constructor)) static void asn_DEF_alternate_10_alias_init(void) { + asn_DEF_alternate = asn_DEF_alternate_10; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AccessCondition__user_4[] = { { ATF_NOFLAGS, 0, offsetof(struct AccessCondition__user, choice.association), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -81,12 +114,12 @@ asn_TYPE_descriptor_t asn_DEF_user_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_user_4, + asn_MBR_AccessCondition__user_4, 2, /* Elements count */ &asn_SPC_user_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_joint_8[] = { +static asn_TYPE_member_t asn_MBR_AccessCondition__joint_8[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -105,7 +138,7 @@ static asn_TYPE_member_t asn_MBR_joint_8[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_joint_tags_8[] = { @@ -140,12 +173,12 @@ asn_TYPE_descriptor_t asn_DEF_joint_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_joint_8, + asn_MBR_AccessCondition__joint_8, 1, /* Single element */ &asn_SPC_joint_specs_8 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_alternate_10[] = { +static asn_TYPE_member_t asn_MBR_AccessCondition__alternate_10[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -164,7 +197,7 @@ static asn_TYPE_member_t asn_MBR_alternate_10[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_alternate_tags_10[] = { @@ -199,7 +232,7 @@ asn_TYPE_descriptor_t asn_DEF_alternate_10 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_alternate_10, + asn_MBR_AccessCondition__alternate_10, 1, /* Single element */ &asn_SPC_alternate_specs_10 /* Additional specs */ }; @@ -265,7 +298,7 @@ asn_TYPE_member_t asn_MBR_AccessCondition_1[] = { 0, 0, /* No default value */ "user" }, - { ATF_NOFLAGS, 0, offsetof(struct AccessCondition, choice.password), + { ATF_POINTER, 0, offsetof(struct AccessCondition, choice.password), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_Authentication_value, diff --git a/src/icspacket/proto/mms/_mms/AccessCondition.h b/src/icspacket/proto/mms/_mms/AccessCondition.h index 15a5b02f..6f14e24f 100644 --- a/src/icspacket/proto/mms/_mms/AccessCondition.h +++ b/src/icspacket/proto/mms/_mms/AccessCondition.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,9 +11,8 @@ /* Including external dependencies */ #include -#include -#include -#include +#include "Identifier.h" +#include "ApplicationReference.h" #include #include #include @@ -39,25 +38,26 @@ typedef enum AccessCondition__user_PR { } AccessCondition__user_PR; /* Forward declarations */ +struct Authentication_value; struct AccessCondition; /* AccessCondition */ typedef struct AccessCondition { AccessCondition_PR present; union AccessCondition_u { - NULL_t never; - Identifier_t semaphore; + NULL_t never; + Identifier_t semaphore; struct AccessCondition__user { AccessCondition__user_PR present; union AccessCondition__user_u { - ApplicationReference_t association; - NULL_t none; + ApplicationReference_t association; + NULL_t none; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } user; - Authentication_value_t password; + struct Authentication_value *password; struct AccessCondition__joint { A_SEQUENCE_OF(struct AccessCondition) list; @@ -86,7 +86,8 @@ extern asn_TYPE_member_t asn_MBR_AccessCondition_1[6]; #endif /* Referred external types */ -#include +#include "Authentication-value.h" +#include "AccessCondition.h" #endif /* _AccessCondition_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AccessCondition_Py.c b/src/icspacket/proto/mms/_mms/AccessCondition_Py.c index 38c0b76f..5d385532 100644 --- a/src/icspacket/proto/mms/_mms/AccessCondition_Py.c +++ b/src/icspacket/proto/mms/_mms/AccessCondition_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -42,7 +42,7 @@ PY_IMPL_CHOICE_FROMPY(AccessCondition_user_ANON_4, asn_DEF_AccessCondition.eleme PY_IMPL_CHOICE_INIT_GENERIC(AccessCondition_user_ANON_4, AccessCondition__user); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AccessCondition, user, &src->choice.user, AccessCondition_user_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(AccessCondition, user, &src->choice.user, AccessCondition_user_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(AccessCondition, AccessCondition, user, user, asn_DEF_AccessCondition); +PY_IMPL_CHOICE_GENERIC_SETATTR(AccessCondition, AccessCondition, user, user, *asn_DEF_AccessCondition.elements[2].type); PY_IMPL_CHOICE_GETATTR(AccessCondition, AccessCondition, user, user); PY_IMPL_SEQ_OF_ITEM_TOPY(AccessCondition_joint_ANON_8, AccessCondition_t, PyAsnAccessCondition_ToPython((AccessCondition_t *)src, parent)); PY_IMPL_SEQ_OF_ITEM_FROMPY(AccessCondition_joint_ANON_8, AccessCondition_t, PyAsnAccessCondition_FromPython(value, (AccessCondition_t *)target)); @@ -71,7 +71,7 @@ PY_IMPL_ENCODE_JER(AccessCondition_joint_ANON_8); PY_IMPL_GENERIC_IS_VALID(AccessCondition_joint_ANON_8); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AccessCondition, joint, &src->choice.joint, AccessCondition_joint_ANON_8); PY_IMPL_SEQ_ANON_ATTR_TOPY(AccessCondition, joint, &src->choice.joint, AccessCondition_joint_ANON_8); -PY_IMPL_CHOICE_GENERIC_SETATTR(AccessCondition, AccessCondition, joint, joint, asn_DEF_AccessCondition); +PY_IMPL_CHOICE_GENERIC_SETATTR(AccessCondition, AccessCondition, joint, joint, *asn_DEF_AccessCondition.elements[4].type); PY_IMPL_CHOICE_GETATTR(AccessCondition, AccessCondition, joint, joint); PY_IMPL_SEQ_OF_LEN(AccessCondition_joint_ANON_8); PY_IMPL_SEQ_OF_GETITEM(AccessCondition_joint_ANON_8); @@ -104,7 +104,7 @@ PY_IMPL_ENCODE_JER(AccessCondition_alternate_ANON_10); PY_IMPL_GENERIC_IS_VALID(AccessCondition_alternate_ANON_10); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AccessCondition, alternate, &src->choice.alternate, AccessCondition_alternate_ANON_10); PY_IMPL_SEQ_ANON_ATTR_TOPY(AccessCondition, alternate, &src->choice.alternate, AccessCondition_alternate_ANON_10); -PY_IMPL_CHOICE_GENERIC_SETATTR(AccessCondition, AccessCondition, alternate, alternate, asn_DEF_AccessCondition); +PY_IMPL_CHOICE_GENERIC_SETATTR(AccessCondition, AccessCondition, alternate, alternate, *asn_DEF_AccessCondition.elements[5].type); PY_IMPL_CHOICE_GETATTR(AccessCondition, AccessCondition, alternate, alternate); PY_IMPL_SEQ_OF_LEN(AccessCondition_alternate_ANON_10); PY_IMPL_SEQ_OF_GETITEM(AccessCondition_alternate_ANON_10); @@ -118,8 +118,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AccessCondition, AccessCondition, semaphore, semaphor PY_IMPL_CHOICE_ATTR_TOPY(AccessCondition, semaphore, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.semaphore)); PY_IMPL_CHOICE_GETATTR(AccessCondition, AccessCondition, semaphore, semaphore); PY_IMPL_CHOICE_SETATTR(AccessCondition, AccessCondition, semaphore, semaphore); -PY_IMPL_CHOICE_ATTR_FROMPY(AccessCondition, AccessCondition, password, password,PyAsnAuthentication_value_FromPython(value, &dst->choice.password)); -PY_IMPL_CHOICE_ATTR_TOPY(AccessCondition, password, PyCompatAsnType_FromParent(&PyAsnAuthentication_value_Type, parent, (void *)&src->choice.password)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AccessCondition, AccessCondition, password, password, Authentication_value,PyAsnAuthentication_value_FromPython(value, dst->choice.password)); +PY_IMPL_CHOICE_ATTR_TOPY(AccessCondition, password, PyCompatAsnType_FromParent(&PyAsnAuthentication_value_Type, parent, (void *)src->choice.password)); PY_IMPL_CHOICE_GETATTR(AccessCondition, AccessCondition, password, password); PY_IMPL_CHOICE_SETATTR(AccessCondition, AccessCondition, password, password); PY_IMPL_GENERIC_DEALLOC(AccessCondition); diff --git a/src/icspacket/proto/mms/_mms/AccessCondition_Py.h b/src/icspacket/proto/mms/_mms/AccessCondition_Py.h index a76c6ebe..bc5979f2 100644 --- a/src/icspacket/proto/mms/_mms/AccessCondition_Py.h +++ b/src/icspacket/proto/mms/_mms/AccessCondition_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,14 @@ #include #include #include +#include +#include #include +#include +#include +#include +#include +#include #include #include diff --git a/src/icspacket/proto/mms/_mms/AccessResult.c b/src/icspacket/proto/mms/_mms/AccessResult.c index 13503d35..aba4eea5 100644 --- a/src/icspacket/proto/mms/_mms/AccessResult.c +++ b/src/icspacket/proto/mms/_mms/AccessResult.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_AccessResult_1[] = { 0, 0, /* No default value */ "failure" }, - { ATF_NOFLAGS, 0, offsetof(struct AccessResult, choice.success), + { ATF_POINTER, 0, offsetof(struct AccessResult, choice.success), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_Data, diff --git a/src/icspacket/proto/mms/_mms/AccessResult.h b/src/icspacket/proto/mms/_mms/AccessResult.h index 03e453af..5aae500f 100644 --- a/src/icspacket/proto/mms/_mms/AccessResult.h +++ b/src/icspacket/proto/mms/_mms/AccessResult.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "DataAccessError.h" #include #ifdef __cplusplus @@ -25,12 +24,15 @@ typedef enum AccessResult_PR { AccessResult_PR_success } AccessResult_PR; +/* Forward declarations */ +struct Data; + /* AccessResult */ typedef struct AccessResult { AccessResult_PR present; union AccessResult_u { - DataAccessError_t failure; - Data_t success; + DataAccessError_t failure; + struct Data *success; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +48,8 @@ extern asn_TYPE_member_t asn_MBR_AccessResult_1[2]; } #endif +/* Referred external types */ +#include "Data.h" + #endif /* _AccessResult_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AccessResult_Py.c b/src/icspacket/proto/mms/_mms/AccessResult_Py.c index 929c6cbb..bcebe796 100644 --- a/src/icspacket/proto/mms/_mms/AccessResult_Py.c +++ b/src/icspacket/proto/mms/_mms/AccessResult_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AccessResult, AccessResult, failure, failure,PyAsnDat PY_IMPL_CHOICE_ATTR_TOPY(AccessResult, failure, PyCompatAsnType_FromParent(&PyAsnDataAccessError_Type, parent, (void *)&src->choice.failure)); PY_IMPL_CHOICE_GETATTR(AccessResult, AccessResult, failure, failure); PY_IMPL_CHOICE_SETATTR(AccessResult, AccessResult, failure, failure); -PY_IMPL_CHOICE_ATTR_FROMPY(AccessResult, AccessResult, success, success,PyAsnData_FromPython(value, &dst->choice.success)); -PY_IMPL_CHOICE_ATTR_TOPY(AccessResult, success, PyCompatAsnType_FromParent(&PyAsnData_Type, parent, (void *)&src->choice.success)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AccessResult, AccessResult, success, success, Data,PyAsnData_FromPython(value, dst->choice.success)); +PY_IMPL_CHOICE_ATTR_TOPY(AccessResult, success, PyCompatAsnType_FromParent(&PyAsnData_Type, parent, (void *)src->choice.success)); PY_IMPL_CHOICE_GETATTR(AccessResult, AccessResult, success, success); PY_IMPL_CHOICE_SETATTR(AccessResult, AccessResult, success, success); PY_IMPL_GENERIC_DEALLOC(AccessResult); diff --git a/src/icspacket/proto/mms/_mms/AccessResult_Py.h b/src/icspacket/proto/mms/_mms/AccessResult_Py.h index a93acd6f..50d31b4b 100644 --- a/src/icspacket/proto/mms/_mms/AccessResult_Py.h +++ b/src/icspacket/proto/mms/_mms/AccessResult_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.c b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.c index 3c1d2a06..574f1f10 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.c +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_AcknowledgeEventNotification_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AcknowledgeEventNotification_Request, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct AcknowledgeEventNotification_Request, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_AcknowledgeEventNotification_Request_1[] = { 0, 0, /* No default value */ "acknowledgedState" }, - { ATF_NOFLAGS, 0, offsetof(struct AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition), + { ATF_POINTER, 0, offsetof(struct AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_EventTime, diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.h b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.h index 49f7786f..e437262d 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.h +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,20 +10,22 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "EC-State.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; +struct EventTime; + /* AcknowledgeEventNotification-Request */ typedef struct AcknowledgeEventNotification_Request { - ObjectName_t eventEnrollmentName; - EC_State_t acknowledgedState; - EventTime_t timeOfAcknowledgedTransition; + struct ObjectName *eventEnrollmentName; + EC_State_t acknowledgedState; + struct EventTime *timeOfAcknowledgedTransition; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,5 +40,9 @@ extern asn_TYPE_member_t asn_MBR_AcknowledgeEventNotification_Request_1[3]; } #endif +/* Referred external types */ +#include "ObjectName.h" +#include "EventTime.h" + #endif /* _AcknowledgeEventNotification_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.c b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.c index 74664df3..3a416321 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.c @@ -1,22 +1,26 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AcknowledgeEventNotification_Request, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AcknowledgeEventNotification_Request, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(AcknowledgeEventNotification_Request, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AcknowledgeEventNotification_Request, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AcknowledgeEventNotification_Request, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AcknowledgeEventNotification_Request, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AcknowledgeEventNotification_Request, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AcknowledgeEventNotification_Request, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(AcknowledgeEventNotification_Request, eventEnrollmentName); PY_IMPL_SEQ_ATTR_FROMPY(AcknowledgeEventNotification_Request, acknowledgedState, PyAsnEC_State_FromPython(value, (EC_State_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(AcknowledgeEventNotification_Request, acknowledgedState, EC_State); PY_IMPL_SEQ_GETATTR(AcknowledgeEventNotification_Request, acknowledgedState); PY_IMPL_SEQ_SETATTR(AcknowledgeEventNotification_Request, acknowledgedState); -PY_IMPL_SEQ_ATTR_FROMPY(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition, PyAsnEventTime_FromPython(value, (EventTime_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition, EventTime); -PY_IMPL_SEQ_GETATTR(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition, EventTime_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition, PyAsnEventTime_FromPython(value, (EventTime_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition, EventTime); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition); PY_IMPL_SEQ_SETATTR(AcknowledgeEventNotification_Request, timeOfAcknowledgedTransition); PY_IMPL_GENERIC_DEALLOC(AcknowledgeEventNotification_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(AcknowledgeEventNotification_Request); diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.h b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.h index 41424c13..48d14bda 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.c b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.c index 806be274..f4ad2762 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.c +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.h b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.h index 03ea1ae0..2af47430 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.h +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AcknowledgeEventNotification-Response */ -typedef NULL_t AcknowledgeEventNotification_Response_t; +typedef NULL_t AcknowledgeEventNotification_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AcknowledgeEventNotification_Response; diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.c b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.c index 3ed74d23..d112a003 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.h b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.h index fe6bb4d8..09a9b24d 100644 --- a/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AcknowledgeEventNotification-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.c b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.c index 87f510d8..14ea9258 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.c +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.h b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.h index 26454e6c..58033627 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.h +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* AddEventConditionListReference-Error */ -typedef ObjectName_t AddEventConditionListReference_Error_t; +typedef ObjectName_t AddEventConditionListReference_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AddEventConditionListReference_Error; diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.c b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.c index c842ac39..44d5d42b 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.h b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.h index 25d16a91..3ae49d70 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.c b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.c index a9773e32..6264e393 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.c +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfEventConditionName_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName __attribute__((weak, alias("asn_DEF_listOfEventConditionName_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_3; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionName_3_alias_init(void) { + asn_DEF_listOfEventConditionName = asn_DEF_listOfEventConditionName_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName __attribute__((weak, alias("asn_DEF_listOfEventConditionListName_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_5; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionListName_5_alias_init(void) { + asn_DEF_listOfEventConditionListName = asn_DEF_listOfEventConditionListName_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AddEventConditionListReference_Request__listOfEventConditionName_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionName_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionName_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionName_3, + asn_MBR_AddEventConditionListReference_Request__listOfEventConditionName_3, 1, /* Single element */ &asn_SPC_listOfEventConditionName_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_5[] = { +static asn_TYPE_member_t asn_MBR_AddEventConditionListReference_Request__listOfEventConditionListName_5[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionListName_tags_5[] = { @@ -117,13 +139,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionListName_5, + asn_MBR_AddEventConditionListReference_Request__listOfEventConditionListName_5, 1, /* Single element */ &asn_SPC_listOfEventConditionListName_specs_5 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_AddEventConditionListReference_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AddEventConditionListReference_Request, eventConditionListName), + { ATF_POINTER, 0, offsetof(struct AddEventConditionListReference_Request, eventConditionListName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.h b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.h index e78fdcf9..3761509f 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.h +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -24,7 +23,7 @@ struct ObjectName; /* AddEventConditionListReference-Request */ typedef struct AddEventConditionListReference_Request { - ObjectName_t eventConditionListName; + struct ObjectName *eventConditionListName; struct AddEventConditionListReference_Request__listOfEventConditionName { A_SEQUENCE_OF(struct ObjectName) list; @@ -52,7 +51,7 @@ extern asn_TYPE_member_t asn_MBR_AddEventConditionListReference_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _AddEventConditionListReference_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.c b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.c index d62ea577..2225006e 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -72,9 +72,11 @@ PY_IMPL_SEQ_OF_LEN(AddEventConditionListReference_Request_listOfEventConditionLi PY_IMPL_SEQ_OF_GETITEM(AddEventConditionListReference_Request_listOfEventConditionListName_ANON_5); PY_IMPL_SEQ_OF_CLEAR(AddEventConditionListReference_Request_listOfEventConditionListName_ANON_5); PY_IMPL_SEQ_OF_EXTEND(AddEventConditionListReference_Request_listOfEventConditionListName_ANON_5); -PY_IMPL_SEQ_ATTR_FROMPY(AddEventConditionListReference_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AddEventConditionListReference_Request, eventConditionListName, ObjectName); -PY_IMPL_SEQ_GETATTR(AddEventConditionListReference_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AddEventConditionListReference_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AddEventConditionListReference_Request, eventConditionListName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AddEventConditionListReference_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AddEventConditionListReference_Request, eventConditionListName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AddEventConditionListReference_Request, eventConditionListName); PY_IMPL_SEQ_SETATTR(AddEventConditionListReference_Request, eventConditionListName); PY_IMPL_GENERIC_DEALLOC(AddEventConditionListReference_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(AddEventConditionListReference_Request); diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.h b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.h index 5ac33470..b5c32bcd 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.c b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.c index 38116376..50da629b 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.c +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.h b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.h index a1527ad9..93f2c312 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.h +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AddEventConditionListReference-Response */ -typedef NULL_t AddEventConditionListReference_Response_t; +typedef NULL_t AddEventConditionListReference_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AddEventConditionListReference_Response; diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.c b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.c index 452c313d..5f07a480 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.h b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.h index 4d0f80a8..8ec6f0b4 100644 --- a/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AddEventConditionListReference-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.c b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.c index fe5c948e..219e84f9 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.c +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_domains_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_domains __attribute__((weak, alias("asn_DEF_domains_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_domains_3; +static asn_TYPE_descriptor_t asn_DEF_domains; +__attribute__((constructor)) static void asn_DEF_domains_3_alias_init(void) { + asn_DEF_domains = asn_DEF_domains_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_programInvocations __attribute__((weak, alias("asn_DEF_programInvocations_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_programInvocations_5; +static asn_TYPE_descriptor_t asn_DEF_programInvocations; +__attribute__((constructor)) static void asn_DEF_programInvocations_5_alias_init(void) { + asn_DEF_programInvocations = asn_DEF_programInvocations_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AddToUnitControl_Request__domains_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_domains_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_domains_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_domains_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_domains_3, + asn_MBR_AddToUnitControl_Request__domains_3, 1, /* Single element */ &asn_SPC_domains_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_programInvocations_5[] = { +static asn_TYPE_member_t asn_MBR_AddToUnitControl_Request__programInvocations_5[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_programInvocations_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_programInvocations_tags_5[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_programInvocations_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_programInvocations_5, + asn_MBR_AddToUnitControl_Request__programInvocations_5, 1, /* Single element */ &asn_SPC_programInvocations_specs_5 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.h b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.h index e40b17cf..5334b08b 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.h +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include @@ -21,7 +21,7 @@ extern "C" { /* AddToUnitControl-Request */ typedef struct AddToUnitControl_Request { - Identifier_t unitControl; + Identifier_t unitControl; struct AddToUnitControl_Request__domains { A_SEQUENCE_OF(Identifier_t) list; diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.c b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.c index f0e3f92f..0d4375f1 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.h b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.h index 837d0b07..fe61f31a 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.c b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.c index 42f63a8b..20f03dbe 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.c +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.h b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.h index d6a55612..45fa938a 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.h +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AddToUnitControl-Response */ -typedef NULL_t AddToUnitControl_Response_t; +typedef NULL_t AddToUnitControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AddToUnitControl_Response; diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.c b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.c index d7d82301..ab776689 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.h b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.h index e80741ab..a7a9e715 100644 --- a/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AddToUnitControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.c b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.c index de573e59..48a57caf 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.c +++ b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_AdditionalCBBOptions_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_AdditionalCBBOptions_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_AdditionalCBBOptions_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.h b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.h index daa101f3..ac4ec66f 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.h +++ b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -24,9 +24,10 @@ typedef enum AdditionalCBBOptions { } e_AdditionalCBBOptions; /* AdditionalCBBOptions */ -typedef BIT_STRING_t AdditionalCBBOptions_t; +typedef BIT_STRING_t AdditionalCBBOptions_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_AdditionalCBBOptions_constr_1; extern asn_TYPE_descriptor_t asn_DEF_AdditionalCBBOptions; asn_struct_free_f AdditionalCBBOptions_free; asn_struct_print_f AdditionalCBBOptions_print; diff --git a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.c b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.c index b3636ec2..32a03663 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.c +++ b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.h b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.h index b0d3a1bf..f436ebd0 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.h +++ b/src/icspacket/proto/mms/_mms/AdditionalCBBOptions_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Error.c b/src/icspacket/proto/mms/_mms/AdditionalService-Error.c index cd9e2c6d..363e5c4a 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Error.c +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Error.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.defineEcl), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.defineEcl), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DefineEventConditionList_Error, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "defineEcl" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.addECLReference), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.addECLReference), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_AddEventConditionListReference_Error, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "addECLReference" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.removeECLReference), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.removeECLReference), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_RemoveEventConditionListReference_Error, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "removeECLReference" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.initiateUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.initiateUC), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_InitiateUnitControl_Error, @@ -85,7 +85,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "initiateUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.startUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.startUC), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_StartUnitControl_Error, @@ -105,7 +105,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "startUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.stopUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.stopUC), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_StopUnitControl_Error, @@ -125,7 +125,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "stopUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.deleteUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.deleteUC), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DeleteUnitControl_Error, @@ -145,7 +145,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[] = { 0, 0, /* No default value */ "deleteUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Error, choice.loadUCFromFile), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Error, choice.loadUCFromFile), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_LoadUnitControlFromFile_Error, diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Error.h b/src/icspacket/proto/mms/_mms/AdditionalService-Error.h index 34fdbc09..cce39616 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Error.h +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,6 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include #include #ifdef __cplusplus @@ -37,18 +29,29 @@ typedef enum AdditionalService_Error_PR { AdditionalService_Error_PR_loadUCFromFile } AdditionalService_Error_PR; +/* Forward declarations */ +struct DefineEventConditionList_Error; +struct AddEventConditionListReference_Error; +struct RemoveEventConditionListReference_Error; +struct InitiateUnitControl_Error; +struct StartUnitControl_Error; +struct StopUnitControl_Error; +struct DeleteUnitControl_Error; +struct LoadUnitControlFromFile_Error; +struct ObjectName; + /* AdditionalService-Error */ typedef struct AdditionalService_Error { AdditionalService_Error_PR present; union AdditionalService_Error_u { - DefineEventConditionList_Error_t defineEcl; - AddEventConditionListReference_Error_t addECLReference; - RemoveEventConditionListReference_Error_t removeECLReference; - InitiateUnitControl_Error_t initiateUC; - StartUnitControl_Error_t startUC; - StopUnitControl_Error_t stopUC; - DeleteUnitControl_Error_t deleteUC; - LoadUnitControlFromFile_Error_t loadUCFromFile; + struct ObjectName *defineEcl; + struct ObjectName *addECLReference; + struct RemoveEventConditionListReference_Error *removeECLReference; + struct InitiateUnitControl_Error *initiateUC; + struct StartUnitControl_Error *startUC; + struct StopUnitControl_Error *stopUC; + struct DeleteUnitControl_Error *deleteUC; + struct LoadUnitControlFromFile_Error *loadUCFromFile; } choice; /* Context for parsing across buffer boundaries */ @@ -64,5 +67,15 @@ extern asn_TYPE_member_t asn_MBR_AdditionalService_Error_1[8]; } #endif +/* Referred external types */ +#include "DefineEventConditionList-Error.h" +#include "AddEventConditionListReference-Error.h" +#include "RemoveEventConditionListReference-Error.h" +#include "InitiateUnitControl-Error.h" +#include "StartUnitControl-Error.h" +#include "StopUnitControl-Error.h" +#include "DeleteUnitControl-Error.h" +#include "LoadUnitControlFromFile-Error.h" + #endif /* _AdditionalService_Error_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.c b/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.c index 234730ee..3db42082 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.c @@ -1,41 +1,41 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, defineEcl, defineEcl,PyAsnDefineEventConditionList_Error_FromPython(value, &dst->choice.defineEcl)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, defineEcl, PyCompatAsnType_FromParent(&PyAsnDefineEventConditionList_Error_Type, parent, (void *)&src->choice.defineEcl)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, defineEcl, defineEcl, DefineEventConditionList_Error,PyAsnDefineEventConditionList_Error_FromPython(value, dst->choice.defineEcl)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, defineEcl, PyCompatAsnType_FromParent(&PyAsnDefineEventConditionList_Error_Type, parent, (void *)src->choice.defineEcl)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, defineEcl, defineEcl); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, defineEcl, defineEcl); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, addECLReference, addECLReference,PyAsnAddEventConditionListReference_Error_FromPython(value, &dst->choice.addECLReference)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, addECLReference, PyCompatAsnType_FromParent(&PyAsnAddEventConditionListReference_Error_Type, parent, (void *)&src->choice.addECLReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, addECLReference, addECLReference, AddEventConditionListReference_Error,PyAsnAddEventConditionListReference_Error_FromPython(value, dst->choice.addECLReference)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, addECLReference, PyCompatAsnType_FromParent(&PyAsnAddEventConditionListReference_Error_Type, parent, (void *)src->choice.addECLReference)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, addECLReference, addECLReference); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, addECLReference, addECLReference); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, removeECLReference, removeECLReference,PyAsnRemoveEventConditionListReference_Error_FromPython(value, &dst->choice.removeECLReference)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, removeECLReference, PyCompatAsnType_FromParent(&PyAsnRemoveEventConditionListReference_Error_Type, parent, (void *)&src->choice.removeECLReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, removeECLReference, removeECLReference, RemoveEventConditionListReference_Error,PyAsnRemoveEventConditionListReference_Error_FromPython(value, dst->choice.removeECLReference)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, removeECLReference, PyCompatAsnType_FromParent(&PyAsnRemoveEventConditionListReference_Error_Type, parent, (void *)src->choice.removeECLReference)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, removeECLReference, removeECLReference); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, removeECLReference, removeECLReference); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, initiateUC, initiateUC,PyAsnInitiateUnitControl_Error_FromPython(value, &dst->choice.initiateUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, initiateUC, PyCompatAsnType_FromParent(&PyAsnInitiateUnitControl_Error_Type, parent, (void *)&src->choice.initiateUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, initiateUC, initiateUC, InitiateUnitControl_Error,PyAsnInitiateUnitControl_Error_FromPython(value, dst->choice.initiateUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, initiateUC, PyCompatAsnType_FromParent(&PyAsnInitiateUnitControl_Error_Type, parent, (void *)src->choice.initiateUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, initiateUC, initiateUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, initiateUC, initiateUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, startUC, startUC,PyAsnStartUnitControl_Error_FromPython(value, &dst->choice.startUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, startUC, PyCompatAsnType_FromParent(&PyAsnStartUnitControl_Error_Type, parent, (void *)&src->choice.startUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, startUC, startUC, StartUnitControl_Error,PyAsnStartUnitControl_Error_FromPython(value, dst->choice.startUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, startUC, PyCompatAsnType_FromParent(&PyAsnStartUnitControl_Error_Type, parent, (void *)src->choice.startUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, startUC, startUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, startUC, startUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, stopUC, stopUC,PyAsnStopUnitControl_Error_FromPython(value, &dst->choice.stopUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, stopUC, PyCompatAsnType_FromParent(&PyAsnStopUnitControl_Error_Type, parent, (void *)&src->choice.stopUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, stopUC, stopUC, StopUnitControl_Error,PyAsnStopUnitControl_Error_FromPython(value, dst->choice.stopUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, stopUC, PyCompatAsnType_FromParent(&PyAsnStopUnitControl_Error_Type, parent, (void *)src->choice.stopUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, stopUC, stopUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, stopUC, stopUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, deleteUC, deleteUC,PyAsnDeleteUnitControl_Error_FromPython(value, &dst->choice.deleteUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, deleteUC, PyCompatAsnType_FromParent(&PyAsnDeleteUnitControl_Error_Type, parent, (void *)&src->choice.deleteUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, deleteUC, deleteUC, DeleteUnitControl_Error,PyAsnDeleteUnitControl_Error_FromPython(value, dst->choice.deleteUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, deleteUC, PyCompatAsnType_FromParent(&PyAsnDeleteUnitControl_Error_Type, parent, (void *)src->choice.deleteUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, deleteUC, deleteUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, deleteUC, deleteUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, loadUCFromFile, loadUCFromFile,PyAsnLoadUnitControlFromFile_Error_FromPython(value, &dst->choice.loadUCFromFile)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, loadUCFromFile, PyCompatAsnType_FromParent(&PyAsnLoadUnitControlFromFile_Error_Type, parent, (void *)&src->choice.loadUCFromFile)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Error, AdditionalService_Error, loadUCFromFile, loadUCFromFile, LoadUnitControlFromFile_Error,PyAsnLoadUnitControlFromFile_Error_FromPython(value, dst->choice.loadUCFromFile)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Error, loadUCFromFile, PyCompatAsnType_FromParent(&PyAsnLoadUnitControlFromFile_Error_Type, parent, (void *)src->choice.loadUCFromFile)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Error, AdditionalService_Error, loadUCFromFile, loadUCFromFile); PY_IMPL_CHOICE_SETATTR(AdditionalService_Error, AdditionalService_Error, loadUCFromFile, loadUCFromFile); PY_IMPL_GENERIC_DEALLOC(AdditionalService_Error); diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.h b/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.h index bf7029d8..9413f61e 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Request.c b/src/icspacket/proto/mms/_mms/AdditionalService-Request.c index 6aee56c8..32dd33a2 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Request.c +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "vMDReset" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.select), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.select), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Select_Request, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "select" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.alterPI), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.alterPI), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlterProgramInvocationAttributes_Request, @@ -125,7 +125,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "uCLoad" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.uCUpload), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.uCUpload), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_UnitControlUpload_Request, @@ -145,7 +145,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "uCUpload" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.startUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.startUC), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_StartUnitControl_Request, @@ -185,7 +185,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "stopUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.createUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.createUC), (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CreateUnitControl_Request, @@ -205,7 +205,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "createUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.addToUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.addToUC), (ASN_TAG_CLASS_CONTEXT | (10 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AddToUnitControl_Request, @@ -225,7 +225,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "addToUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.removeFromUC), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.removeFromUC), (ASN_TAG_CLASS_CONTEXT | (11 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RemoveFromUnitControl_Request, @@ -265,7 +265,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "getUCAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.loadUCFromFile), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.loadUCFromFile), (ASN_TAG_CLASS_CONTEXT | (13 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_LoadUnitControlFromFile_Request, @@ -285,7 +285,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "loadUCFromFile" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.storeUCToFile), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.storeUCToFile), (ASN_TAG_CLASS_CONTEXT | (14 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_StoreUnitControlToFile_Request, @@ -325,7 +325,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "deleteUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.defineECL), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.defineECL), (ASN_TAG_CLASS_CONTEXT | (16 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DefineEventConditionList_Request, @@ -345,7 +345,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "defineECL" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.deleteECL), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.deleteECL), (ASN_TAG_CLASS_CONTEXT | (17 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DeleteEventConditionList_Request, @@ -365,7 +365,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "deleteECL" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.addECLReference), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.addECLReference), (ASN_TAG_CLASS_CONTEXT | (18 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AddEventConditionListReference_Request, @@ -385,7 +385,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "addECLReference" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.removeECLReference), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.removeECLReference), (ASN_TAG_CLASS_CONTEXT | (19 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RemoveEventConditionListReference_Request, @@ -405,7 +405,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "removeECLReference" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.getECLAttributes), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.getECLAttributes), (ASN_TAG_CLASS_CONTEXT | (20 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetEventConditionListAttributes_Request, @@ -425,7 +425,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "getECLAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.reportECLStatus), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.reportECLStatus), (ASN_TAG_CLASS_CONTEXT | (21 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportEventConditionListStatus_Request, @@ -445,7 +445,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[] = { 0, 0, /* No default value */ "reportECLStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Request, choice.alterECLMonitoring), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Request, choice.alterECLMonitoring), (ASN_TAG_CLASS_CONTEXT | (22 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlterEventConditionListMonitoring_Request, diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Request.h b/src/icspacket/proto/mms/_mms/AdditionalService-Request.h index 2911969d..a0fcafd6 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Request.h +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,29 +10,13 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "VMDStop-Request.h" +#include "VMDReset-Request.h" +#include "InitiateUnitControlLoad-Request.h" +#include "UnitControlLoadSegment-Request.h" +#include "StopUnitControl-Request.h" +#include "GetUnitControlAttributes-Request.h" +#include "DeleteUnitControl-Request.h" #include #ifdef __cplusplus @@ -67,33 +51,52 @@ typedef enum AdditionalService_Request_PR { AdditionalService_Request_PR_alterECLMonitoring } AdditionalService_Request_PR; +/* Forward declarations */ +struct Select_Request; +struct AlterProgramInvocationAttributes_Request; +struct UnitControlUpload_Request; +struct StartUnitControl_Request; +struct CreateUnitControl_Request; +struct AddToUnitControl_Request; +struct RemoveFromUnitControl_Request; +struct LoadUnitControlFromFile_Request; +struct StoreUnitControlToFile_Request; +struct DefineEventConditionList_Request; +struct DeleteEventConditionList_Request; +struct AddEventConditionListReference_Request; +struct RemoveEventConditionListReference_Request; +struct GetEventConditionListAttributes_Request; +struct ReportEventConditionListStatus_Request; +struct AlterEventConditionListMonitoring_Request; +struct ObjectName; + /* AdditionalService-Request */ typedef struct AdditionalService_Request { AdditionalService_Request_PR present; union AdditionalService_Request_u { - VMDStop_Request_t vMDStop; - VMDReset_Request_t vMDReset; - Select_Request_t select; - AlterProgramInvocationAttributes_Request_t alterPI; - InitiateUnitControlLoad_Request_t initiateUCLoad; - UnitControlLoadSegment_Request_t uCLoad; - UnitControlUpload_Request_t uCUpload; - StartUnitControl_Request_t startUC; - StopUnitControl_Request_t stopUC; - CreateUnitControl_Request_t createUC; - AddToUnitControl_Request_t addToUC; - RemoveFromUnitControl_Request_t removeFromUC; - GetUnitControlAttributes_Request_t getUCAttributes; - LoadUnitControlFromFile_Request_t loadUCFromFile; - StoreUnitControlToFile_Request_t storeUCToFile; - DeleteUnitControl_Request_t deleteUC; - DefineEventConditionList_Request_t defineECL; - DeleteEventConditionList_Request_t deleteECL; - AddEventConditionListReference_Request_t addECLReference; - RemoveEventConditionListReference_Request_t removeECLReference; - GetEventConditionListAttributes_Request_t getECLAttributes; - ReportEventConditionListStatus_Request_t reportECLStatus; - AlterEventConditionListMonitoring_Request_t alterECLMonitoring; + VMDStop_Request_t vMDStop; + VMDReset_Request_t vMDReset; + struct Select_Request *select; + struct AlterProgramInvocationAttributes_Request *alterPI; + InitiateUnitControlLoad_Request_t initiateUCLoad; + UnitControlLoadSegment_Request_t uCLoad; + struct UnitControlUpload_Request *uCUpload; + struct StartUnitControl_Request *startUC; + StopUnitControl_Request_t stopUC; + struct CreateUnitControl_Request *createUC; + struct AddToUnitControl_Request *addToUC; + struct RemoveFromUnitControl_Request *removeFromUC; + GetUnitControlAttributes_Request_t getUCAttributes; + struct LoadUnitControlFromFile_Request *loadUCFromFile; + struct StoreUnitControlToFile_Request *storeUCToFile; + DeleteUnitControl_Request_t deleteUC; + struct DefineEventConditionList_Request *defineECL; + struct ObjectName *deleteECL; + struct AddEventConditionListReference_Request *addECLReference; + struct RemoveEventConditionListReference_Request *removeECLReference; + struct ObjectName *getECLAttributes; + struct ReportEventConditionListStatus_Request *reportECLStatus; + struct AlterEventConditionListMonitoring_Request *alterECLMonitoring; } choice; /* Context for parsing across buffer boundaries */ @@ -109,5 +112,23 @@ extern asn_TYPE_member_t asn_MBR_AdditionalService_Request_1[23]; } #endif +/* Referred external types */ +#include "Select-Request.h" +#include "AlterProgramInvocationAttributes-Request.h" +#include "UnitControlUpload-Request.h" +#include "StartUnitControl-Request.h" +#include "CreateUnitControl-Request.h" +#include "AddToUnitControl-Request.h" +#include "RemoveFromUnitControl-Request.h" +#include "LoadUnitControlFromFile-Request.h" +#include "StoreUnitControlToFile-Request.h" +#include "DefineEventConditionList-Request.h" +#include "DeleteEventConditionList-Request.h" +#include "AddEventConditionListReference-Request.h" +#include "RemoveEventConditionListReference-Request.h" +#include "GetEventConditionListAttributes-Request.h" +#include "ReportEventConditionListStatus-Request.h" +#include "AlterEventConditionListMonitoring-Request.h" + #endif /* _AdditionalService_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.c b/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.c index 3a396bc3..c20abbd8 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,12 +14,12 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, vMDReset, PyCompatAsnType_FromParent(&PyAsnVMDReset_Request_Type, parent, (void *)&src->choice.vMDReset)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, vMDReset, vMDReset); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, vMDReset, vMDReset); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, select, select,PyAsnSelect_Request_FromPython(value, &dst->choice.select)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, select, PyCompatAsnType_FromParent(&PyAsnSelect_Request_Type, parent, (void *)&src->choice.select)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, select, select, Select_Request,PyAsnSelect_Request_FromPython(value, dst->choice.select)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, select, PyCompatAsnType_FromParent(&PyAsnSelect_Request_Type, parent, (void *)src->choice.select)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, select, select); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, select, select); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, alterPI, alterPI,PyAsnAlterProgramInvocationAttributes_Request_FromPython(value, &dst->choice.alterPI)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, alterPI, PyCompatAsnType_FromParent(&PyAsnAlterProgramInvocationAttributes_Request_Type, parent, (void *)&src->choice.alterPI)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, alterPI, alterPI, AlterProgramInvocationAttributes_Request,PyAsnAlterProgramInvocationAttributes_Request_FromPython(value, dst->choice.alterPI)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, alterPI, PyCompatAsnType_FromParent(&PyAsnAlterProgramInvocationAttributes_Request_Type, parent, (void *)src->choice.alterPI)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, alterPI, alterPI); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, alterPI, alterPI); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, initiateUCLoad, initiateUCLoad,PyAsnInitiateUnitControlLoad_Request_FromPython(value, &dst->choice.initiateUCLoad)); @@ -30,72 +30,72 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, uCLoad, PyCompatAsnType_FromParent(&PyAsnUnitControlLoadSegment_Request_Type, parent, (void *)&src->choice.uCLoad)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, uCLoad, uCLoad); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, uCLoad, uCLoad); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, uCUpload, uCUpload,PyAsnUnitControlUpload_Request_FromPython(value, &dst->choice.uCUpload)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, uCUpload, PyCompatAsnType_FromParent(&PyAsnUnitControlUpload_Request_Type, parent, (void *)&src->choice.uCUpload)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, uCUpload, uCUpload, UnitControlUpload_Request,PyAsnUnitControlUpload_Request_FromPython(value, dst->choice.uCUpload)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, uCUpload, PyCompatAsnType_FromParent(&PyAsnUnitControlUpload_Request_Type, parent, (void *)src->choice.uCUpload)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, uCUpload, uCUpload); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, uCUpload, uCUpload); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, startUC, startUC,PyAsnStartUnitControl_Request_FromPython(value, &dst->choice.startUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, startUC, PyCompatAsnType_FromParent(&PyAsnStartUnitControl_Request_Type, parent, (void *)&src->choice.startUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, startUC, startUC, StartUnitControl_Request,PyAsnStartUnitControl_Request_FromPython(value, dst->choice.startUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, startUC, PyCompatAsnType_FromParent(&PyAsnStartUnitControl_Request_Type, parent, (void *)src->choice.startUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, startUC, startUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, startUC, startUC); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, stopUC, stopUC,PyAsnStopUnitControl_Request_FromPython(value, &dst->choice.stopUC)); PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, stopUC, PyCompatAsnType_FromParent(&PyAsnStopUnitControl_Request_Type, parent, (void *)&src->choice.stopUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, stopUC, stopUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, stopUC, stopUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, createUC, createUC,PyAsnCreateUnitControl_Request_FromPython(value, &dst->choice.createUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, createUC, PyCompatAsnType_FromParent(&PyAsnCreateUnitControl_Request_Type, parent, (void *)&src->choice.createUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, createUC, createUC, CreateUnitControl_Request,PyAsnCreateUnitControl_Request_FromPython(value, dst->choice.createUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, createUC, PyCompatAsnType_FromParent(&PyAsnCreateUnitControl_Request_Type, parent, (void *)src->choice.createUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, createUC, createUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, createUC, createUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, addToUC, addToUC,PyAsnAddToUnitControl_Request_FromPython(value, &dst->choice.addToUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, addToUC, PyCompatAsnType_FromParent(&PyAsnAddToUnitControl_Request_Type, parent, (void *)&src->choice.addToUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, addToUC, addToUC, AddToUnitControl_Request,PyAsnAddToUnitControl_Request_FromPython(value, dst->choice.addToUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, addToUC, PyCompatAsnType_FromParent(&PyAsnAddToUnitControl_Request_Type, parent, (void *)src->choice.addToUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, addToUC, addToUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, addToUC, addToUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, removeFromUC, removeFromUC,PyAsnRemoveFromUnitControl_Request_FromPython(value, &dst->choice.removeFromUC)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, removeFromUC, PyCompatAsnType_FromParent(&PyAsnRemoveFromUnitControl_Request_Type, parent, (void *)&src->choice.removeFromUC)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, removeFromUC, removeFromUC, RemoveFromUnitControl_Request,PyAsnRemoveFromUnitControl_Request_FromPython(value, dst->choice.removeFromUC)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, removeFromUC, PyCompatAsnType_FromParent(&PyAsnRemoveFromUnitControl_Request_Type, parent, (void *)src->choice.removeFromUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, removeFromUC, removeFromUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, removeFromUC, removeFromUC); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, getUCAttributes, getUCAttributes,PyAsnGetUnitControlAttributes_Request_FromPython(value, &dst->choice.getUCAttributes)); PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, getUCAttributes, PyCompatAsnType_FromParent(&PyAsnGetUnitControlAttributes_Request_Type, parent, (void *)&src->choice.getUCAttributes)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, getUCAttributes, getUCAttributes); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, getUCAttributes, getUCAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, loadUCFromFile, loadUCFromFile,PyAsnLoadUnitControlFromFile_Request_FromPython(value, &dst->choice.loadUCFromFile)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, loadUCFromFile, PyCompatAsnType_FromParent(&PyAsnLoadUnitControlFromFile_Request_Type, parent, (void *)&src->choice.loadUCFromFile)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, loadUCFromFile, loadUCFromFile, LoadUnitControlFromFile_Request,PyAsnLoadUnitControlFromFile_Request_FromPython(value, dst->choice.loadUCFromFile)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, loadUCFromFile, PyCompatAsnType_FromParent(&PyAsnLoadUnitControlFromFile_Request_Type, parent, (void *)src->choice.loadUCFromFile)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, loadUCFromFile, loadUCFromFile); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, loadUCFromFile, loadUCFromFile); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, storeUCToFile, storeUCToFile,PyAsnStoreUnitControlToFile_Request_FromPython(value, &dst->choice.storeUCToFile)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, storeUCToFile, PyCompatAsnType_FromParent(&PyAsnStoreUnitControlToFile_Request_Type, parent, (void *)&src->choice.storeUCToFile)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, storeUCToFile, storeUCToFile, StoreUnitControlToFile_Request,PyAsnStoreUnitControlToFile_Request_FromPython(value, dst->choice.storeUCToFile)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, storeUCToFile, PyCompatAsnType_FromParent(&PyAsnStoreUnitControlToFile_Request_Type, parent, (void *)src->choice.storeUCToFile)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, storeUCToFile, storeUCToFile); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, storeUCToFile, storeUCToFile); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, deleteUC, deleteUC,PyAsnDeleteUnitControl_Request_FromPython(value, &dst->choice.deleteUC)); PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, deleteUC, PyCompatAsnType_FromParent(&PyAsnDeleteUnitControl_Request_Type, parent, (void *)&src->choice.deleteUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, deleteUC, deleteUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, deleteUC, deleteUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, defineECL, defineECL,PyAsnDefineEventConditionList_Request_FromPython(value, &dst->choice.defineECL)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, defineECL, PyCompatAsnType_FromParent(&PyAsnDefineEventConditionList_Request_Type, parent, (void *)&src->choice.defineECL)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, defineECL, defineECL, DefineEventConditionList_Request,PyAsnDefineEventConditionList_Request_FromPython(value, dst->choice.defineECL)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, defineECL, PyCompatAsnType_FromParent(&PyAsnDefineEventConditionList_Request_Type, parent, (void *)src->choice.defineECL)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, defineECL, defineECL); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, defineECL, defineECL); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, deleteECL, deleteECL,PyAsnDeleteEventConditionList_Request_FromPython(value, &dst->choice.deleteECL)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, deleteECL, PyCompatAsnType_FromParent(&PyAsnDeleteEventConditionList_Request_Type, parent, (void *)&src->choice.deleteECL)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, deleteECL, deleteECL, DeleteEventConditionList_Request,PyAsnDeleteEventConditionList_Request_FromPython(value, dst->choice.deleteECL)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, deleteECL, PyCompatAsnType_FromParent(&PyAsnDeleteEventConditionList_Request_Type, parent, (void *)src->choice.deleteECL)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, deleteECL, deleteECL); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, deleteECL, deleteECL); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, addECLReference, addECLReference,PyAsnAddEventConditionListReference_Request_FromPython(value, &dst->choice.addECLReference)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, addECLReference, PyCompatAsnType_FromParent(&PyAsnAddEventConditionListReference_Request_Type, parent, (void *)&src->choice.addECLReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, addECLReference, addECLReference, AddEventConditionListReference_Request,PyAsnAddEventConditionListReference_Request_FromPython(value, dst->choice.addECLReference)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, addECLReference, PyCompatAsnType_FromParent(&PyAsnAddEventConditionListReference_Request_Type, parent, (void *)src->choice.addECLReference)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, addECLReference, addECLReference); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, addECLReference, addECLReference); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, removeECLReference, removeECLReference,PyAsnRemoveEventConditionListReference_Request_FromPython(value, &dst->choice.removeECLReference)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, removeECLReference, PyCompatAsnType_FromParent(&PyAsnRemoveEventConditionListReference_Request_Type, parent, (void *)&src->choice.removeECLReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, removeECLReference, removeECLReference, RemoveEventConditionListReference_Request,PyAsnRemoveEventConditionListReference_Request_FromPython(value, dst->choice.removeECLReference)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, removeECLReference, PyCompatAsnType_FromParent(&PyAsnRemoveEventConditionListReference_Request_Type, parent, (void *)src->choice.removeECLReference)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, removeECLReference, removeECLReference); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, removeECLReference, removeECLReference); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, getECLAttributes, getECLAttributes,PyAsnGetEventConditionListAttributes_Request_FromPython(value, &dst->choice.getECLAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, getECLAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionListAttributes_Request_Type, parent, (void *)&src->choice.getECLAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, getECLAttributes, getECLAttributes, GetEventConditionListAttributes_Request,PyAsnGetEventConditionListAttributes_Request_FromPython(value, dst->choice.getECLAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, getECLAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionListAttributes_Request_Type, parent, (void *)src->choice.getECLAttributes)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, getECLAttributes, getECLAttributes); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, getECLAttributes, getECLAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, reportECLStatus, reportECLStatus,PyAsnReportEventConditionListStatus_Request_FromPython(value, &dst->choice.reportECLStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, reportECLStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionListStatus_Request_Type, parent, (void *)&src->choice.reportECLStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, reportECLStatus, reportECLStatus, ReportEventConditionListStatus_Request,PyAsnReportEventConditionListStatus_Request_FromPython(value, dst->choice.reportECLStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, reportECLStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionListStatus_Request_Type, parent, (void *)src->choice.reportECLStatus)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, reportECLStatus, reportECLStatus); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, reportECLStatus, reportECLStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, alterECLMonitoring, alterECLMonitoring,PyAsnAlterEventConditionListMonitoring_Request_FromPython(value, &dst->choice.alterECLMonitoring)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, alterECLMonitoring, PyCompatAsnType_FromParent(&PyAsnAlterEventConditionListMonitoring_Request_Type, parent, (void *)&src->choice.alterECLMonitoring)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Request, AdditionalService_Request, alterECLMonitoring, alterECLMonitoring, AlterEventConditionListMonitoring_Request,PyAsnAlterEventConditionListMonitoring_Request_FromPython(value, dst->choice.alterECLMonitoring)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Request, alterECLMonitoring, PyCompatAsnType_FromParent(&PyAsnAlterEventConditionListMonitoring_Request_Type, parent, (void *)src->choice.alterECLMonitoring)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Request, AdditionalService_Request, alterECLMonitoring, alterECLMonitoring); PY_IMPL_CHOICE_SETATTR(AdditionalService_Request, AdditionalService_Request, alterECLMonitoring, alterECLMonitoring); PY_IMPL_GENERIC_DEALLOC(AdditionalService_Request); diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.h b/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.h index 896df2d3..58ca1012 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Response.c b/src/icspacket/proto/mms/_mms/AdditionalService-Response.c index cc1737a8..51b682f3 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Response.c +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[] = { 0, 0, /* No default value */ "vMDStop" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Response, choice.vMDReset), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Response, choice.vMDReset), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_VMDReset_Response, @@ -105,7 +105,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[] = { 0, 0, /* No default value */ "initiateUCLoad" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Response, choice.uCLoad), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Response, choice.uCLoad), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_UnitControlLoadSegment_Response, @@ -125,7 +125,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[] = { 0, 0, /* No default value */ "uCLoad" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Response, choice.uCUpload), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Response, choice.uCUpload), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_UnitControlUpload_Response, @@ -245,7 +245,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[] = { 0, 0, /* No default value */ "removeFromUC" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Response, choice.getUCAttributes), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Response, choice.getUCAttributes), (ASN_TAG_CLASS_CONTEXT | (12 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetUnitControlAttributes_Response, @@ -405,7 +405,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[] = { 0, 0, /* No default value */ "removeECLReference" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Response, choice.getECLAttributes), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Response, choice.getECLAttributes), (ASN_TAG_CLASS_CONTEXT | (20 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetEventConditionListAttributes_Response, @@ -425,7 +425,7 @@ asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[] = { 0, 0, /* No default value */ "getECLAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct AdditionalService_Response, choice.reportECLStatus), + { ATF_POINTER, 0, offsetof(struct AdditionalService_Response, choice.reportECLStatus), (ASN_TAG_CLASS_CONTEXT | (21 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportEventConditionListStatus_Response, diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Response.h b/src/icspacket/proto/mms/_mms/AdditionalService-Response.h index e8485dd1..bfb71b31 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Response.h +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,29 +10,23 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "VMDStop-Response.h" +#include "Select-Response.h" +#include "AlterProgramInvocationAttributes-Response.h" +#include "InitiateUnitControlLoad-Response.h" +#include "StartUnitControl-Response.h" +#include "StopUnitControl-Response.h" +#include "CreateUnitControl-Response.h" +#include "AddToUnitControl-Response.h" +#include "RemoveFromUnitControl-Response.h" +#include "LoadUnitControlFromFile-Response.h" +#include "StoreUnitControlToFile-Response.h" +#include "DeleteUnitControl-Response.h" +#include "DefineEventConditionList-Response.h" +#include "DeleteEventConditionList-Response.h" +#include "AddEventConditionListReference-Response.h" +#include "RemoveEventConditionListReference-Response.h" +#include "AlterEventConditionListMonitoring-Response.h" #include #ifdef __cplusplus @@ -67,33 +61,42 @@ typedef enum AdditionalService_Response_PR { AdditionalService_Response_PR_alterECLMonitoring } AdditionalService_Response_PR; +/* Forward declarations */ +struct VMDReset_Response; +struct UnitControlLoadSegment_Response; +struct UnitControlUpload_Response; +struct GetUnitControlAttributes_Response; +struct GetEventConditionListAttributes_Response; +struct ReportEventConditionListStatus_Response; +struct StatusResponse; + /* AdditionalService-Response */ typedef struct AdditionalService_Response { AdditionalService_Response_PR present; union AdditionalService_Response_u { - VMDStop_Response_t vMDStop; - VMDReset_Response_t vMDReset; - Select_Response_t select; - AlterProgramInvocationAttributes_Response_t alterPI; - InitiateUnitControlLoad_Response_t initiateUCLoad; - UnitControlLoadSegment_Response_t uCLoad; - UnitControlUpload_Response_t uCUpload; - StartUnitControl_Response_t startUC; - StopUnitControl_Response_t stopUC; - CreateUnitControl_Response_t createUC; - AddToUnitControl_Response_t addToUC; - RemoveFromUnitControl_Response_t removeFromUC; - GetUnitControlAttributes_Response_t getUCAttributes; - LoadUnitControlFromFile_Response_t loadUCFromFile; - StoreUnitControlToFile_Response_t storeUCToFile; - DeleteUnitControl_Response_t deleteUC; - DefineEventConditionList_Response_t defineECL; - DeleteEventConditionList_Response_t deleteECL; - AddEventConditionListReference_Response_t addECLReference; - RemoveEventConditionListReference_Response_t removeECLReference; - GetEventConditionListAttributes_Response_t getECLAttributes; - ReportEventConditionListStatus_Response_t reportECLStatus; - AlterEventConditionListMonitoring_Response_t alterECLMonitoring; + VMDStop_Response_t vMDStop; + struct StatusResponse *vMDReset; + Select_Response_t select; + AlterProgramInvocationAttributes_Response_t alterPI; + InitiateUnitControlLoad_Response_t initiateUCLoad; + struct UnitControlLoadSegment_Response *uCLoad; + struct UnitControlUpload_Response *uCUpload; + StartUnitControl_Response_t startUC; + StopUnitControl_Response_t stopUC; + CreateUnitControl_Response_t createUC; + AddToUnitControl_Response_t addToUC; + RemoveFromUnitControl_Response_t removeFromUC; + struct GetUnitControlAttributes_Response *getUCAttributes; + LoadUnitControlFromFile_Response_t loadUCFromFile; + StoreUnitControlToFile_Response_t storeUCToFile; + DeleteUnitControl_Response_t deleteUC; + DefineEventConditionList_Response_t defineECL; + DeleteEventConditionList_Response_t deleteECL; + AddEventConditionListReference_Response_t addECLReference; + RemoveEventConditionListReference_Response_t removeECLReference; + struct GetEventConditionListAttributes_Response *getECLAttributes; + struct ReportEventConditionListStatus_Response *reportECLStatus; + AlterEventConditionListMonitoring_Response_t alterECLMonitoring; } choice; /* Context for parsing across buffer boundaries */ @@ -109,5 +112,13 @@ extern asn_TYPE_member_t asn_MBR_AdditionalService_Response_1[23]; } #endif +/* Referred external types */ +#include "VMDReset-Response.h" +#include "UnitControlLoadSegment-Response.h" +#include "UnitControlUpload-Response.h" +#include "GetUnitControlAttributes-Response.h" +#include "GetEventConditionListAttributes-Response.h" +#include "ReportEventConditionListStatus-Response.h" + #endif /* _AdditionalService_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.c b/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.c index de14b309..3a9a6bed 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Respons PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, vMDStop, PyCompatAsnType_FromParent(&PyAsnVMDStop_Response_Type, parent, (void *)&src->choice.vMDStop)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, vMDStop, vMDStop); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, vMDStop, vMDStop); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, vMDReset, vMDReset,PyAsnVMDReset_Response_FromPython(value, &dst->choice.vMDReset)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, vMDReset, PyCompatAsnType_FromParent(&PyAsnVMDReset_Response_Type, parent, (void *)&src->choice.vMDReset)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, vMDReset, vMDReset, VMDReset_Response,PyAsnVMDReset_Response_FromPython(value, dst->choice.vMDReset)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, vMDReset, PyCompatAsnType_FromParent(&PyAsnVMDReset_Response_Type, parent, (void *)src->choice.vMDReset)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, vMDReset, vMDReset); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, vMDReset, vMDReset); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, select, select,PyAsnSelect_Response_FromPython(value, &dst->choice.select)); @@ -26,12 +26,12 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Respons PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, initiateUCLoad, PyCompatAsnType_FromParent(&PyAsnInitiateUnitControlLoad_Response_Type, parent, (void *)&src->choice.initiateUCLoad)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, initiateUCLoad, initiateUCLoad); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, initiateUCLoad, initiateUCLoad); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, uCLoad, uCLoad,PyAsnUnitControlLoadSegment_Response_FromPython(value, &dst->choice.uCLoad)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, uCLoad, PyCompatAsnType_FromParent(&PyAsnUnitControlLoadSegment_Response_Type, parent, (void *)&src->choice.uCLoad)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, uCLoad, uCLoad, UnitControlLoadSegment_Response,PyAsnUnitControlLoadSegment_Response_FromPython(value, dst->choice.uCLoad)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, uCLoad, PyCompatAsnType_FromParent(&PyAsnUnitControlLoadSegment_Response_Type, parent, (void *)src->choice.uCLoad)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, uCLoad, uCLoad); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, uCLoad, uCLoad); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, uCUpload, uCUpload,PyAsnUnitControlUpload_Response_FromPython(value, &dst->choice.uCUpload)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, uCUpload, PyCompatAsnType_FromParent(&PyAsnUnitControlUpload_Response_Type, parent, (void *)&src->choice.uCUpload)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, uCUpload, uCUpload, UnitControlUpload_Response,PyAsnUnitControlUpload_Response_FromPython(value, dst->choice.uCUpload)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, uCUpload, PyCompatAsnType_FromParent(&PyAsnUnitControlUpload_Response_Type, parent, (void *)src->choice.uCUpload)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, uCUpload, uCUpload); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, uCUpload, uCUpload); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, startUC, startUC,PyAsnStartUnitControl_Response_FromPython(value, &dst->choice.startUC)); @@ -54,8 +54,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Respons PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, removeFromUC, PyCompatAsnType_FromParent(&PyAsnRemoveFromUnitControl_Response_Type, parent, (void *)&src->choice.removeFromUC)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, removeFromUC, removeFromUC); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, removeFromUC, removeFromUC); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, getUCAttributes, getUCAttributes,PyAsnGetUnitControlAttributes_Response_FromPython(value, &dst->choice.getUCAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, getUCAttributes, PyCompatAsnType_FromParent(&PyAsnGetUnitControlAttributes_Response_Type, parent, (void *)&src->choice.getUCAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, getUCAttributes, getUCAttributes, GetUnitControlAttributes_Response,PyAsnGetUnitControlAttributes_Response_FromPython(value, dst->choice.getUCAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, getUCAttributes, PyCompatAsnType_FromParent(&PyAsnGetUnitControlAttributes_Response_Type, parent, (void *)src->choice.getUCAttributes)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, getUCAttributes, getUCAttributes); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, getUCAttributes, getUCAttributes); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, loadUCFromFile, loadUCFromFile,PyAsnLoadUnitControlFromFile_Response_FromPython(value, &dst->choice.loadUCFromFile)); @@ -86,12 +86,12 @@ PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Respons PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, removeECLReference, PyCompatAsnType_FromParent(&PyAsnRemoveEventConditionListReference_Response_Type, parent, (void *)&src->choice.removeECLReference)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, removeECLReference, removeECLReference); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, removeECLReference, removeECLReference); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, getECLAttributes, getECLAttributes,PyAsnGetEventConditionListAttributes_Response_FromPython(value, &dst->choice.getECLAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, getECLAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionListAttributes_Response_Type, parent, (void *)&src->choice.getECLAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, getECLAttributes, getECLAttributes, GetEventConditionListAttributes_Response,PyAsnGetEventConditionListAttributes_Response_FromPython(value, dst->choice.getECLAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, getECLAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionListAttributes_Response_Type, parent, (void *)src->choice.getECLAttributes)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, getECLAttributes, getECLAttributes); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, getECLAttributes, getECLAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, reportECLStatus, reportECLStatus,PyAsnReportEventConditionListStatus_Response_FromPython(value, &dst->choice.reportECLStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, reportECLStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionListStatus_Response_Type, parent, (void *)&src->choice.reportECLStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, reportECLStatus, reportECLStatus, ReportEventConditionListStatus_Response,PyAsnReportEventConditionListStatus_Response_FromPython(value, dst->choice.reportECLStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(AdditionalService_Response, reportECLStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionListStatus_Response_Type, parent, (void *)src->choice.reportECLStatus)); PY_IMPL_CHOICE_GETATTR(AdditionalService_Response, AdditionalService_Response, reportECLStatus, reportECLStatus); PY_IMPL_CHOICE_SETATTR(AdditionalService_Response, AdditionalService_Response, reportECLStatus, reportECLStatus); PY_IMPL_CHOICE_ATTR_FROMPY(AdditionalService_Response, AdditionalService_Response, alterECLMonitoring, alterECLMonitoring,PyAsnAlterEventConditionListMonitoring_Response_FromPython(value, &dst->choice.alterECLMonitoring)); diff --git a/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.h b/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.h index e74ee9a1..140b3876 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AdditionalService-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.c b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.c index 4079910e..00b37776 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.c +++ b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_AdditionalSupportOptions_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_AdditionalSupportOptions_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_AdditionalSupportOptions_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.h b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.h index 4d6a3f73..81ed3242 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.h +++ b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -44,9 +44,10 @@ typedef enum AdditionalSupportOptions { } e_AdditionalSupportOptions; /* AdditionalSupportOptions */ -typedef BIT_STRING_t AdditionalSupportOptions_t; +typedef BIT_STRING_t AdditionalSupportOptions_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_AdditionalSupportOptions_constr_1; extern asn_TYPE_descriptor_t asn_DEF_AdditionalSupportOptions; asn_struct_free_f AdditionalSupportOptions_free; asn_struct_print_f AdditionalSupportOptions_print; diff --git a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.c b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.c index a5ff43f9..e91accb8 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.c +++ b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.h b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.h index e4c0f456..17292a9c 100644 --- a/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.h +++ b/src/icspacket/proto/mms/_mms/AdditionalSupportOptions_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Address.c b/src/icspacket/proto/mms/_mms/Address.c index d1d6362d..6f104581 100644 --- a/src/icspacket/proto/mms/_mms/Address.c +++ b/src/icspacket/proto/mms/_mms/Address.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Address.h b/src/icspacket/proto/mms/_mms/Address.h index 15a83f1b..b5060708 100644 --- a/src/icspacket/proto/mms/_mms/Address.h +++ b/src/icspacket/proto/mms/_mms/Address.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned32.h" +#include "MMSString.h" #include #include @@ -31,9 +31,9 @@ typedef enum Address_PR { typedef struct Address { Address_PR present; union Address_u { - Unsigned32_t numericAddress; - MMSString_t symbolicAddress; - OCTET_STRING_t unconstrainedAddress; + Unsigned32_t numericAddress; + MMSString_t symbolicAddress; + OCTET_STRING_t unconstrainedAddress; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/Address_Py.c b/src/icspacket/proto/mms/_mms/Address_Py.c index 3b412438..e6572395 100644 --- a/src/icspacket/proto/mms/_mms/Address_Py.c +++ b/src/icspacket/proto/mms/_mms/Address_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Address_Py.h b/src/icspacket/proto/mms/_mms/Address_Py.h index 4dee186a..3344966a 100644 --- a/src/icspacket/proto/mms/_mms/Address_Py.h +++ b/src/icspacket/proto/mms/_mms/Address_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlarmAckRule.c b/src/icspacket/proto/mms/_mms/AlarmAckRule.c index 372794cf..9ed755c7 100644 --- a/src/icspacket/proto/mms/_mms/AlarmAckRule.c +++ b/src/icspacket/proto/mms/_mms/AlarmAckRule.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlarmAckRule.h b/src/icspacket/proto/mms/_mms/AlarmAckRule.h index d3205601..ebd3fc98 100644 --- a/src/icspacket/proto/mms/_mms/AlarmAckRule.h +++ b/src/icspacket/proto/mms/_mms/AlarmAckRule.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ typedef enum AlarmAckRule { } e_AlarmAckRule; /* AlarmAckRule */ -typedef long AlarmAckRule_t; +typedef long AlarmAckRule_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AlarmAckRule; diff --git a/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.c b/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.c index a7f92da7..6610ea48 100644 --- a/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.c +++ b/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.h b/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.h index eda9601d..4f0ed989 100644 --- a/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.h +++ b/src/icspacket/proto/mms/_mms/AlarmAckRule_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.c b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.c index e2d71fe1..0e1157be 100644 --- a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.c +++ b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -27,7 +27,7 @@ static int asn_DFL_7_set_0(void **sptr) { return 0; } asn_TYPE_member_t asn_MBR_AlarmEnrollmentSummary_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlarmEnrollmentSummary, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct AlarmEnrollmentSummary, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.h b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.h index da95b087..176f6cfd 100644 --- a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.h +++ b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,12 +10,11 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "Unsigned8.h" +#include "EC-State.h" #include -#include -#include +#include "AlarmAckRule.h" +#include "EE-State.h" #include #ifdef __cplusplus @@ -23,24 +22,25 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct ApplicationReference; struct EN_Additional_Detail; struct EventTime; /* AlarmEnrollmentSummary */ typedef struct AlarmEnrollmentSummary { - ObjectName_t eventEnrollmentName; - struct ApplicationReference *clientApplication; /* OPTIONAL */ - Unsigned8_t severity; - EC_State_t currentState; - struct EN_Additional_Detail *displayEnhancement; /* OPTIONAL */ - BOOLEAN_t notificationLost; /* DEFAULT FALSE */ - AlarmAckRule_t alarmAcknowledgmentRule; - EE_State_t *enrollmentState; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ - struct EventTime *timeActiveAcknowledged; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ - struct EventTime *timeIdleAcknowledged; /* OPTIONAL */ + struct ObjectName *eventEnrollmentName; + struct ApplicationReference *clientApplication; /* OPTIONAL */ + Unsigned8_t severity; + EC_State_t currentState; + struct EN_Additional_Detail *displayEnhancement; /* OPTIONAL */ + BOOLEAN_t notificationLost; /* DEFAULT FALSE */ + AlarmAckRule_t alarmAcknowledgmentRule; + EE_State_t *enrollmentState; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ + struct EventTime *timeActiveAcknowledged; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ + struct EventTime *timeIdleAcknowledged; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -56,9 +56,10 @@ extern asn_TYPE_member_t asn_MBR_AlarmEnrollmentSummary_1[12]; #endif /* Referred external types */ -#include -#include -#include +#include "ObjectName.h" +#include "ApplicationReference.h" +#include "EN-Additional-Detail.h" +#include "EventTime.h" #endif /* _AlarmEnrollmentSummary_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.c b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.c index d8e5f5f1..5d9d29c8 100644 --- a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.c +++ b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AlarmEnrollmentSummary, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AlarmEnrollmentSummary, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(AlarmEnrollmentSummary, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlarmEnrollmentSummary, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlarmEnrollmentSummary, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlarmEnrollmentSummary, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlarmEnrollmentSummary, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlarmEnrollmentSummary, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(AlarmEnrollmentSummary, eventEnrollmentName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlarmEnrollmentSummary, clientApplication); PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlarmEnrollmentSummary, clientApplication, ApplicationReference_t); diff --git a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.h b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.h index eb670835..8855bc15 100644 --- a/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.h +++ b/src/icspacket/proto/mms/_mms/AlarmEnrollmentSummary_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -20,6 +20,9 @@ #include #include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/AlarmSummary.c b/src/icspacket/proto/mms/_mms/AlarmSummary.c index fbd97b97..87792b84 100644 --- a/src/icspacket/proto/mms/_mms/AlarmSummary.c +++ b/src/icspacket/proto/mms/_mms/AlarmSummary.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ memb_unacknowledgedState_constraint_1(const asn_TYPE_descriptor_t *td, const voi } asn_TYPE_member_t asn_MBR_AlarmSummary_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlarmSummary, eventConditionName), + { ATF_POINTER, 0, offsetof(struct AlarmSummary, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AlarmSummary.h b/src/icspacket/proto/mms/_mms/AlarmSummary.h index b7550fc6..5c88fb79 100644 --- a/src/icspacket/proto/mms/_mms/AlarmSummary.h +++ b/src/icspacket/proto/mms/_mms/AlarmSummary.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,8 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "Unsigned8.h" +#include "EC-State.h" #include #include @@ -29,18 +28,19 @@ typedef enum AlarmSummary__unacknowledgedState { } e_AlarmSummary__unacknowledgedState; /* Forward declarations */ +struct ObjectName; struct EN_Additional_Detail; struct EventTime; /* AlarmSummary */ typedef struct AlarmSummary { - ObjectName_t eventConditionName; - Unsigned8_t severity; - EC_State_t currentState; - long unacknowledgedState; - struct EN_Additional_Detail *displayEnhancement; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ + struct ObjectName *eventConditionName; + Unsigned8_t severity; + EC_State_t currentState; + long unacknowledgedState; + struct EN_Additional_Detail *displayEnhancement; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -56,8 +56,9 @@ extern asn_TYPE_member_t asn_MBR_AlarmSummary_1[7]; #endif /* Referred external types */ -#include -#include +#include "ObjectName.h" +#include "EN-Additional-Detail.h" +#include "EventTime.h" #endif /* _AlarmSummary_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlarmSummary_Py.c b/src/icspacket/proto/mms/_mms/AlarmSummary_Py.c index 13f10549..64b53d3c 100644 --- a/src/icspacket/proto/mms/_mms/AlarmSummary_Py.c +++ b/src/icspacket/proto/mms/_mms/AlarmSummary_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AlarmSummary, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AlarmSummary, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(AlarmSummary, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlarmSummary, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlarmSummary, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlarmSummary, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlarmSummary, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlarmSummary, eventConditionName); PY_IMPL_SEQ_SETATTR(AlarmSummary, eventConditionName); PY_IMPL_SEQ_ATTR_FROMPY(AlarmSummary, severity, PyAsnUnsigned8_FromPython(value, (Unsigned8_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(AlarmSummary, severity, Unsigned8); diff --git a/src/icspacket/proto/mms/_mms/AlarmSummary_Py.h b/src/icspacket/proto/mms/_mms/AlarmSummary_Py.h index c89ad10b..67bc138b 100644 --- a/src/icspacket/proto/mms/_mms/AlarmSummary_Py.h +++ b/src/icspacket/proto/mms/_mms/AlarmSummary_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,6 +17,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.c b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.c index 0b50af7b..64ac55b9 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_priorityChange_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_priorityChange __attribute__((weak, alias("asn_DEF_priorityChange_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_priorityChange_4; +static asn_TYPE_descriptor_t asn_DEF_priorityChange; +__attribute__((constructor)) static void asn_DEF_priorityChange_4_alias_init(void) { + asn_DEF_priorityChange = asn_DEF_priorityChange_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AlterEventConditionListMonitoring_Request__priorityChange_4[] = { { ATF_NOFLAGS, 0, offsetof(struct AlterEventConditionListMonitoring_Request__priorityChange, choice.priorityValue), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -81,13 +92,13 @@ asn_TYPE_descriptor_t asn_DEF_priorityChange_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_priorityChange_4, + asn_MBR_AlterEventConditionListMonitoring_Request__priorityChange_4, 2, /* Elements count */ &asn_SPC_priorityChange_specs_4 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_AlterEventConditionListMonitoring_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlterEventConditionListMonitoring_Request, eventConditionListName), + { ATF_POINTER, 0, offsetof(struct AlterEventConditionListMonitoring_Request, eventConditionListName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.h b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.h index 3e02e599..a94f842d 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -28,15 +27,18 @@ typedef enum AlterEventConditionListMonitoring_Request__priorityChange_PR { AlterEventConditionListMonitoring_Request__priorityChange_PR_priorityReset } AlterEventConditionListMonitoring_Request__priorityChange_PR; +/* Forward declarations */ +struct ObjectName; + /* AlterEventConditionListMonitoring-Request */ typedef struct AlterEventConditionListMonitoring_Request { - ObjectName_t eventConditionListName; - BOOLEAN_t enabled; + struct ObjectName *eventConditionListName; + BOOLEAN_t enabled; struct AlterEventConditionListMonitoring_Request__priorityChange { AlterEventConditionListMonitoring_Request__priorityChange_PR present; union AlterEventConditionListMonitoring_Request__priorityChange_u { - long priorityValue; - NULL_t priorityReset; + long priorityValue; + NULL_t priorityReset; } choice; /* Context for parsing across buffer boundaries */ @@ -56,5 +58,8 @@ extern asn_TYPE_member_t asn_MBR_AlterEventConditionListMonitoring_Request_1[3]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _AlterEventConditionListMonitoring_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.c b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.c index cde32654..fa1614a3 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -44,9 +44,11 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlterEventConditionListMonitoring_Request, priority PY_IMPL_SEQ_ANON_ATTR_TOPY(AlterEventConditionListMonitoring_Request, priorityChange, src->priorityChange, AlterEventConditionListMonitoring_Request_priorityChange_ANON_4); PY_IMPL_SEQ_INNER_OPT_SETATTR(AlterEventConditionListMonitoring_Request, priorityChange, priorityChange, AlterEventConditionListMonitoring_Request_priorityChange_ANON_4, *asn_DEF_AlterEventConditionListMonitoring_Request.elements[2].type); PY_IMPL_SEQ_INNER_GETATTR(AlterEventConditionListMonitoring_Request, priorityChange, self->ob_value->priorityChange, AlterEventConditionListMonitoring_Request_priorityChange_ANON_4); -PY_IMPL_SEQ_ATTR_FROMPY(AlterEventConditionListMonitoring_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AlterEventConditionListMonitoring_Request, eventConditionListName, ObjectName); -PY_IMPL_SEQ_GETATTR(AlterEventConditionListMonitoring_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlterEventConditionListMonitoring_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlterEventConditionListMonitoring_Request, eventConditionListName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlterEventConditionListMonitoring_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlterEventConditionListMonitoring_Request, eventConditionListName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlterEventConditionListMonitoring_Request, eventConditionListName); PY_IMPL_SEQ_SETATTR(AlterEventConditionListMonitoring_Request, eventConditionListName); PY_IMPL_SEQ_ATTR_FROMPY(AlterEventConditionListMonitoring_Request, enabled, PyCompatBool_FromObject(value, (unsigned int *)target)); PY_IMPL_SEQ_ATTR_TOPY(AlterEventConditionListMonitoring_Request, enabled, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.h b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.h index cc46e0fb..7f71f5d9 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.c b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.c index 0ddb5e7e..1e8f43cb 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.h b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.h index c3c64c19..f027face 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AlterEventConditionListMonitoring-Response */ -typedef NULL_t AlterEventConditionListMonitoring_Response_t; +typedef NULL_t AlterEventConditionListMonitoring_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AlterEventConditionListMonitoring_Response; diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.c b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.c index 9c4b6279..15937aa5 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.h b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.h index 7df8b618..e490c651 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionListMonitoring-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.c b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.c index 263d8505..4fa07527 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_AlterEventConditionMonitoring_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlterEventConditionMonitoring_Request, eventConditionName), + { ATF_POINTER, 0, offsetof(struct AlterEventConditionMonitoring_Request, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.h b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.h index ca3b95dc..f9cd190a 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,23 +10,25 @@ #include /* Including external dependencies */ -#include #include -#include -#include +#include "Priority.h" +#include "Unsigned32.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* AlterEventConditionMonitoring-Request */ typedef struct AlterEventConditionMonitoring_Request { - ObjectName_t eventConditionName; - BOOLEAN_t *enabled; /* OPTIONAL */ - Priority_t *priority; /* OPTIONAL */ - BOOLEAN_t *alarmSummaryReports; /* OPTIONAL */ - Unsigned32_t *evaluationInterval; /* OPTIONAL */ + struct ObjectName *eventConditionName; + BOOLEAN_t *enabled; /* OPTIONAL */ + Priority_t *priority; /* OPTIONAL */ + BOOLEAN_t *alarmSummaryReports; /* OPTIONAL */ + Unsigned32_t *evaluationInterval; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,5 +43,8 @@ extern asn_TYPE_member_t asn_MBR_AlterEventConditionMonitoring_Request_1[5]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _AlterEventConditionMonitoring_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.c b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.c index 78ac2394..6cfa7661 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AlterEventConditionMonitoring_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AlterEventConditionMonitoring_Request, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(AlterEventConditionMonitoring_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlterEventConditionMonitoring_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlterEventConditionMonitoring_Request, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlterEventConditionMonitoring_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlterEventConditionMonitoring_Request, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlterEventConditionMonitoring_Request, eventConditionName); PY_IMPL_SEQ_SETATTR(AlterEventConditionMonitoring_Request, eventConditionName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlterEventConditionMonitoring_Request, enabled); PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlterEventConditionMonitoring_Request, enabled, BOOLEAN_t); diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.h b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.h index 922d550d..84e372e7 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.c b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.c index c59d0e94..d03ce97a 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.h b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.h index 4533da59..ea832b26 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AlterEventConditionMonitoring-Response */ -typedef NULL_t AlterEventConditionMonitoring_Response_t; +typedef NULL_t AlterEventConditionMonitoring_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AlterEventConditionMonitoring_Response; diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.c b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.c index 1030e857..d1944e8d 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.h b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.h index 5ec35d16..d83fdbd4 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterEventConditionMonitoring-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.c b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.c index 4a5b4f8e..96d43e16 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.c +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.c @@ -1,11 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_eventConditionTransitions_constr_3 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_AlterEventEnrollment_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlterEventEnrollment_Request, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct AlterEventEnrollment_Request, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.h b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.h index ee124148..a9608665 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.h +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,20 +10,22 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "Transitions.h" +#include "AlarmAckRule.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* AlterEventEnrollment-Request */ typedef struct AlterEventEnrollment_Request { - ObjectName_t eventEnrollmentName; - Transitions_t *eventConditionTransitions; /* OPTIONAL */ - AlarmAckRule_t *alarmAcknowledgmentRule; /* OPTIONAL */ + struct ObjectName *eventEnrollmentName; + Transitions_t *eventConditionTransitions; /* OPTIONAL */ + AlarmAckRule_t *alarmAcknowledgmentRule; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,5 +40,8 @@ extern asn_TYPE_member_t asn_MBR_AlterEventEnrollment_Request_1[3]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _AlterEventEnrollment_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.c b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.c index cfd89450..3d4321e7 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AlterEventEnrollment_Request, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AlterEventEnrollment_Request, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(AlterEventEnrollment_Request, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlterEventEnrollment_Request, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlterEventEnrollment_Request, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlterEventEnrollment_Request, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlterEventEnrollment_Request, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlterEventEnrollment_Request, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(AlterEventEnrollment_Request, eventEnrollmentName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlterEventEnrollment_Request, eventConditionTransitions); PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlterEventEnrollment_Request, eventConditionTransitions, Transitions_t); diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.h b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.h index f90c0eb3..a4be23e6 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.c b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.c index 77f35e74..ba834e72 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.c +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_currentState_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_currentState __attribute__((weak, alias("asn_DEF_currentState_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_currentState_2; +static asn_TYPE_descriptor_t asn_DEF_currentState; +__attribute__((constructor)) static void asn_DEF_currentState_2_alias_init(void) { + asn_DEF_currentState = asn_DEF_currentState_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AlterEventEnrollment_Response__currentState_2[] = { { ATF_NOFLAGS, 0, offsetof(struct AlterEventEnrollment_Response__currentState, choice.state), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -81,7 +92,7 @@ asn_TYPE_descriptor_t asn_DEF_currentState_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_currentState_2, + asn_MBR_AlterEventEnrollment_Response__currentState_2, 2, /* Elements count */ &asn_SPC_currentState_specs_2 /* Additional specs */ }; @@ -107,7 +118,7 @@ asn_TYPE_member_t asn_MBR_AlterEventEnrollment_Response_1[] = { 0, 0, /* No default value */ "currentState" }, - { ATF_NOFLAGS, 0, offsetof(struct AlterEventEnrollment_Response, transitionTime), + { ATF_POINTER, 0, offsetof(struct AlterEventEnrollment_Response, transitionTime), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_EventTime, diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.h b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.h index 28ac7d7e..7e7dfb6b 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.h +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "EE-State.h" #include #include #include @@ -27,19 +26,22 @@ typedef enum AlterEventEnrollment_Response__currentState_PR { AlterEventEnrollment_Response__currentState_PR_undefined } AlterEventEnrollment_Response__currentState_PR; +/* Forward declarations */ +struct EventTime; + /* AlterEventEnrollment-Response */ typedef struct AlterEventEnrollment_Response { struct AlterEventEnrollment_Response__currentState { AlterEventEnrollment_Response__currentState_PR present; union AlterEventEnrollment_Response__currentState_u { - EE_State_t state; - NULL_t undefined; + EE_State_t state; + NULL_t undefined; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } currentState; - EventTime_t transitionTime; + struct EventTime *transitionTime; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -54,5 +56,8 @@ extern asn_TYPE_member_t asn_MBR_AlterEventEnrollment_Response_1[2]; } #endif +/* Referred external types */ +#include "EventTime.h" + #endif /* _AlterEventEnrollment_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.c b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.c index c71e75cf..0ee867e7 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -44,9 +44,11 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlterEventEnrollment_Response, currentState, &src-> PY_IMPL_SEQ_ANON_ATTR_TOPY(AlterEventEnrollment_Response, currentState, &src->currentState, AlterEventEnrollment_Response_currentState_ANON_2); PY_IMPL_SEQ_INNER_SETATTR(AlterEventEnrollment_Response, currentState, currentState, AlterEventEnrollment_Response_currentState_ANON_2); PY_IMPL_SEQ_INNER_GETATTR(AlterEventEnrollment_Response, currentState, &self->ob_value->currentState, AlterEventEnrollment_Response_currentState_ANON_2); -PY_IMPL_SEQ_ATTR_FROMPY(AlterEventEnrollment_Response, transitionTime, PyAsnEventTime_FromPython(value, (EventTime_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AlterEventEnrollment_Response, transitionTime, EventTime); -PY_IMPL_SEQ_GETATTR(AlterEventEnrollment_Response, transitionTime); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlterEventEnrollment_Response, transitionTime); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlterEventEnrollment_Response, transitionTime, EventTime_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlterEventEnrollment_Response, transitionTime, PyAsnEventTime_FromPython(value, (EventTime_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlterEventEnrollment_Response, transitionTime, EventTime); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlterEventEnrollment_Response, transitionTime); PY_IMPL_SEQ_SETATTR(AlterEventEnrollment_Response, transitionTime); PY_IMPL_GENERIC_DEALLOC(AlterEventEnrollment_Response); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(AlterEventEnrollment_Response); diff --git a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.h b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.h index 0291e767..d7c71f3e 100644 --- a/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterEventEnrollment-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.c b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.c index fa05d4d5..3f6158db 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.h b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.h index d5d3aced..b6847245 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -22,8 +22,8 @@ struct StartCount; /* AlterProgramInvocationAttributes-Request */ typedef struct AlterProgramInvocationAttributes_Request { - Identifier_t programInvocation; - struct StartCount *startCount; /* DEFAULT {cycleCount: 1} */ + Identifier_t programInvocation; + struct StartCount *startCount; /* DEFAULT {cycleCount: 1} */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -39,7 +39,7 @@ extern asn_TYPE_member_t asn_MBR_AlterProgramInvocationAttributes_Request_1[2]; #endif /* Referred external types */ -#include +#include "StartCount.h" #endif /* _AlterProgramInvocationAttributes_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.c index e66c6e9c..cb889965 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.h index abeeae9a..bb341cc5 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.c b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.c index 50f5a023..acdbd378 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.h b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.h index 1a6c003e..fc69b424 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* AlterProgramInvocationAttributes-Response */ -typedef NULL_t AlterProgramInvocationAttributes_Response_t; +typedef NULL_t AlterProgramInvocationAttributes_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_AlterProgramInvocationAttributes_Response; diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.c index 060b7f3f..1b202d4b 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.h index 2adc2285..ab0c0976 100644 --- a/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/AlterProgramInvocationAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/AlternateAccess.c b/src/icspacket/proto/mms/_mms/AlternateAccess.c index a3b1ff8a..2ab2dd10 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccess.c +++ b/src/icspacket/proto/mms/_mms/AlternateAccess.c @@ -1,11 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_named_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct AlternateAccess__Member__named, componentName), +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_named __attribute__((weak, alias("asn_DEF_named_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_named_4; +static asn_TYPE_descriptor_t asn_DEF_named; +__attribute__((constructor)) static void asn_DEF_named_4_alias_init(void) { + asn_DEF_named = asn_DEF_named_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AlternateAccess__AlternateAccess_Member__named_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct AlternateAccess__AlternateAccess_Member__named, componentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identifier, @@ -25,7 +36,7 @@ static asn_TYPE_member_t asn_MBR_named_4[] = { 0, 0, /* No default value */ "componentName" }, - { ATF_POINTER, 0, offsetof(struct AlternateAccess__Member__named, access), + { ATF_POINTER, 0, offsetof(struct AlternateAccess__AlternateAccess_Member__named, access), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_AlternateAccessSelection, @@ -59,8 +70,8 @@ static const asn_TYPE_tag2member_t asn_MAP_named_tag2el_4[] = { { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 1, 0, 0 } /* allElements */ }; static asn_SEQUENCE_specifics_t asn_SPC_named_specs_4 = { - sizeof(struct AlternateAccess__Member__named), - offsetof(struct AlternateAccess__Member__named, _asn_ctx), + sizeof(struct AlternateAccess__AlternateAccess_Member__named), + offsetof(struct AlternateAccess__AlternateAccess_Member__named, _asn_ctx), asn_MAP_named_tag2el_4, 6, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -89,13 +100,13 @@ asn_TYPE_descriptor_t asn_DEF_named_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_named_4, + asn_MBR_AlternateAccess__AlternateAccess_Member__named_4, 2, /* Elements count */ &asn_SPC_named_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_POINTER, 0, offsetof(struct AlternateAccess__Member, choice.unnamed), +static asn_TYPE_member_t asn_MBR_AlternateAccess__AlternateAccess_Member_2[] = { + { ATF_POINTER, 0, offsetof(struct AlternateAccess__AlternateAccess_Member, choice.unnamed), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_AlternateAccessSelection, @@ -115,7 +126,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "unnamed" }, - { ATF_NOFLAGS, 0, offsetof(struct AlternateAccess__Member, choice.named), + { ATF_NOFLAGS, 0, offsetof(struct AlternateAccess__AlternateAccess_Member, choice.named), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 0, &asn_DEF_named_4, @@ -136,7 +147,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { "named" }, }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { +static const asn_TYPE_tag2member_t asn_MAP_AlternateAccess_Member_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* selectAlternateAccess */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* component */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* index */ @@ -144,18 +155,18 @@ static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 }, /* allElements */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 1, 0, 0 } /* named */ }; -static asn_CHOICE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct AlternateAccess__Member), - offsetof(struct AlternateAccess__Member, _asn_ctx), - offsetof(struct AlternateAccess__Member, present), - sizeof(((struct AlternateAccess__Member *)0)->present), - asn_MAP_Member_tag2el_2, +static asn_CHOICE_specifics_t asn_SPC_AlternateAccess_Member_specs_2 = { + sizeof(struct AlternateAccess__AlternateAccess_Member), + offsetof(struct AlternateAccess__AlternateAccess_Member, _asn_ctx), + offsetof(struct AlternateAccess__AlternateAccess_Member, present), + sizeof(((struct AlternateAccess__AlternateAccess_Member *)0)->present), + asn_MAP_AlternateAccess_Member_tag2el_2, 6, /* Count of tags in the map */ 0, 0, -1 /* Extensions start */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { +asn_TYPE_descriptor_t asn_DEF_AlternateAccess_Member_2 = { "CHOICE", "CHOICE", &asn_OP_CHOICE, @@ -175,16 +186,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_Member_2, + asn_MBR_AlternateAccess__AlternateAccess_Member_2, 2, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ + &asn_SPC_AlternateAccess_Member_specs_2 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_AlternateAccess_1[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_Member_2, + &asn_DEF_AlternateAccess_Member_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) diff --git a/src/icspacket/proto/mms/_mms/AlternateAccess.h b/src/icspacket/proto/mms/_mms/AlternateAccess.h index 1b8aeb50..10216277 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccess.h +++ b/src/icspacket/proto/mms/_mms/AlternateAccess.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -21,23 +21,23 @@ extern "C" { #endif /* Dependencies */ -typedef enum AlternateAccess__Member_PR { - AlternateAccess__Member_PR_NOTHING, /* No components present */ - AlternateAccess__Member_PR_unnamed, - AlternateAccess__Member_PR_named -} AlternateAccess__Member_PR; +typedef enum AlternateAccess__AlternateAccess_Member_PR { + AlternateAccess__AlternateAccess_Member_PR_NOTHING, /* No components present */ + AlternateAccess__AlternateAccess_Member_PR_unnamed, + AlternateAccess__AlternateAccess_Member_PR_named +} AlternateAccess__AlternateAccess_Member_PR; /* Forward declarations */ struct AlternateAccessSelection; /* Forward definitions */ -typedef struct AlternateAccess__Member { - AlternateAccess__Member_PR present; - union AlternateAccess__Member_u { - struct AlternateAccessSelection *unnamed; - struct AlternateAccess__Member__named { - Identifier_t componentName; - struct AlternateAccessSelection *access; +typedef struct AlternateAccess__AlternateAccess_Member { + AlternateAccess__AlternateAccess_Member_PR present; + union AlternateAccess__AlternateAccess_Member_u { + struct AlternateAccessSelection *unnamed; + struct AlternateAccess__AlternateAccess_Member__named { + Identifier_t componentName; + struct AlternateAccessSelection *access; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,11 +46,11 @@ typedef struct AlternateAccess__Member { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} AlternateAccess__Member; +} AlternateAccess__AlternateAccess_Member; /* AlternateAccess */ typedef struct AlternateAccess { - A_SEQUENCE_OF(AlternateAccess__Member) list; + A_SEQUENCE_OF(AlternateAccess__AlternateAccess_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -66,7 +66,7 @@ extern asn_TYPE_member_t asn_MBR_AlternateAccess_1[1]; #endif /* Referred external types */ -#include +#include "AlternateAccessSelection.h" #endif /* _AlternateAccess_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlternateAccessSelection.c b/src/icspacket/proto/mms/_mms/AlternateAccessSelection.c index c9a5d488..d2257612 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccessSelection.c +++ b/src/icspacket/proto/mms/_mms/AlternateAccessSelection.c @@ -1,10 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_indexRange_6[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_accessSelection __attribute__((weak, alias("asn_DEF_accessSelection_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_accessSelection_3; +static asn_TYPE_descriptor_t asn_DEF_accessSelection; +__attribute__((constructor)) static void asn_DEF_accessSelection_3_alias_init(void) { + asn_DEF_accessSelection = asn_DEF_accessSelection_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_selectAlternateAccess __attribute__((weak, alias("asn_DEF_selectAlternateAccess_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_selectAlternateAccess_2; +static asn_TYPE_descriptor_t asn_DEF_selectAlternateAccess; +__attribute__((constructor)) static void asn_DEF_selectAlternateAccess_2_alias_init(void) { + asn_DEF_selectAlternateAccess = asn_DEF_selectAlternateAccess_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_selectAccess __attribute__((weak, alias("asn_DEF_selectAccess_11"))); +#else +static asn_TYPE_descriptor_t asn_DEF_selectAccess_11; +static asn_TYPE_descriptor_t asn_DEF_selectAccess; +__attribute__((constructor)) static void asn_DEF_selectAccess_11_alias_init(void) { + asn_DEF_selectAccess = asn_DEF_selectAccess_11; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_AlternateAccessSelection__selectAlternateAccess__accessSelection__indexRange_6[] = { { ATF_NOFLAGS, 0, offsetof(struct AlternateAccessSelection__selectAlternateAccess__accessSelection__indexRange, lowIndex), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -85,12 +118,12 @@ asn_TYPE_descriptor_t asn_DEF_indexRange_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_indexRange_6, + asn_MBR_AlternateAccessSelection__selectAlternateAccess__accessSelection__indexRange_6, 2, /* Elements count */ &asn_SPC_indexRange_specs_6 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_accessSelection_3[] = { +static asn_TYPE_member_t asn_MBR_AlternateAccessSelection__selectAlternateAccess__accessSelection_3[] = { { ATF_NOFLAGS, 0, offsetof(struct AlternateAccessSelection__selectAlternateAccess__accessSelection, choice.component), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -209,12 +242,12 @@ asn_TYPE_descriptor_t asn_DEF_accessSelection_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_accessSelection_3, + asn_MBR_AlternateAccessSelection__selectAlternateAccess__accessSelection_3, 4, /* Elements count */ &asn_SPC_accessSelection_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_selectAlternateAccess_2[] = { +static asn_TYPE_member_t asn_MBR_AlternateAccessSelection__selectAlternateAccess_2[] = { { ATF_NOFLAGS, 0, offsetof(struct AlternateAccessSelection__selectAlternateAccess, accessSelection), -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -298,12 +331,12 @@ asn_TYPE_descriptor_t asn_DEF_selectAlternateAccess_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_selectAlternateAccess_2, + asn_MBR_AlternateAccessSelection__selectAlternateAccess_2, 2, /* Elements count */ &asn_SPC_selectAlternateAccess_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_indexRange_14[] = { +static asn_TYPE_member_t asn_MBR_AlternateAccessSelection__selectAccess__indexRange_14[] = { { ATF_NOFLAGS, 0, offsetof(struct AlternateAccessSelection__selectAccess__indexRange, lowIndex), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -384,12 +417,12 @@ asn_TYPE_descriptor_t asn_DEF_indexRange_14 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_indexRange_14, + asn_MBR_AlternateAccessSelection__selectAccess__indexRange_14, 2, /* Elements count */ &asn_SPC_indexRange_specs_14 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_selectAccess_11[] = { +static asn_TYPE_member_t asn_MBR_AlternateAccessSelection__selectAccess_11[] = { { ATF_NOFLAGS, 0, offsetof(struct AlternateAccessSelection__selectAccess, choice.component), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -508,7 +541,7 @@ asn_TYPE_descriptor_t asn_DEF_selectAccess_11 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_selectAccess_11, + asn_MBR_AlternateAccessSelection__selectAccess_11, 4, /* Elements count */ &asn_SPC_selectAccess_specs_11 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/AlternateAccessSelection.h b/src/icspacket/proto/mms/_mms/AlternateAccessSelection.h index 8bb73ec0..507b6d4b 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccessSelection.h +++ b/src/icspacket/proto/mms/_mms/AlternateAccessSelection.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" +#include "Unsigned32.h" #include #include #include @@ -52,22 +52,22 @@ typedef struct AlternateAccessSelection { struct AlternateAccessSelection__selectAlternateAccess__accessSelection { AlternateAccessSelection__selectAlternateAccess__accessSelection_PR present; union AlternateAccessSelection__selectAlternateAccess__accessSelection_u { - Identifier_t component; - Unsigned32_t index; + Identifier_t component; + Unsigned32_t index; struct AlternateAccessSelection__selectAlternateAccess__accessSelection__indexRange { - Unsigned32_t lowIndex; - Unsigned32_t numberOfElements; + Unsigned32_t lowIndex; + Unsigned32_t numberOfElements; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } indexRange; - NULL_t allElements; + NULL_t allElements; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } accessSelection; - struct AlternateAccess *alternateAccess; + struct AlternateAccess *alternateAccess; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -75,16 +75,16 @@ typedef struct AlternateAccessSelection { struct AlternateAccessSelection__selectAccess { AlternateAccessSelection__selectAccess_PR present; union AlternateAccessSelection__selectAccess_u { - Identifier_t component; - Unsigned32_t index; + Identifier_t component; + Unsigned32_t index; struct AlternateAccessSelection__selectAccess__indexRange { - Unsigned32_t lowIndex; - Unsigned32_t numberOfElements; + Unsigned32_t lowIndex; + Unsigned32_t numberOfElements; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } indexRange; - NULL_t allElements; + NULL_t allElements; } choice; /* Context for parsing across buffer boundaries */ @@ -106,7 +106,7 @@ extern asn_TYPE_member_t asn_MBR_AlternateAccessSelection_1[2]; #endif /* Referred external types */ -#include +#include "AlternateAccess.h" #endif /* _AlternateAccessSelection_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.c b/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.c index c36135da..00722ea4 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.c +++ b/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -40,7 +40,7 @@ PY_IMPL_SEQ_FROMPY(AlternateAccessSelection_indexRange_ANON_6, asn_DEF_Alternate PY_IMPL_SEQ_INIT(AlternateAccessSelection_indexRange_ANON_6); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlternateAccessSelection_accessSelection_ANON_3, indexRange, &src->choice.indexRange, AlternateAccessSelection_indexRange_ANON_6); PY_IMPL_SEQ_ANON_ATTR_TOPY(AlternateAccessSelection_accessSelection_ANON_3, indexRange, &src->choice.indexRange, AlternateAccessSelection_indexRange_ANON_6); -PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection_accessSelection_ANON_3, AlternateAccessSelection__selectAlternateAccess__accessSelection, indexRange, indexRange, asn_DEF_AlternateAccessSelection); +PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection_accessSelection_ANON_3, AlternateAccessSelection__selectAlternateAccess__accessSelection, indexRange, indexRange, *asn_DEF_AlternateAccessSelection.elements[0].type->elements[0].type->elements[2].type); PY_IMPL_CHOICE_GETATTR(AlternateAccessSelection_accessSelection_ANON_3, AlternateAccessSelection__selectAlternateAccess__accessSelection, indexRange, indexRange); PY_IMPL_CHOICE_ATTR_FROMPY(AlternateAccessSelection_accessSelection_ANON_3, AlternateAccessSelection__selectAlternateAccess__accessSelection, component, component,PyAsnIdentifier_FromPython(value, &dst->choice.component)); PY_IMPL_CHOICE_ATTR_TOPY(AlternateAccessSelection_accessSelection_ANON_3, component, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.component)); @@ -90,7 +90,7 @@ PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlternateAccessSelection_selectAlternateAccess_ANO PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlternateAccessSelection_selectAlternateAccess_ANON_2, alternateAccess, AlternateAccess_t); PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlternateAccessSelection_selectAlternateAccess_ANON_2, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlternateAccessSelection_selectAlternateAccess_ANON_2, alternateAccess, AlternateAccess); -PY_IMPL_SEQ_GETATTR(AlternateAccessSelection_selectAlternateAccess_ANON_2, alternateAccess); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlternateAccessSelection_selectAlternateAccess_ANON_2, alternateAccess); PY_IMPL_SEQ_SETATTR(AlternateAccessSelection_selectAlternateAccess_ANON_2, alternateAccess); PY_IMPL_CHECK_CONSTRAINTS(AlternateAccessSelection_selectAlternateAccess_ANON_2, asn_DEF_AlternateAccessSelection.elements[0].type); PY_IMPL_ENCODE(AlternateAccessSelection_selectAlternateAccess_ANON_2, asn_DEF_AlternateAccessSelection.elements[0].type); @@ -118,7 +118,7 @@ PY_IMPL_SEQ_FROMPY(AlternateAccessSelection_selectAlternateAccess_ANON_2, asn_DE PY_IMPL_SEQ_INIT(AlternateAccessSelection_selectAlternateAccess_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlternateAccessSelection, selectAlternateAccess, &src->choice.selectAlternateAccess, AlternateAccessSelection_selectAlternateAccess_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(AlternateAccessSelection, selectAlternateAccess, &src->choice.selectAlternateAccess, AlternateAccessSelection_selectAlternateAccess_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection, AlternateAccessSelection, selectAlternateAccess, selectAlternateAccess, asn_DEF_AlternateAccessSelection); +PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection, AlternateAccessSelection, selectAlternateAccess, selectAlternateAccess, *asn_DEF_AlternateAccessSelection.elements[0].type); PY_IMPL_CHOICE_GETATTR(AlternateAccessSelection, AlternateAccessSelection, selectAlternateAccess, selectAlternateAccess); PY_IMPL_SEQ_ATTR_FROMPY(AlternateAccessSelection_indexRange_ANON_14, lowIndex, PyAsnUnsigned32_FromPython(value, (Unsigned32_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(AlternateAccessSelection_indexRange_ANON_14, lowIndex, Unsigned32); @@ -154,7 +154,7 @@ PY_IMPL_SEQ_FROMPY(AlternateAccessSelection_indexRange_ANON_14, asn_DEF_Alternat PY_IMPL_SEQ_INIT(AlternateAccessSelection_indexRange_ANON_14); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlternateAccessSelection_selectAccess_ANON_11, indexRange, &src->choice.indexRange, AlternateAccessSelection_indexRange_ANON_14); PY_IMPL_SEQ_ANON_ATTR_TOPY(AlternateAccessSelection_selectAccess_ANON_11, indexRange, &src->choice.indexRange, AlternateAccessSelection_indexRange_ANON_14); -PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection_selectAccess_ANON_11, AlternateAccessSelection__selectAccess, indexRange, indexRange, asn_DEF_AlternateAccessSelection); +PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection_selectAccess_ANON_11, AlternateAccessSelection__selectAccess, indexRange, indexRange, *asn_DEF_AlternateAccessSelection.elements[1].type->elements[2].type); PY_IMPL_CHOICE_GETATTR(AlternateAccessSelection_selectAccess_ANON_11, AlternateAccessSelection__selectAccess, indexRange, indexRange); PY_IMPL_CHOICE_ATTR_FROMPY(AlternateAccessSelection_selectAccess_ANON_11, AlternateAccessSelection__selectAccess, component, component,PyAsnIdentifier_FromPython(value, &dst->choice.component)); PY_IMPL_CHOICE_ATTR_TOPY(AlternateAccessSelection_selectAccess_ANON_11, component, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.component)); @@ -198,7 +198,7 @@ PY_IMPL_CHOICE_FROMPY(AlternateAccessSelection_selectAccess_ANON_11, asn_DEF_Alt PY_IMPL_CHOICE_INIT_GENERIC(AlternateAccessSelection_selectAccess_ANON_11, AlternateAccessSelection__selectAccess); PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlternateAccessSelection, selectAccess, &src->choice.selectAccess, AlternateAccessSelection_selectAccess_ANON_11); PY_IMPL_SEQ_ANON_ATTR_TOPY(AlternateAccessSelection, selectAccess, &src->choice.selectAccess, AlternateAccessSelection_selectAccess_ANON_11); -PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection, AlternateAccessSelection, selectAccess, selectAccess, asn_DEF_AlternateAccessSelection); +PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccessSelection, AlternateAccessSelection, selectAccess, selectAccess, *asn_DEF_AlternateAccessSelection.elements[1].type); PY_IMPL_CHOICE_GETATTR(AlternateAccessSelection, AlternateAccessSelection, selectAccess, selectAccess); PY_IMPL_GENERIC_DEALLOC(AlternateAccessSelection); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(AlternateAccessSelection); diff --git a/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.h b/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.h index 5c915049..3175489c 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.h +++ b/src/icspacket/proto/mms/_mms/AlternateAccessSelection_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,8 +13,24 @@ #include #include #include +#include +#include +#include #include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/AlternateAccess_Py.c b/src/icspacket/proto/mms/_mms/AlternateAccess_Py.c index 8d3f3cba..8f8499ad 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccess_Py.c +++ b/src/icspacket/proto/mms/_mms/AlternateAccess_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,7 +14,7 @@ PY_IMPL_SEQ_ATTR_GENERIC_FREE(AlternateAccess_named_ANON_4, access); PY_IMPL_SEQ_ATTR_GENERIC_NEW(AlternateAccess_named_ANON_4, access, AlternateAccessSelection_t); PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AlternateAccess_named_ANON_4, access, PyAsnAlternateAccessSelection_FromPython(value, (AlternateAccessSelection_t *)target)); PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AlternateAccess_named_ANON_4, access, AlternateAccessSelection); -PY_IMPL_SEQ_GETATTR(AlternateAccess_named_ANON_4, access); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AlternateAccess_named_ANON_4, access); PY_IMPL_SEQ_SETATTR(AlternateAccess_named_ANON_4, access); PY_IMPL_CHECK_CONSTRAINTS(AlternateAccess_named_ANON_4, asn_DEF_AlternateAccess.elements[0].type->elements[1].type); PY_IMPL_ENCODE(AlternateAccess_named_ANON_4, asn_DEF_AlternateAccess.elements[0].type->elements[1].type); @@ -40,45 +40,45 @@ PY_IMPL_SEQ_FROMPY(AlternateAccess_named_ANON_4, asn_DEF_AlternateAccess.element PY_IMPL_SEQ_INIT_ATTR(AlternateAccess_named_ANON_4, access, access); ); PY_IMPL_SEQ_INIT(AlternateAccess_named_ANON_4); -PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlternateAccess_Member_ANON_2, named, &src->choice.named, AlternateAccess_named_ANON_4); -PY_IMPL_SEQ_ANON_ATTR_TOPY(AlternateAccess_Member_ANON_2, named, &src->choice.named, AlternateAccess_named_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccess_Member_ANON_2, AlternateAccess__Member, named, named, asn_DEF_AlternateAccess); -PY_IMPL_CHOICE_GETATTR(AlternateAccess_Member_ANON_2, AlternateAccess__Member, named, named); -PY_IMPL_CHOICE_ATTR_FROMPY(AlternateAccess_Member_ANON_2, AlternateAccess__Member, unnamed, unnamed,PyAsnAlternateAccessSelection_FromPython(value, dst->choice.unnamed)); -PY_IMPL_CHOICE_ATTR_TOPY(AlternateAccess_Member_ANON_2, unnamed, PyCompatAsnType_FromParent(&PyAsnAlternateAccessSelection_Type, parent, (void *)src->choice.unnamed)); -PY_IMPL_CHOICE_GETATTR(AlternateAccess_Member_ANON_2, AlternateAccess__Member, unnamed, unnamed); -PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccess_Member_ANON_2, AlternateAccess__Member, unnamed, unnamed, *asn_DEF_AlternateAccess.elements[0].type); -PY_IMPL_CHECK_CONSTRAINTS(AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); -PY_IMPL_ENCODE(AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); -PY_IMPL_DECODE(AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); -PY_IMPL_DEALLOC(AlternateAccess_Member_ANON_2, *(asn_DEF_AlternateAccess.elements[0].type)); -PY_IMPL_SEQ_TOPY(AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); -PY_IMPL_GENERIC_REPR(AlternateAccess_Member_ANON_2, AlternateAccess__Member); -PY_IMPL_DECODE_BER(AlternateAccess_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_Member_ANON_2, ber, ATS_BER); -PY_IMPL_DECODE_DER(AlternateAccess_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_Member_ANON_2, der, ATS_DER); -PY_IMPL_DECODE_CER(AlternateAccess_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_Member_ANON_2, cer, ATS_BER); -PY_IMPL_DECODE_XER(AlternateAccess_Member_ANON_2); -PY_IMPL_ENCODE_XER(AlternateAccess_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(AlternateAccess_Member_ANON_2); -PY_IMPL_ENCODE_JER(AlternateAccess_Member_ANON_2); -PyObject *PyAsnEnumAlternateAccess_Member_ANON_2_PRESENT_Type = NULL; -PY_IMPL_CHOICE_PRESENT_ATTR(AlternateAccess_Member_ANON_2); -PY_IMPL_GENERIC_NEW(AlternateAccess_Member_ANON_2, NULL); -PY_IMPL_GENERIC_IS_VALID(AlternateAccess_Member_ANON_2); -PY_IMPL_CHOICE_FROMPY(AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type, - PY_IMPL_CHOICE_INIT_ATTR(AlternateAccess_Member_ANON_2, AlternateAccess__Member, unnamed, unnamed, unnamed); - PY_IMPL_CHOICE_INIT_ATTR(AlternateAccess_Member_ANON_2, AlternateAccess__Member, named, named, named); +PY_IMPL_SEQ_ANON_ATTR_FROMPY(AlternateAccess_AlternateAccess_Member_ANON_2, named, &src->choice.named, AlternateAccess_named_ANON_4); +PY_IMPL_SEQ_ANON_ATTR_TOPY(AlternateAccess_AlternateAccess_Member_ANON_2, named, &src->choice.named, AlternateAccess_named_ANON_4); +PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, named, named, *asn_DEF_AlternateAccess.elements[0].type->elements[1].type); +PY_IMPL_CHOICE_GETATTR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, named, named); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, unnamed, unnamed, AlternateAccessSelection,PyAsnAlternateAccessSelection_FromPython(value, dst->choice.unnamed)); +PY_IMPL_CHOICE_ATTR_TOPY(AlternateAccess_AlternateAccess_Member_ANON_2, unnamed, PyCompatAsnType_FromParent(&PyAsnAlternateAccessSelection_Type, parent, (void *)src->choice.unnamed)); +PY_IMPL_CHOICE_GETATTR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, unnamed, unnamed); +PY_IMPL_CHOICE_GENERIC_SETATTR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, unnamed, unnamed, *asn_DEF_AlternateAccess.elements[0].type); +PY_IMPL_CHECK_CONSTRAINTS(AlternateAccess_AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); +PY_IMPL_ENCODE(AlternateAccess_AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); +PY_IMPL_DECODE(AlternateAccess_AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); +PY_IMPL_DEALLOC(AlternateAccess_AlternateAccess_Member_ANON_2, *(asn_DEF_AlternateAccess.elements[0].type)); +PY_IMPL_SEQ_TOPY(AlternateAccess_AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type); +PY_IMPL_GENERIC_REPR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member); +PY_IMPL_DECODE_BER(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_AlternateAccess_Member_ANON_2, ber, ATS_BER); +PY_IMPL_DECODE_DER(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_AlternateAccess_Member_ANON_2, der, ATS_DER); +PY_IMPL_DECODE_CER(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_AlternateAccess_Member_ANON_2, cer, ATS_BER); +PY_IMPL_DECODE_XER(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_ENCODE_XER(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(AlternateAccess_AlternateAccess_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_ENCODE_JER(AlternateAccess_AlternateAccess_Member_ANON_2); +PyObject *PyAsnEnumAlternateAccess_AlternateAccess_Member_ANON_2_PRESENT_Type = NULL; +PY_IMPL_CHOICE_PRESENT_ATTR(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_GENERIC_NEW(AlternateAccess_AlternateAccess_Member_ANON_2, NULL); +PY_IMPL_GENERIC_IS_VALID(AlternateAccess_AlternateAccess_Member_ANON_2); +PY_IMPL_CHOICE_FROMPY(AlternateAccess_AlternateAccess_Member_ANON_2, asn_DEF_AlternateAccess.elements[0].type, + PY_IMPL_CHOICE_INIT_ATTR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, unnamed, unnamed, unnamed); + PY_IMPL_CHOICE_INIT_ATTR(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member, named, named, named); ); -PY_IMPL_CHOICE_INIT_GENERIC(AlternateAccess_Member_ANON_2, AlternateAccess__Member); -PY_IMPL_SEQ_OF_ITEM_TOPY(AlternateAccess, AlternateAccess_Member_ANON_2_t, PyAsnAlternateAccess_Member_ANON_2_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(AlternateAccess, AlternateAccess_Member_ANON_2_t, PyAsnAlternateAccess_Member_ANON_2_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(AlternateAccess, AlternateAccess_Member_ANON_2_t); -PY_IMPL_SEQ_OF_SETITEM(AlternateAccess, AlternateAccess_Member_ANON_2_t); -PY_IMPL_SEQ_OF_ADD(AlternateAccess, AlternateAccess_Member_ANON_2_t); +PY_IMPL_CHOICE_INIT_GENERIC(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member); +PY_IMPL_SEQ_OF_ITEM_TOPY(AlternateAccess, AlternateAccess_AlternateAccess_Member_ANON_2_t, PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(AlternateAccess, AlternateAccess_AlternateAccess_Member_ANON_2_t, PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(AlternateAccess, AlternateAccess_AlternateAccess_Member_ANON_2_t); +PY_IMPL_SEQ_OF_SETITEM(AlternateAccess, AlternateAccess_AlternateAccess_Member_ANON_2_t); +PY_IMPL_SEQ_OF_ADD(AlternateAccess, AlternateAccess_AlternateAccess_Member_ANON_2_t); PY_IMPL_SEQ_OF_NEW(AlternateAccess); PY_IMPL_SEQ_OF_DEALLOC(AlternateAccess, asn_set_empty); PY_IMPL_SEQ_OF_INIT(AlternateAccess); @@ -110,10 +110,10 @@ static PyGetSetDef PyAsnAlternateAccess_named_ANON_4_getset[] = { PY_IMPL_GETSET_ITEM_INTERNAL(AlternateAccess_named_ANON_4, access, access), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; -static PyGetSetDef PyAsnAlternateAccess_Member_ANON_2_getset[] = { - {"present", (getter)PyAsnAlternateAccess_Member_ANON_2__get_present, NULL, NULL, NULL}, - PY_IMPL_GETSET_ITEM_INTERNAL(AlternateAccess_Member_ANON_2, unnamed, unnamed), - PY_IMPL_GETSET_ITEM_INTERNAL(AlternateAccess_Member_ANON_2, named, named), +static PyGetSetDef PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_getset[] = { + {"present", (getter)PyAsnAlternateAccess_AlternateAccess_Member_ANON_2__get_present, NULL, NULL, NULL}, + PY_IMPL_GETSET_ITEM_INTERNAL(AlternateAccess_AlternateAccess_Member_ANON_2, unnamed, unnamed), + PY_IMPL_GETSET_ITEM_INTERNAL(AlternateAccess_AlternateAccess_Member_ANON_2, named, named), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnAlternateAccess_getset[] = { @@ -142,20 +142,20 @@ static PyMethodDef PyAsnAlternateAccess_named_ANON_4_methods[] = { PY_IMPL_METHODDEF_ITEM(AlternateAccess_named_ANON_4, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; -static PyMethodDef PyAsnAlternateAccess_Member_ANON_2_methods[] = { - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnAlternateAccess_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(AlternateAccess_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_methods[] = { + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnAlternateAccess_AlternateAccess_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(AlternateAccess_AlternateAccess_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnAlternateAccess_methods[] = { @@ -190,20 +190,20 @@ PyTypeObject PyAsnAlternateAccess_named_ANON_4_Type = { .tp_init = (initproc)PyAsnAlternateAccess_named_ANON_4__init, .tp_getset = PyAsnAlternateAccess_named_ANON_4_getset, .tp_methods = PyAsnAlternateAccess_named_ANON_4_methods, - .tp_doc = "ASN.1 anonymous type AlternateAccess__Member__named_TYPE part of Member", + .tp_doc = "ASN.1 anonymous type AlternateAccess__AlternateAccess_Member__named_TYPE part of AlternateAccess_Member", }; -PyTypeObject PyAsnAlternateAccess_Member_ANON_2_Type = { +PyTypeObject PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.AlternateAccess.Member_TYPE", - .tp_basicsize = sizeof(PyAsnAlternateAccess_Member_ANON_2Object), + .tp_basicsize = sizeof(PyAsnAlternateAccess_AlternateAccess_Member_ANON_2Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnAlternateAccess_Member_ANON_2__new, - .tp_repr = (reprfunc)PyAsnAlternateAccess_Member_ANON_2__repr, - .tp_dealloc = (destructor)PyAsnAlternateAccess_Member_ANON_2__dealloc, - .tp_init = (initproc)PyAsnAlternateAccess_Member_ANON_2__init, - .tp_getset = PyAsnAlternateAccess_Member_ANON_2_getset, - .tp_methods = PyAsnAlternateAccess_Member_ANON_2_methods, - .tp_doc = "ASN.1 anonymous type AlternateAccess__Member_TYPE part of AlternateAccess", + .tp_new = (newfunc)PyAsnAlternateAccess_AlternateAccess_Member_ANON_2__new, + .tp_repr = (reprfunc)PyAsnAlternateAccess_AlternateAccess_Member_ANON_2__repr, + .tp_dealloc = (destructor)PyAsnAlternateAccess_AlternateAccess_Member_ANON_2__dealloc, + .tp_init = (initproc)PyAsnAlternateAccess_AlternateAccess_Member_ANON_2__init, + .tp_getset = PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_getset, + .tp_methods = PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_methods, + .tp_doc = "ASN.1 anonymous type AlternateAccess__AlternateAccess_Member_TYPE part of AlternateAccess", }; PyTypeObject PyAsnAlternateAccess_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -223,25 +223,25 @@ PyTypeObject PyAsnAlternateAccess_Type = { /* module initializer */ int PyAsnAlternateAccess_ModSetupTypes(void) { if (PyType_Ready(&PyAsnAlternateAccess_named_ANON_4_Type) < 0) return -1; - if (PyType_Ready(&PyAsnAlternateAccess_Member_ANON_2_Type) < 0) return -1; + if (PyType_Ready(&PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnAlternateAccess_Type) < 0) return -1; return 0; } void PyAsnAlternateAccess_ModClear(PyObject *mod) { - Py_CLEAR(PyAsnEnumAlternateAccess_Member_ANON_2_PRESENT_Type); + Py_CLEAR(PyAsnEnumAlternateAccess_AlternateAccess_Member_ANON_2_PRESENT_Type); } int PyAsnAlternateAccess_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(AlternateAccess_Member_ANON_2, named_TYPE, &PyAsnAlternateAccess_named_ANON_4_Type); - PY_IMPL_NEW_ENUM(AlternateAccess.Member_TYPE.PRESENT, PyAsnEnumAlternateAccess_Member_ANON_2_PRESENT_Type, -1, - PY_IMPL_ENUM_VALUE(PR_NOTHING, AlternateAccess__Member_PR_NOTHING, 0); - PY_IMPL_ENUM_VALUE(PR_unnamed, AlternateAccess__Member_PR_unnamed, 1); - PY_IMPL_ENUM_VALUE(PR_named, AlternateAccess__Member_PR_named, 2); + PY_IMPL_MOD_ASSIGN_OBJECT(AlternateAccess_AlternateAccess_Member_ANON_2, named_TYPE, &PyAsnAlternateAccess_named_ANON_4_Type); + PY_IMPL_NEW_ENUM(AlternateAccess.Member_TYPE.PRESENT, PyAsnEnumAlternateAccess_AlternateAccess_Member_ANON_2_PRESENT_Type, -1, + PY_IMPL_ENUM_VALUE(PR_NOTHING, AlternateAccess__AlternateAccess_Member_PR_NOTHING, 0); + PY_IMPL_ENUM_VALUE(PR_unnamed, AlternateAccess__AlternateAccess_Member_PR_unnamed, 1); + PY_IMPL_ENUM_VALUE(PR_named, AlternateAccess__AlternateAccess_Member_PR_named, 2); ); - PY_IMPL_ASSIGN_ENUM_DIRECT(AlternateAccess_Member_ANON_2, AlternateAccess_Member_ANON_2_PRESENT, PRESENT); - PY_IMPL_MOD_ASSIGN_OBJECT(AlternateAccess, Member_TYPE, &PyAsnAlternateAccess_Member_ANON_2_Type); - PY_IMPL_MOD_ADD_OBJECT(mod, AlternateAccess_Member_ANON_2); + PY_IMPL_ASSIGN_ENUM_DIRECT(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess_AlternateAccess_Member_ANON_2_PRESENT, PRESENT); + PY_IMPL_MOD_ASSIGN_OBJECT(AlternateAccess, Member_TYPE, &PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_Type); + PY_IMPL_MOD_ADD_OBJECT(mod, AlternateAccess_AlternateAccess_Member_ANON_2); PY_IMPL_MOD_ADD_OBJECT(mod, AlternateAccess); return 0; } diff --git a/src/icspacket/proto/mms/_mms/AlternateAccess_Py.h b/src/icspacket/proto/mms/_mms/AlternateAccess_Py.h index 4b76cffb..3a75ffbd 100644 --- a/src/icspacket/proto/mms/_mms/AlternateAccess_Py.h +++ b/src/icspacket/proto/mms/_mms/AlternateAccess_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,25 +14,30 @@ #include #include #include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { #endif /* AlternateAccess */ -PyCompat_DEF_ANON_STRUCT(AlternateAccess_named_ANON_4, AlternateAccess__Member__named); +PyCompat_DEF_ANON_STRUCT(AlternateAccess_named_ANON_4, AlternateAccess__AlternateAccess_Member__named); PyCompat_DEF_TYPE(AlternateAccess_named_ANON_4); -PyCompat_DEF_ANON_STRUCT(AlternateAccess_Member_ANON_2, AlternateAccess__Member); -PyCompat_DEF_TYPE(AlternateAccess_Member_ANON_2); -PyCompat_DEF_ENUM(AlternateAccess_Member_ANON_2_PRESENT); +PyCompat_DEF_ANON_STRUCT(AlternateAccess_AlternateAccess_Member_ANON_2, AlternateAccess__AlternateAccess_Member); +PyCompat_DEF_TYPE(AlternateAccess_AlternateAccess_Member_ANON_2); +PyCompat_DEF_ENUM(AlternateAccess_AlternateAccess_Member_ANON_2_PRESENT); PyCompat_DEF_STRUCT(AlternateAccess); PyCompat_DEF_TYPE(AlternateAccess); /* Type Converters */ int PyAsnAlternateAccess_named_ANON_4_FromPython(PyObject *pObj, AlternateAccess_named_ANON_4_t *pDst); PyObject *PyAsnAlternateAccess_named_ANON_4_ToPython(AlternateAccess_named_ANON_4_t *pSrc, PyObject *parent); -int PyAsnAlternateAccess_Member_ANON_2_FromPython(PyObject *pObj, AlternateAccess_Member_ANON_2_t *pDst); -PyObject *PyAsnAlternateAccess_Member_ANON_2_ToPython(AlternateAccess_Member_ANON_2_t *pSrc, PyObject *parent); +int PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_FromPython(PyObject *pObj, AlternateAccess_AlternateAccess_Member_ANON_2_t *pDst); +PyObject *PyAsnAlternateAccess_AlternateAccess_Member_ANON_2_ToPython(AlternateAccess_AlternateAccess_Member_ANON_2_t *pSrc, PyObject *parent); int PyAsnAlternateAccess_FromPython(PyObject *pObj, AlternateAccess_t *pDst); PyObject *PyAsnAlternateAccess_ToPython(AlternateAccess_t *pSrc, PyObject *parent); diff --git a/src/icspacket/proto/mms/_mms/Application-context-name-list.c b/src/icspacket/proto/mms/_mms/Application-context-name-list.c index 45de9eb9..5a0f8a85 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name-list.c +++ b/src/icspacket/proto/mms/_mms/Application-context-name-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_Application_context_name_list_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_Application_context_name_list_tags_1[] = { diff --git a/src/icspacket/proto/mms/_mms/Application-context-name-list.h b/src/icspacket/proto/mms/_mms/Application-context-name-list.h index e985fd13..d4326649 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name-list.h +++ b/src/icspacket/proto/mms/_mms/Application-context-name-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Application-context-name.h" #include #include diff --git a/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.c b/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.c index f5ca9b37..847bbdf1 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.c +++ b/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.h b/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.h index f0d2962b..e141ad00 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.h +++ b/src/icspacket/proto/mms/_mms/Application-context-name-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Application-context-name.c b/src/icspacket/proto/mms/_mms/Application-context-name.c index 1cde6f34..e46ef3d5 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name.c +++ b/src/icspacket/proto/mms/_mms/Application-context-name.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Application-context-name.h b/src/icspacket/proto/mms/_mms/Application-context-name.h index 36cf0619..e6bc3525 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name.h +++ b/src/icspacket/proto/mms/_mms/Application-context-name.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Application-context-name */ -typedef OBJECT_IDENTIFIER_t Application_context_name_t; +typedef OBJECT_IDENTIFIER_t Application_context_name_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Application_context_name; diff --git a/src/icspacket/proto/mms/_mms/Application-context-name_Py.c b/src/icspacket/proto/mms/_mms/Application-context-name_Py.c index b7b6f061..b5a4c95b 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name_Py.c +++ b/src/icspacket/proto/mms/_mms/Application-context-name_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Application-context-name_Py.h b/src/icspacket/proto/mms/_mms/Application-context-name_Py.h index ae5bed8c..e242fa56 100644 --- a/src/icspacket/proto/mms/_mms/Application-context-name_Py.h +++ b/src/icspacket/proto/mms/_mms/Application-context-name_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ApplicationReference.c b/src/icspacket/proto/mms/_mms/ApplicationReference.c index 7c336138..6cb8f70c 100644 --- a/src/icspacket/proto/mms/_mms/ApplicationReference.c +++ b/src/icspacket/proto/mms/_mms/ApplicationReference.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ApplicationReference.h b/src/icspacket/proto/mms/_mms/ApplicationReference.h index b802f757..5429be17 100644 --- a/src/icspacket/proto/mms/_mms/ApplicationReference.h +++ b/src/icspacket/proto/mms/_mms/ApplicationReference.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "AP-invocation-identifier.h" +#include "AE-invocation-identifier.h" #include #ifdef __cplusplus @@ -24,10 +24,10 @@ struct AE_qualifier; /* ApplicationReference */ typedef struct ApplicationReference { - struct AP_title *ap_title; /* OPTIONAL */ - AP_invocation_identifier_t *ap_invocation_id; /* OPTIONAL */ - struct AE_qualifier *ae_qualifier; /* OPTIONAL */ - AE_invocation_identifier_t *ae_invocation_id; /* OPTIONAL */ + struct AP_title *ap_title; /* OPTIONAL */ + AP_invocation_identifier_t *ap_invocation_id; /* OPTIONAL */ + struct AE_qualifier *ae_qualifier; /* OPTIONAL */ + AE_invocation_identifier_t *ae_invocation_id; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -43,8 +43,8 @@ extern asn_TYPE_member_t asn_MBR_ApplicationReference_1[4]; #endif /* Referred external types */ -#include -#include +#include "AP-title.h" +#include "AE-qualifier.h" #endif /* _ApplicationReference_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ApplicationReference_Py.c b/src/icspacket/proto/mms/_mms/ApplicationReference_Py.c index 20207673..249c8b19 100644 --- a/src/icspacket/proto/mms/_mms/ApplicationReference_Py.c +++ b/src/icspacket/proto/mms/_mms/ApplicationReference_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ApplicationReference_Py.h b/src/icspacket/proto/mms/_mms/ApplicationReference_Py.h index e131a90c..0ac64376 100644 --- a/src/icspacket/proto/mms/_mms/ApplicationReference_Py.h +++ b/src/icspacket/proto/mms/_mms/ApplicationReference_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Associate-result.c b/src/icspacket/proto/mms/_mms/Associate-result.c index 96ff6e26..47b66e77 100644 --- a/src/icspacket/proto/mms/_mms/Associate-result.c +++ b/src/icspacket/proto/mms/_mms/Associate-result.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Associate-result.h b/src/icspacket/proto/mms/_mms/Associate-result.h index 641c49e2..1b27d982 100644 --- a/src/icspacket/proto/mms/_mms/Associate-result.h +++ b/src/icspacket/proto/mms/_mms/Associate-result.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -24,7 +24,7 @@ typedef enum Associate_result { } e_Associate_result; /* Associate-result */ -typedef long Associate_result_t; +typedef long Associate_result_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Associate_result; diff --git a/src/icspacket/proto/mms/_mms/Associate-result_Py.c b/src/icspacket/proto/mms/_mms/Associate-result_Py.c index a688143f..90c293da 100644 --- a/src/icspacket/proto/mms/_mms/Associate-result_Py.c +++ b/src/icspacket/proto/mms/_mms/Associate-result_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Associate-result_Py.h b/src/icspacket/proto/mms/_mms/Associate-result_Py.h index 3a777ff2..c83cb4e5 100644 --- a/src/icspacket/proto/mms/_mms/Associate-result_Py.h +++ b/src/icspacket/proto/mms/_mms/Associate-result_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.c b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.c index f3236528..6e3f94f3 100644 --- a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.c +++ b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.h b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.h index e3359651..88707fd0 100644 --- a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.h +++ b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -50,8 +50,8 @@ typedef enum Associate_source_diagnostic__acse_service_provider { typedef struct Associate_source_diagnostic { Associate_source_diagnostic_PR present; union Associate_source_diagnostic_u { - long acse_service_user; - long acse_service_provider; + long acse_service_user; + long acse_service_provider; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.c b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.c index 94f17dad..177a50ee 100644 --- a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.c +++ b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.h b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.h index 14b160c5..93adb543 100644 --- a/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.h +++ b/src/icspacket/proto/mms/_mms/Associate-source-diagnostic_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Association-information.c b/src/icspacket/proto/mms/_mms/Association-information.c index f97cd550..acddddbc 100644 --- a/src/icspacket/proto/mms/_mms/Association-information.c +++ b/src/icspacket/proto/mms/_mms/Association-information.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_Association_information_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_Association_information_tags_1[] = { diff --git a/src/icspacket/proto/mms/_mms/Association-information.h b/src/icspacket/proto/mms/_mms/Association-information.h index 74035997..3a01b0ac 100644 --- a/src/icspacket/proto/mms/_mms/Association-information.h +++ b/src/icspacket/proto/mms/_mms/Association-information.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -38,7 +38,7 @@ extern asn_TYPE_member_t asn_MBR_Association_information_1[1]; #endif /* Referred external types */ -#include +#include "EXTERNAL.h" #endif /* _Association_information_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Association-information_Py.c b/src/icspacket/proto/mms/_mms/Association-information_Py.c index 741fd12c..129678b3 100644 --- a/src/icspacket/proto/mms/_mms/Association-information_Py.c +++ b/src/icspacket/proto/mms/_mms/Association-information_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Association-information_Py.h b/src/icspacket/proto/mms/_mms/Association-information_Py.h index bb017ce8..d477115a 100644 --- a/src/icspacket/proto/mms/_mms/Association-information_Py.h +++ b/src/icspacket/proto/mms/_mms/Association-information_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AttachToEventCondition.c b/src/icspacket/proto/mms/_mms/AttachToEventCondition.c index b29dc4fb..efd0677e 100644 --- a/src/icspacket/proto/mms/_mms/AttachToEventCondition.c +++ b/src/icspacket/proto/mms/_mms/AttachToEventCondition.c @@ -1,11 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_causingTransitions_constr_4 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_AttachToEventCondition_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AttachToEventCondition, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct AttachToEventCondition, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -25,7 +31,7 @@ asn_TYPE_member_t asn_MBR_AttachToEventCondition_1[] = { 0, 0, /* No default value */ "eventEnrollmentName" }, - { ATF_NOFLAGS, 0, offsetof(struct AttachToEventCondition, eventConditionName), + { ATF_POINTER, 0, offsetof(struct AttachToEventCondition, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AttachToEventCondition.h b/src/icspacket/proto/mms/_mms/AttachToEventCondition.h index 8b3be7c1..7002c6f8 100644 --- a/src/icspacket/proto/mms/_mms/AttachToEventCondition.h +++ b/src/icspacket/proto/mms/_mms/AttachToEventCondition.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,21 +10,23 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "Transitions.h" +#include "Unsigned32.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* AttachToEventCondition */ typedef struct AttachToEventCondition { - ObjectName_t eventEnrollmentName; - ObjectName_t eventConditionName; - Transitions_t causingTransitions; - Unsigned32_t *acceptableDelay; /* OPTIONAL */ + struct ObjectName *eventEnrollmentName; + struct ObjectName *eventConditionName; + Transitions_t causingTransitions; + Unsigned32_t *acceptableDelay; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -39,5 +41,8 @@ extern asn_TYPE_member_t asn_MBR_AttachToEventCondition_1[4]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _AttachToEventCondition_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.c b/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.c index df59034d..71f0de28 100644 --- a/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.c +++ b/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AttachToEventCondition, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AttachToEventCondition, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(AttachToEventCondition, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AttachToEventCondition, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AttachToEventCondition, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AttachToEventCondition, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AttachToEventCondition, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AttachToEventCondition, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(AttachToEventCondition, eventEnrollmentName); -PY_IMPL_SEQ_ATTR_FROMPY(AttachToEventCondition, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AttachToEventCondition, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(AttachToEventCondition, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AttachToEventCondition, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AttachToEventCondition, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AttachToEventCondition, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AttachToEventCondition, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AttachToEventCondition, eventConditionName); PY_IMPL_SEQ_SETATTR(AttachToEventCondition, eventConditionName); PY_IMPL_SEQ_ATTR_FROMPY(AttachToEventCondition, causingTransitions, PyAsnTransitions_FromPython(value, (Transitions_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(AttachToEventCondition, causingTransitions, Transitions); diff --git a/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.h b/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.h index c91ff4e6..eee2e978 100644 --- a/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.h +++ b/src/icspacket/proto/mms/_mms/AttachToEventCondition_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/src/icspacket/proto/mms/_mms/AttachToSemaphore.c b/src/icspacket/proto/mms/_mms/AttachToSemaphore.c index 44b354c4..54d532c1 100644 --- a/src/icspacket/proto/mms/_mms/AttachToSemaphore.c +++ b/src/icspacket/proto/mms/_mms/AttachToSemaphore.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -49,7 +49,7 @@ static int asn_DFL_8_set_1(void **sptr) { return 0; } asn_TYPE_member_t asn_MBR_AttachToSemaphore_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AttachToSemaphore, semaphoreName), + { ATF_POINTER, 0, offsetof(struct AttachToSemaphore, semaphoreName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/AttachToSemaphore.h b/src/icspacket/proto/mms/_mms/AttachToSemaphore.h index 400546a0..c36fc662 100644 --- a/src/icspacket/proto/mms/_mms/AttachToSemaphore.h +++ b/src/icspacket/proto/mms/_mms/AttachToSemaphore.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,9 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "Identifier.h" +#include "Priority.h" +#include "Unsigned32.h" #include #include @@ -21,15 +20,18 @@ extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* AttachToSemaphore */ typedef struct AttachToSemaphore { - ObjectName_t semaphoreName; - Identifier_t *namedToken; /* OPTIONAL */ - Priority_t *priority; /* DEFAULT 64 */ - Unsigned32_t *acceptableDelay; /* OPTIONAL */ - Unsigned32_t *controlTimeOut; /* OPTIONAL */ - BOOLEAN_t *abortOnTimeOut; /* OPTIONAL */ - BOOLEAN_t *relinquishIfConnectionLost; /* DEFAULT TRUE */ + struct ObjectName *semaphoreName; + Identifier_t *namedToken; /* OPTIONAL */ + Priority_t *priority; /* DEFAULT 64 */ + Unsigned32_t *acceptableDelay; /* OPTIONAL */ + Unsigned32_t *controlTimeOut; /* OPTIONAL */ + BOOLEAN_t *abortOnTimeOut; /* OPTIONAL */ + BOOLEAN_t *relinquishIfConnectionLost; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -44,5 +46,8 @@ extern asn_TYPE_member_t asn_MBR_AttachToSemaphore_1[7]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _AttachToSemaphore_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.c b/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.c index 2ebba201..d56deff4 100644 --- a/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.c +++ b/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(AttachToSemaphore, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(AttachToSemaphore, semaphoreName, ObjectName); -PY_IMPL_SEQ_GETATTR(AttachToSemaphore, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(AttachToSemaphore, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(AttachToSemaphore, semaphoreName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(AttachToSemaphore, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(AttachToSemaphore, semaphoreName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(AttachToSemaphore, semaphoreName); PY_IMPL_SEQ_SETATTR(AttachToSemaphore, semaphoreName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(AttachToSemaphore, namedToken); PY_IMPL_SEQ_ATTR_GENERIC_NEW(AttachToSemaphore, namedToken, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.h b/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.h index 6b3dd353..8a4d4e56 100644 --- a/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.h +++ b/src/icspacket/proto/mms/_mms/AttachToSemaphore_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.c b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.c index 109536be..3d970a58 100644 --- a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.c +++ b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.h b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.h index 4ebc8fa1..45d0e39e 100644 --- a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.h +++ b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -20,8 +20,8 @@ extern "C" { /* AttributeTypeAndValue */ typedef struct AttributeTypeAndValue { - OBJECT_IDENTIFIER_t type; - ANY_t value; + OBJECT_IDENTIFIER_t type; + ANY_t value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.c b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.c index cc83d7f1..1dd8c8dd 100644 --- a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.c +++ b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.h b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.h index a9092e70..93af1a51 100644 --- a/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.h +++ b/src/icspacket/proto/mms/_mms/AttributeTypeAndValue_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Authentication-value.c b/src/icspacket/proto/mms/_mms/Authentication-value.c index 361dc7df..280ae08a 100644 --- a/src/icspacket/proto/mms/_mms/Authentication-value.c +++ b/src/icspacket/proto/mms/_mms/Authentication-value.c @@ -1,10 +1,27 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include -static asn_TYPE_member_t asn_MBR_other_5[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_other __attribute__((weak, alias("asn_DEF_other_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_other_5; +static asn_TYPE_descriptor_t asn_DEF_other; +__attribute__((constructor)) static void asn_DEF_other_5_alias_init(void) { + asn_DEF_other = asn_DEF_other_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_bitstring_constr_3 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_Authentication_value__other_5[] = { { ATF_NOFLAGS, 0, offsetof(struct Authentication_value__other, other_mechanism_name), (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, @@ -84,7 +101,7 @@ asn_TYPE_descriptor_t asn_DEF_other_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_other_5, + asn_MBR_Authentication_value__other_5, 2, /* Elements count */ &asn_SPC_other_specs_5 /* Additional specs */ }; @@ -130,7 +147,7 @@ asn_TYPE_member_t asn_MBR_Authentication_value_1[] = { 0, 0, /* No default value */ "bitstring" }, - { ATF_NOFLAGS, 0, offsetof(struct Authentication_value, choice.external), + { ATF_POINTER, 0, offsetof(struct Authentication_value, choice.external), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_EXTERNAL, diff --git a/src/icspacket/proto/mms/_mms/Authentication-value.h b/src/icspacket/proto/mms/_mms/Authentication-value.h index 5842de9d..7bdecfaa 100644 --- a/src/icspacket/proto/mms/_mms/Authentication-value.h +++ b/src/icspacket/proto/mms/_mms/Authentication-value.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -12,8 +12,7 @@ /* Including external dependencies */ #include #include -#include -#include +#include "Mechanism-name.h" #include #include #include @@ -31,16 +30,19 @@ typedef enum Authentication_value_PR { Authentication_value_PR_other } Authentication_value_PR; +/* Forward declarations */ +struct EXTERNAL; + /* Authentication-value */ typedef struct Authentication_value { Authentication_value_PR present; union Authentication_value_u { - GraphicString_t charstring; - BIT_STRING_t bitstring; - EXTERNAL_t external; + GraphicString_t charstring; + BIT_STRING_t bitstring; + struct EXTERNAL *external; struct Authentication_value__other { - Mechanism_name_t other_mechanism_name; - ANY_t other_mechanism_value; + Mechanism_name_t other_mechanism_name; + ANY_t other_mechanism_value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -60,5 +62,8 @@ extern asn_TYPE_member_t asn_MBR_Authentication_value_1[4]; } #endif +/* Referred external types */ +#include "EXTERNAL.h" + #endif /* _Authentication_value_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Authentication-value_Py.c b/src/icspacket/proto/mms/_mms/Authentication-value_Py.c index dcdfab95..ba0cbdcb 100644 --- a/src/icspacket/proto/mms/_mms/Authentication-value_Py.c +++ b/src/icspacket/proto/mms/_mms/Authentication-value_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -41,7 +41,7 @@ PY_IMPL_SEQ_FROMPY(Authentication_value_other_ANON_5, asn_DEF_Authentication_val PY_IMPL_SEQ_INIT(Authentication_value_other_ANON_5); PY_IMPL_SEQ_ANON_ATTR_FROMPY(Authentication_value, other, &src->choice.other, Authentication_value_other_ANON_5); PY_IMPL_SEQ_ANON_ATTR_TOPY(Authentication_value, other, &src->choice.other, Authentication_value_other_ANON_5); -PY_IMPL_CHOICE_GENERIC_SETATTR(Authentication_value, Authentication_value, other, other, asn_DEF_Authentication_value); +PY_IMPL_CHOICE_GENERIC_SETATTR(Authentication_value, Authentication_value, other, other, *asn_DEF_Authentication_value.elements[3].type); PY_IMPL_CHOICE_GETATTR(Authentication_value, Authentication_value, other, other); PY_IMPL_CHOICE_ATTR_FROMPY(Authentication_value, Authentication_value, charstring, charstring,PyCompatUnicode_AsUTF8(value, &dst->choice.charstring.buf, &dst->choice.charstring.size)); PY_IMPL_CHOICE_ATTR_TOPY(Authentication_value, charstring, PyCompatUnicode_FromStringAndSize(src->choice.charstring.buf, src->choice.charstring.size)); @@ -77,8 +77,8 @@ PY_IMPL_BIT_STRING_SIZE(Authentication_value_bitstring); PY_IMPL_BIT_STRING_GET(Authentication_value_bitstring); PY_IMPL_BIT_STRING_SET(Authentication_value_bitstring); PY_IMPL_MEMBER_GETSET(Authentication_value_bitstring, value, Authentication_value_bitstring, self->ob_value); -PY_IMPL_CHOICE_ATTR_FROMPY(Authentication_value, Authentication_value, external, external,PyAsnEXTERNAL_FromPython(value, &dst->choice.external)); -PY_IMPL_CHOICE_ATTR_TOPY(Authentication_value, external, PyCompatAsnType_FromParent(&PyAsnEXTERNAL_Type, parent, (void *)&src->choice.external)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Authentication_value, Authentication_value, external, external, EXTERNAL,PyAsnEXTERNAL_FromPython(value, dst->choice.external)); +PY_IMPL_CHOICE_ATTR_TOPY(Authentication_value, external, PyCompatAsnType_FromParent(&PyAsnEXTERNAL_Type, parent, (void *)src->choice.external)); PY_IMPL_CHOICE_GETATTR(Authentication_value, Authentication_value, external, external); PY_IMPL_CHOICE_SETATTR(Authentication_value, Authentication_value, external, external); PY_IMPL_GENERIC_DEALLOC(Authentication_value); diff --git a/src/icspacket/proto/mms/_mms/Authentication-value_Py.h b/src/icspacket/proto/mms/_mms/Authentication-value_Py.h index 31193e26..6132c8fc 100644 --- a/src/icspacket/proto/mms/_mms/Authentication-value_Py.h +++ b/src/icspacket/proto/mms/_mms/Authentication-value_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.c b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.c index 893b3e1d..c8ef82c2 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_changeDisplay_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_changeDisplay __attribute__((weak, alias("asn_DEF_changeDisplay_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_changeDisplay_2; +static asn_TYPE_descriptor_t asn_DEF_changeDisplay; +__attribute__((constructor)) static void asn_DEF_changeDisplay_2_alias_init(void) { + asn_DEF_changeDisplay = asn_DEF_changeDisplay_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CS_AlterEventConditionMonitoring_Request__changeDisplay_2[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_AlterEventConditionMonitoring_Request__changeDisplay, choice.string), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_changeDisplay_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_changeDisplay_2, + asn_MBR_CS_AlterEventConditionMonitoring_Request__changeDisplay_2, 3, /* Elements count */ &asn_SPC_changeDisplay_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.h b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.h index dbd8a3ee..f3e6c378 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,9 +33,9 @@ typedef struct CS_AlterEventConditionMonitoring_Request { struct CS_AlterEventConditionMonitoring_Request__changeDisplay { CS_AlterEventConditionMonitoring_Request__changeDisplay_PR present; union CS_AlterEventConditionMonitoring_Request__changeDisplay_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.c index bf120d23..f9a681e5 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.h index 31f26af7..9defeb9e 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventConditionMonitoring-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.c b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.c index 0b70c522..723541f4 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_changeDisplay_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_changeDisplay __attribute__((weak, alias("asn_DEF_changeDisplay_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_changeDisplay_2; +static asn_TYPE_descriptor_t asn_DEF_changeDisplay; +__attribute__((constructor)) static void asn_DEF_changeDisplay_2_alias_init(void) { + asn_DEF_changeDisplay = asn_DEF_changeDisplay_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CS_AlterEventEnrollment_Request__changeDisplay_2[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_AlterEventEnrollment_Request__changeDisplay, choice.string), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_changeDisplay_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_changeDisplay_2, + asn_MBR_CS_AlterEventEnrollment_Request__changeDisplay_2, 3, /* Elements count */ &asn_SPC_changeDisplay_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.h b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.h index ac4e4da5..04392458 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,9 +33,9 @@ typedef struct CS_AlterEventEnrollment_Request { struct CS_AlterEventEnrollment_Request__changeDisplay { CS_AlterEventEnrollment_Request__changeDisplay_PR present; union CS_AlterEventEnrollment_Request__changeDisplay_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.c index dc2019d4..adda3178 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.h index 2c2f9781..92567287 100644 --- a/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-AlterEventEnrollment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.c b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.c index d27f2b6d..fc85249c 100644 --- a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.h b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.h index 9d4f1f96..cd5c18bb 100644 --- a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -24,7 +24,7 @@ typedef enum CS_CreateProgramInvocation_Request { } e_CS_CreateProgramInvocation_Request; /* CS-CreateProgramInvocation-Request */ -typedef long CS_CreateProgramInvocation_Request_t; +typedef long CS_CreateProgramInvocation_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_CS_CreateProgramInvocation_Request; diff --git a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.c index a58e7669..c8edf6b4 100644 --- a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.h index a65a50ec..221a4f2c 100644 --- a/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-CreateProgramInvocation-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.c b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.c index 0edd8c6c..259e2e7c 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.h b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.h index 90ef836e..2c45ff71 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -31,9 +31,9 @@ typedef enum CS_DefineEventCondition_Request_PR { typedef struct CS_DefineEventCondition_Request { CS_DefineEventCondition_Request_PR present; union CS_DefineEventCondition_Request_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.c index 9fae6f51..e1039f88 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.h index 715ee0a1..9ce38011 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventCondition-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.c b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.c index 3f2f1e34..e7a08135 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.h b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.h index 5fd6ac67..17a5cdff 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -31,9 +31,9 @@ typedef enum CS_DefineEventEnrollment_Request_PR { typedef struct CS_DefineEventEnrollment_Request { CS_DefineEventEnrollment_Request_PR present; union CS_DefineEventEnrollment_Request_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.c index b8216030..321483f0 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.h index 491ccb19..fa9e32f1 100644 --- a/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-DefineEventEnrollment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-EventNotification.c b/src/icspacket/proto/mms/_mms/CS-EventNotification.c index 15720a12..8878d95c 100644 --- a/src/icspacket/proto/mms/_mms/CS-EventNotification.c +++ b/src/icspacket/proto/mms/_mms/CS-EventNotification.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-EventNotification.h b/src/icspacket/proto/mms/_mms/CS-EventNotification.h index 6e36b448..7194eb83 100644 --- a/src/icspacket/proto/mms/_mms/CS-EventNotification.h +++ b/src/icspacket/proto/mms/_mms/CS-EventNotification.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -31,9 +31,9 @@ typedef enum CS_EventNotification_PR { typedef struct CS_EventNotification { CS_EventNotification_PR present; union CS_EventNotification_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.c b/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.c index b62820bb..f9900a9d 100644 --- a/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.h b/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.h index fa56e9b8..637732ad 100644 --- a/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-EventNotification_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.c b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.c index 10564d32..5a6ea32b 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.c @@ -1,10 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_groupPriorityOverride_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_groupPriorityOverride __attribute__((weak, alias("asn_DEF_groupPriorityOverride_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_groupPriorityOverride_2; +static asn_TYPE_descriptor_t asn_DEF_groupPriorityOverride; +__attribute__((constructor)) static void asn_DEF_groupPriorityOverride_2_alias_init(void) { + asn_DEF_groupPriorityOverride = asn_DEF_groupPriorityOverride_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfReferencingECL __attribute__((weak, alias("asn_DEF_listOfReferencingECL_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfReferencingECL_5; +static asn_TYPE_descriptor_t asn_DEF_listOfReferencingECL; +__attribute__((constructor)) static void asn_DEF_listOfReferencingECL_5_alias_init(void) { + asn_DEF_listOfReferencingECL = asn_DEF_listOfReferencingECL_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_displayEnhancement __attribute__((weak, alias("asn_DEF_displayEnhancement_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_displayEnhancement_7; +static asn_TYPE_descriptor_t asn_DEF_displayEnhancement; +__attribute__((constructor)) static void asn_DEF_displayEnhancement_7_alias_init(void) { + asn_DEF_displayEnhancement = asn_DEF_displayEnhancement_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CS_GetEventConditionAttributes_Response__groupPriorityOverride_2[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_GetEventConditionAttributes_Response__groupPriorityOverride, choice.priority), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -81,12 +114,12 @@ asn_TYPE_descriptor_t asn_DEF_groupPriorityOverride_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_groupPriorityOverride_2, + asn_MBR_CS_GetEventConditionAttributes_Response__groupPriorityOverride_2, 2, /* Elements count */ &asn_SPC_groupPriorityOverride_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfReferencingECL_5[] = { +static asn_TYPE_member_t asn_MBR_CS_GetEventConditionAttributes_Response__listOfReferencingECL_5[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -105,7 +138,7 @@ static asn_TYPE_member_t asn_MBR_listOfReferencingECL_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfReferencingECL_tags_5[] = { @@ -140,12 +173,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfReferencingECL_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfReferencingECL_5, + asn_MBR_CS_GetEventConditionAttributes_Response__listOfReferencingECL_5, 1, /* Single element */ &asn_SPC_listOfReferencingECL_specs_5 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_displayEnhancement_7[] = { +static asn_TYPE_member_t asn_MBR_CS_GetEventConditionAttributes_Response__displayEnhancement_7[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_GetEventConditionAttributes_Response__displayEnhancement, choice.string), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -243,7 +276,7 @@ asn_TYPE_descriptor_t asn_DEF_displayEnhancement_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_displayEnhancement_7, + asn_MBR_CS_GetEventConditionAttributes_Response__displayEnhancement_7, 3, /* Elements count */ &asn_SPC_displayEnhancement_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.h b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.h index a4548041..c263f267 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Priority.h" #include #include #include @@ -44,8 +44,8 @@ typedef struct CS_GetEventConditionAttributes_Response { struct CS_GetEventConditionAttributes_Response__groupPriorityOverride { CS_GetEventConditionAttributes_Response__groupPriorityOverride_PR present; union CS_GetEventConditionAttributes_Response__groupPriorityOverride_u { - Priority_t priority; - NULL_t undefined; + Priority_t priority; + NULL_t undefined; } choice; /* Context for parsing across buffer boundaries */ @@ -60,9 +60,9 @@ typedef struct CS_GetEventConditionAttributes_Response { struct CS_GetEventConditionAttributes_Response__displayEnhancement { CS_GetEventConditionAttributes_Response__displayEnhancement_PR present; union CS_GetEventConditionAttributes_Response__displayEnhancement_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ @@ -83,7 +83,7 @@ extern asn_TYPE_member_t asn_MBR_CS_GetEventConditionAttributes_Response_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _CS_GetEventConditionAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.c index a3b16f02..0f840d79 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.h index c67bb48d..a5d98898 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-GetEventConditionAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,13 @@ #include #include #include +#include +#include #include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.c b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.c index df61a97a..c15a69db 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.c @@ -1,10 +1,65 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_controlledPI_5[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlledPI __attribute__((weak, alias("asn_DEF_controlledPI_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlledPI_5; +static asn_TYPE_descriptor_t asn_DEF_controlledPI; +__attribute__((constructor)) static void asn_DEF_controlledPI_5_alias_init(void) { + asn_DEF_controlledPI = asn_DEF_controlledPI_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_runningMode __attribute__((weak, alias("asn_DEF_runningMode_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_runningMode_8; +static asn_TYPE_descriptor_t asn_DEF_runningMode; +__attribute__((constructor)) static void asn_DEF_runningMode_8_alias_init(void) { + asn_DEF_runningMode = asn_DEF_runningMode_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlling __attribute__((weak, alias("asn_DEF_controlling_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlling_4; +static asn_TYPE_descriptor_t asn_DEF_controlling; +__attribute__((constructor)) static void asn_DEF_controlling_4_alias_init(void) { + asn_DEF_controlling = asn_DEF_controlling_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlled __attribute__((weak, alias("asn_DEF_controlled_12"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlled_12; +static asn_TYPE_descriptor_t asn_DEF_controlled; +__attribute__((constructor)) static void asn_DEF_controlled_12_alias_init(void) { + asn_DEF_controlled = asn_DEF_controlled_12; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_control __attribute__((weak, alias("asn_DEF_control_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_control_3; +static asn_TYPE_descriptor_t asn_DEF_control; +__attribute__((constructor)) static void asn_DEF_control_3_alias_init(void) { + asn_DEF_control = asn_DEF_control_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlling__controlledPI_5[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +78,7 @@ static asn_TYPE_member_t asn_MBR_controlledPI_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_controlledPI_tags_5[] = { @@ -58,12 +113,12 @@ asn_TYPE_descriptor_t asn_DEF_controlledPI_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_controlledPI_5, + asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlling__controlledPI_5, 1, /* Single element */ &asn_SPC_controlledPI_specs_5 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_runningMode_8[] = { +static asn_TYPE_member_t asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlling__runningMode_8[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_GetProgramInvocationAttributes_Response__control__controlling__runningMode, choice.freeRunning), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -161,12 +216,12 @@ asn_TYPE_descriptor_t asn_DEF_runningMode_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_runningMode_8, + asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlling__runningMode_8, 3, /* Elements count */ &asn_SPC_runningMode_specs_8 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_controlling_4[] = { +static asn_TYPE_member_t asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlling_4[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_GetProgramInvocationAttributes_Response__control__controlling, controlledPI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, @@ -270,12 +325,12 @@ asn_TYPE_descriptor_t asn_DEF_controlling_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_controlling_4, + asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlling_4, 3, /* Elements count */ &asn_SPC_controlling_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_controlled_12[] = { +static asn_TYPE_member_t asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlled_12[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_GetProgramInvocationAttributes_Response__control__controlled, choice.controllingPI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -352,12 +407,12 @@ asn_TYPE_descriptor_t asn_DEF_controlled_12 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_controlled_12, + asn_MBR_CS_GetProgramInvocationAttributes_Response__control__controlled_12, 2, /* Elements count */ &asn_SPC_controlled_specs_12 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_control_3[] = { +static asn_TYPE_member_t asn_MBR_CS_GetProgramInvocationAttributes_Response__control_3[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_GetProgramInvocationAttributes_Response__control, choice.controlling), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, @@ -455,7 +510,7 @@ asn_TYPE_descriptor_t asn_DEF_control_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_control_3, + asn_MBR_CS_GetProgramInvocationAttributes_Response__control_3, 3, /* Elements count */ &asn_SPC_control_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.h b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.h index c1be8ac0..435e6a64 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,7 @@ #include #include #include -#include +#include "Identifier.h" #include #include #include @@ -44,7 +44,7 @@ typedef enum CS_GetProgramInvocationAttributes_Response__control__controlled_PR /* CS-GetProgramInvocationAttributes-Response */ typedef struct CS_GetProgramInvocationAttributes_Response { - long errorCode; + long errorCode; struct CS_GetProgramInvocationAttributes_Response__control { CS_GetProgramInvocationAttributes_Response__control_PR present; union CS_GetProgramInvocationAttributes_Response__control_u { @@ -55,13 +55,13 @@ typedef struct CS_GetProgramInvocationAttributes_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } controlledPI; - VisibleString_t *programLocation; /* OPTIONAL */ + VisibleString_t *programLocation; /* OPTIONAL */ struct CS_GetProgramInvocationAttributes_Response__control__controlling__runningMode { CS_GetProgramInvocationAttributes_Response__control__controlling__runningMode_PR present; union CS_GetProgramInvocationAttributes_Response__control__controlling__runningMode_u { - NULL_t freeRunning; - long cycleLimited; - long stepLimited; + NULL_t freeRunning; + long cycleLimited; + long stepLimited; } choice; /* Context for parsing across buffer boundaries */ @@ -74,14 +74,14 @@ typedef struct CS_GetProgramInvocationAttributes_Response { struct CS_GetProgramInvocationAttributes_Response__control__controlled { CS_GetProgramInvocationAttributes_Response__control__controlled_PR present; union CS_GetProgramInvocationAttributes_Response__control__controlled_u { - Identifier_t controllingPI; - NULL_t none; + Identifier_t controllingPI; + NULL_t none; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } controlled; - NULL_t normal; + NULL_t normal; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.c index 173ee33b..a7653e2d 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -115,7 +115,7 @@ PY_IMPL_SEQ_FROMPY(CS_GetProgramInvocationAttributes_Response_controlling_ANON_4 PY_IMPL_SEQ_INIT(CS_GetProgramInvocationAttributes_Response_controlling_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CS_GetProgramInvocationAttributes_Response_control_ANON_3, controlling, &src->choice.controlling, CS_GetProgramInvocationAttributes_Response_controlling_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(CS_GetProgramInvocationAttributes_Response_control_ANON_3, controlling, &src->choice.controlling, CS_GetProgramInvocationAttributes_Response_controlling_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, controlling, controlling, asn_DEF_CS_GetProgramInvocationAttributes_Response); +PY_IMPL_CHOICE_GENERIC_SETATTR(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, controlling, controlling, *asn_DEF_CS_GetProgramInvocationAttributes_Response.elements[1].type->elements[0].type); PY_IMPL_CHOICE_GETATTR(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, controlling, controlling); PY_IMPL_CHOICE_ATTR_FROMPY(CS_GetProgramInvocationAttributes_Response_controlled_ANON_12, CS_GetProgramInvocationAttributes_Response__control__controlled, controllingPI, controllingPI,PyAsnIdentifier_FromPython(value, &dst->choice.controllingPI)); PY_IMPL_CHOICE_ATTR_TOPY(CS_GetProgramInvocationAttributes_Response_controlled_ANON_12, controllingPI, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.controllingPI)); @@ -153,7 +153,7 @@ PY_IMPL_CHOICE_FROMPY(CS_GetProgramInvocationAttributes_Response_controlled_ANON PY_IMPL_CHOICE_INIT_GENERIC(CS_GetProgramInvocationAttributes_Response_controlled_ANON_12, CS_GetProgramInvocationAttributes_Response__control__controlled); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CS_GetProgramInvocationAttributes_Response_control_ANON_3, controlled, &src->choice.controlled, CS_GetProgramInvocationAttributes_Response_controlled_ANON_12); PY_IMPL_SEQ_ANON_ATTR_TOPY(CS_GetProgramInvocationAttributes_Response_control_ANON_3, controlled, &src->choice.controlled, CS_GetProgramInvocationAttributes_Response_controlled_ANON_12); -PY_IMPL_CHOICE_GENERIC_SETATTR(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, controlled, controlled, asn_DEF_CS_GetProgramInvocationAttributes_Response); +PY_IMPL_CHOICE_GENERIC_SETATTR(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, controlled, controlled, *asn_DEF_CS_GetProgramInvocationAttributes_Response.elements[1].type->elements[1].type); PY_IMPL_CHOICE_GETATTR(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, controlled, controlled); PY_IMPL_CHOICE_ATTR_FROMPY(CS_GetProgramInvocationAttributes_Response_control_ANON_3, CS_GetProgramInvocationAttributes_Response__control, normal, normal, PyCompatNull_FromObject(value, &dst->choice.normal)); PY_IMPL_CHOICE_ATTR_TOPY(CS_GetProgramInvocationAttributes_Response_control_ANON_3, normal, Py_None); diff --git a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.h index 1cbcc25f..aecc32c5 100644 --- a/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-GetProgramInvocationAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,17 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CS-Resume-Request.c b/src/icspacket/proto/mms/_mms/CS-Resume-Request.c index 2d24c3c0..d5f45884 100644 --- a/src/icspacket/proto/mms/_mms/CS-Resume-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-Resume-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_modeType_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_modeType __attribute__((weak, alias("asn_DEF_modeType_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_modeType_4; +static asn_TYPE_descriptor_t asn_DEF_modeType; +__attribute__((constructor)) static void asn_DEF_modeType_4_alias_init(void) { + asn_DEF_modeType = asn_DEF_modeType_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlling __attribute__((weak, alias("asn_DEF_controlling_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlling_3; +static asn_TYPE_descriptor_t asn_DEF_controlling; +__attribute__((constructor)) static void asn_DEF_controlling_3_alias_init(void) { + asn_DEF_controlling = asn_DEF_controlling_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CS_Resume_Request__controlling__modeType_4[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_Resume_Request__controlling__modeType, choice.continueMode), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -81,12 +103,12 @@ asn_TYPE_descriptor_t asn_DEF_modeType_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_modeType_4, + asn_MBR_CS_Resume_Request__controlling__modeType_4, 2, /* Elements count */ &asn_SPC_modeType_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_controlling_3[] = { +static asn_TYPE_member_t asn_MBR_CS_Resume_Request__controlling_3[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_Resume_Request__controlling, modeType), -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -146,7 +168,7 @@ asn_TYPE_descriptor_t asn_DEF_controlling_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_controlling_3, + asn_MBR_CS_Resume_Request__controlling_3, 1, /* Elements count */ &asn_SPC_controlling_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-Resume-Request.h b/src/icspacket/proto/mms/_mms/CS-Resume-Request.h index ffc883ac..c74280cc 100644 --- a/src/icspacket/proto/mms/_mms/CS-Resume-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-Resume-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "StartCount.h" #include #include @@ -35,13 +35,13 @@ typedef enum CS_Resume_Request__controlling__modeType_PR { typedef struct CS_Resume_Request { CS_Resume_Request_PR present; union CS_Resume_Request_u { - NULL_t normal; + NULL_t normal; struct CS_Resume_Request__controlling { struct CS_Resume_Request__controlling__modeType { CS_Resume_Request__controlling__modeType_PR present; union CS_Resume_Request__controlling__modeType_u { - NULL_t continueMode; - StartCount_t changeMode; + NULL_t continueMode; + StartCount_t changeMode; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.c index ccd32d7c..0d990ebb 100644 --- a/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -69,7 +69,7 @@ PY_IMPL_SEQ_FROMPY(CS_Resume_Request_controlling_ANON_3, asn_DEF_CS_Resume_Reque PY_IMPL_SEQ_INIT(CS_Resume_Request_controlling_ANON_3); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CS_Resume_Request, controlling, &src->choice.controlling, CS_Resume_Request_controlling_ANON_3); PY_IMPL_SEQ_ANON_ATTR_TOPY(CS_Resume_Request, controlling, &src->choice.controlling, CS_Resume_Request_controlling_ANON_3); -PY_IMPL_CHOICE_GENERIC_SETATTR(CS_Resume_Request, CS_Resume_Request, controlling, controlling, asn_DEF_CS_Resume_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(CS_Resume_Request, CS_Resume_Request, controlling, controlling, *asn_DEF_CS_Resume_Request.elements[1].type); PY_IMPL_CHOICE_GETATTR(CS_Resume_Request, CS_Resume_Request, controlling, controlling); PY_IMPL_CHOICE_ATTR_FROMPY(CS_Resume_Request, CS_Resume_Request, normal, normal, PyCompatNull_FromObject(value, &dst->choice.normal)); PY_IMPL_CHOICE_ATTR_TOPY(CS_Resume_Request, normal, Py_None); diff --git a/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.h index c3ff8548..50660a00 100644 --- a/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-Resume-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,10 @@ #include #include #include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CS-Start-Request.c b/src/icspacket/proto/mms/_mms/CS-Start-Request.c index 8ede69f1..56b60f0b 100644 --- a/src/icspacket/proto/mms/_mms/CS-Start-Request.c +++ b/src/icspacket/proto/mms/_mms/CS-Start-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_controlling_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlling __attribute__((weak, alias("asn_DEF_controlling_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlling_3; +static asn_TYPE_descriptor_t asn_DEF_controlling; +__attribute__((constructor)) static void asn_DEF_controlling_3_alias_init(void) { + asn_DEF_controlling = asn_DEF_controlling_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CS_Start_Request__controlling_3[] = { { ATF_POINTER, 2, offsetof(struct CS_Start_Request__controlling, startLocation), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -86,7 +97,7 @@ asn_TYPE_descriptor_t asn_DEF_controlling_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_controlling_3, + asn_MBR_CS_Start_Request__controlling_3, 2, /* Elements count */ &asn_SPC_controlling_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-Start-Request.h b/src/icspacket/proto/mms/_mms/CS-Start-Request.h index 61ca2bd3..e85e44b6 100644 --- a/src/icspacket/proto/mms/_mms/CS-Start-Request.h +++ b/src/icspacket/proto/mms/_mms/CS-Start-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,10 +33,10 @@ struct StartCount; typedef struct CS_Start_Request { CS_Start_Request_PR present; union CS_Start_Request_u { - NULL_t normal; + NULL_t normal; struct CS_Start_Request__controlling { - VisibleString_t *startLocation; /* OPTIONAL */ - struct StartCount *startCount; /* DEFAULT {cycleCount: 1} */ + VisibleString_t *startLocation; /* OPTIONAL */ + struct StartCount *startCount; /* DEFAULT {cycleCount: 1} */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -57,7 +57,7 @@ extern asn_TYPE_member_t asn_MBR_CS_Start_Request_1[2]; #endif /* Referred external types */ -#include +#include "StartCount.h" #endif /* _CS_Start_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.c b/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.c index aa8c98dc..1ba5b90f 100644 --- a/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -44,7 +44,7 @@ PY_IMPL_SEQ_FROMPY(CS_Start_Request_controlling_ANON_3, asn_DEF_CS_Start_Request PY_IMPL_SEQ_INIT(CS_Start_Request_controlling_ANON_3); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CS_Start_Request, controlling, &src->choice.controlling, CS_Start_Request_controlling_ANON_3); PY_IMPL_SEQ_ANON_ATTR_TOPY(CS_Start_Request, controlling, &src->choice.controlling, CS_Start_Request_controlling_ANON_3); -PY_IMPL_CHOICE_GENERIC_SETATTR(CS_Start_Request, CS_Start_Request, controlling, controlling, asn_DEF_CS_Start_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(CS_Start_Request, CS_Start_Request, controlling, controlling, *asn_DEF_CS_Start_Request.elements[1].type); PY_IMPL_CHOICE_GETATTR(CS_Start_Request, CS_Start_Request, controlling, controlling); PY_IMPL_CHOICE_ATTR_FROMPY(CS_Start_Request, CS_Start_Request, normal, normal, PyCompatNull_FromObject(value, &dst->choice.normal)); PY_IMPL_CHOICE_ATTR_TOPY(CS_Start_Request, normal, Py_None); diff --git a/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.h b/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.h index f66d6746..f11d582f 100644 --- a/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-Start-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CS-Status-Response.c b/src/icspacket/proto/mms/_mms/CS-Status-Response.c index 19c33fed..c4c431a4 100644 --- a/src/icspacket/proto/mms/_mms/CS-Status-Response.c +++ b/src/icspacket/proto/mms/_mms/CS-Status-Response.c @@ -1,9 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_selectedProgramInvocation __attribute__((weak, alias("asn_DEF_selectedProgramInvocation_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_selectedProgramInvocation_6; +static asn_TYPE_descriptor_t asn_DEF_selectedProgramInvocation; +__attribute__((constructor)) static void asn_DEF_selectedProgramInvocation_6_alias_init(void) { + asn_DEF_selectedProgramInvocation = asn_DEF_selectedProgramInvocation_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_fullResponse __attribute__((weak, alias("asn_DEF_fullResponse_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_fullResponse_2; +static asn_TYPE_descriptor_t asn_DEF_fullResponse; +__attribute__((constructor)) static void asn_DEF_fullResponse_2_alias_init(void) { + asn_DEF_fullResponse = asn_DEF_fullResponse_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_extendedStatus_constr_4 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_extendedStatusMask_constr_5 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static int asn_DFL_5_cmp(const void *sptr) { static const uint8_t defv[] = { 0xF0 }; const ExtendedStatus_t *st = sptr; @@ -37,7 +71,7 @@ static int asn_DFL_5_set(void **sptr) { return 0; } -static asn_TYPE_member_t asn_MBR_selectedProgramInvocation_6[] = { +static asn_TYPE_member_t asn_MBR_CS_Status_Response__fullResponse__selectedProgramInvocation_6[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_Status_Response__fullResponse__selectedProgramInvocation, choice.programInvocation), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ @@ -114,12 +148,12 @@ asn_TYPE_descriptor_t asn_DEF_selectedProgramInvocation_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_selectedProgramInvocation_6, + asn_MBR_CS_Status_Response__fullResponse__selectedProgramInvocation_6, 2, /* Elements count */ &asn_SPC_selectedProgramInvocation_specs_6 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_fullResponse_2[] = { +static asn_TYPE_member_t asn_MBR_CS_Status_Response__fullResponse_2[] = { { ATF_NOFLAGS, 0, offsetof(struct CS_Status_Response__fullResponse, operationState), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -245,7 +279,7 @@ asn_TYPE_descriptor_t asn_DEF_fullResponse_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_fullResponse_2, + asn_MBR_CS_Status_Response__fullResponse_2, 4, /* Elements count */ &asn_SPC_fullResponse_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CS-Status-Response.h b/src/icspacket/proto/mms/_mms/CS-Status-Response.h index 9af06d6b..d9523496 100644 --- a/src/icspacket/proto/mms/_mms/CS-Status-Response.h +++ b/src/icspacket/proto/mms/_mms/CS-Status-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,9 +11,9 @@ /* Including external dependencies */ #include -#include -#include -#include +#include "OperationState.h" +#include "ExtendedStatus.h" +#include "Identifier.h" #include #include @@ -38,14 +38,14 @@ typedef struct CS_Status_Response { CS_Status_Response_PR present; union CS_Status_Response_u { struct CS_Status_Response__fullResponse { - OperationState_t operationState; - ExtendedStatus_t extendedStatus; - ExtendedStatus_t *extendedStatusMask; /* DEFAULT '1111'BH */ + OperationState_t operationState; + ExtendedStatus_t extendedStatus; + ExtendedStatus_t *extendedStatusMask; /* DEFAULT '1111'BH */ struct CS_Status_Response__fullResponse__selectedProgramInvocation { CS_Status_Response__fullResponse__selectedProgramInvocation_PR present; union CS_Status_Response__fullResponse__selectedProgramInvocation_u { - Identifier_t programInvocation; - NULL_t noneSelected; + Identifier_t programInvocation; + NULL_t noneSelected; } choice; /* Context for parsing across buffer boundaries */ @@ -55,7 +55,7 @@ typedef struct CS_Status_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } fullResponse; - NULL_t noExtraResponse; + NULL_t noExtraResponse; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.c b/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.c index 2d6d50bf..0b14d2e0 100644 --- a/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -86,7 +86,7 @@ PY_IMPL_SEQ_FROMPY(CS_Status_Response_fullResponse_ANON_2, asn_DEF_CS_Status_Res PY_IMPL_SEQ_INIT(CS_Status_Response_fullResponse_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CS_Status_Response, fullResponse, &src->choice.fullResponse, CS_Status_Response_fullResponse_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(CS_Status_Response, fullResponse, &src->choice.fullResponse, CS_Status_Response_fullResponse_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(CS_Status_Response, CS_Status_Response, fullResponse, fullResponse, asn_DEF_CS_Status_Response); +PY_IMPL_CHOICE_GENERIC_SETATTR(CS_Status_Response, CS_Status_Response, fullResponse, fullResponse, *asn_DEF_CS_Status_Response.elements[0].type); PY_IMPL_CHOICE_GETATTR(CS_Status_Response, CS_Status_Response, fullResponse, fullResponse); PY_IMPL_CHOICE_ATTR_FROMPY(CS_Status_Response, CS_Status_Response, noExtraResponse, noExtraResponse, PyCompatNull_FromObject(value, &dst->choice.noExtraResponse)); PY_IMPL_CHOICE_ATTR_TOPY(CS_Status_Response, noExtraResponse, Py_None); diff --git a/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.h b/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.h index af687f14..8adc4c63 100644 --- a/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/CS-Status-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,8 +13,13 @@ #include #include #include +#include +#include #include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.c b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.c index dad5e4ec..af668198 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.c +++ b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Cancel_ErrorPDU_1[] = { 0, 0, /* No default value */ "originalInvokeID" }, - { ATF_NOFLAGS, 0, offsetof(struct Cancel_ErrorPDU, serviceError), + { ATF_POINTER, 0, offsetof(struct Cancel_ErrorPDU, serviceError), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ServiceError, diff --git a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.h b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.h index 515beecb..3a285ecf 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.h +++ b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned32.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ServiceError; + /* Cancel-ErrorPDU */ typedef struct Cancel_ErrorPDU { - Unsigned32_t originalInvokeID; - ServiceError_t serviceError; + Unsigned32_t originalInvokeID; + struct ServiceError *serviceError; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_Cancel_ErrorPDU_1[2]; } #endif +/* Referred external types */ +#include "ServiceError.h" + #endif /* _Cancel_ErrorPDU_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.c b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.c index 52f56a65..433846db 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(Cancel_ErrorPDU, originalInvokeID, PyAsnUnsigned32_FromP PY_IMPL_SEQ_REF_ATTR_TOPY(Cancel_ErrorPDU, originalInvokeID, Unsigned32); PY_IMPL_SEQ_GETATTR(Cancel_ErrorPDU, originalInvokeID); PY_IMPL_SEQ_SETATTR(Cancel_ErrorPDU, originalInvokeID); -PY_IMPL_SEQ_ATTR_FROMPY(Cancel_ErrorPDU, serviceError, PyAsnServiceError_FromPython(value, (ServiceError_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Cancel_ErrorPDU, serviceError, ServiceError); -PY_IMPL_SEQ_GETATTR(Cancel_ErrorPDU, serviceError); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Cancel_ErrorPDU, serviceError); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Cancel_ErrorPDU, serviceError, ServiceError_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Cancel_ErrorPDU, serviceError, PyAsnServiceError_FromPython(value, (ServiceError_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Cancel_ErrorPDU, serviceError, ServiceError); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Cancel_ErrorPDU, serviceError); PY_IMPL_SEQ_SETATTR(Cancel_ErrorPDU, serviceError); PY_IMPL_GENERIC_DEALLOC(Cancel_ErrorPDU); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(Cancel_ErrorPDU); diff --git a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.h b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.h index 31a20724..995c1c8f 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Cancel-ErrorPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.c b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.c index c59921f6..049c0e2a 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.c +++ b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.h b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.h index 85ed8ba0..4620b3ef 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.h +++ b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* Cancel-RequestPDU */ -typedef Unsigned32_t Cancel_RequestPDU_t; +typedef Unsigned32_t Cancel_RequestPDU_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Cancel_RequestPDU; diff --git a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.c b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.c index 6bebe1a1..ff7dfbd7 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.h b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.h index 2633e236..f2152205 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Cancel-RequestPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.c b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.c index 1a596199..6feec0a4 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.c +++ b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.h b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.h index aab77a58..b8f3c3e9 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.h +++ b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* Cancel-ResponsePDU */ -typedef Unsigned32_t Cancel_ResponsePDU_t; +typedef Unsigned32_t Cancel_ResponsePDU_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Cancel_ResponsePDU; diff --git a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.c b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.c index 22b9b67c..1b9e55c8 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.h b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.h index b45b5b43..c9101b22 100644 --- a/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Cancel-ResponsePDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.c b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.c index e57c55b4..62edce71 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.c +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.h b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.h index 05a14423..99ba9da4 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.h +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* ChangeAccessControl-Error */ -typedef Unsigned32_t ChangeAccessControl_Error_t; +typedef Unsigned32_t ChangeAccessControl_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ChangeAccessControl_Error; diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.c b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.c index f55c5381..19f3942a 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.h b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.h index 1d7d0fe4..4b355aaa 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.c b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.c index fd431939..90fab5f1 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.c +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.c @@ -1,10 +1,54 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_specific_7[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_specific __attribute__((weak, alias("asn_DEF_specific_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_specific_7; +static asn_TYPE_descriptor_t asn_DEF_specific; +__attribute__((constructor)) static void asn_DEF_specific_7_alias_init(void) { + asn_DEF_specific = asn_DEF_specific_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_objectScope __attribute__((weak, alias("asn_DEF_objectScope_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_objectScope_6; +static asn_TYPE_descriptor_t asn_DEF_objectScope; +__attribute__((constructor)) static void asn_DEF_objectScope_6_alias_init(void) { + asn_DEF_objectScope = asn_DEF_objectScope_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfObjects __attribute__((weak, alias("asn_DEF_listOfObjects_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfObjects_4; +static asn_TYPE_descriptor_t asn_DEF_listOfObjects; +__attribute__((constructor)) static void asn_DEF_listOfObjects_4_alias_init(void) { + asn_DEF_listOfObjects = asn_DEF_listOfObjects_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_scopeOfChange __attribute__((weak, alias("asn_DEF_scopeOfChange_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_scopeOfChange_2; +static asn_TYPE_descriptor_t asn_DEF_scopeOfChange; +__attribute__((constructor)) static void asn_DEF_scopeOfChange_2_alias_init(void) { + asn_DEF_scopeOfChange = asn_DEF_scopeOfChange_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope__specific_7[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +67,7 @@ static asn_TYPE_member_t asn_MBR_specific_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_specific_tags_7[] = { @@ -58,12 +102,12 @@ asn_TYPE_descriptor_t asn_DEF_specific_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_specific_7, + asn_MBR_ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope__specific_7, 1, /* Single element */ &asn_SPC_specific_specs_7 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_objectScope_6[] = { +static asn_TYPE_member_t asn_MBR_ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope_6[] = { { ATF_NOFLAGS, 0, offsetof(struct ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope, choice.specific), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, @@ -182,12 +226,12 @@ asn_TYPE_descriptor_t asn_DEF_objectScope_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_objectScope_6, + asn_MBR_ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope_6, 4, /* Elements count */ &asn_SPC_objectScope_specs_6 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfObjects_4[] = { +static asn_TYPE_member_t asn_MBR_ChangeAccessControl_Request__scopeOfChange__listOfObjects_4[] = { { ATF_NOFLAGS, 0, offsetof(struct ChangeAccessControl_Request__scopeOfChange__listOfObjects, objectClass), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -268,12 +312,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfObjects_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_listOfObjects_4, + asn_MBR_ChangeAccessControl_Request__scopeOfChange__listOfObjects_4, 2, /* Elements count */ &asn_SPC_listOfObjects_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_scopeOfChange_2[] = { +static asn_TYPE_member_t asn_MBR_ChangeAccessControl_Request__scopeOfChange_2[] = { { ATF_NOFLAGS, 0, offsetof(struct ChangeAccessControl_Request__scopeOfChange, choice.vMDOnly), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -350,7 +394,7 @@ asn_TYPE_descriptor_t asn_DEF_scopeOfChange_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_scopeOfChange_2, + asn_MBR_ChangeAccessControl_Request__scopeOfChange_2, 2, /* Elements count */ &asn_SPC_scopeOfChange_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.h b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.h index 08fdb77d..d8e66159 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.h +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,9 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include +#include "ObjectClass.h" #include #include #include @@ -44,9 +44,9 @@ typedef struct ChangeAccessControl_Request { struct ChangeAccessControl_Request__scopeOfChange { ChangeAccessControl_Request__scopeOfChange_PR present; union ChangeAccessControl_Request__scopeOfChange_u { - NULL_t vMDOnly; + NULL_t vMDOnly; struct ChangeAccessControl_Request__scopeOfChange__listOfObjects { - ObjectClass_t objectClass; + ObjectClass_t objectClass; struct ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope { ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope_PR present; union ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope_u { @@ -56,9 +56,9 @@ typedef struct ChangeAccessControl_Request { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } specific; - NULL_t aa_specific; - Identifier_t domain; - NULL_t vmd; + NULL_t aa_specific; + Identifier_t domain; + NULL_t vmd; } choice; /* Context for parsing across buffer boundaries */ @@ -73,7 +73,7 @@ typedef struct ChangeAccessControl_Request { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } scopeOfChange; - Identifier_t accessControlListName; + Identifier_t accessControlListName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -89,7 +89,7 @@ extern asn_TYPE_member_t asn_MBR_ChangeAccessControl_Request_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _ChangeAccessControl_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.c b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.c index d16eddb7..b7020a08 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,7 +33,7 @@ PY_IMPL_ENCODE_JER(ChangeAccessControl_Request_specific_ANON_7); PY_IMPL_GENERIC_IS_VALID(ChangeAccessControl_Request_specific_ANON_7); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ChangeAccessControl_Request_objectScope_ANON_6, specific, &src->choice.specific, ChangeAccessControl_Request_specific_ANON_7); PY_IMPL_SEQ_ANON_ATTR_TOPY(ChangeAccessControl_Request_objectScope_ANON_6, specific, &src->choice.specific, ChangeAccessControl_Request_specific_ANON_7); -PY_IMPL_CHOICE_GENERIC_SETATTR(ChangeAccessControl_Request_objectScope_ANON_6, ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope, specific, specific, asn_DEF_ChangeAccessControl_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(ChangeAccessControl_Request_objectScope_ANON_6, ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope, specific, specific, *asn_DEF_ChangeAccessControl_Request.elements[0].type->elements[1].type->elements[1].type->elements[0].type); PY_IMPL_CHOICE_GETATTR(ChangeAccessControl_Request_objectScope_ANON_6, ChangeAccessControl_Request__scopeOfChange__listOfObjects__objectScope, specific, specific); PY_IMPL_SEQ_OF_LEN(ChangeAccessControl_Request_specific_ANON_7); PY_IMPL_SEQ_OF_GETITEM(ChangeAccessControl_Request_specific_ANON_7); @@ -113,7 +113,7 @@ PY_IMPL_SEQ_FROMPY(ChangeAccessControl_Request_listOfObjects_ANON_4, asn_DEF_Cha PY_IMPL_SEQ_INIT(ChangeAccessControl_Request_listOfObjects_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ChangeAccessControl_Request_scopeOfChange_ANON_2, listOfObjects, &src->choice.listOfObjects, ChangeAccessControl_Request_listOfObjects_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(ChangeAccessControl_Request_scopeOfChange_ANON_2, listOfObjects, &src->choice.listOfObjects, ChangeAccessControl_Request_listOfObjects_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(ChangeAccessControl_Request_scopeOfChange_ANON_2, ChangeAccessControl_Request__scopeOfChange, listOfObjects, listOfObjects, asn_DEF_ChangeAccessControl_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(ChangeAccessControl_Request_scopeOfChange_ANON_2, ChangeAccessControl_Request__scopeOfChange, listOfObjects, listOfObjects, *asn_DEF_ChangeAccessControl_Request.elements[0].type->elements[1].type); PY_IMPL_CHOICE_GETATTR(ChangeAccessControl_Request_scopeOfChange_ANON_2, ChangeAccessControl_Request__scopeOfChange, listOfObjects, listOfObjects); PY_IMPL_CHOICE_ATTR_FROMPY(ChangeAccessControl_Request_scopeOfChange_ANON_2, ChangeAccessControl_Request__scopeOfChange, vMDOnly, vMDOnly, PyCompatNull_FromObject(value, &dst->choice.vMDOnly)); PY_IMPL_CHOICE_ATTR_TOPY(ChangeAccessControl_Request_scopeOfChange_ANON_2, vMDOnly, Py_None); diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.h b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.h index 6fd1a94c..42ee6a2f 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,8 +13,17 @@ #include #include #include +#include +#include #include +#include +#include #include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.c b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.c index a23eb235..5575a301 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.c +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.h b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.h index bf4d65a3..b8dc00da 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.h +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include #ifdef __cplusplus @@ -19,8 +19,8 @@ extern "C" { /* ChangeAccessControl-Response */ typedef struct ChangeAccessControl_Response { - Unsigned32_t numberMatched; - Unsigned32_t numberChanged; + Unsigned32_t numberMatched; + Unsigned32_t numberChanged; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.c b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.c index 8f4089a5..64ea67e1 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.h b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.h index 8f9597c1..0299548d 100644 --- a/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ChangeAccessControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.c b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.c index 6b31e6bb..853c49f1 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.c +++ b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.h b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.h index ee214c5b..c08fefc9 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.h +++ b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ServiceError.h" #ifdef __cplusplus extern "C" { #endif /* Conclude-ErrorPDU */ -typedef ServiceError_t Conclude_ErrorPDU_t; +typedef ServiceError_t Conclude_ErrorPDU_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Conclude_ErrorPDU; diff --git a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.c b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.c index 5c458a19..25539653 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.h b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.h index 7ea4e30f..dc305c3f 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Conclude-ErrorPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.c b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.c index 045e6b1c..f0390ca7 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.c +++ b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.h b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.h index 898cd78d..0b211577 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.h +++ b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Conclude-RequestPDU */ -typedef NULL_t Conclude_RequestPDU_t; +typedef NULL_t Conclude_RequestPDU_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Conclude_RequestPDU; diff --git a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.c b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.c index 45d42914..610f64eb 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.h b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.h index fbafdf41..9fb28857 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Conclude-RequestPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.c b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.c index 846a3ff3..d8aaa8da 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.c +++ b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.h b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.h index 64d3af5c..8feaa635 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.h +++ b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Conclude-ResponsePDU */ -typedef NULL_t Conclude_ResponsePDU_t; +typedef NULL_t Conclude_ResponsePDU_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Conclude_ResponsePDU; diff --git a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.c b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.c index 4bce8c2a..61d9ac15 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.h b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.h index 4707de5a..b091ac06 100644 --- a/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Conclude-ResponsePDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.c b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.c index 39c320d7..b9c7b1b3 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.c +++ b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_Confirmed_ErrorPDU_1[] = { 0, 0, /* No default value */ "modifierPosition" }, - { ATF_NOFLAGS, 0, offsetof(struct Confirmed_ErrorPDU, serviceError), + { ATF_POINTER, 0, offsetof(struct Confirmed_ErrorPDU, serviceError), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ServiceError, diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.h b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.h index 370b6028..e583745b 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.h +++ b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,19 +10,21 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned32.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ServiceError; + /* Confirmed-ErrorPDU */ typedef struct Confirmed_ErrorPDU { - Unsigned32_t invokeID; - Unsigned32_t *modifierPosition; /* OPTIONAL */ - ServiceError_t serviceError; + Unsigned32_t invokeID; + Unsigned32_t *modifierPosition; /* OPTIONAL */ + struct ServiceError *serviceError; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -37,5 +39,8 @@ extern asn_TYPE_member_t asn_MBR_Confirmed_ErrorPDU_1[3]; } #endif +/* Referred external types */ +#include "ServiceError.h" + #endif /* _Confirmed_ErrorPDU_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.c b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.c index 37fcc9da..c9ab671c 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -16,9 +16,11 @@ PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Confirmed_ErrorPDU, modifierPosition, PyAsnUnsi PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Confirmed_ErrorPDU, modifierPosition, Unsigned32); PY_IMPL_SEQ_OPT_GETATTR(Confirmed_ErrorPDU, modifierPosition); PY_IMPL_SEQ_OPT_SETATTR(Confirmed_ErrorPDU, modifierPosition); -PY_IMPL_SEQ_ATTR_FROMPY(Confirmed_ErrorPDU, serviceError, PyAsnServiceError_FromPython(value, (ServiceError_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Confirmed_ErrorPDU, serviceError, ServiceError); -PY_IMPL_SEQ_GETATTR(Confirmed_ErrorPDU, serviceError); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Confirmed_ErrorPDU, serviceError); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Confirmed_ErrorPDU, serviceError, ServiceError_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Confirmed_ErrorPDU, serviceError, PyAsnServiceError_FromPython(value, (ServiceError_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Confirmed_ErrorPDU, serviceError, ServiceError); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Confirmed_ErrorPDU, serviceError); PY_IMPL_SEQ_SETATTR(Confirmed_ErrorPDU, serviceError); PY_IMPL_GENERIC_DEALLOC(Confirmed_ErrorPDU); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(Confirmed_ErrorPDU); diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.h b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.h index 8721b2a6..b0e472db 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Confirmed-ErrorPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.c b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.c index cae26c69..aa187382 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.c +++ b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfModifiers_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfModifiers __attribute__((weak, alias("asn_DEF_listOfModifiers_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfModifiers_3; +static asn_TYPE_descriptor_t asn_DEF_listOfModifiers; +__attribute__((constructor)) static void asn_DEF_listOfModifiers_3_alias_init(void) { + asn_DEF_listOfModifiers = asn_DEF_listOfModifiers_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Confirmed_RequestPDU__listOfModifiers_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfModifiers_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfModifiers_tags_3[] = { @@ -57,7 +68,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfModifiers_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfModifiers_3, + asn_MBR_Confirmed_RequestPDU__listOfModifiers_3, 1, /* Single element */ &asn_SPC_listOfModifiers_specs_3 /* Additional specs */ }; @@ -103,7 +114,7 @@ asn_TYPE_member_t asn_MBR_Confirmed_RequestPDU_1[] = { 0, 0, /* No default value */ "listOfModifiers" }, - { ATF_NOFLAGS, 0, offsetof(struct Confirmed_RequestPDU, service), + { ATF_POINTER, 0, offsetof(struct Confirmed_RequestPDU, service), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_ConfirmedServiceRequest, diff --git a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.h b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.h index 413a250e..3cd5ce47 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.h +++ b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned32.h" #include #include #include @@ -21,20 +20,21 @@ extern "C" { #endif /* Forward declarations */ +struct ConfirmedServiceRequest; struct Request_Detail; struct Modifier; /* Confirmed-RequestPDU */ typedef struct Confirmed_RequestPDU { - Unsigned32_t invokeID; + Unsigned32_t invokeID; struct Confirmed_RequestPDU__listOfModifiers { A_SEQUENCE_OF(struct Modifier) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfModifiers; - ConfirmedServiceRequest_t service; - struct Request_Detail *service_ext; /* OPTIONAL */ + struct ConfirmedServiceRequest *service; + struct Request_Detail *service_ext; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -50,8 +50,9 @@ extern asn_TYPE_member_t asn_MBR_Confirmed_RequestPDU_1[4]; #endif /* Referred external types */ -#include -#include +#include "ConfirmedServiceRequest.h" +#include "Request-Detail.h" +#include "Modifier.h" #endif /* _Confirmed_RequestPDU_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.c b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.c index 9c8af92a..5cce93c6 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -43,9 +43,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(Confirmed_RequestPDU, invokeID, PyAsnUnsigned32_FromPyth PY_IMPL_SEQ_REF_ATTR_TOPY(Confirmed_RequestPDU, invokeID, Unsigned32); PY_IMPL_SEQ_GETATTR(Confirmed_RequestPDU, invokeID); PY_IMPL_SEQ_SETATTR(Confirmed_RequestPDU, invokeID); -PY_IMPL_SEQ_ATTR_FROMPY(Confirmed_RequestPDU, service, PyAsnConfirmedServiceRequest_FromPython(value, (ConfirmedServiceRequest_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Confirmed_RequestPDU, service, ConfirmedServiceRequest); -PY_IMPL_SEQ_GETATTR(Confirmed_RequestPDU, service); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Confirmed_RequestPDU, service); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Confirmed_RequestPDU, service, ConfirmedServiceRequest_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Confirmed_RequestPDU, service, PyAsnConfirmedServiceRequest_FromPython(value, (ConfirmedServiceRequest_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Confirmed_RequestPDU, service, ConfirmedServiceRequest); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Confirmed_RequestPDU, service); PY_IMPL_SEQ_SETATTR(Confirmed_RequestPDU, service); PY_IMPL_SEQ_ATTR_GENERIC_FREE(Confirmed_RequestPDU, service_ext); PY_IMPL_SEQ_ATTR_GENERIC_NEW(Confirmed_RequestPDU, service_ext, Request_Detail_t); diff --git a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.h b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.h index 2ff0e878..b1f4a0a2 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Confirmed-RequestPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.c b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.c index 957a2990..cbc27b3d 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.c +++ b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Confirmed_ResponsePDU_1[] = { 0, 0, /* No default value */ "invokeID" }, - { ATF_NOFLAGS, 0, offsetof(struct Confirmed_ResponsePDU, service), + { ATF_POINTER, 0, offsetof(struct Confirmed_ResponsePDU, service), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_ConfirmedServiceResponse, diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.h b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.h index 5b9217a2..0828f1ec 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.h +++ b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned32.h" #include #ifdef __cplusplus @@ -19,13 +18,14 @@ extern "C" { #endif /* Forward declarations */ +struct ConfirmedServiceResponse; struct Response_Detail; /* Confirmed-ResponsePDU */ typedef struct Confirmed_ResponsePDU { - Unsigned32_t invokeID; - ConfirmedServiceResponse_t service; - struct Response_Detail *service_ext; /* OPTIONAL */ + Unsigned32_t invokeID; + struct ConfirmedServiceResponse *service; + struct Response_Detail *service_ext; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,8 @@ extern asn_TYPE_member_t asn_MBR_Confirmed_ResponsePDU_1[3]; #endif /* Referred external types */ -#include +#include "ConfirmedServiceResponse.h" +#include "Response-Detail.h" #endif /* _Confirmed_ResponsePDU_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.c b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.c index f8972036..a92ed1b9 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(Confirmed_ResponsePDU, invokeID, PyAsnUnsigned32_FromPyt PY_IMPL_SEQ_REF_ATTR_TOPY(Confirmed_ResponsePDU, invokeID, Unsigned32); PY_IMPL_SEQ_GETATTR(Confirmed_ResponsePDU, invokeID); PY_IMPL_SEQ_SETATTR(Confirmed_ResponsePDU, invokeID); -PY_IMPL_SEQ_ATTR_FROMPY(Confirmed_ResponsePDU, service, PyAsnConfirmedServiceResponse_FromPython(value, (ConfirmedServiceResponse_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Confirmed_ResponsePDU, service, ConfirmedServiceResponse); -PY_IMPL_SEQ_GETATTR(Confirmed_ResponsePDU, service); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Confirmed_ResponsePDU, service); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Confirmed_ResponsePDU, service, ConfirmedServiceResponse_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Confirmed_ResponsePDU, service, PyAsnConfirmedServiceResponse_FromPython(value, (ConfirmedServiceResponse_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Confirmed_ResponsePDU, service, ConfirmedServiceResponse); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Confirmed_ResponsePDU, service); PY_IMPL_SEQ_SETATTR(Confirmed_ResponsePDU, service); PY_IMPL_SEQ_ATTR_GENERIC_FREE(Confirmed_ResponsePDU, service_ext); PY_IMPL_SEQ_ATTR_GENERIC_NEW(Confirmed_ResponsePDU, service_ext, Response_Detail_t); diff --git a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.h b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.h index 2e09f3b2..c3cf7cba 100644 --- a/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Confirmed-ResponsePDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.c b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.c index 3c907149..d9b7bdbe 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.c +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "status" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getNameList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getNameList), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetNameList_Request, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "identify" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.rename), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.rename), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Rename_Request, @@ -85,7 +85,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "rename" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.read), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.read), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Read_Request, @@ -105,7 +105,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "read" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.write), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.write), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Write_Request, @@ -125,7 +125,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "write" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getVariableAccessAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getVariableAccessAttributes), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetVariableAccessAttributes_Request, @@ -145,7 +145,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getVariableAccessAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineNamedVariable), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineNamedVariable), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineNamedVariable_Request, @@ -165,7 +165,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineNamedVariable" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineScatteredAccess), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineScatteredAccess), (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineScatteredAccess_Request, @@ -185,7 +185,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineScatteredAccess" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getScatteredAccessAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getScatteredAccessAttributes), (ASN_TAG_CLASS_CONTEXT | (9 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetScatteredAccessAttributes_Request, @@ -205,7 +205,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getScatteredAccessAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteVariableAccess), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteVariableAccess), (ASN_TAG_CLASS_CONTEXT | (10 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteVariableAccess_Request, @@ -225,7 +225,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteVariableAccess" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineNamedVariableList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineNamedVariableList), (ASN_TAG_CLASS_CONTEXT | (11 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineNamedVariableList_Request, @@ -245,7 +245,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineNamedVariableList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getNamedVariableListAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getNamedVariableListAttributes), (ASN_TAG_CLASS_CONTEXT | (12 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetNamedVariableListAttributes_Request, @@ -265,7 +265,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getNamedVariableListAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteNamedVariableList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteNamedVariableList), (ASN_TAG_CLASS_CONTEXT | (13 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteNamedVariableList_Request, @@ -285,7 +285,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteNamedVariableList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineNamedType), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineNamedType), (ASN_TAG_CLASS_CONTEXT | (14 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineNamedType_Request, @@ -305,7 +305,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineNamedType" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getNamedTypeAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getNamedTypeAttributes), (ASN_TAG_CLASS_CONTEXT | (15 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetNamedTypeAttributes_Request, @@ -325,7 +325,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getNamedTypeAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteNamedType), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteNamedType), (ASN_TAG_CLASS_CONTEXT | (16 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteNamedType_Request, @@ -345,7 +345,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteNamedType" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.input), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.input), (ASN_TAG_CLASS_CONTEXT | (17 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Input_Request, @@ -365,7 +365,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "input" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.output), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.output), (ASN_TAG_CLASS_CONTEXT | (18 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Output_Request, @@ -385,7 +385,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "output" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.takeControl), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.takeControl), (ASN_TAG_CLASS_CONTEXT | (19 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_TakeControl_Request, @@ -405,7 +405,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "takeControl" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.relinquishControl), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.relinquishControl), (ASN_TAG_CLASS_CONTEXT | (20 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RelinquishControl_Request, @@ -425,7 +425,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "relinquishControl" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineSemaphore), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineSemaphore), (ASN_TAG_CLASS_CONTEXT | (21 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineSemaphore_Request, @@ -445,7 +445,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineSemaphore" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteSemaphore), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteSemaphore), (ASN_TAG_CLASS_CONTEXT | (22 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DeleteSemaphore_Request, @@ -465,7 +465,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteSemaphore" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportSemaphoreStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportSemaphoreStatus), (ASN_TAG_CLASS_CONTEXT | (23 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ReportSemaphoreStatus_Request, @@ -485,7 +485,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportSemaphoreStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportPoolSemaphoreStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportPoolSemaphoreStatus), (ASN_TAG_CLASS_CONTEXT | (24 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportPoolSemaphoreStatus_Request, @@ -505,7 +505,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportPoolSemaphoreStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportSemaphoreEntryStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportSemaphoreEntryStatus), (ASN_TAG_CLASS_CONTEXT | (25 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportSemaphoreEntryStatus_Request, @@ -525,7 +525,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportSemaphoreEntryStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.initiateDownloadSequence), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.initiateDownloadSequence), (ASN_TAG_CLASS_CONTEXT | (26 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_InitiateDownloadSequence_Request, @@ -565,7 +565,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "downloadSegment" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.terminateDownloadSequence), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.terminateDownloadSequence), (ASN_TAG_CLASS_CONTEXT | (28 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_TerminateDownloadSequence_Request, @@ -645,7 +645,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "terminateUploadSequence" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.requestDomainDownload), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.requestDomainDownload), (ASN_TAG_CLASS_CONTEXT | (32 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RequestDomainDownload_Request, @@ -665,7 +665,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "requestDomainDownload" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.requestDomainUpload), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.requestDomainUpload), (ASN_TAG_CLASS_CONTEXT | (33 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RequestDomainUpload_Request, @@ -685,7 +685,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "requestDomainUpload" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.loadDomainContent), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.loadDomainContent), (ASN_TAG_CLASS_CONTEXT | (34 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_LoadDomainContent_Request, @@ -705,7 +705,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "loadDomainContent" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.storeDomainContent), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.storeDomainContent), (ASN_TAG_CLASS_CONTEXT | (35 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_StoreDomainContent_Request, @@ -765,7 +765,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getDomainAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.createProgramInvocation), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.createProgramInvocation), (ASN_TAG_CLASS_CONTEXT | (38 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CreateProgramInvocation_Request, @@ -805,7 +805,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteProgramInvocation" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.start), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.start), (ASN_TAG_CLASS_CONTEXT | (40 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Start_Request, @@ -825,7 +825,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "start" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.stop), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.stop), (ASN_TAG_CLASS_CONTEXT | (41 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Stop_Request, @@ -845,7 +845,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "stop" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.resume), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.resume), (ASN_TAG_CLASS_CONTEXT | (42 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Resume_Request, @@ -865,7 +865,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "resume" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reset), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reset), (ASN_TAG_CLASS_CONTEXT | (43 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Reset_Request, @@ -885,7 +885,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reset" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.kill), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.kill), (ASN_TAG_CLASS_CONTEXT | (44 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Kill_Request, @@ -925,7 +925,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getProgramInvocationAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.obtainFile), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.obtainFile), (ASN_TAG_CLASS_CONTEXT | (46 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ObtainFile_Request, @@ -945,7 +945,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "obtainFile" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineEventCondition), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineEventCondition), (ASN_TAG_CLASS_CONTEXT | (47 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineEventCondition_Request, @@ -965,7 +965,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineEventCondition" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteEventCondition), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteEventCondition), (ASN_TAG_CLASS_CONTEXT | (48 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DeleteEventCondition_Request, @@ -985,7 +985,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteEventCondition" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getEventConditionAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getEventConditionAttributes), (ASN_TAG_CLASS_CONTEXT | (49 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetEventConditionAttributes_Request, @@ -1005,7 +1005,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getEventConditionAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportEventConditionStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportEventConditionStatus), (ASN_TAG_CLASS_CONTEXT | (50 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ReportEventConditionStatus_Request, @@ -1025,7 +1025,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportEventConditionStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.alterEventConditionMonitoring), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.alterEventConditionMonitoring), (ASN_TAG_CLASS_CONTEXT | (51 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlterEventConditionMonitoring_Request, @@ -1045,7 +1045,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "alterEventConditionMonitoring" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.triggerEvent), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.triggerEvent), (ASN_TAG_CLASS_CONTEXT | (52 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_TriggerEvent_Request, @@ -1085,7 +1085,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineEventAction" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteEventAction), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteEventAction), (ASN_TAG_CLASS_CONTEXT | (54 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DeleteEventAction_Request, @@ -1105,7 +1105,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteEventAction" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getEventActionAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getEventActionAttributes), (ASN_TAG_CLASS_CONTEXT | (55 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetEventActionAttributes_Request, @@ -1125,7 +1125,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getEventActionAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportEventActionStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportEventActionStatus), (ASN_TAG_CLASS_CONTEXT | (56 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ReportEventActionStatus_Request, @@ -1145,7 +1145,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportEventActionStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineEventEnrollment), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineEventEnrollment), (ASN_TAG_CLASS_CONTEXT | (57 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineEventEnrollment_Request, @@ -1165,7 +1165,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineEventEnrollment" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteEventEnrollment), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteEventEnrollment), (ASN_TAG_CLASS_CONTEXT | (58 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_DeleteEventEnrollment_Request, @@ -1185,7 +1185,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteEventEnrollment" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.alterEventEnrollment), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.alterEventEnrollment), (ASN_TAG_CLASS_CONTEXT | (59 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlterEventEnrollment_Request, @@ -1205,7 +1205,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "alterEventEnrollment" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportEventEnrollmentStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportEventEnrollmentStatus), (ASN_TAG_CLASS_CONTEXT | (60 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ReportEventEnrollmentStatus_Request, @@ -1225,7 +1225,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportEventEnrollmentStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getEventEnrollmentAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getEventEnrollmentAttributes), (ASN_TAG_CLASS_CONTEXT | (61 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetEventEnrollmentAttributes_Request, @@ -1245,7 +1245,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getEventEnrollmentAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.acknowledgeEventNotification), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.acknowledgeEventNotification), (ASN_TAG_CLASS_CONTEXT | (62 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AcknowledgeEventNotification_Request, @@ -1265,7 +1265,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "acknowledgeEventNotification" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getAlarmSummary), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getAlarmSummary), (ASN_TAG_CLASS_CONTEXT | (63 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetAlarmSummary_Request, @@ -1285,7 +1285,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getAlarmSummary" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getAlarmEnrollmentSummary), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getAlarmEnrollmentSummary), (ASN_TAG_CLASS_CONTEXT | (64 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetAlarmEnrollmentSummary_Request, @@ -1305,7 +1305,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getAlarmEnrollmentSummary" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.readJournal), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.readJournal), (ASN_TAG_CLASS_CONTEXT | (65 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReadJournal_Request, @@ -1325,7 +1325,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "readJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.writeJournal), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.writeJournal), (ASN_TAG_CLASS_CONTEXT | (66 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_WriteJournal_Request, @@ -1345,7 +1345,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "writeJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.initializeJournal), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.initializeJournal), (ASN_TAG_CLASS_CONTEXT | (67 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_InitializeJournal_Request, @@ -1365,7 +1365,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "initializeJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportJournalStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportJournalStatus), (ASN_TAG_CLASS_CONTEXT | (68 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ReportJournalStatus_Request, @@ -1385,7 +1385,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "reportJournalStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.createJournal), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.createJournal), (ASN_TAG_CLASS_CONTEXT | (69 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CreateJournal_Request, @@ -1405,7 +1405,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "createJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteJournal), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.deleteJournal), (ASN_TAG_CLASS_CONTEXT | (70 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteJournal_Request, @@ -1425,7 +1425,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getCapabilityList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getCapabilityList), (ASN_TAG_CLASS_CONTEXT | (71 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetCapabilityList_Request, @@ -1445,7 +1445,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getCapabilityList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.fileOpen), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.fileOpen), (ASN_TAG_CLASS_CONTEXT | (72 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileOpen_Request, @@ -1505,7 +1505,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "fileClose" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.fileRename), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.fileRename), (ASN_TAG_CLASS_CONTEXT | (75 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileRename_Request, @@ -1525,7 +1525,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "fileRename" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.fileDelete), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.fileDelete), (ASN_TAG_CLASS_CONTEXT | (76 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileDelete_Request, @@ -1545,7 +1545,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "fileDelete" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.fileDirectory), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.fileDirectory), (ASN_TAG_CLASS_CONTEXT | (77 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileDirectory_Request, @@ -1565,7 +1565,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "fileDirectory" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.additionalService), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.additionalService), (ASN_TAG_CLASS_CONTEXT | (78 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_AdditionalService_Request, @@ -1585,7 +1585,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "additionalService" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getDataExchangeAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getDataExchangeAttributes), (ASN_TAG_CLASS_CONTEXT | (80 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetDataExchangeAttributes_Request, @@ -1605,7 +1605,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getDataExchangeAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.exchangeData), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.exchangeData), (ASN_TAG_CLASS_CONTEXT | (81 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ExchangeData_Request, @@ -1625,7 +1625,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "exchangeData" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.defineAccessControlList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.defineAccessControlList), (ASN_TAG_CLASS_CONTEXT | (82 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DefineAccessControlList_Request, @@ -1645,7 +1645,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "defineAccessControlList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.getAccessControlListAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.getAccessControlListAttributes), (ASN_TAG_CLASS_CONTEXT | (83 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetAccessControlListAttributes_Request, @@ -1665,7 +1665,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "getAccessControlListAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.reportAccessControlledObjects), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.reportAccessControlledObjects), (ASN_TAG_CLASS_CONTEXT | (84 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportAccessControlledObjects_Request, @@ -1705,7 +1705,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[] = { 0, 0, /* No default value */ "deleteAccessControlList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceRequest, choice.changeAccessControl), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceRequest, choice.changeAccessControl), (ASN_TAG_CLASS_CONTEXT | (86 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ChangeAccessControl_Request, diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.h b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.h index 81ebec4a..297fa025 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.h +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,91 +10,19 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "Status-Request.h" +#include "Identify-Request.h" +#include "DownloadSegment-Request.h" +#include "InitiateUploadSequence-Request.h" +#include "UploadSegment-Request.h" +#include "TerminateUploadSequence-Request.h" +#include "DeleteDomain-Request.h" +#include "GetDomainAttributes-Request.h" +#include "DeleteProgramInvocation-Request.h" +#include "GetProgramInvocationAttributes-Request.h" +#include "FileRead-Request.h" +#include "FileClose-Request.h" +#include "DeleteAccessControlList-Request.h" #include #ifdef __cplusplus @@ -193,98 +121,172 @@ typedef enum ConfirmedServiceRequest_PR { } ConfirmedServiceRequest_PR; /* Forward declarations */ +struct GetNameList_Request; +struct Rename_Request; +struct Read_Request; +struct Write_Request; +struct GetVariableAccessAttributes_Request; +struct DefineNamedVariable_Request; +struct DefineScatteredAccess_Request; +struct GetScatteredAccessAttributes_Request; +struct DeleteVariableAccess_Request; +struct DefineNamedVariableList_Request; +struct GetNamedVariableListAttributes_Request; +struct DeleteNamedVariableList_Request; +struct DefineNamedType_Request; +struct GetNamedTypeAttributes_Request; +struct DeleteNamedType_Request; +struct Input_Request; +struct Output_Request; +struct TakeControl_Request; +struct RelinquishControl_Request; +struct DefineSemaphore_Request; +struct DeleteSemaphore_Request; +struct ReportSemaphoreStatus_Request; +struct ReportPoolSemaphoreStatus_Request; +struct ReportSemaphoreEntryStatus_Request; +struct InitiateDownloadSequence_Request; +struct TerminateDownloadSequence_Request; +struct RequestDomainDownload_Request; +struct RequestDomainUpload_Request; +struct LoadDomainContent_Request; +struct StoreDomainContent_Request; +struct CreateProgramInvocation_Request; +struct Start_Request; +struct Stop_Request; +struct Resume_Request; +struct Reset_Request; +struct Kill_Request; +struct ObtainFile_Request; +struct DefineEventCondition_Request; +struct DeleteEventCondition_Request; +struct GetEventConditionAttributes_Request; +struct ReportEventConditionStatus_Request; +struct AlterEventConditionMonitoring_Request; +struct TriggerEvent_Request; struct DefineEventAction_Request; +struct DeleteEventAction_Request; +struct GetEventActionAttributes_Request; +struct ReportEventActionStatus_Request; +struct DefineEventEnrollment_Request; +struct DeleteEventEnrollment_Request; +struct AlterEventEnrollment_Request; +struct ReportEventEnrollmentStatus_Request; +struct GetEventEnrollmentAttributes_Request; +struct AcknowledgeEventNotification_Request; +struct GetAlarmSummary_Request; +struct GetAlarmEnrollmentSummary_Request; +struct ReadJournal_Request; +struct WriteJournal_Request; +struct InitializeJournal_Request; +struct ReportJournalStatus_Request; +struct CreateJournal_Request; +struct DeleteJournal_Request; +struct GetCapabilityList_Request; +struct FileOpen_Request; +struct FileRename_Request; +struct FileDelete_Request; +struct FileDirectory_Request; +struct AdditionalService_Request; +struct GetDataExchangeAttributes_Request; +struct ExchangeData_Request; +struct DefineAccessControlList_Request; +struct GetAccessControlListAttributes_Request; +struct ReportAccessControlledObjects_Request; +struct ChangeAccessControl_Request; +struct ObjectName; +struct FileName; /* ConfirmedServiceRequest */ typedef struct ConfirmedServiceRequest { ConfirmedServiceRequest_PR present; union ConfirmedServiceRequest_u { - Status_Request_t status; - GetNameList_Request_t getNameList; - Identify_Request_t identify; - Rename_Request_t rename; - Read_Request_t read; - Write_Request_t write; - GetVariableAccessAttributes_Request_t getVariableAccessAttributes; - DefineNamedVariable_Request_t defineNamedVariable; - DefineScatteredAccess_Request_t defineScatteredAccess; - GetScatteredAccessAttributes_Request_t getScatteredAccessAttributes; - DeleteVariableAccess_Request_t deleteVariableAccess; - DefineNamedVariableList_Request_t defineNamedVariableList; - GetNamedVariableListAttributes_Request_t getNamedVariableListAttributes; - DeleteNamedVariableList_Request_t deleteNamedVariableList; - DefineNamedType_Request_t defineNamedType; - GetNamedTypeAttributes_Request_t getNamedTypeAttributes; - DeleteNamedType_Request_t deleteNamedType; - Input_Request_t input; - Output_Request_t output; - TakeControl_Request_t takeControl; - RelinquishControl_Request_t relinquishControl; - DefineSemaphore_Request_t defineSemaphore; - DeleteSemaphore_Request_t deleteSemaphore; - ReportSemaphoreStatus_Request_t reportSemaphoreStatus; - ReportPoolSemaphoreStatus_Request_t reportPoolSemaphoreStatus; - ReportSemaphoreEntryStatus_Request_t reportSemaphoreEntryStatus; - InitiateDownloadSequence_Request_t initiateDownloadSequence; - DownloadSegment_Request_t downloadSegment; - TerminateDownloadSequence_Request_t terminateDownloadSequence; - InitiateUploadSequence_Request_t initiateUploadSequence; - UploadSegment_Request_t uploadSegment; - TerminateUploadSequence_Request_t terminateUploadSequence; - RequestDomainDownload_Request_t requestDomainDownload; - RequestDomainUpload_Request_t requestDomainUpload; - LoadDomainContent_Request_t loadDomainContent; - StoreDomainContent_Request_t storeDomainContent; - DeleteDomain_Request_t deleteDomain; - GetDomainAttributes_Request_t getDomainAttributes; - CreateProgramInvocation_Request_t createProgramInvocation; - DeleteProgramInvocation_Request_t deleteProgramInvocation; - Start_Request_t start; - Stop_Request_t stop; - Resume_Request_t resume; - Reset_Request_t reset; - Kill_Request_t kill; - GetProgramInvocationAttributes_Request_t getProgramInvocationAttributes; - ObtainFile_Request_t obtainFile; - DefineEventCondition_Request_t defineEventCondition; - DeleteEventCondition_Request_t deleteEventCondition; - GetEventConditionAttributes_Request_t getEventConditionAttributes; - ReportEventConditionStatus_Request_t reportEventConditionStatus; - AlterEventConditionMonitoring_Request_t alterEventConditionMonitoring; - TriggerEvent_Request_t triggerEvent; - struct DefineEventAction_Request *defineEventAction; - DeleteEventAction_Request_t deleteEventAction; - GetEventActionAttributes_Request_t getEventActionAttributes; - ReportEventActionStatus_Request_t reportEventActionStatus; - DefineEventEnrollment_Request_t defineEventEnrollment; - DeleteEventEnrollment_Request_t deleteEventEnrollment; - AlterEventEnrollment_Request_t alterEventEnrollment; - ReportEventEnrollmentStatus_Request_t reportEventEnrollmentStatus; - GetEventEnrollmentAttributes_Request_t getEventEnrollmentAttributes; - AcknowledgeEventNotification_Request_t acknowledgeEventNotification; - GetAlarmSummary_Request_t getAlarmSummary; - GetAlarmEnrollmentSummary_Request_t getAlarmEnrollmentSummary; - ReadJournal_Request_t readJournal; - WriteJournal_Request_t writeJournal; - InitializeJournal_Request_t initializeJournal; - ReportJournalStatus_Request_t reportJournalStatus; - CreateJournal_Request_t createJournal; - DeleteJournal_Request_t deleteJournal; - GetCapabilityList_Request_t getCapabilityList; - FileOpen_Request_t fileOpen; - FileRead_Request_t fileRead; - FileClose_Request_t fileClose; - FileRename_Request_t fileRename; - FileDelete_Request_t fileDelete; - FileDirectory_Request_t fileDirectory; - AdditionalService_Request_t additionalService; - GetDataExchangeAttributes_Request_t getDataExchangeAttributes; - ExchangeData_Request_t exchangeData; - DefineAccessControlList_Request_t defineAccessControlList; - GetAccessControlListAttributes_Request_t getAccessControlListAttributes; - ReportAccessControlledObjects_Request_t reportAccessControlledObjects; - DeleteAccessControlList_Request_t deleteAccessControlList; - ChangeAccessControl_Request_t changeAccessControl; + Status_Request_t status; + struct GetNameList_Request *getNameList; + Identify_Request_t identify; + struct Rename_Request *rename; + struct Read_Request *read; + struct Write_Request *write; + struct GetVariableAccessAttributes_Request *getVariableAccessAttributes; + struct DefineNamedVariable_Request *defineNamedVariable; + struct DefineScatteredAccess_Request *defineScatteredAccess; + struct ObjectName *getScatteredAccessAttributes; + struct DeleteVariableAccess_Request *deleteVariableAccess; + struct DefineNamedVariableList_Request *defineNamedVariableList; + struct ObjectName *getNamedVariableListAttributes; + struct DeleteNamedVariableList_Request *deleteNamedVariableList; + struct DefineNamedType_Request *defineNamedType; + struct ObjectName *getNamedTypeAttributes; + struct DeleteNamedType_Request *deleteNamedType; + struct Input_Request *input; + struct Output_Request *output; + struct TakeControl_Request *takeControl; + struct RelinquishControl_Request *relinquishControl; + struct DefineSemaphore_Request *defineSemaphore; + struct ObjectName *deleteSemaphore; + struct ObjectName *reportSemaphoreStatus; + struct ReportPoolSemaphoreStatus_Request *reportPoolSemaphoreStatus; + struct ReportSemaphoreEntryStatus_Request *reportSemaphoreEntryStatus; + struct InitiateDownloadSequence_Request *initiateDownloadSequence; + DownloadSegment_Request_t downloadSegment; + struct TerminateDownloadSequence_Request *terminateDownloadSequence; + InitiateUploadSequence_Request_t initiateUploadSequence; + UploadSegment_Request_t uploadSegment; + TerminateUploadSequence_Request_t terminateUploadSequence; + struct RequestDomainDownload_Request *requestDomainDownload; + struct RequestDomainUpload_Request *requestDomainUpload; + struct LoadDomainContent_Request *loadDomainContent; + struct StoreDomainContent_Request *storeDomainContent; + DeleteDomain_Request_t deleteDomain; + GetDomainAttributes_Request_t getDomainAttributes; + struct CreateProgramInvocation_Request *createProgramInvocation; + DeleteProgramInvocation_Request_t deleteProgramInvocation; + struct Start_Request *start; + struct Stop_Request *stop; + struct Resume_Request *resume; + struct Reset_Request *reset; + struct Kill_Request *kill; + GetProgramInvocationAttributes_Request_t getProgramInvocationAttributes; + struct ObtainFile_Request *obtainFile; + struct DefineEventCondition_Request *defineEventCondition; + struct DeleteEventCondition_Request *deleteEventCondition; + struct ObjectName *getEventConditionAttributes; + struct ObjectName *reportEventConditionStatus; + struct AlterEventConditionMonitoring_Request *alterEventConditionMonitoring; + struct TriggerEvent_Request *triggerEvent; + struct DefineEventAction_Request *defineEventAction; + struct DeleteEventAction_Request *deleteEventAction; + struct ObjectName *getEventActionAttributes; + struct ObjectName *reportEventActionStatus; + struct DefineEventEnrollment_Request *defineEventEnrollment; + struct DeleteEventEnrollment_Request *deleteEventEnrollment; + struct AlterEventEnrollment_Request *alterEventEnrollment; + struct ObjectName *reportEventEnrollmentStatus; + struct GetEventEnrollmentAttributes_Request *getEventEnrollmentAttributes; + struct AcknowledgeEventNotification_Request *acknowledgeEventNotification; + struct GetAlarmSummary_Request *getAlarmSummary; + struct GetAlarmEnrollmentSummary_Request *getAlarmEnrollmentSummary; + struct ReadJournal_Request *readJournal; + struct WriteJournal_Request *writeJournal; + struct InitializeJournal_Request *initializeJournal; + struct ObjectName *reportJournalStatus; + struct CreateJournal_Request *createJournal; + struct DeleteJournal_Request *deleteJournal; + struct GetCapabilityList_Request *getCapabilityList; + struct FileOpen_Request *fileOpen; + FileRead_Request_t fileRead; + FileClose_Request_t fileClose; + struct FileRename_Request *fileRename; + struct FileName *fileDelete; + struct FileDirectory_Request *fileDirectory; + struct AdditionalService_Request *additionalService; + struct ObjectName *getDataExchangeAttributes; + struct ExchangeData_Request *exchangeData; + struct DefineAccessControlList_Request *defineAccessControlList; + struct GetAccessControlListAttributes_Request *getAccessControlListAttributes; + struct ReportAccessControlledObjects_Request *reportAccessControlledObjects; + DeleteAccessControlList_Request_t deleteAccessControlList; + struct ChangeAccessControl_Request *changeAccessControl; } choice; /* Context for parsing across buffer boundaries */ @@ -301,7 +303,79 @@ extern asn_TYPE_member_t asn_MBR_ConfirmedServiceRequest_1[86]; #endif /* Referred external types */ -#include +#include "GetNameList-Request.h" +#include "Rename-Request.h" +#include "Read-Request.h" +#include "Write-Request.h" +#include "GetVariableAccessAttributes-Request.h" +#include "DefineNamedVariable-Request.h" +#include "DefineScatteredAccess-Request.h" +#include "GetScatteredAccessAttributes-Request.h" +#include "DeleteVariableAccess-Request.h" +#include "DefineNamedVariableList-Request.h" +#include "GetNamedVariableListAttributes-Request.h" +#include "DeleteNamedVariableList-Request.h" +#include "DefineNamedType-Request.h" +#include "GetNamedTypeAttributes-Request.h" +#include "DeleteNamedType-Request.h" +#include "Input-Request.h" +#include "Output-Request.h" +#include "TakeControl-Request.h" +#include "RelinquishControl-Request.h" +#include "DefineSemaphore-Request.h" +#include "DeleteSemaphore-Request.h" +#include "ReportSemaphoreStatus-Request.h" +#include "ReportPoolSemaphoreStatus-Request.h" +#include "ReportSemaphoreEntryStatus-Request.h" +#include "InitiateDownloadSequence-Request.h" +#include "TerminateDownloadSequence-Request.h" +#include "RequestDomainDownload-Request.h" +#include "RequestDomainUpload-Request.h" +#include "LoadDomainContent-Request.h" +#include "StoreDomainContent-Request.h" +#include "CreateProgramInvocation-Request.h" +#include "Start-Request.h" +#include "Stop-Request.h" +#include "Resume-Request.h" +#include "Reset-Request.h" +#include "Kill-Request.h" +#include "ObtainFile-Request.h" +#include "DefineEventCondition-Request.h" +#include "DeleteEventCondition-Request.h" +#include "GetEventConditionAttributes-Request.h" +#include "ReportEventConditionStatus-Request.h" +#include "AlterEventConditionMonitoring-Request.h" +#include "TriggerEvent-Request.h" +#include "DefineEventAction-Request.h" +#include "DeleteEventAction-Request.h" +#include "GetEventActionAttributes-Request.h" +#include "ReportEventActionStatus-Request.h" +#include "DefineEventEnrollment-Request.h" +#include "DeleteEventEnrollment-Request.h" +#include "AlterEventEnrollment-Request.h" +#include "ReportEventEnrollmentStatus-Request.h" +#include "GetEventEnrollmentAttributes-Request.h" +#include "AcknowledgeEventNotification-Request.h" +#include "GetAlarmSummary-Request.h" +#include "GetAlarmEnrollmentSummary-Request.h" +#include "ReadJournal-Request.h" +#include "WriteJournal-Request.h" +#include "InitializeJournal-Request.h" +#include "ReportJournalStatus-Request.h" +#include "CreateJournal-Request.h" +#include "DeleteJournal-Request.h" +#include "GetCapabilityList-Request.h" +#include "FileOpen-Request.h" +#include "FileRename-Request.h" +#include "FileDelete-Request.h" +#include "FileDirectory-Request.h" +#include "AdditionalService-Request.h" +#include "GetDataExchangeAttributes-Request.h" +#include "ExchangeData-Request.h" +#include "DefineAccessControlList-Request.h" +#include "GetAccessControlListAttributes-Request.h" +#include "ReportAccessControlledObjects-Request.h" +#include "ChangeAccessControl-Request.h" #endif /* _ConfirmedServiceRequest_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.c b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.c index 8c266755..762dd781 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.c +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,116 +10,116 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, sta PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, status, PyCompatAsnType_FromParent(&PyAsnStatus_Request_Type, parent, (void *)&src->choice.status)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, status, status); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, status, status); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getNameList, getNameList,PyAsnGetNameList_Request_FromPython(value, &dst->choice.getNameList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getNameList, PyCompatAsnType_FromParent(&PyAsnGetNameList_Request_Type, parent, (void *)&src->choice.getNameList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getNameList, getNameList, GetNameList_Request,PyAsnGetNameList_Request_FromPython(value, dst->choice.getNameList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getNameList, PyCompatAsnType_FromParent(&PyAsnGetNameList_Request_Type, parent, (void *)src->choice.getNameList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getNameList, getNameList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getNameList, getNameList); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, identify, identify,PyAsnIdentify_Request_FromPython(value, &dst->choice.identify)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, identify, PyCompatAsnType_FromParent(&PyAsnIdentify_Request_Type, parent, (void *)&src->choice.identify)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, identify, identify); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, identify, identify); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, rename, rename,PyAsnRename_Request_FromPython(value, &dst->choice.rename)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, rename, PyCompatAsnType_FromParent(&PyAsnRename_Request_Type, parent, (void *)&src->choice.rename)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, rename, rename, Rename_Request,PyAsnRename_Request_FromPython(value, dst->choice.rename)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, rename, PyCompatAsnType_FromParent(&PyAsnRename_Request_Type, parent, (void *)src->choice.rename)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, rename, rename); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, rename, rename); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, read, read,PyAsnRead_Request_FromPython(value, &dst->choice.read)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, read, PyCompatAsnType_FromParent(&PyAsnRead_Request_Type, parent, (void *)&src->choice.read)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, read, read, Read_Request,PyAsnRead_Request_FromPython(value, dst->choice.read)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, read, PyCompatAsnType_FromParent(&PyAsnRead_Request_Type, parent, (void *)src->choice.read)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, read, read); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, read, read); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, write, write,PyAsnWrite_Request_FromPython(value, &dst->choice.write)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, write, PyCompatAsnType_FromParent(&PyAsnWrite_Request_Type, parent, (void *)&src->choice.write)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, write, write, Write_Request,PyAsnWrite_Request_FromPython(value, dst->choice.write)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, write, PyCompatAsnType_FromParent(&PyAsnWrite_Request_Type, parent, (void *)src->choice.write)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, write, write); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, write, write); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getVariableAccessAttributes, getVariableAccessAttributes,PyAsnGetVariableAccessAttributes_Request_FromPython(value, &dst->choice.getVariableAccessAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getVariableAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetVariableAccessAttributes_Request_Type, parent, (void *)&src->choice.getVariableAccessAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getVariableAccessAttributes, getVariableAccessAttributes, GetVariableAccessAttributes_Request,PyAsnGetVariableAccessAttributes_Request_FromPython(value, dst->choice.getVariableAccessAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getVariableAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetVariableAccessAttributes_Request_Type, parent, (void *)src->choice.getVariableAccessAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getVariableAccessAttributes, getVariableAccessAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getVariableAccessAttributes, getVariableAccessAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariable, defineNamedVariable,PyAsnDefineNamedVariable_Request_FromPython(value, &dst->choice.defineNamedVariable)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineNamedVariable, PyCompatAsnType_FromParent(&PyAsnDefineNamedVariable_Request_Type, parent, (void *)&src->choice.defineNamedVariable)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariable, defineNamedVariable, DefineNamedVariable_Request,PyAsnDefineNamedVariable_Request_FromPython(value, dst->choice.defineNamedVariable)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineNamedVariable, PyCompatAsnType_FromParent(&PyAsnDefineNamedVariable_Request_Type, parent, (void *)src->choice.defineNamedVariable)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariable, defineNamedVariable); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariable, defineNamedVariable); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineScatteredAccess, defineScatteredAccess,PyAsnDefineScatteredAccess_Request_FromPython(value, &dst->choice.defineScatteredAccess)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineScatteredAccess, PyCompatAsnType_FromParent(&PyAsnDefineScatteredAccess_Request_Type, parent, (void *)&src->choice.defineScatteredAccess)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineScatteredAccess, defineScatteredAccess, DefineScatteredAccess_Request,PyAsnDefineScatteredAccess_Request_FromPython(value, dst->choice.defineScatteredAccess)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineScatteredAccess, PyCompatAsnType_FromParent(&PyAsnDefineScatteredAccess_Request_Type, parent, (void *)src->choice.defineScatteredAccess)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineScatteredAccess, defineScatteredAccess); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineScatteredAccess, defineScatteredAccess); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getScatteredAccessAttributes, getScatteredAccessAttributes,PyAsnGetScatteredAccessAttributes_Request_FromPython(value, &dst->choice.getScatteredAccessAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getScatteredAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetScatteredAccessAttributes_Request_Type, parent, (void *)&src->choice.getScatteredAccessAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getScatteredAccessAttributes, getScatteredAccessAttributes, GetScatteredAccessAttributes_Request,PyAsnGetScatteredAccessAttributes_Request_FromPython(value, dst->choice.getScatteredAccessAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getScatteredAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetScatteredAccessAttributes_Request_Type, parent, (void *)src->choice.getScatteredAccessAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getScatteredAccessAttributes, getScatteredAccessAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getScatteredAccessAttributes, getScatteredAccessAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteVariableAccess, deleteVariableAccess,PyAsnDeleteVariableAccess_Request_FromPython(value, &dst->choice.deleteVariableAccess)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteVariableAccess, PyCompatAsnType_FromParent(&PyAsnDeleteVariableAccess_Request_Type, parent, (void *)&src->choice.deleteVariableAccess)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteVariableAccess, deleteVariableAccess, DeleteVariableAccess_Request,PyAsnDeleteVariableAccess_Request_FromPython(value, dst->choice.deleteVariableAccess)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteVariableAccess, PyCompatAsnType_FromParent(&PyAsnDeleteVariableAccess_Request_Type, parent, (void *)src->choice.deleteVariableAccess)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteVariableAccess, deleteVariableAccess); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteVariableAccess, deleteVariableAccess); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariableList, defineNamedVariableList,PyAsnDefineNamedVariableList_Request_FromPython(value, &dst->choice.defineNamedVariableList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDefineNamedVariableList_Request_Type, parent, (void *)&src->choice.defineNamedVariableList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariableList, defineNamedVariableList, DefineNamedVariableList_Request,PyAsnDefineNamedVariableList_Request_FromPython(value, dst->choice.defineNamedVariableList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDefineNamedVariableList_Request_Type, parent, (void *)src->choice.defineNamedVariableList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariableList, defineNamedVariableList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedVariableList, defineNamedVariableList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedVariableListAttributes, getNamedVariableListAttributes,PyAsnGetNamedVariableListAttributes_Request_FromPython(value, &dst->choice.getNamedVariableListAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getNamedVariableListAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedVariableListAttributes_Request_Type, parent, (void *)&src->choice.getNamedVariableListAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedVariableListAttributes, getNamedVariableListAttributes, GetNamedVariableListAttributes_Request,PyAsnGetNamedVariableListAttributes_Request_FromPython(value, dst->choice.getNamedVariableListAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getNamedVariableListAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedVariableListAttributes_Request_Type, parent, (void *)src->choice.getNamedVariableListAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedVariableListAttributes, getNamedVariableListAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedVariableListAttributes, getNamedVariableListAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedVariableList, deleteNamedVariableList,PyAsnDeleteNamedVariableList_Request_FromPython(value, &dst->choice.deleteNamedVariableList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDeleteNamedVariableList_Request_Type, parent, (void *)&src->choice.deleteNamedVariableList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedVariableList, deleteNamedVariableList, DeleteNamedVariableList_Request,PyAsnDeleteNamedVariableList_Request_FromPython(value, dst->choice.deleteNamedVariableList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDeleteNamedVariableList_Request_Type, parent, (void *)src->choice.deleteNamedVariableList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedVariableList, deleteNamedVariableList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedVariableList, deleteNamedVariableList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedType, defineNamedType,PyAsnDefineNamedType_Request_FromPython(value, &dst->choice.defineNamedType)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineNamedType, PyCompatAsnType_FromParent(&PyAsnDefineNamedType_Request_Type, parent, (void *)&src->choice.defineNamedType)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedType, defineNamedType, DefineNamedType_Request,PyAsnDefineNamedType_Request_FromPython(value, dst->choice.defineNamedType)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineNamedType, PyCompatAsnType_FromParent(&PyAsnDefineNamedType_Request_Type, parent, (void *)src->choice.defineNamedType)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedType, defineNamedType); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineNamedType, defineNamedType); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedTypeAttributes, getNamedTypeAttributes,PyAsnGetNamedTypeAttributes_Request_FromPython(value, &dst->choice.getNamedTypeAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getNamedTypeAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedTypeAttributes_Request_Type, parent, (void *)&src->choice.getNamedTypeAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedTypeAttributes, getNamedTypeAttributes, GetNamedTypeAttributes_Request,PyAsnGetNamedTypeAttributes_Request_FromPython(value, dst->choice.getNamedTypeAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getNamedTypeAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedTypeAttributes_Request_Type, parent, (void *)src->choice.getNamedTypeAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedTypeAttributes, getNamedTypeAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getNamedTypeAttributes, getNamedTypeAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedType, deleteNamedType,PyAsnDeleteNamedType_Request_FromPython(value, &dst->choice.deleteNamedType)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteNamedType, PyCompatAsnType_FromParent(&PyAsnDeleteNamedType_Request_Type, parent, (void *)&src->choice.deleteNamedType)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedType, deleteNamedType, DeleteNamedType_Request,PyAsnDeleteNamedType_Request_FromPython(value, dst->choice.deleteNamedType)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteNamedType, PyCompatAsnType_FromParent(&PyAsnDeleteNamedType_Request_Type, parent, (void *)src->choice.deleteNamedType)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedType, deleteNamedType); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteNamedType, deleteNamedType); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, input, input,PyAsnInput_Request_FromPython(value, &dst->choice.input)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, input, PyCompatAsnType_FromParent(&PyAsnInput_Request_Type, parent, (void *)&src->choice.input)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, input, input, Input_Request,PyAsnInput_Request_FromPython(value, dst->choice.input)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, input, PyCompatAsnType_FromParent(&PyAsnInput_Request_Type, parent, (void *)src->choice.input)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, input, input); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, input, input); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, output, output,PyAsnOutput_Request_FromPython(value, &dst->choice.output)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, output, PyCompatAsnType_FromParent(&PyAsnOutput_Request_Type, parent, (void *)&src->choice.output)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, output, output, Output_Request,PyAsnOutput_Request_FromPython(value, dst->choice.output)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, output, PyCompatAsnType_FromParent(&PyAsnOutput_Request_Type, parent, (void *)src->choice.output)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, output, output); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, output, output); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, takeControl, takeControl,PyAsnTakeControl_Request_FromPython(value, &dst->choice.takeControl)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, takeControl, PyCompatAsnType_FromParent(&PyAsnTakeControl_Request_Type, parent, (void *)&src->choice.takeControl)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, takeControl, takeControl, TakeControl_Request,PyAsnTakeControl_Request_FromPython(value, dst->choice.takeControl)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, takeControl, PyCompatAsnType_FromParent(&PyAsnTakeControl_Request_Type, parent, (void *)src->choice.takeControl)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, takeControl, takeControl); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, takeControl, takeControl); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, relinquishControl, relinquishControl,PyAsnRelinquishControl_Request_FromPython(value, &dst->choice.relinquishControl)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, relinquishControl, PyCompatAsnType_FromParent(&PyAsnRelinquishControl_Request_Type, parent, (void *)&src->choice.relinquishControl)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, relinquishControl, relinquishControl, RelinquishControl_Request,PyAsnRelinquishControl_Request_FromPython(value, dst->choice.relinquishControl)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, relinquishControl, PyCompatAsnType_FromParent(&PyAsnRelinquishControl_Request_Type, parent, (void *)src->choice.relinquishControl)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, relinquishControl, relinquishControl); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, relinquishControl, relinquishControl); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineSemaphore, defineSemaphore,PyAsnDefineSemaphore_Request_FromPython(value, &dst->choice.defineSemaphore)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineSemaphore, PyCompatAsnType_FromParent(&PyAsnDefineSemaphore_Request_Type, parent, (void *)&src->choice.defineSemaphore)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineSemaphore, defineSemaphore, DefineSemaphore_Request,PyAsnDefineSemaphore_Request_FromPython(value, dst->choice.defineSemaphore)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineSemaphore, PyCompatAsnType_FromParent(&PyAsnDefineSemaphore_Request_Type, parent, (void *)src->choice.defineSemaphore)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineSemaphore, defineSemaphore); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineSemaphore, defineSemaphore); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteSemaphore, deleteSemaphore,PyAsnDeleteSemaphore_Request_FromPython(value, &dst->choice.deleteSemaphore)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteSemaphore, PyCompatAsnType_FromParent(&PyAsnDeleteSemaphore_Request_Type, parent, (void *)&src->choice.deleteSemaphore)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteSemaphore, deleteSemaphore, DeleteSemaphore_Request,PyAsnDeleteSemaphore_Request_FromPython(value, dst->choice.deleteSemaphore)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteSemaphore, PyCompatAsnType_FromParent(&PyAsnDeleteSemaphore_Request_Type, parent, (void *)src->choice.deleteSemaphore)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteSemaphore, deleteSemaphore); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteSemaphore, deleteSemaphore); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreStatus, reportSemaphoreStatus,PyAsnReportSemaphoreStatus_Request_FromPython(value, &dst->choice.reportSemaphoreStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreStatus_Request_Type, parent, (void *)&src->choice.reportSemaphoreStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreStatus, reportSemaphoreStatus, ReportSemaphoreStatus_Request,PyAsnReportSemaphoreStatus_Request_FromPython(value, dst->choice.reportSemaphoreStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreStatus_Request_Type, parent, (void *)src->choice.reportSemaphoreStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreStatus, reportSemaphoreStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreStatus, reportSemaphoreStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus,PyAsnReportPoolSemaphoreStatus_Request_FromPython(value, &dst->choice.reportPoolSemaphoreStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportPoolSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportPoolSemaphoreStatus_Request_Type, parent, (void *)&src->choice.reportPoolSemaphoreStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus, ReportPoolSemaphoreStatus_Request,PyAsnReportPoolSemaphoreStatus_Request_FromPython(value, dst->choice.reportPoolSemaphoreStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportPoolSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportPoolSemaphoreStatus_Request_Type, parent, (void *)src->choice.reportPoolSemaphoreStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus,PyAsnReportSemaphoreEntryStatus_Request_FromPython(value, &dst->choice.reportSemaphoreEntryStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportSemaphoreEntryStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreEntryStatus_Request_Type, parent, (void *)&src->choice.reportSemaphoreEntryStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus, ReportSemaphoreEntryStatus_Request,PyAsnReportSemaphoreEntryStatus_Request_FromPython(value, dst->choice.reportSemaphoreEntryStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportSemaphoreEntryStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreEntryStatus_Request_Type, parent, (void *)src->choice.reportSemaphoreEntryStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, initiateDownloadSequence, initiateDownloadSequence,PyAsnInitiateDownloadSequence_Request_FromPython(value, &dst->choice.initiateDownloadSequence)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, initiateDownloadSequence, PyCompatAsnType_FromParent(&PyAsnInitiateDownloadSequence_Request_Type, parent, (void *)&src->choice.initiateDownloadSequence)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, initiateDownloadSequence, initiateDownloadSequence, InitiateDownloadSequence_Request,PyAsnInitiateDownloadSequence_Request_FromPython(value, dst->choice.initiateDownloadSequence)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, initiateDownloadSequence, PyCompatAsnType_FromParent(&PyAsnInitiateDownloadSequence_Request_Type, parent, (void *)src->choice.initiateDownloadSequence)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, initiateDownloadSequence, initiateDownloadSequence); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, initiateDownloadSequence, initiateDownloadSequence); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, downloadSegment, downloadSegment,PyAsnDownloadSegment_Request_FromPython(value, &dst->choice.downloadSegment)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, downloadSegment, PyCompatAsnType_FromParent(&PyAsnDownloadSegment_Request_Type, parent, (void *)&src->choice.downloadSegment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, downloadSegment, downloadSegment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, downloadSegment, downloadSegment); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, terminateDownloadSequence, terminateDownloadSequence,PyAsnTerminateDownloadSequence_Request_FromPython(value, &dst->choice.terminateDownloadSequence)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, terminateDownloadSequence, PyCompatAsnType_FromParent(&PyAsnTerminateDownloadSequence_Request_Type, parent, (void *)&src->choice.terminateDownloadSequence)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, terminateDownloadSequence, terminateDownloadSequence, TerminateDownloadSequence_Request,PyAsnTerminateDownloadSequence_Request_FromPython(value, dst->choice.terminateDownloadSequence)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, terminateDownloadSequence, PyCompatAsnType_FromParent(&PyAsnTerminateDownloadSequence_Request_Type, parent, (void *)src->choice.terminateDownloadSequence)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, terminateDownloadSequence, terminateDownloadSequence); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, terminateDownloadSequence, terminateDownloadSequence); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, initiateUploadSequence, initiateUploadSequence,PyAsnInitiateUploadSequence_Request_FromPython(value, &dst->choice.initiateUploadSequence)); @@ -134,20 +134,20 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, ter PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, terminateUploadSequence, PyCompatAsnType_FromParent(&PyAsnTerminateUploadSequence_Request_Type, parent, (void *)&src->choice.terminateUploadSequence)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, terminateUploadSequence, terminateUploadSequence); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, terminateUploadSequence, terminateUploadSequence); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainDownload, requestDomainDownload,PyAsnRequestDomainDownload_Request_FromPython(value, &dst->choice.requestDomainDownload)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, requestDomainDownload, PyCompatAsnType_FromParent(&PyAsnRequestDomainDownload_Request_Type, parent, (void *)&src->choice.requestDomainDownload)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainDownload, requestDomainDownload, RequestDomainDownload_Request,PyAsnRequestDomainDownload_Request_FromPython(value, dst->choice.requestDomainDownload)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, requestDomainDownload, PyCompatAsnType_FromParent(&PyAsnRequestDomainDownload_Request_Type, parent, (void *)src->choice.requestDomainDownload)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainDownload, requestDomainDownload); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainDownload, requestDomainDownload); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainUpload, requestDomainUpload,PyAsnRequestDomainUpload_Request_FromPython(value, &dst->choice.requestDomainUpload)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, requestDomainUpload, PyCompatAsnType_FromParent(&PyAsnRequestDomainUpload_Request_Type, parent, (void *)&src->choice.requestDomainUpload)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainUpload, requestDomainUpload, RequestDomainUpload_Request,PyAsnRequestDomainUpload_Request_FromPython(value, dst->choice.requestDomainUpload)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, requestDomainUpload, PyCompatAsnType_FromParent(&PyAsnRequestDomainUpload_Request_Type, parent, (void *)src->choice.requestDomainUpload)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainUpload, requestDomainUpload); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, requestDomainUpload, requestDomainUpload); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, loadDomainContent, loadDomainContent,PyAsnLoadDomainContent_Request_FromPython(value, &dst->choice.loadDomainContent)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, loadDomainContent, PyCompatAsnType_FromParent(&PyAsnLoadDomainContent_Request_Type, parent, (void *)&src->choice.loadDomainContent)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, loadDomainContent, loadDomainContent, LoadDomainContent_Request,PyAsnLoadDomainContent_Request_FromPython(value, dst->choice.loadDomainContent)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, loadDomainContent, PyCompatAsnType_FromParent(&PyAsnLoadDomainContent_Request_Type, parent, (void *)src->choice.loadDomainContent)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, loadDomainContent, loadDomainContent); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, loadDomainContent, loadDomainContent); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, storeDomainContent, storeDomainContent,PyAsnStoreDomainContent_Request_FromPython(value, &dst->choice.storeDomainContent)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, storeDomainContent, PyCompatAsnType_FromParent(&PyAsnStoreDomainContent_Request_Type, parent, (void *)&src->choice.storeDomainContent)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, storeDomainContent, storeDomainContent, StoreDomainContent_Request,PyAsnStoreDomainContent_Request_FromPython(value, dst->choice.storeDomainContent)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, storeDomainContent, PyCompatAsnType_FromParent(&PyAsnStoreDomainContent_Request_Type, parent, (void *)src->choice.storeDomainContent)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, storeDomainContent, storeDomainContent); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, storeDomainContent, storeDomainContent); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteDomain, deleteDomain,PyAsnDeleteDomain_Request_FromPython(value, &dst->choice.deleteDomain)); @@ -158,144 +158,144 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, get PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getDomainAttributes, PyCompatAsnType_FromParent(&PyAsnGetDomainAttributes_Request_Type, parent, (void *)&src->choice.getDomainAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getDomainAttributes, getDomainAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getDomainAttributes, getDomainAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, createProgramInvocation, createProgramInvocation,PyAsnCreateProgramInvocation_Request_FromPython(value, &dst->choice.createProgramInvocation)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, createProgramInvocation, PyCompatAsnType_FromParent(&PyAsnCreateProgramInvocation_Request_Type, parent, (void *)&src->choice.createProgramInvocation)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, createProgramInvocation, createProgramInvocation, CreateProgramInvocation_Request,PyAsnCreateProgramInvocation_Request_FromPython(value, dst->choice.createProgramInvocation)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, createProgramInvocation, PyCompatAsnType_FromParent(&PyAsnCreateProgramInvocation_Request_Type, parent, (void *)src->choice.createProgramInvocation)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, createProgramInvocation, createProgramInvocation); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, createProgramInvocation, createProgramInvocation); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteProgramInvocation, deleteProgramInvocation,PyAsnDeleteProgramInvocation_Request_FromPython(value, &dst->choice.deleteProgramInvocation)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteProgramInvocation, PyCompatAsnType_FromParent(&PyAsnDeleteProgramInvocation_Request_Type, parent, (void *)&src->choice.deleteProgramInvocation)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteProgramInvocation, deleteProgramInvocation); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteProgramInvocation, deleteProgramInvocation); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, start, start,PyAsnStart_Request_FromPython(value, &dst->choice.start)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, start, PyCompatAsnType_FromParent(&PyAsnStart_Request_Type, parent, (void *)&src->choice.start)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, start, start, Start_Request,PyAsnStart_Request_FromPython(value, dst->choice.start)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, start, PyCompatAsnType_FromParent(&PyAsnStart_Request_Type, parent, (void *)src->choice.start)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, start, start); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, start, start); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, stop, stop,PyAsnStop_Request_FromPython(value, &dst->choice.stop)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, stop, PyCompatAsnType_FromParent(&PyAsnStop_Request_Type, parent, (void *)&src->choice.stop)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, stop, stop, Stop_Request,PyAsnStop_Request_FromPython(value, dst->choice.stop)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, stop, PyCompatAsnType_FromParent(&PyAsnStop_Request_Type, parent, (void *)src->choice.stop)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, stop, stop); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, stop, stop); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, resume, resume,PyAsnResume_Request_FromPython(value, &dst->choice.resume)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, resume, PyCompatAsnType_FromParent(&PyAsnResume_Request_Type, parent, (void *)&src->choice.resume)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, resume, resume, Resume_Request,PyAsnResume_Request_FromPython(value, dst->choice.resume)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, resume, PyCompatAsnType_FromParent(&PyAsnResume_Request_Type, parent, (void *)src->choice.resume)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, resume, resume); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, resume, resume); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reset, reset,PyAsnReset_Request_FromPython(value, &dst->choice.reset)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reset, PyCompatAsnType_FromParent(&PyAsnReset_Request_Type, parent, (void *)&src->choice.reset)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reset, reset, Reset_Request,PyAsnReset_Request_FromPython(value, dst->choice.reset)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reset, PyCompatAsnType_FromParent(&PyAsnReset_Request_Type, parent, (void *)src->choice.reset)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reset, reset); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reset, reset); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, kill, kill,PyAsnKill_Request_FromPython(value, &dst->choice.kill)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, kill, PyCompatAsnType_FromParent(&PyAsnKill_Request_Type, parent, (void *)&src->choice.kill)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, kill, kill, Kill_Request,PyAsnKill_Request_FromPython(value, dst->choice.kill)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, kill, PyCompatAsnType_FromParent(&PyAsnKill_Request_Type, parent, (void *)src->choice.kill)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, kill, kill); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, kill, kill); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getProgramInvocationAttributes, getProgramInvocationAttributes,PyAsnGetProgramInvocationAttributes_Request_FromPython(value, &dst->choice.getProgramInvocationAttributes)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getProgramInvocationAttributes, PyCompatAsnType_FromParent(&PyAsnGetProgramInvocationAttributes_Request_Type, parent, (void *)&src->choice.getProgramInvocationAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getProgramInvocationAttributes, getProgramInvocationAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getProgramInvocationAttributes, getProgramInvocationAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, obtainFile, obtainFile,PyAsnObtainFile_Request_FromPython(value, &dst->choice.obtainFile)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, obtainFile, PyCompatAsnType_FromParent(&PyAsnObtainFile_Request_Type, parent, (void *)&src->choice.obtainFile)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, obtainFile, obtainFile, ObtainFile_Request,PyAsnObtainFile_Request_FromPython(value, dst->choice.obtainFile)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, obtainFile, PyCompatAsnType_FromParent(&PyAsnObtainFile_Request_Type, parent, (void *)src->choice.obtainFile)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, obtainFile, obtainFile); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, obtainFile, obtainFile); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventCondition, defineEventCondition,PyAsnDefineEventCondition_Request_FromPython(value, &dst->choice.defineEventCondition)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineEventCondition, PyCompatAsnType_FromParent(&PyAsnDefineEventCondition_Request_Type, parent, (void *)&src->choice.defineEventCondition)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventCondition, defineEventCondition, DefineEventCondition_Request,PyAsnDefineEventCondition_Request_FromPython(value, dst->choice.defineEventCondition)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineEventCondition, PyCompatAsnType_FromParent(&PyAsnDefineEventCondition_Request_Type, parent, (void *)src->choice.defineEventCondition)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventCondition, defineEventCondition); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventCondition, defineEventCondition); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventCondition, deleteEventCondition,PyAsnDeleteEventCondition_Request_FromPython(value, &dst->choice.deleteEventCondition)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteEventCondition, PyCompatAsnType_FromParent(&PyAsnDeleteEventCondition_Request_Type, parent, (void *)&src->choice.deleteEventCondition)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventCondition, deleteEventCondition, DeleteEventCondition_Request,PyAsnDeleteEventCondition_Request_FromPython(value, dst->choice.deleteEventCondition)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteEventCondition, PyCompatAsnType_FromParent(&PyAsnDeleteEventCondition_Request_Type, parent, (void *)src->choice.deleteEventCondition)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventCondition, deleteEventCondition); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventCondition, deleteEventCondition); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventConditionAttributes, getEventConditionAttributes,PyAsnGetEventConditionAttributes_Request_FromPython(value, &dst->choice.getEventConditionAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getEventConditionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionAttributes_Request_Type, parent, (void *)&src->choice.getEventConditionAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventConditionAttributes, getEventConditionAttributes, GetEventConditionAttributes_Request,PyAsnGetEventConditionAttributes_Request_FromPython(value, dst->choice.getEventConditionAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getEventConditionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionAttributes_Request_Type, parent, (void *)src->choice.getEventConditionAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventConditionAttributes, getEventConditionAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventConditionAttributes, getEventConditionAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventConditionStatus, reportEventConditionStatus,PyAsnReportEventConditionStatus_Request_FromPython(value, &dst->choice.reportEventConditionStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportEventConditionStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionStatus_Request_Type, parent, (void *)&src->choice.reportEventConditionStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventConditionStatus, reportEventConditionStatus, ReportEventConditionStatus_Request,PyAsnReportEventConditionStatus_Request_FromPython(value, dst->choice.reportEventConditionStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportEventConditionStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionStatus_Request_Type, parent, (void *)src->choice.reportEventConditionStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventConditionStatus, reportEventConditionStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventConditionStatus, reportEventConditionStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventConditionMonitoring, alterEventConditionMonitoring,PyAsnAlterEventConditionMonitoring_Request_FromPython(value, &dst->choice.alterEventConditionMonitoring)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, alterEventConditionMonitoring, PyCompatAsnType_FromParent(&PyAsnAlterEventConditionMonitoring_Request_Type, parent, (void *)&src->choice.alterEventConditionMonitoring)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventConditionMonitoring, alterEventConditionMonitoring, AlterEventConditionMonitoring_Request,PyAsnAlterEventConditionMonitoring_Request_FromPython(value, dst->choice.alterEventConditionMonitoring)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, alterEventConditionMonitoring, PyCompatAsnType_FromParent(&PyAsnAlterEventConditionMonitoring_Request_Type, parent, (void *)src->choice.alterEventConditionMonitoring)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventConditionMonitoring, alterEventConditionMonitoring); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventConditionMonitoring, alterEventConditionMonitoring); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, triggerEvent, triggerEvent,PyAsnTriggerEvent_Request_FromPython(value, &dst->choice.triggerEvent)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, triggerEvent, PyCompatAsnType_FromParent(&PyAsnTriggerEvent_Request_Type, parent, (void *)&src->choice.triggerEvent)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, triggerEvent, triggerEvent, TriggerEvent_Request,PyAsnTriggerEvent_Request_FromPython(value, dst->choice.triggerEvent)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, triggerEvent, PyCompatAsnType_FromParent(&PyAsnTriggerEvent_Request_Type, parent, (void *)src->choice.triggerEvent)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, triggerEvent, triggerEvent); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, triggerEvent, triggerEvent); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventAction, defineEventAction,PyAsnDefineEventAction_Request_FromPython(value, dst->choice.defineEventAction)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventAction, defineEventAction, DefineEventAction_Request,PyAsnDefineEventAction_Request_FromPython(value, dst->choice.defineEventAction)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineEventAction, PyCompatAsnType_FromParent(&PyAsnDefineEventAction_Request_Type, parent, (void *)src->choice.defineEventAction)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventAction, defineEventAction); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventAction, defineEventAction); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventAction, deleteEventAction,PyAsnDeleteEventAction_Request_FromPython(value, &dst->choice.deleteEventAction)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteEventAction, PyCompatAsnType_FromParent(&PyAsnDeleteEventAction_Request_Type, parent, (void *)&src->choice.deleteEventAction)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventAction, deleteEventAction, DeleteEventAction_Request,PyAsnDeleteEventAction_Request_FromPython(value, dst->choice.deleteEventAction)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteEventAction, PyCompatAsnType_FromParent(&PyAsnDeleteEventAction_Request_Type, parent, (void *)src->choice.deleteEventAction)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventAction, deleteEventAction); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventAction, deleteEventAction); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventActionAttributes, getEventActionAttributes,PyAsnGetEventActionAttributes_Request_FromPython(value, &dst->choice.getEventActionAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getEventActionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventActionAttributes_Request_Type, parent, (void *)&src->choice.getEventActionAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventActionAttributes, getEventActionAttributes, GetEventActionAttributes_Request,PyAsnGetEventActionAttributes_Request_FromPython(value, dst->choice.getEventActionAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getEventActionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventActionAttributes_Request_Type, parent, (void *)src->choice.getEventActionAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventActionAttributes, getEventActionAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventActionAttributes, getEventActionAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventActionStatus, reportEventActionStatus,PyAsnReportEventActionStatus_Request_FromPython(value, &dst->choice.reportEventActionStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportEventActionStatus, PyCompatAsnType_FromParent(&PyAsnReportEventActionStatus_Request_Type, parent, (void *)&src->choice.reportEventActionStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventActionStatus, reportEventActionStatus, ReportEventActionStatus_Request,PyAsnReportEventActionStatus_Request_FromPython(value, dst->choice.reportEventActionStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportEventActionStatus, PyCompatAsnType_FromParent(&PyAsnReportEventActionStatus_Request_Type, parent, (void *)src->choice.reportEventActionStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventActionStatus, reportEventActionStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventActionStatus, reportEventActionStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventEnrollment, defineEventEnrollment,PyAsnDefineEventEnrollment_Request_FromPython(value, &dst->choice.defineEventEnrollment)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineEventEnrollment, PyCompatAsnType_FromParent(&PyAsnDefineEventEnrollment_Request_Type, parent, (void *)&src->choice.defineEventEnrollment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventEnrollment, defineEventEnrollment, DefineEventEnrollment_Request,PyAsnDefineEventEnrollment_Request_FromPython(value, dst->choice.defineEventEnrollment)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineEventEnrollment, PyCompatAsnType_FromParent(&PyAsnDefineEventEnrollment_Request_Type, parent, (void *)src->choice.defineEventEnrollment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventEnrollment, defineEventEnrollment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineEventEnrollment, defineEventEnrollment); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventEnrollment, deleteEventEnrollment,PyAsnDeleteEventEnrollment_Request_FromPython(value, &dst->choice.deleteEventEnrollment)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteEventEnrollment, PyCompatAsnType_FromParent(&PyAsnDeleteEventEnrollment_Request_Type, parent, (void *)&src->choice.deleteEventEnrollment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventEnrollment, deleteEventEnrollment, DeleteEventEnrollment_Request,PyAsnDeleteEventEnrollment_Request_FromPython(value, dst->choice.deleteEventEnrollment)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteEventEnrollment, PyCompatAsnType_FromParent(&PyAsnDeleteEventEnrollment_Request_Type, parent, (void *)src->choice.deleteEventEnrollment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventEnrollment, deleteEventEnrollment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteEventEnrollment, deleteEventEnrollment); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventEnrollment, alterEventEnrollment,PyAsnAlterEventEnrollment_Request_FromPython(value, &dst->choice.alterEventEnrollment)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, alterEventEnrollment, PyCompatAsnType_FromParent(&PyAsnAlterEventEnrollment_Request_Type, parent, (void *)&src->choice.alterEventEnrollment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventEnrollment, alterEventEnrollment, AlterEventEnrollment_Request,PyAsnAlterEventEnrollment_Request_FromPython(value, dst->choice.alterEventEnrollment)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, alterEventEnrollment, PyCompatAsnType_FromParent(&PyAsnAlterEventEnrollment_Request_Type, parent, (void *)src->choice.alterEventEnrollment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventEnrollment, alterEventEnrollment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, alterEventEnrollment, alterEventEnrollment); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventEnrollmentStatus, reportEventEnrollmentStatus,PyAsnReportEventEnrollmentStatus_Request_FromPython(value, &dst->choice.reportEventEnrollmentStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportEventEnrollmentStatus, PyCompatAsnType_FromParent(&PyAsnReportEventEnrollmentStatus_Request_Type, parent, (void *)&src->choice.reportEventEnrollmentStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventEnrollmentStatus, reportEventEnrollmentStatus, ReportEventEnrollmentStatus_Request,PyAsnReportEventEnrollmentStatus_Request_FromPython(value, dst->choice.reportEventEnrollmentStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportEventEnrollmentStatus, PyCompatAsnType_FromParent(&PyAsnReportEventEnrollmentStatus_Request_Type, parent, (void *)src->choice.reportEventEnrollmentStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventEnrollmentStatus, reportEventEnrollmentStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportEventEnrollmentStatus, reportEventEnrollmentStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventEnrollmentAttributes, getEventEnrollmentAttributes,PyAsnGetEventEnrollmentAttributes_Request_FromPython(value, &dst->choice.getEventEnrollmentAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getEventEnrollmentAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventEnrollmentAttributes_Request_Type, parent, (void *)&src->choice.getEventEnrollmentAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventEnrollmentAttributes, getEventEnrollmentAttributes, GetEventEnrollmentAttributes_Request,PyAsnGetEventEnrollmentAttributes_Request_FromPython(value, dst->choice.getEventEnrollmentAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getEventEnrollmentAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventEnrollmentAttributes_Request_Type, parent, (void *)src->choice.getEventEnrollmentAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventEnrollmentAttributes, getEventEnrollmentAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getEventEnrollmentAttributes, getEventEnrollmentAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, acknowledgeEventNotification, acknowledgeEventNotification,PyAsnAcknowledgeEventNotification_Request_FromPython(value, &dst->choice.acknowledgeEventNotification)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, acknowledgeEventNotification, PyCompatAsnType_FromParent(&PyAsnAcknowledgeEventNotification_Request_Type, parent, (void *)&src->choice.acknowledgeEventNotification)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, acknowledgeEventNotification, acknowledgeEventNotification, AcknowledgeEventNotification_Request,PyAsnAcknowledgeEventNotification_Request_FromPython(value, dst->choice.acknowledgeEventNotification)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, acknowledgeEventNotification, PyCompatAsnType_FromParent(&PyAsnAcknowledgeEventNotification_Request_Type, parent, (void *)src->choice.acknowledgeEventNotification)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, acknowledgeEventNotification, acknowledgeEventNotification); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, acknowledgeEventNotification, acknowledgeEventNotification); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmSummary, getAlarmSummary,PyAsnGetAlarmSummary_Request_FromPython(value, &dst->choice.getAlarmSummary)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getAlarmSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmSummary_Request_Type, parent, (void *)&src->choice.getAlarmSummary)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmSummary, getAlarmSummary, GetAlarmSummary_Request,PyAsnGetAlarmSummary_Request_FromPython(value, dst->choice.getAlarmSummary)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getAlarmSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmSummary_Request_Type, parent, (void *)src->choice.getAlarmSummary)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmSummary, getAlarmSummary); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmSummary, getAlarmSummary); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary,PyAsnGetAlarmEnrollmentSummary_Request_FromPython(value, &dst->choice.getAlarmEnrollmentSummary)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getAlarmEnrollmentSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmEnrollmentSummary_Request_Type, parent, (void *)&src->choice.getAlarmEnrollmentSummary)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary, GetAlarmEnrollmentSummary_Request,PyAsnGetAlarmEnrollmentSummary_Request_FromPython(value, dst->choice.getAlarmEnrollmentSummary)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getAlarmEnrollmentSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmEnrollmentSummary_Request_Type, parent, (void *)src->choice.getAlarmEnrollmentSummary)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, readJournal, readJournal,PyAsnReadJournal_Request_FromPython(value, &dst->choice.readJournal)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, readJournal, PyCompatAsnType_FromParent(&PyAsnReadJournal_Request_Type, parent, (void *)&src->choice.readJournal)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, readJournal, readJournal, ReadJournal_Request,PyAsnReadJournal_Request_FromPython(value, dst->choice.readJournal)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, readJournal, PyCompatAsnType_FromParent(&PyAsnReadJournal_Request_Type, parent, (void *)src->choice.readJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, readJournal, readJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, readJournal, readJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, writeJournal, writeJournal,PyAsnWriteJournal_Request_FromPython(value, &dst->choice.writeJournal)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, writeJournal, PyCompatAsnType_FromParent(&PyAsnWriteJournal_Request_Type, parent, (void *)&src->choice.writeJournal)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, writeJournal, writeJournal, WriteJournal_Request,PyAsnWriteJournal_Request_FromPython(value, dst->choice.writeJournal)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, writeJournal, PyCompatAsnType_FromParent(&PyAsnWriteJournal_Request_Type, parent, (void *)src->choice.writeJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, writeJournal, writeJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, writeJournal, writeJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, initializeJournal, initializeJournal,PyAsnInitializeJournal_Request_FromPython(value, &dst->choice.initializeJournal)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, initializeJournal, PyCompatAsnType_FromParent(&PyAsnInitializeJournal_Request_Type, parent, (void *)&src->choice.initializeJournal)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, initializeJournal, initializeJournal, InitializeJournal_Request,PyAsnInitializeJournal_Request_FromPython(value, dst->choice.initializeJournal)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, initializeJournal, PyCompatAsnType_FromParent(&PyAsnInitializeJournal_Request_Type, parent, (void *)src->choice.initializeJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, initializeJournal, initializeJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, initializeJournal, initializeJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportJournalStatus, reportJournalStatus,PyAsnReportJournalStatus_Request_FromPython(value, &dst->choice.reportJournalStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportJournalStatus, PyCompatAsnType_FromParent(&PyAsnReportJournalStatus_Request_Type, parent, (void *)&src->choice.reportJournalStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportJournalStatus, reportJournalStatus, ReportJournalStatus_Request,PyAsnReportJournalStatus_Request_FromPython(value, dst->choice.reportJournalStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportJournalStatus, PyCompatAsnType_FromParent(&PyAsnReportJournalStatus_Request_Type, parent, (void *)src->choice.reportJournalStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportJournalStatus, reportJournalStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportJournalStatus, reportJournalStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, createJournal, createJournal,PyAsnCreateJournal_Request_FromPython(value, &dst->choice.createJournal)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, createJournal, PyCompatAsnType_FromParent(&PyAsnCreateJournal_Request_Type, parent, (void *)&src->choice.createJournal)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, createJournal, createJournal, CreateJournal_Request,PyAsnCreateJournal_Request_FromPython(value, dst->choice.createJournal)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, createJournal, PyCompatAsnType_FromParent(&PyAsnCreateJournal_Request_Type, parent, (void *)src->choice.createJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, createJournal, createJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, createJournal, createJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteJournal, deleteJournal,PyAsnDeleteJournal_Request_FromPython(value, &dst->choice.deleteJournal)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteJournal, PyCompatAsnType_FromParent(&PyAsnDeleteJournal_Request_Type, parent, (void *)&src->choice.deleteJournal)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteJournal, deleteJournal, DeleteJournal_Request,PyAsnDeleteJournal_Request_FromPython(value, dst->choice.deleteJournal)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteJournal, PyCompatAsnType_FromParent(&PyAsnDeleteJournal_Request_Type, parent, (void *)src->choice.deleteJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteJournal, deleteJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteJournal, deleteJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getCapabilityList, getCapabilityList,PyAsnGetCapabilityList_Request_FromPython(value, &dst->choice.getCapabilityList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getCapabilityList, PyCompatAsnType_FromParent(&PyAsnGetCapabilityList_Request_Type, parent, (void *)&src->choice.getCapabilityList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getCapabilityList, getCapabilityList, GetCapabilityList_Request,PyAsnGetCapabilityList_Request_FromPython(value, dst->choice.getCapabilityList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getCapabilityList, PyCompatAsnType_FromParent(&PyAsnGetCapabilityList_Request_Type, parent, (void *)src->choice.getCapabilityList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getCapabilityList, getCapabilityList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getCapabilityList, getCapabilityList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileOpen, fileOpen,PyAsnFileOpen_Request_FromPython(value, &dst->choice.fileOpen)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileOpen, PyCompatAsnType_FromParent(&PyAsnFileOpen_Request_Type, parent, (void *)&src->choice.fileOpen)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileOpen, fileOpen, FileOpen_Request,PyAsnFileOpen_Request_FromPython(value, dst->choice.fileOpen)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileOpen, PyCompatAsnType_FromParent(&PyAsnFileOpen_Request_Type, parent, (void *)src->choice.fileOpen)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileOpen, fileOpen); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileOpen, fileOpen); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileRead, fileRead,PyAsnFileRead_Request_FromPython(value, &dst->choice.fileRead)); @@ -306,48 +306,48 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fil PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileClose, PyCompatAsnType_FromParent(&PyAsnFileClose_Request_Type, parent, (void *)&src->choice.fileClose)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileClose, fileClose); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileClose, fileClose); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileRename, fileRename,PyAsnFileRename_Request_FromPython(value, &dst->choice.fileRename)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileRename, PyCompatAsnType_FromParent(&PyAsnFileRename_Request_Type, parent, (void *)&src->choice.fileRename)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileRename, fileRename, FileRename_Request,PyAsnFileRename_Request_FromPython(value, dst->choice.fileRename)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileRename, PyCompatAsnType_FromParent(&PyAsnFileRename_Request_Type, parent, (void *)src->choice.fileRename)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileRename, fileRename); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileRename, fileRename); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDelete, fileDelete,PyAsnFileDelete_Request_FromPython(value, &dst->choice.fileDelete)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileDelete, PyCompatAsnType_FromParent(&PyAsnFileDelete_Request_Type, parent, (void *)&src->choice.fileDelete)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDelete, fileDelete, FileDelete_Request,PyAsnFileDelete_Request_FromPython(value, dst->choice.fileDelete)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileDelete, PyCompatAsnType_FromParent(&PyAsnFileDelete_Request_Type, parent, (void *)src->choice.fileDelete)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDelete, fileDelete); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDelete, fileDelete); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDirectory, fileDirectory,PyAsnFileDirectory_Request_FromPython(value, &dst->choice.fileDirectory)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileDirectory, PyCompatAsnType_FromParent(&PyAsnFileDirectory_Request_Type, parent, (void *)&src->choice.fileDirectory)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDirectory, fileDirectory, FileDirectory_Request,PyAsnFileDirectory_Request_FromPython(value, dst->choice.fileDirectory)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, fileDirectory, PyCompatAsnType_FromParent(&PyAsnFileDirectory_Request_Type, parent, (void *)src->choice.fileDirectory)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDirectory, fileDirectory); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, fileDirectory, fileDirectory); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, additionalService, additionalService,PyAsnAdditionalService_Request_FromPython(value, &dst->choice.additionalService)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, additionalService, PyCompatAsnType_FromParent(&PyAsnAdditionalService_Request_Type, parent, (void *)&src->choice.additionalService)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, additionalService, additionalService, AdditionalService_Request,PyAsnAdditionalService_Request_FromPython(value, dst->choice.additionalService)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, additionalService, PyCompatAsnType_FromParent(&PyAsnAdditionalService_Request_Type, parent, (void *)src->choice.additionalService)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, additionalService, additionalService); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, additionalService, additionalService); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getDataExchangeAttributes, getDataExchangeAttributes,PyAsnGetDataExchangeAttributes_Request_FromPython(value, &dst->choice.getDataExchangeAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getDataExchangeAttributes, PyCompatAsnType_FromParent(&PyAsnGetDataExchangeAttributes_Request_Type, parent, (void *)&src->choice.getDataExchangeAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getDataExchangeAttributes, getDataExchangeAttributes, GetDataExchangeAttributes_Request,PyAsnGetDataExchangeAttributes_Request_FromPython(value, dst->choice.getDataExchangeAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getDataExchangeAttributes, PyCompatAsnType_FromParent(&PyAsnGetDataExchangeAttributes_Request_Type, parent, (void *)src->choice.getDataExchangeAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getDataExchangeAttributes, getDataExchangeAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getDataExchangeAttributes, getDataExchangeAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, exchangeData, exchangeData,PyAsnExchangeData_Request_FromPython(value, &dst->choice.exchangeData)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, exchangeData, PyCompatAsnType_FromParent(&PyAsnExchangeData_Request_Type, parent, (void *)&src->choice.exchangeData)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, exchangeData, exchangeData, ExchangeData_Request,PyAsnExchangeData_Request_FromPython(value, dst->choice.exchangeData)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, exchangeData, PyCompatAsnType_FromParent(&PyAsnExchangeData_Request_Type, parent, (void *)src->choice.exchangeData)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, exchangeData, exchangeData); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, exchangeData, exchangeData); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineAccessControlList, defineAccessControlList,PyAsnDefineAccessControlList_Request_FromPython(value, &dst->choice.defineAccessControlList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineAccessControlList, PyCompatAsnType_FromParent(&PyAsnDefineAccessControlList_Request_Type, parent, (void *)&src->choice.defineAccessControlList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, defineAccessControlList, defineAccessControlList, DefineAccessControlList_Request,PyAsnDefineAccessControlList_Request_FromPython(value, dst->choice.defineAccessControlList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, defineAccessControlList, PyCompatAsnType_FromParent(&PyAsnDefineAccessControlList_Request_Type, parent, (void *)src->choice.defineAccessControlList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineAccessControlList, defineAccessControlList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, defineAccessControlList, defineAccessControlList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getAccessControlListAttributes, getAccessControlListAttributes,PyAsnGetAccessControlListAttributes_Request_FromPython(value, &dst->choice.getAccessControlListAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getAccessControlListAttributes, PyCompatAsnType_FromParent(&PyAsnGetAccessControlListAttributes_Request_Type, parent, (void *)&src->choice.getAccessControlListAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, getAccessControlListAttributes, getAccessControlListAttributes, GetAccessControlListAttributes_Request,PyAsnGetAccessControlListAttributes_Request_FromPython(value, dst->choice.getAccessControlListAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, getAccessControlListAttributes, PyCompatAsnType_FromParent(&PyAsnGetAccessControlListAttributes_Request_Type, parent, (void *)src->choice.getAccessControlListAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getAccessControlListAttributes, getAccessControlListAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, getAccessControlListAttributes, getAccessControlListAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportAccessControlledObjects, reportAccessControlledObjects,PyAsnReportAccessControlledObjects_Request_FromPython(value, &dst->choice.reportAccessControlledObjects)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportAccessControlledObjects, PyCompatAsnType_FromParent(&PyAsnReportAccessControlledObjects_Request_Type, parent, (void *)&src->choice.reportAccessControlledObjects)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, reportAccessControlledObjects, reportAccessControlledObjects, ReportAccessControlledObjects_Request,PyAsnReportAccessControlledObjects_Request_FromPython(value, dst->choice.reportAccessControlledObjects)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, reportAccessControlledObjects, PyCompatAsnType_FromParent(&PyAsnReportAccessControlledObjects_Request_Type, parent, (void *)src->choice.reportAccessControlledObjects)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportAccessControlledObjects, reportAccessControlledObjects); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, reportAccessControlledObjects, reportAccessControlledObjects); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteAccessControlList, deleteAccessControlList,PyAsnDeleteAccessControlList_Request_FromPython(value, &dst->choice.deleteAccessControlList)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, deleteAccessControlList, PyCompatAsnType_FromParent(&PyAsnDeleteAccessControlList_Request_Type, parent, (void *)&src->choice.deleteAccessControlList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteAccessControlList, deleteAccessControlList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, deleteAccessControlList, deleteAccessControlList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, changeAccessControl, changeAccessControl,PyAsnChangeAccessControl_Request_FromPython(value, &dst->choice.changeAccessControl)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, changeAccessControl, PyCompatAsnType_FromParent(&PyAsnChangeAccessControl_Request_Type, parent, (void *)&src->choice.changeAccessControl)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceRequest, ConfirmedServiceRequest, changeAccessControl, changeAccessControl, ChangeAccessControl_Request,PyAsnChangeAccessControl_Request_FromPython(value, dst->choice.changeAccessControl)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceRequest, changeAccessControl, PyCompatAsnType_FromParent(&PyAsnChangeAccessControl_Request_Type, parent, (void *)src->choice.changeAccessControl)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, changeAccessControl, changeAccessControl); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceRequest, ConfirmedServiceRequest, changeAccessControl, changeAccessControl); PY_IMPL_GENERIC_DEALLOC(ConfirmedServiceRequest); diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.h b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.h index d13703c7..57708581 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.h +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceRequest_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.c b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.c index adb944ee..7dd7bf31 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.c +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.status), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.status), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Status_Response, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "status" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getNameList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getNameList), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetNameList_Response, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getNameList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.identify), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.identify), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identify_Response, @@ -85,7 +85,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "rename" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.read), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.read), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Read_Response, @@ -105,7 +105,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "read" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.write), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.write), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Write_Response, @@ -125,7 +125,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "write" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getVariableAccessAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getVariableAccessAttributes), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetVariableAccessAttributes_Response, @@ -185,7 +185,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "defineScatteredAccess" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getScatteredAccessAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getScatteredAccessAttributes), (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetScatteredAccessAttributes_Response, @@ -205,7 +205,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getScatteredAccessAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.deleteVariableAccess), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.deleteVariableAccess), (ASN_TAG_CLASS_CONTEXT | (10 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteVariableAccess_Response, @@ -245,7 +245,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "defineNamedVariableList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getNamedVariableListAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getNamedVariableListAttributes), (ASN_TAG_CLASS_CONTEXT | (12 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetNamedVariableListAttributes_Response, @@ -265,7 +265,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getNamedVariableListAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.deleteNamedVariableList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.deleteNamedVariableList), (ASN_TAG_CLASS_CONTEXT | (13 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteNamedVariableList_Response, @@ -305,7 +305,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "defineNamedType" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getNamedTypeAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getNamedTypeAttributes), (ASN_TAG_CLASS_CONTEXT | (15 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetNamedTypeAttributes_Response, @@ -325,7 +325,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getNamedTypeAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.deleteNamedType), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.deleteNamedType), (ASN_TAG_CLASS_CONTEXT | (16 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DeleteNamedType_Response, @@ -385,7 +385,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "output" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.takeControl), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.takeControl), (ASN_TAG_CLASS_CONTEXT | (19 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_TakeControl_Response, @@ -465,7 +465,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteSemaphore" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportSemaphoreStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportSemaphoreStatus), (ASN_TAG_CLASS_CONTEXT | (23 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportSemaphoreStatus_Response, @@ -485,7 +485,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "reportSemaphoreStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportPoolSemaphoreStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportPoolSemaphoreStatus), (ASN_TAG_CLASS_CONTEXT | (24 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportPoolSemaphoreStatus_Response, @@ -505,7 +505,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "reportPoolSemaphoreStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportSemaphoreEntryStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportSemaphoreEntryStatus), (ASN_TAG_CLASS_CONTEXT | (25 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportSemaphoreEntryStatus_Response, @@ -545,7 +545,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "initiateDownloadSequence" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.downloadSegment), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.downloadSegment), (ASN_TAG_CLASS_CONTEXT | (27 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DownloadSegment_Response, @@ -585,7 +585,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "terminateDownloadSequence" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.initiateUploadSequence), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.initiateUploadSequence), (ASN_TAG_CLASS_CONTEXT | (29 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_InitiateUploadSequence_Response, @@ -605,7 +605,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "initiateUploadSequence" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.uploadSegment), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.uploadSegment), (ASN_TAG_CLASS_CONTEXT | (30 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_UploadSegment_Response, @@ -745,7 +745,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteDomain" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getDomainAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getDomainAttributes), (ASN_TAG_CLASS_CONTEXT | (37 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetDomainAttributes_Response, @@ -905,7 +905,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "kill" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getProgramInvocationAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getProgramInvocationAttributes), (ASN_TAG_CLASS_CONTEXT | (45 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetProgramInvocationAttributes_Response, @@ -985,7 +985,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteEventCondition" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getEventConditionAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getEventConditionAttributes), (ASN_TAG_CLASS_CONTEXT | (49 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetEventConditionAttributes_Response, @@ -1005,7 +1005,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getEventConditionAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportEventConditionStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportEventConditionStatus), (ASN_TAG_CLASS_CONTEXT | (50 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportEventConditionStatus_Response, @@ -1105,7 +1105,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteEventAction" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getEventActionAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getEventActionAttributes), (ASN_TAG_CLASS_CONTEXT | (55 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetEventActionAttributes_Response, @@ -1185,7 +1185,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteEventEnrollment" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.alterEventEnrollment), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.alterEventEnrollment), (ASN_TAG_CLASS_CONTEXT | (59 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlterEventEnrollment_Response, @@ -1205,7 +1205,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "alterEventEnrollment" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportEventEnrollmentStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportEventEnrollmentStatus), (ASN_TAG_CLASS_CONTEXT | (60 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportEventEnrollmentStatus_Response, @@ -1225,7 +1225,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "reportEventEnrollmentStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getEventEnrollmentAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getEventEnrollmentAttributes), (ASN_TAG_CLASS_CONTEXT | (61 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetEventEnrollmentAttributes_Response, @@ -1265,7 +1265,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "acknowledgeEventNotification" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getAlarmSummary), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getAlarmSummary), (ASN_TAG_CLASS_CONTEXT | (63 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetAlarmSummary_Response, @@ -1285,7 +1285,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getAlarmSummary" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getAlarmEnrollmentSummary), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getAlarmEnrollmentSummary), (ASN_TAG_CLASS_CONTEXT | (64 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetAlarmEnrollmentSummary_Response, @@ -1305,7 +1305,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getAlarmEnrollmentSummary" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.readJournal), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.readJournal), (ASN_TAG_CLASS_CONTEXT | (65 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReadJournal_Response, @@ -1365,7 +1365,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "initializeJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportJournalStatus), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportJournalStatus), (ASN_TAG_CLASS_CONTEXT | (68 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportJournalStatus_Response, @@ -1425,7 +1425,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteJournal" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getCapabilityList), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getCapabilityList), (ASN_TAG_CLASS_CONTEXT | (71 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetCapabilityList_Response, @@ -1445,7 +1445,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getCapabilityList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.fileOpen), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.fileOpen), (ASN_TAG_CLASS_CONTEXT | (72 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileOpen_Response, @@ -1465,7 +1465,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "fileOpen" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.fileRead), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.fileRead), (ASN_TAG_CLASS_CONTEXT | (73 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileRead_Response, @@ -1545,7 +1545,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "fileDelete" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.fileDirectory), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.fileDirectory), (ASN_TAG_CLASS_CONTEXT | (77 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileDirectory_Response, @@ -1565,7 +1565,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "fileDirectory" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.additionalService), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.additionalService), (ASN_TAG_CLASS_CONTEXT | (78 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_AdditionalService_Response, @@ -1585,7 +1585,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "additionalService" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getDataExchangeAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getDataExchangeAttributes), (ASN_TAG_CLASS_CONTEXT | (80 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GetDataExchangeAttributes_Response, @@ -1605,7 +1605,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getDataExchangeAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.exchangeData), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.exchangeData), (ASN_TAG_CLASS_CONTEXT | (81 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ExchangeData_Response, @@ -1645,7 +1645,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "defineAccessControlList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.getAccessControlListAttributes), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.getAccessControlListAttributes), (ASN_TAG_CLASS_CONTEXT | (83 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetAccessControlListAttributes_Response, @@ -1665,7 +1665,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "getAccessControlListAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.reportAccessControlledObjects), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.reportAccessControlledObjects), (ASN_TAG_CLASS_CONTEXT | (84 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ReportAccessControlledObjects_Response, @@ -1705,7 +1705,7 @@ asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[] = { 0, 0, /* No default value */ "deleteAccessControlList" }, - { ATF_NOFLAGS, 0, offsetof(struct ConfirmedServiceResponse, choice.changeAccessControl), + { ATF_POINTER, 0, offsetof(struct ConfirmedServiceResponse, choice.changeAccessControl), (ASN_TAG_CLASS_CONTEXT | (86 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ChangeAccessControl_Response, diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.h b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.h index 4715159d..a8680815 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.h +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,92 +10,51 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "Rename-Response.h" +#include "DefineNamedVariable-Response.h" +#include "DefineScatteredAccess-Response.h" +#include "DefineNamedVariableList-Response.h" +#include "DefineNamedType-Response.h" +#include "Input-Response.h" +#include "Output-Response.h" +#include "RelinquishControl-Response.h" +#include "DefineSemaphore-Response.h" +#include "DeleteSemaphore-Response.h" +#include "InitiateDownloadSequence-Response.h" +#include "TerminateDownloadSequence-Response.h" +#include "TerminateUploadSequence-Response.h" +#include "RequestDomainDownload-Response.h" +#include "RequestDomainUpload-Response.h" +#include "LoadDomainContent-Response.h" +#include "StoreDomainContent-Response.h" +#include "DeleteDomain-Response.h" +#include "CreateProgramInvocation-Response.h" +#include "DeleteProgramInvocation-Response.h" +#include "Start-Response.h" +#include "Stop-Response.h" +#include "Resume-Response.h" +#include "Reset-Response.h" +#include "Kill-Response.h" +#include "ObtainFile-Response.h" +#include "DefineEventCondition-Response.h" +#include "DeleteEventCondition-Response.h" +#include "AlterEventConditionMonitoring-Response.h" +#include "TriggerEvent-Response.h" +#include "DefineEventAction-Response.h" +#include "DeleteEventAction-Response.h" +#include "ReportEventActionStatus-Response.h" +#include "DefineEventEnrollment-Response.h" +#include "DeleteEventEnrollment-Response.h" +#include "AcknowledgeEventNotification-Response.h" +#include "WriteJournal-Response.h" +#include "InitializeJournal-Response.h" +#include "CreateJournal-Response.h" +#include "DeleteJournal-Response.h" +#include "FileClose-Response.h" +#include "FileRename-Response.h" +#include "FileDelete-Response.h" +#include "DefineAccessControlList-Response.h" +#include "DeleteAccessControlList-Response.h" #include #ifdef __cplusplus @@ -193,96 +152,140 @@ typedef enum ConfirmedServiceResponse_PR { ConfirmedServiceResponse_PR_changeAccessControl } ConfirmedServiceResponse_PR; +/* Forward declarations */ +struct Status_Response; +struct GetNameList_Response; +struct Identify_Response; +struct Read_Response; +struct Write_Response; +struct GetVariableAccessAttributes_Response; +struct GetScatteredAccessAttributes_Response; +struct DeleteVariableAccess_Response; +struct GetNamedVariableListAttributes_Response; +struct DeleteNamedVariableList_Response; +struct GetNamedTypeAttributes_Response; +struct DeleteNamedType_Response; +struct TakeControl_Response; +struct ReportSemaphoreStatus_Response; +struct ReportPoolSemaphoreStatus_Response; +struct ReportSemaphoreEntryStatus_Response; +struct DownloadSegment_Response; +struct InitiateUploadSequence_Response; +struct UploadSegment_Response; +struct GetDomainAttributes_Response; +struct GetProgramInvocationAttributes_Response; +struct GetEventConditionAttributes_Response; +struct ReportEventConditionStatus_Response; +struct GetEventActionAttributes_Response; +struct AlterEventEnrollment_Response; +struct ReportEventEnrollmentStatus_Response; +struct GetEventEnrollmentAttributes_Response; +struct GetAlarmSummary_Response; +struct GetAlarmEnrollmentSummary_Response; +struct ReadJournal_Response; +struct ReportJournalStatus_Response; +struct GetCapabilityList_Response; +struct FileOpen_Response; +struct FileRead_Response; +struct FileDirectory_Response; +struct AdditionalService_Response; +struct GetDataExchangeAttributes_Response; +struct ExchangeData_Response; +struct GetAccessControlListAttributes_Response; +struct ReportAccessControlledObjects_Response; +struct ChangeAccessControl_Response; +struct StatusResponse; + /* ConfirmedServiceResponse */ typedef struct ConfirmedServiceResponse { ConfirmedServiceResponse_PR present; union ConfirmedServiceResponse_u { - Status_Response_t status; - GetNameList_Response_t getNameList; - Identify_Response_t identify; - Rename_Response_t rename; - Read_Response_t read; - Write_Response_t write; - GetVariableAccessAttributes_Response_t getVariableAccessAttributes; - DefineNamedVariable_Response_t defineNamedVariable; - DefineScatteredAccess_Response_t defineScatteredAccess; - GetScatteredAccessAttributes_Response_t getScatteredAccessAttributes; - DeleteVariableAccess_Response_t deleteVariableAccess; - DefineNamedVariableList_Response_t defineNamedVariableList; - GetNamedVariableListAttributes_Response_t getNamedVariableListAttributes; - DeleteNamedVariableList_Response_t deleteNamedVariableList; - DefineNamedType_Response_t defineNamedType; - GetNamedTypeAttributes_Response_t getNamedTypeAttributes; - DeleteNamedType_Response_t deleteNamedType; - Input_Response_t input; - Output_Response_t output; - TakeControl_Response_t takeControl; - RelinquishControl_Response_t relinquishControl; - DefineSemaphore_Response_t defineSemaphore; - DeleteSemaphore_Response_t deleteSemaphore; - ReportSemaphoreStatus_Response_t reportSemaphoreStatus; - ReportPoolSemaphoreStatus_Response_t reportPoolSemaphoreStatus; - ReportSemaphoreEntryStatus_Response_t reportSemaphoreEntryStatus; - InitiateDownloadSequence_Response_t initiateDownloadSequence; - DownloadSegment_Response_t downloadSegment; - TerminateDownloadSequence_Response_t terminateDownloadSequence; - InitiateUploadSequence_Response_t initiateUploadSequence; - UploadSegment_Response_t uploadSegment; - TerminateUploadSequence_Response_t terminateUploadSequence; - RequestDomainDownload_Response_t requestDomainDownload; - RequestDomainUpload_Response_t requestDomainUpload; - LoadDomainContent_Response_t loadDomainContent; - StoreDomainContent_Response_t storeDomainContent; - DeleteDomain_Response_t deleteDomain; - GetDomainAttributes_Response_t getDomainAttributes; - CreateProgramInvocation_Response_t createProgramInvocation; - DeleteProgramInvocation_Response_t deleteProgramInvocation; - Start_Response_t start; - Stop_Response_t stop; - Resume_Response_t resume; - Reset_Response_t reset; - Kill_Response_t kill; - GetProgramInvocationAttributes_Response_t getProgramInvocationAttributes; - ObtainFile_Response_t obtainFile; - DefineEventCondition_Response_t defineEventCondition; - DeleteEventCondition_Response_t deleteEventCondition; - GetEventConditionAttributes_Response_t getEventConditionAttributes; - ReportEventConditionStatus_Response_t reportEventConditionStatus; - AlterEventConditionMonitoring_Response_t alterEventConditionMonitoring; - TriggerEvent_Response_t triggerEvent; - DefineEventAction_Response_t defineEventAction; - DeleteEventAction_Response_t deleteEventAction; - GetEventActionAttributes_Response_t getEventActionAttributes; - ReportEventActionStatus_Response_t reportEventActionStatus; - DefineEventEnrollment_Response_t defineEventEnrollment; - DeleteEventEnrollment_Response_t deleteEventEnrollment; - AlterEventEnrollment_Response_t alterEventEnrollment; - ReportEventEnrollmentStatus_Response_t reportEventEnrollmentStatus; - GetEventEnrollmentAttributes_Response_t getEventEnrollmentAttributes; - AcknowledgeEventNotification_Response_t acknowledgeEventNotification; - GetAlarmSummary_Response_t getAlarmSummary; - GetAlarmEnrollmentSummary_Response_t getAlarmEnrollmentSummary; - ReadJournal_Response_t readJournal; - WriteJournal_Response_t writeJournal; - InitializeJournal_Response_t initializeJournal; - ReportJournalStatus_Response_t reportJournalStatus; - CreateJournal_Response_t createJournal; - DeleteJournal_Response_t deleteJournal; - GetCapabilityList_Response_t getCapabilityList; - FileOpen_Response_t fileOpen; - FileRead_Response_t fileRead; - FileClose_Response_t fileClose; - FileRename_Response_t fileRename; - FileDelete_Response_t fileDelete; - FileDirectory_Response_t fileDirectory; - AdditionalService_Response_t additionalService; - GetDataExchangeAttributes_Response_t getDataExchangeAttributes; - ExchangeData_Response_t exchangeData; - DefineAccessControlList_Response_t defineAccessControlList; - GetAccessControlListAttributes_Response_t getAccessControlListAttributes; - ReportAccessControlledObjects_Response_t reportAccessControlledObjects; - DeleteAccessControlList_Response_t deleteAccessControlList; - ChangeAccessControl_Response_t changeAccessControl; + struct StatusResponse *status; + struct GetNameList_Response *getNameList; + struct Identify_Response *identify; + Rename_Response_t rename; + struct Read_Response *read; + struct Write_Response *write; + struct GetVariableAccessAttributes_Response *getVariableAccessAttributes; + DefineNamedVariable_Response_t defineNamedVariable; + DefineScatteredAccess_Response_t defineScatteredAccess; + struct GetScatteredAccessAttributes_Response *getScatteredAccessAttributes; + struct DeleteVariableAccess_Response *deleteVariableAccess; + DefineNamedVariableList_Response_t defineNamedVariableList; + struct GetNamedVariableListAttributes_Response *getNamedVariableListAttributes; + struct DeleteNamedVariableList_Response *deleteNamedVariableList; + DefineNamedType_Response_t defineNamedType; + struct GetNamedTypeAttributes_Response *getNamedTypeAttributes; + struct DeleteNamedType_Response *deleteNamedType; + Input_Response_t input; + Output_Response_t output; + struct TakeControl_Response *takeControl; + RelinquishControl_Response_t relinquishControl; + DefineSemaphore_Response_t defineSemaphore; + DeleteSemaphore_Response_t deleteSemaphore; + struct ReportSemaphoreStatus_Response *reportSemaphoreStatus; + struct ReportPoolSemaphoreStatus_Response *reportPoolSemaphoreStatus; + struct ReportSemaphoreEntryStatus_Response *reportSemaphoreEntryStatus; + InitiateDownloadSequence_Response_t initiateDownloadSequence; + struct DownloadSegment_Response *downloadSegment; + TerminateDownloadSequence_Response_t terminateDownloadSequence; + struct InitiateUploadSequence_Response *initiateUploadSequence; + struct UploadSegment_Response *uploadSegment; + TerminateUploadSequence_Response_t terminateUploadSequence; + RequestDomainDownload_Response_t requestDomainDownload; + RequestDomainUpload_Response_t requestDomainUpload; + LoadDomainContent_Response_t loadDomainContent; + StoreDomainContent_Response_t storeDomainContent; + DeleteDomain_Response_t deleteDomain; + struct GetDomainAttributes_Response *getDomainAttributes; + CreateProgramInvocation_Response_t createProgramInvocation; + DeleteProgramInvocation_Response_t deleteProgramInvocation; + Start_Response_t start; + Stop_Response_t stop; + Resume_Response_t resume; + Reset_Response_t reset; + Kill_Response_t kill; + struct GetProgramInvocationAttributes_Response *getProgramInvocationAttributes; + ObtainFile_Response_t obtainFile; + DefineEventCondition_Response_t defineEventCondition; + DeleteEventCondition_Response_t deleteEventCondition; + struct GetEventConditionAttributes_Response *getEventConditionAttributes; + struct ReportEventConditionStatus_Response *reportEventConditionStatus; + AlterEventConditionMonitoring_Response_t alterEventConditionMonitoring; + TriggerEvent_Response_t triggerEvent; + DefineEventAction_Response_t defineEventAction; + DeleteEventAction_Response_t deleteEventAction; + struct GetEventActionAttributes_Response *getEventActionAttributes; + ReportEventActionStatus_Response_t reportEventActionStatus; + DefineEventEnrollment_Response_t defineEventEnrollment; + DeleteEventEnrollment_Response_t deleteEventEnrollment; + struct AlterEventEnrollment_Response *alterEventEnrollment; + struct ReportEventEnrollmentStatus_Response *reportEventEnrollmentStatus; + struct GetEventEnrollmentAttributes_Response *getEventEnrollmentAttributes; + AcknowledgeEventNotification_Response_t acknowledgeEventNotification; + struct GetAlarmSummary_Response *getAlarmSummary; + struct GetAlarmEnrollmentSummary_Response *getAlarmEnrollmentSummary; + struct ReadJournal_Response *readJournal; + WriteJournal_Response_t writeJournal; + InitializeJournal_Response_t initializeJournal; + struct ReportJournalStatus_Response *reportJournalStatus; + CreateJournal_Response_t createJournal; + DeleteJournal_Response_t deleteJournal; + struct GetCapabilityList_Response *getCapabilityList; + struct FileOpen_Response *fileOpen; + struct FileRead_Response *fileRead; + FileClose_Response_t fileClose; + FileRename_Response_t fileRename; + FileDelete_Response_t fileDelete; + struct FileDirectory_Response *fileDirectory; + struct AdditionalService_Response *additionalService; + struct GetDataExchangeAttributes_Response *getDataExchangeAttributes; + struct ExchangeData_Response *exchangeData; + DefineAccessControlList_Response_t defineAccessControlList; + struct GetAccessControlListAttributes_Response *getAccessControlListAttributes; + struct ReportAccessControlledObjects_Response *reportAccessControlledObjects; + DeleteAccessControlList_Response_t deleteAccessControlList; + struct ChangeAccessControl_Response *changeAccessControl; } choice; /* Context for parsing across buffer boundaries */ @@ -298,5 +301,48 @@ extern asn_TYPE_member_t asn_MBR_ConfirmedServiceResponse_1[86]; } #endif +/* Referred external types */ +#include "Status-Response.h" +#include "GetNameList-Response.h" +#include "Identify-Response.h" +#include "Read-Response.h" +#include "Write-Response.h" +#include "GetVariableAccessAttributes-Response.h" +#include "GetScatteredAccessAttributes-Response.h" +#include "DeleteVariableAccess-Response.h" +#include "GetNamedVariableListAttributes-Response.h" +#include "DeleteNamedVariableList-Response.h" +#include "GetNamedTypeAttributes-Response.h" +#include "DeleteNamedType-Response.h" +#include "TakeControl-Response.h" +#include "ReportSemaphoreStatus-Response.h" +#include "ReportPoolSemaphoreStatus-Response.h" +#include "ReportSemaphoreEntryStatus-Response.h" +#include "DownloadSegment-Response.h" +#include "InitiateUploadSequence-Response.h" +#include "UploadSegment-Response.h" +#include "GetDomainAttributes-Response.h" +#include "GetProgramInvocationAttributes-Response.h" +#include "GetEventConditionAttributes-Response.h" +#include "ReportEventConditionStatus-Response.h" +#include "GetEventActionAttributes-Response.h" +#include "AlterEventEnrollment-Response.h" +#include "ReportEventEnrollmentStatus-Response.h" +#include "GetEventEnrollmentAttributes-Response.h" +#include "GetAlarmSummary-Response.h" +#include "GetAlarmEnrollmentSummary-Response.h" +#include "ReadJournal-Response.h" +#include "ReportJournalStatus-Response.h" +#include "GetCapabilityList-Response.h" +#include "FileOpen-Response.h" +#include "FileRead-Response.h" +#include "FileDirectory-Response.h" +#include "AdditionalService-Response.h" +#include "GetDataExchangeAttributes-Response.h" +#include "ExchangeData-Response.h" +#include "GetAccessControlListAttributes-Response.h" +#include "ReportAccessControlledObjects-Response.h" +#include "ChangeAccessControl-Response.h" + #endif /* _ConfirmedServiceResponse_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.c b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.c index 3151f8c9..69f74903 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.c +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.c @@ -1,37 +1,37 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, status, status,PyAsnStatus_Response_FromPython(value, &dst->choice.status)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, status, PyCompatAsnType_FromParent(&PyAsnStatus_Response_Type, parent, (void *)&src->choice.status)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, status, status, Status_Response,PyAsnStatus_Response_FromPython(value, dst->choice.status)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, status, PyCompatAsnType_FromParent(&PyAsnStatus_Response_Type, parent, (void *)src->choice.status)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, status, status); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, status, status); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getNameList, getNameList,PyAsnGetNameList_Response_FromPython(value, &dst->choice.getNameList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getNameList, PyCompatAsnType_FromParent(&PyAsnGetNameList_Response_Type, parent, (void *)&src->choice.getNameList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getNameList, getNameList, GetNameList_Response,PyAsnGetNameList_Response_FromPython(value, dst->choice.getNameList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getNameList, PyCompatAsnType_FromParent(&PyAsnGetNameList_Response_Type, parent, (void *)src->choice.getNameList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getNameList, getNameList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getNameList, getNameList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, identify, identify,PyAsnIdentify_Response_FromPython(value, &dst->choice.identify)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, identify, PyCompatAsnType_FromParent(&PyAsnIdentify_Response_Type, parent, (void *)&src->choice.identify)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, identify, identify, Identify_Response,PyAsnIdentify_Response_FromPython(value, dst->choice.identify)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, identify, PyCompatAsnType_FromParent(&PyAsnIdentify_Response_Type, parent, (void *)src->choice.identify)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, identify, identify); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, identify, identify); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, rename, rename,PyAsnRename_Response_FromPython(value, &dst->choice.rename)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, rename, PyCompatAsnType_FromParent(&PyAsnRename_Response_Type, parent, (void *)&src->choice.rename)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, rename, rename); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, rename, rename); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, read, read,PyAsnRead_Response_FromPython(value, &dst->choice.read)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, read, PyCompatAsnType_FromParent(&PyAsnRead_Response_Type, parent, (void *)&src->choice.read)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, read, read, Read_Response,PyAsnRead_Response_FromPython(value, dst->choice.read)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, read, PyCompatAsnType_FromParent(&PyAsnRead_Response_Type, parent, (void *)src->choice.read)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, read, read); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, read, read); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, write, write,PyAsnWrite_Response_FromPython(value, &dst->choice.write)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, write, PyCompatAsnType_FromParent(&PyAsnWrite_Response_Type, parent, (void *)&src->choice.write)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, write, write, Write_Response,PyAsnWrite_Response_FromPython(value, dst->choice.write)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, write, PyCompatAsnType_FromParent(&PyAsnWrite_Response_Type, parent, (void *)src->choice.write)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, write, write); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, write, write); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getVariableAccessAttributes, getVariableAccessAttributes,PyAsnGetVariableAccessAttributes_Response_FromPython(value, &dst->choice.getVariableAccessAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getVariableAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetVariableAccessAttributes_Response_Type, parent, (void *)&src->choice.getVariableAccessAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getVariableAccessAttributes, getVariableAccessAttributes, GetVariableAccessAttributes_Response,PyAsnGetVariableAccessAttributes_Response_FromPython(value, dst->choice.getVariableAccessAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getVariableAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetVariableAccessAttributes_Response_Type, parent, (void *)src->choice.getVariableAccessAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getVariableAccessAttributes, getVariableAccessAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getVariableAccessAttributes, getVariableAccessAttributes); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedVariable, defineNamedVariable,PyAsnDefineNamedVariable_Response_FromPython(value, &dst->choice.defineNamedVariable)); @@ -42,36 +42,36 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, defineScatteredAccess, PyCompatAsnType_FromParent(&PyAsnDefineScatteredAccess_Response_Type, parent, (void *)&src->choice.defineScatteredAccess)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineScatteredAccess, defineScatteredAccess); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineScatteredAccess, defineScatteredAccess); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getScatteredAccessAttributes, getScatteredAccessAttributes,PyAsnGetScatteredAccessAttributes_Response_FromPython(value, &dst->choice.getScatteredAccessAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getScatteredAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetScatteredAccessAttributes_Response_Type, parent, (void *)&src->choice.getScatteredAccessAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getScatteredAccessAttributes, getScatteredAccessAttributes, GetScatteredAccessAttributes_Response,PyAsnGetScatteredAccessAttributes_Response_FromPython(value, dst->choice.getScatteredAccessAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getScatteredAccessAttributes, PyCompatAsnType_FromParent(&PyAsnGetScatteredAccessAttributes_Response_Type, parent, (void *)src->choice.getScatteredAccessAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getScatteredAccessAttributes, getScatteredAccessAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getScatteredAccessAttributes, getScatteredAccessAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteVariableAccess, deleteVariableAccess,PyAsnDeleteVariableAccess_Response_FromPython(value, &dst->choice.deleteVariableAccess)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteVariableAccess, PyCompatAsnType_FromParent(&PyAsnDeleteVariableAccess_Response_Type, parent, (void *)&src->choice.deleteVariableAccess)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteVariableAccess, deleteVariableAccess, DeleteVariableAccess_Response,PyAsnDeleteVariableAccess_Response_FromPython(value, dst->choice.deleteVariableAccess)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteVariableAccess, PyCompatAsnType_FromParent(&PyAsnDeleteVariableAccess_Response_Type, parent, (void *)src->choice.deleteVariableAccess)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteVariableAccess, deleteVariableAccess); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteVariableAccess, deleteVariableAccess); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedVariableList, defineNamedVariableList,PyAsnDefineNamedVariableList_Response_FromPython(value, &dst->choice.defineNamedVariableList)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, defineNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDefineNamedVariableList_Response_Type, parent, (void *)&src->choice.defineNamedVariableList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedVariableList, defineNamedVariableList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedVariableList, defineNamedVariableList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedVariableListAttributes, getNamedVariableListAttributes,PyAsnGetNamedVariableListAttributes_Response_FromPython(value, &dst->choice.getNamedVariableListAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getNamedVariableListAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedVariableListAttributes_Response_Type, parent, (void *)&src->choice.getNamedVariableListAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedVariableListAttributes, getNamedVariableListAttributes, GetNamedVariableListAttributes_Response,PyAsnGetNamedVariableListAttributes_Response_FromPython(value, dst->choice.getNamedVariableListAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getNamedVariableListAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedVariableListAttributes_Response_Type, parent, (void *)src->choice.getNamedVariableListAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedVariableListAttributes, getNamedVariableListAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedVariableListAttributes, getNamedVariableListAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedVariableList, deleteNamedVariableList,PyAsnDeleteNamedVariableList_Response_FromPython(value, &dst->choice.deleteNamedVariableList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDeleteNamedVariableList_Response_Type, parent, (void *)&src->choice.deleteNamedVariableList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedVariableList, deleteNamedVariableList, DeleteNamedVariableList_Response,PyAsnDeleteNamedVariableList_Response_FromPython(value, dst->choice.deleteNamedVariableList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteNamedVariableList, PyCompatAsnType_FromParent(&PyAsnDeleteNamedVariableList_Response_Type, parent, (void *)src->choice.deleteNamedVariableList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedVariableList, deleteNamedVariableList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedVariableList, deleteNamedVariableList); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedType, defineNamedType,PyAsnDefineNamedType_Response_FromPython(value, &dst->choice.defineNamedType)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, defineNamedType, PyCompatAsnType_FromParent(&PyAsnDefineNamedType_Response_Type, parent, (void *)&src->choice.defineNamedType)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedType, defineNamedType); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineNamedType, defineNamedType); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedTypeAttributes, getNamedTypeAttributes,PyAsnGetNamedTypeAttributes_Response_FromPython(value, &dst->choice.getNamedTypeAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getNamedTypeAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedTypeAttributes_Response_Type, parent, (void *)&src->choice.getNamedTypeAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedTypeAttributes, getNamedTypeAttributes, GetNamedTypeAttributes_Response,PyAsnGetNamedTypeAttributes_Response_FromPython(value, dst->choice.getNamedTypeAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getNamedTypeAttributes, PyCompatAsnType_FromParent(&PyAsnGetNamedTypeAttributes_Response_Type, parent, (void *)src->choice.getNamedTypeAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedTypeAttributes, getNamedTypeAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getNamedTypeAttributes, getNamedTypeAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedType, deleteNamedType,PyAsnDeleteNamedType_Response_FromPython(value, &dst->choice.deleteNamedType)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteNamedType, PyCompatAsnType_FromParent(&PyAsnDeleteNamedType_Response_Type, parent, (void *)&src->choice.deleteNamedType)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedType, deleteNamedType, DeleteNamedType_Response,PyAsnDeleteNamedType_Response_FromPython(value, dst->choice.deleteNamedType)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteNamedType, PyCompatAsnType_FromParent(&PyAsnDeleteNamedType_Response_Type, parent, (void *)src->choice.deleteNamedType)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedType, deleteNamedType); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteNamedType, deleteNamedType); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, input, input,PyAsnInput_Response_FromPython(value, &dst->choice.input)); @@ -82,8 +82,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, o PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, output, PyCompatAsnType_FromParent(&PyAsnOutput_Response_Type, parent, (void *)&src->choice.output)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, output, output); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, output, output); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, takeControl, takeControl,PyAsnTakeControl_Response_FromPython(value, &dst->choice.takeControl)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, takeControl, PyCompatAsnType_FromParent(&PyAsnTakeControl_Response_Type, parent, (void *)&src->choice.takeControl)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, takeControl, takeControl, TakeControl_Response,PyAsnTakeControl_Response_FromPython(value, dst->choice.takeControl)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, takeControl, PyCompatAsnType_FromParent(&PyAsnTakeControl_Response_Type, parent, (void *)src->choice.takeControl)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, takeControl, takeControl); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, takeControl, takeControl); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, relinquishControl, relinquishControl,PyAsnRelinquishControl_Response_FromPython(value, &dst->choice.relinquishControl)); @@ -98,36 +98,36 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteSemaphore, PyCompatAsnType_FromParent(&PyAsnDeleteSemaphore_Response_Type, parent, (void *)&src->choice.deleteSemaphore)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteSemaphore, deleteSemaphore); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteSemaphore, deleteSemaphore); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreStatus, reportSemaphoreStatus,PyAsnReportSemaphoreStatus_Response_FromPython(value, &dst->choice.reportSemaphoreStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreStatus_Response_Type, parent, (void *)&src->choice.reportSemaphoreStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreStatus, reportSemaphoreStatus, ReportSemaphoreStatus_Response,PyAsnReportSemaphoreStatus_Response_FromPython(value, dst->choice.reportSemaphoreStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreStatus_Response_Type, parent, (void *)src->choice.reportSemaphoreStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreStatus, reportSemaphoreStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreStatus, reportSemaphoreStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus,PyAsnReportPoolSemaphoreStatus_Response_FromPython(value, &dst->choice.reportPoolSemaphoreStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportPoolSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportPoolSemaphoreStatus_Response_Type, parent, (void *)&src->choice.reportPoolSemaphoreStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus, ReportPoolSemaphoreStatus_Response,PyAsnReportPoolSemaphoreStatus_Response_FromPython(value, dst->choice.reportPoolSemaphoreStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportPoolSemaphoreStatus, PyCompatAsnType_FromParent(&PyAsnReportPoolSemaphoreStatus_Response_Type, parent, (void *)src->choice.reportPoolSemaphoreStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportPoolSemaphoreStatus, reportPoolSemaphoreStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus,PyAsnReportSemaphoreEntryStatus_Response_FromPython(value, &dst->choice.reportSemaphoreEntryStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportSemaphoreEntryStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreEntryStatus_Response_Type, parent, (void *)&src->choice.reportSemaphoreEntryStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus, ReportSemaphoreEntryStatus_Response,PyAsnReportSemaphoreEntryStatus_Response_FromPython(value, dst->choice.reportSemaphoreEntryStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportSemaphoreEntryStatus, PyCompatAsnType_FromParent(&PyAsnReportSemaphoreEntryStatus_Response_Type, parent, (void *)src->choice.reportSemaphoreEntryStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportSemaphoreEntryStatus, reportSemaphoreEntryStatus); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateDownloadSequence, initiateDownloadSequence,PyAsnInitiateDownloadSequence_Response_FromPython(value, &dst->choice.initiateDownloadSequence)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, initiateDownloadSequence, PyCompatAsnType_FromParent(&PyAsnInitiateDownloadSequence_Response_Type, parent, (void *)&src->choice.initiateDownloadSequence)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateDownloadSequence, initiateDownloadSequence); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateDownloadSequence, initiateDownloadSequence); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, downloadSegment, downloadSegment,PyAsnDownloadSegment_Response_FromPython(value, &dst->choice.downloadSegment)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, downloadSegment, PyCompatAsnType_FromParent(&PyAsnDownloadSegment_Response_Type, parent, (void *)&src->choice.downloadSegment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, downloadSegment, downloadSegment, DownloadSegment_Response,PyAsnDownloadSegment_Response_FromPython(value, dst->choice.downloadSegment)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, downloadSegment, PyCompatAsnType_FromParent(&PyAsnDownloadSegment_Response_Type, parent, (void *)src->choice.downloadSegment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, downloadSegment, downloadSegment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, downloadSegment, downloadSegment); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, terminateDownloadSequence, terminateDownloadSequence,PyAsnTerminateDownloadSequence_Response_FromPython(value, &dst->choice.terminateDownloadSequence)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, terminateDownloadSequence, PyCompatAsnType_FromParent(&PyAsnTerminateDownloadSequence_Response_Type, parent, (void *)&src->choice.terminateDownloadSequence)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, terminateDownloadSequence, terminateDownloadSequence); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, terminateDownloadSequence, terminateDownloadSequence); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateUploadSequence, initiateUploadSequence,PyAsnInitiateUploadSequence_Response_FromPython(value, &dst->choice.initiateUploadSequence)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, initiateUploadSequence, PyCompatAsnType_FromParent(&PyAsnInitiateUploadSequence_Response_Type, parent, (void *)&src->choice.initiateUploadSequence)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateUploadSequence, initiateUploadSequence, InitiateUploadSequence_Response,PyAsnInitiateUploadSequence_Response_FromPython(value, dst->choice.initiateUploadSequence)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, initiateUploadSequence, PyCompatAsnType_FromParent(&PyAsnInitiateUploadSequence_Response_Type, parent, (void *)src->choice.initiateUploadSequence)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateUploadSequence, initiateUploadSequence); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, initiateUploadSequence, initiateUploadSequence); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, uploadSegment, uploadSegment,PyAsnUploadSegment_Response_FromPython(value, &dst->choice.uploadSegment)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, uploadSegment, PyCompatAsnType_FromParent(&PyAsnUploadSegment_Response_Type, parent, (void *)&src->choice.uploadSegment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, uploadSegment, uploadSegment, UploadSegment_Response,PyAsnUploadSegment_Response_FromPython(value, dst->choice.uploadSegment)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, uploadSegment, PyCompatAsnType_FromParent(&PyAsnUploadSegment_Response_Type, parent, (void *)src->choice.uploadSegment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, uploadSegment, uploadSegment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, uploadSegment, uploadSegment); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, terminateUploadSequence, terminateUploadSequence,PyAsnTerminateUploadSequence_Response_FromPython(value, &dst->choice.terminateUploadSequence)); @@ -154,8 +154,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteDomain, PyCompatAsnType_FromParent(&PyAsnDeleteDomain_Response_Type, parent, (void *)&src->choice.deleteDomain)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteDomain, deleteDomain); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteDomain, deleteDomain); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getDomainAttributes, getDomainAttributes,PyAsnGetDomainAttributes_Response_FromPython(value, &dst->choice.getDomainAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getDomainAttributes, PyCompatAsnType_FromParent(&PyAsnGetDomainAttributes_Response_Type, parent, (void *)&src->choice.getDomainAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getDomainAttributes, getDomainAttributes, GetDomainAttributes_Response,PyAsnGetDomainAttributes_Response_FromPython(value, dst->choice.getDomainAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getDomainAttributes, PyCompatAsnType_FromParent(&PyAsnGetDomainAttributes_Response_Type, parent, (void *)src->choice.getDomainAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getDomainAttributes, getDomainAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getDomainAttributes, getDomainAttributes); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, createProgramInvocation, createProgramInvocation,PyAsnCreateProgramInvocation_Response_FromPython(value, &dst->choice.createProgramInvocation)); @@ -186,8 +186,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, k PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, kill, PyCompatAsnType_FromParent(&PyAsnKill_Response_Type, parent, (void *)&src->choice.kill)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, kill, kill); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, kill, kill); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getProgramInvocationAttributes, getProgramInvocationAttributes,PyAsnGetProgramInvocationAttributes_Response_FromPython(value, &dst->choice.getProgramInvocationAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getProgramInvocationAttributes, PyCompatAsnType_FromParent(&PyAsnGetProgramInvocationAttributes_Response_Type, parent, (void *)&src->choice.getProgramInvocationAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getProgramInvocationAttributes, getProgramInvocationAttributes, GetProgramInvocationAttributes_Response,PyAsnGetProgramInvocationAttributes_Response_FromPython(value, dst->choice.getProgramInvocationAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getProgramInvocationAttributes, PyCompatAsnType_FromParent(&PyAsnGetProgramInvocationAttributes_Response_Type, parent, (void *)src->choice.getProgramInvocationAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getProgramInvocationAttributes, getProgramInvocationAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getProgramInvocationAttributes, getProgramInvocationAttributes); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, obtainFile, obtainFile,PyAsnObtainFile_Response_FromPython(value, &dst->choice.obtainFile)); @@ -202,12 +202,12 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteEventCondition, PyCompatAsnType_FromParent(&PyAsnDeleteEventCondition_Response_Type, parent, (void *)&src->choice.deleteEventCondition)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteEventCondition, deleteEventCondition); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteEventCondition, deleteEventCondition); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventConditionAttributes, getEventConditionAttributes,PyAsnGetEventConditionAttributes_Response_FromPython(value, &dst->choice.getEventConditionAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getEventConditionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionAttributes_Response_Type, parent, (void *)&src->choice.getEventConditionAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventConditionAttributes, getEventConditionAttributes, GetEventConditionAttributes_Response,PyAsnGetEventConditionAttributes_Response_FromPython(value, dst->choice.getEventConditionAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getEventConditionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventConditionAttributes_Response_Type, parent, (void *)src->choice.getEventConditionAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventConditionAttributes, getEventConditionAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventConditionAttributes, getEventConditionAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventConditionStatus, reportEventConditionStatus,PyAsnReportEventConditionStatus_Response_FromPython(value, &dst->choice.reportEventConditionStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportEventConditionStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionStatus_Response_Type, parent, (void *)&src->choice.reportEventConditionStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventConditionStatus, reportEventConditionStatus, ReportEventConditionStatus_Response,PyAsnReportEventConditionStatus_Response_FromPython(value, dst->choice.reportEventConditionStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportEventConditionStatus, PyCompatAsnType_FromParent(&PyAsnReportEventConditionStatus_Response_Type, parent, (void *)src->choice.reportEventConditionStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventConditionStatus, reportEventConditionStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventConditionStatus, reportEventConditionStatus); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, alterEventConditionMonitoring, alterEventConditionMonitoring,PyAsnAlterEventConditionMonitoring_Response_FromPython(value, &dst->choice.alterEventConditionMonitoring)); @@ -226,8 +226,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteEventAction, PyCompatAsnType_FromParent(&PyAsnDeleteEventAction_Response_Type, parent, (void *)&src->choice.deleteEventAction)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteEventAction, deleteEventAction); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteEventAction, deleteEventAction); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventActionAttributes, getEventActionAttributes,PyAsnGetEventActionAttributes_Response_FromPython(value, &dst->choice.getEventActionAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getEventActionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventActionAttributes_Response_Type, parent, (void *)&src->choice.getEventActionAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventActionAttributes, getEventActionAttributes, GetEventActionAttributes_Response,PyAsnGetEventActionAttributes_Response_FromPython(value, dst->choice.getEventActionAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getEventActionAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventActionAttributes_Response_Type, parent, (void *)src->choice.getEventActionAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventActionAttributes, getEventActionAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventActionAttributes, getEventActionAttributes); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventActionStatus, reportEventActionStatus,PyAsnReportEventActionStatus_Response_FromPython(value, &dst->choice.reportEventActionStatus)); @@ -242,32 +242,32 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteEventEnrollment, PyCompatAsnType_FromParent(&PyAsnDeleteEventEnrollment_Response_Type, parent, (void *)&src->choice.deleteEventEnrollment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteEventEnrollment, deleteEventEnrollment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteEventEnrollment, deleteEventEnrollment); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, alterEventEnrollment, alterEventEnrollment,PyAsnAlterEventEnrollment_Response_FromPython(value, &dst->choice.alterEventEnrollment)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, alterEventEnrollment, PyCompatAsnType_FromParent(&PyAsnAlterEventEnrollment_Response_Type, parent, (void *)&src->choice.alterEventEnrollment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, alterEventEnrollment, alterEventEnrollment, AlterEventEnrollment_Response,PyAsnAlterEventEnrollment_Response_FromPython(value, dst->choice.alterEventEnrollment)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, alterEventEnrollment, PyCompatAsnType_FromParent(&PyAsnAlterEventEnrollment_Response_Type, parent, (void *)src->choice.alterEventEnrollment)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, alterEventEnrollment, alterEventEnrollment); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, alterEventEnrollment, alterEventEnrollment); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventEnrollmentStatus, reportEventEnrollmentStatus,PyAsnReportEventEnrollmentStatus_Response_FromPython(value, &dst->choice.reportEventEnrollmentStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportEventEnrollmentStatus, PyCompatAsnType_FromParent(&PyAsnReportEventEnrollmentStatus_Response_Type, parent, (void *)&src->choice.reportEventEnrollmentStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventEnrollmentStatus, reportEventEnrollmentStatus, ReportEventEnrollmentStatus_Response,PyAsnReportEventEnrollmentStatus_Response_FromPython(value, dst->choice.reportEventEnrollmentStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportEventEnrollmentStatus, PyCompatAsnType_FromParent(&PyAsnReportEventEnrollmentStatus_Response_Type, parent, (void *)src->choice.reportEventEnrollmentStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventEnrollmentStatus, reportEventEnrollmentStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportEventEnrollmentStatus, reportEventEnrollmentStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventEnrollmentAttributes, getEventEnrollmentAttributes,PyAsnGetEventEnrollmentAttributes_Response_FromPython(value, &dst->choice.getEventEnrollmentAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getEventEnrollmentAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventEnrollmentAttributes_Response_Type, parent, (void *)&src->choice.getEventEnrollmentAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventEnrollmentAttributes, getEventEnrollmentAttributes, GetEventEnrollmentAttributes_Response,PyAsnGetEventEnrollmentAttributes_Response_FromPython(value, dst->choice.getEventEnrollmentAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getEventEnrollmentAttributes, PyCompatAsnType_FromParent(&PyAsnGetEventEnrollmentAttributes_Response_Type, parent, (void *)src->choice.getEventEnrollmentAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventEnrollmentAttributes, getEventEnrollmentAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getEventEnrollmentAttributes, getEventEnrollmentAttributes); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, acknowledgeEventNotification, acknowledgeEventNotification,PyAsnAcknowledgeEventNotification_Response_FromPython(value, &dst->choice.acknowledgeEventNotification)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, acknowledgeEventNotification, PyCompatAsnType_FromParent(&PyAsnAcknowledgeEventNotification_Response_Type, parent, (void *)&src->choice.acknowledgeEventNotification)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, acknowledgeEventNotification, acknowledgeEventNotification); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, acknowledgeEventNotification, acknowledgeEventNotification); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmSummary, getAlarmSummary,PyAsnGetAlarmSummary_Response_FromPython(value, &dst->choice.getAlarmSummary)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getAlarmSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmSummary_Response_Type, parent, (void *)&src->choice.getAlarmSummary)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmSummary, getAlarmSummary, GetAlarmSummary_Response,PyAsnGetAlarmSummary_Response_FromPython(value, dst->choice.getAlarmSummary)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getAlarmSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmSummary_Response_Type, parent, (void *)src->choice.getAlarmSummary)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmSummary, getAlarmSummary); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmSummary, getAlarmSummary); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary,PyAsnGetAlarmEnrollmentSummary_Response_FromPython(value, &dst->choice.getAlarmEnrollmentSummary)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getAlarmEnrollmentSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmEnrollmentSummary_Response_Type, parent, (void *)&src->choice.getAlarmEnrollmentSummary)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary, GetAlarmEnrollmentSummary_Response,PyAsnGetAlarmEnrollmentSummary_Response_FromPython(value, dst->choice.getAlarmEnrollmentSummary)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getAlarmEnrollmentSummary, PyCompatAsnType_FromParent(&PyAsnGetAlarmEnrollmentSummary_Response_Type, parent, (void *)src->choice.getAlarmEnrollmentSummary)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getAlarmEnrollmentSummary, getAlarmEnrollmentSummary); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, readJournal, readJournal,PyAsnReadJournal_Response_FromPython(value, &dst->choice.readJournal)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, readJournal, PyCompatAsnType_FromParent(&PyAsnReadJournal_Response_Type, parent, (void *)&src->choice.readJournal)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, readJournal, readJournal, ReadJournal_Response,PyAsnReadJournal_Response_FromPython(value, dst->choice.readJournal)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, readJournal, PyCompatAsnType_FromParent(&PyAsnReadJournal_Response_Type, parent, (void *)src->choice.readJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, readJournal, readJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, readJournal, readJournal); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, writeJournal, writeJournal,PyAsnWriteJournal_Response_FromPython(value, &dst->choice.writeJournal)); @@ -278,8 +278,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, i PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, initializeJournal, PyCompatAsnType_FromParent(&PyAsnInitializeJournal_Response_Type, parent, (void *)&src->choice.initializeJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, initializeJournal, initializeJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, initializeJournal, initializeJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportJournalStatus, reportJournalStatus,PyAsnReportJournalStatus_Response_FromPython(value, &dst->choice.reportJournalStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportJournalStatus, PyCompatAsnType_FromParent(&PyAsnReportJournalStatus_Response_Type, parent, (void *)&src->choice.reportJournalStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportJournalStatus, reportJournalStatus, ReportJournalStatus_Response,PyAsnReportJournalStatus_Response_FromPython(value, dst->choice.reportJournalStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportJournalStatus, PyCompatAsnType_FromParent(&PyAsnReportJournalStatus_Response_Type, parent, (void *)src->choice.reportJournalStatus)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportJournalStatus, reportJournalStatus); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportJournalStatus, reportJournalStatus); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, createJournal, createJournal,PyAsnCreateJournal_Response_FromPython(value, &dst->choice.createJournal)); @@ -290,16 +290,16 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, d PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteJournal, PyCompatAsnType_FromParent(&PyAsnDeleteJournal_Response_Type, parent, (void *)&src->choice.deleteJournal)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteJournal, deleteJournal); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteJournal, deleteJournal); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getCapabilityList, getCapabilityList,PyAsnGetCapabilityList_Response_FromPython(value, &dst->choice.getCapabilityList)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getCapabilityList, PyCompatAsnType_FromParent(&PyAsnGetCapabilityList_Response_Type, parent, (void *)&src->choice.getCapabilityList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getCapabilityList, getCapabilityList, GetCapabilityList_Response,PyAsnGetCapabilityList_Response_FromPython(value, dst->choice.getCapabilityList)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getCapabilityList, PyCompatAsnType_FromParent(&PyAsnGetCapabilityList_Response_Type, parent, (void *)src->choice.getCapabilityList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getCapabilityList, getCapabilityList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getCapabilityList, getCapabilityList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileOpen, fileOpen,PyAsnFileOpen_Response_FromPython(value, &dst->choice.fileOpen)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileOpen, PyCompatAsnType_FromParent(&PyAsnFileOpen_Response_Type, parent, (void *)&src->choice.fileOpen)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileOpen, fileOpen, FileOpen_Response,PyAsnFileOpen_Response_FromPython(value, dst->choice.fileOpen)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileOpen, PyCompatAsnType_FromParent(&PyAsnFileOpen_Response_Type, parent, (void *)src->choice.fileOpen)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileOpen, fileOpen); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileOpen, fileOpen); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileRead, fileRead,PyAsnFileRead_Response_FromPython(value, &dst->choice.fileRead)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileRead, PyCompatAsnType_FromParent(&PyAsnFileRead_Response_Type, parent, (void *)&src->choice.fileRead)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileRead, fileRead, FileRead_Response,PyAsnFileRead_Response_FromPython(value, dst->choice.fileRead)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileRead, PyCompatAsnType_FromParent(&PyAsnFileRead_Response_Type, parent, (void *)src->choice.fileRead)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileRead, fileRead); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileRead, fileRead); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileClose, fileClose,PyAsnFileClose_Response_FromPython(value, &dst->choice.fileClose)); @@ -314,40 +314,40 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, f PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileDelete, PyCompatAsnType_FromParent(&PyAsnFileDelete_Response_Type, parent, (void *)&src->choice.fileDelete)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileDelete, fileDelete); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileDelete, fileDelete); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileDirectory, fileDirectory,PyAsnFileDirectory_Response_FromPython(value, &dst->choice.fileDirectory)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileDirectory, PyCompatAsnType_FromParent(&PyAsnFileDirectory_Response_Type, parent, (void *)&src->choice.fileDirectory)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, fileDirectory, fileDirectory, FileDirectory_Response,PyAsnFileDirectory_Response_FromPython(value, dst->choice.fileDirectory)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, fileDirectory, PyCompatAsnType_FromParent(&PyAsnFileDirectory_Response_Type, parent, (void *)src->choice.fileDirectory)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileDirectory, fileDirectory); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, fileDirectory, fileDirectory); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, additionalService, additionalService,PyAsnAdditionalService_Response_FromPython(value, &dst->choice.additionalService)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, additionalService, PyCompatAsnType_FromParent(&PyAsnAdditionalService_Response_Type, parent, (void *)&src->choice.additionalService)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, additionalService, additionalService, AdditionalService_Response,PyAsnAdditionalService_Response_FromPython(value, dst->choice.additionalService)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, additionalService, PyCompatAsnType_FromParent(&PyAsnAdditionalService_Response_Type, parent, (void *)src->choice.additionalService)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, additionalService, additionalService); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, additionalService, additionalService); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getDataExchangeAttributes, getDataExchangeAttributes,PyAsnGetDataExchangeAttributes_Response_FromPython(value, &dst->choice.getDataExchangeAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getDataExchangeAttributes, PyCompatAsnType_FromParent(&PyAsnGetDataExchangeAttributes_Response_Type, parent, (void *)&src->choice.getDataExchangeAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getDataExchangeAttributes, getDataExchangeAttributes, GetDataExchangeAttributes_Response,PyAsnGetDataExchangeAttributes_Response_FromPython(value, dst->choice.getDataExchangeAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getDataExchangeAttributes, PyCompatAsnType_FromParent(&PyAsnGetDataExchangeAttributes_Response_Type, parent, (void *)src->choice.getDataExchangeAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getDataExchangeAttributes, getDataExchangeAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getDataExchangeAttributes, getDataExchangeAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, exchangeData, exchangeData,PyAsnExchangeData_Response_FromPython(value, &dst->choice.exchangeData)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, exchangeData, PyCompatAsnType_FromParent(&PyAsnExchangeData_Response_Type, parent, (void *)&src->choice.exchangeData)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, exchangeData, exchangeData, ExchangeData_Response,PyAsnExchangeData_Response_FromPython(value, dst->choice.exchangeData)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, exchangeData, PyCompatAsnType_FromParent(&PyAsnExchangeData_Response_Type, parent, (void *)src->choice.exchangeData)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, exchangeData, exchangeData); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, exchangeData, exchangeData); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, defineAccessControlList, defineAccessControlList,PyAsnDefineAccessControlList_Response_FromPython(value, &dst->choice.defineAccessControlList)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, defineAccessControlList, PyCompatAsnType_FromParent(&PyAsnDefineAccessControlList_Response_Type, parent, (void *)&src->choice.defineAccessControlList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineAccessControlList, defineAccessControlList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, defineAccessControlList, defineAccessControlList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getAccessControlListAttributes, getAccessControlListAttributes,PyAsnGetAccessControlListAttributes_Response_FromPython(value, &dst->choice.getAccessControlListAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getAccessControlListAttributes, PyCompatAsnType_FromParent(&PyAsnGetAccessControlListAttributes_Response_Type, parent, (void *)&src->choice.getAccessControlListAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, getAccessControlListAttributes, getAccessControlListAttributes, GetAccessControlListAttributes_Response,PyAsnGetAccessControlListAttributes_Response_FromPython(value, dst->choice.getAccessControlListAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, getAccessControlListAttributes, PyCompatAsnType_FromParent(&PyAsnGetAccessControlListAttributes_Response_Type, parent, (void *)src->choice.getAccessControlListAttributes)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getAccessControlListAttributes, getAccessControlListAttributes); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, getAccessControlListAttributes, getAccessControlListAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportAccessControlledObjects, reportAccessControlledObjects,PyAsnReportAccessControlledObjects_Response_FromPython(value, &dst->choice.reportAccessControlledObjects)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportAccessControlledObjects, PyCompatAsnType_FromParent(&PyAsnReportAccessControlledObjects_Response_Type, parent, (void *)&src->choice.reportAccessControlledObjects)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, reportAccessControlledObjects, reportAccessControlledObjects, ReportAccessControlledObjects_Response,PyAsnReportAccessControlledObjects_Response_FromPython(value, dst->choice.reportAccessControlledObjects)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, reportAccessControlledObjects, PyCompatAsnType_FromParent(&PyAsnReportAccessControlledObjects_Response_Type, parent, (void *)src->choice.reportAccessControlledObjects)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportAccessControlledObjects, reportAccessControlledObjects); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, reportAccessControlledObjects, reportAccessControlledObjects); PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteAccessControlList, deleteAccessControlList,PyAsnDeleteAccessControlList_Response_FromPython(value, &dst->choice.deleteAccessControlList)); PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, deleteAccessControlList, PyCompatAsnType_FromParent(&PyAsnDeleteAccessControlList_Response_Type, parent, (void *)&src->choice.deleteAccessControlList)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteAccessControlList, deleteAccessControlList); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, deleteAccessControlList, deleteAccessControlList); -PY_IMPL_CHOICE_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, changeAccessControl, changeAccessControl,PyAsnChangeAccessControl_Response_FromPython(value, &dst->choice.changeAccessControl)); -PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, changeAccessControl, PyCompatAsnType_FromParent(&PyAsnChangeAccessControl_Response_Type, parent, (void *)&src->choice.changeAccessControl)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ConfirmedServiceResponse, ConfirmedServiceResponse, changeAccessControl, changeAccessControl, ChangeAccessControl_Response,PyAsnChangeAccessControl_Response_FromPython(value, dst->choice.changeAccessControl)); +PY_IMPL_CHOICE_ATTR_TOPY(ConfirmedServiceResponse, changeAccessControl, PyCompatAsnType_FromParent(&PyAsnChangeAccessControl_Response_Type, parent, (void *)src->choice.changeAccessControl)); PY_IMPL_CHOICE_GETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, changeAccessControl, changeAccessControl); PY_IMPL_CHOICE_SETATTR(ConfirmedServiceResponse, ConfirmedServiceResponse, changeAccessControl, changeAccessControl); PY_IMPL_GENERIC_DEALLOC(ConfirmedServiceResponse); diff --git a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.h b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.h index 1309252a..6540534a 100644 --- a/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.h +++ b/src/icspacket/proto/mms/_mms/ConfirmedServiceResponse_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ControlElement.c b/src/icspacket/proto/mms/_mms/ControlElement.c index 2bb70cdf..3a03bb01 100644 --- a/src/icspacket/proto/mms/_mms/ControlElement.c +++ b/src/icspacket/proto/mms/_mms/ControlElement.c @@ -1,10 +1,65 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_capabilities_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_capabilities __attribute__((weak, alias("asn_DEF_capabilities_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_capabilities_4; +static asn_TYPE_descriptor_t asn_DEF_capabilities; +__attribute__((constructor)) static void asn_DEF_capabilities_4_alias_init(void) { + asn_DEF_capabilities = asn_DEF_capabilities_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_beginDomainDef __attribute__((weak, alias("asn_DEF_beginDomainDef_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_beginDomainDef_2; +static asn_TYPE_descriptor_t asn_DEF_beginDomainDef; +__attribute__((constructor)) static void asn_DEF_beginDomainDef_2_alias_init(void) { + asn_DEF_beginDomainDef = asn_DEF_beginDomainDef_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_continueDomainDef __attribute__((weak, alias("asn_DEF_continueDomainDef_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_continueDomainDef_8; +static asn_TYPE_descriptor_t asn_DEF_continueDomainDef; +__attribute__((constructor)) static void asn_DEF_continueDomainDef_8_alias_init(void) { + asn_DEF_continueDomainDef = asn_DEF_continueDomainDef_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfDomains __attribute__((weak, alias("asn_DEF_listOfDomains_14"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfDomains_14; +static asn_TYPE_descriptor_t asn_DEF_listOfDomains; +__attribute__((constructor)) static void asn_DEF_listOfDomains_14_alias_init(void) { + asn_DEF_listOfDomains = asn_DEF_listOfDomains_14; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_piDefinition __attribute__((weak, alias("asn_DEF_piDefinition_12"))); +#else +static asn_TYPE_descriptor_t asn_DEF_piDefinition_12; +static asn_TYPE_descriptor_t asn_DEF_piDefinition; +__attribute__((constructor)) static void asn_DEF_piDefinition_12_alias_init(void) { + asn_DEF_piDefinition = asn_DEF_piDefinition_12; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ControlElement__beginDomainDef__capabilities_4[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +78,7 @@ static asn_TYPE_member_t asn_MBR_capabilities_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_capabilities_tags_4[] = { @@ -58,12 +113,12 @@ asn_TYPE_descriptor_t asn_DEF_capabilities_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_capabilities_4, + asn_MBR_ControlElement__beginDomainDef__capabilities_4, 1, /* Single element */ &asn_SPC_capabilities_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_beginDomainDef_2[] = { +static asn_TYPE_member_t asn_MBR_ControlElement__beginDomainDef_2[] = { { ATF_NOFLAGS, 0, offsetof(struct ControlElement__beginDomainDef, domainName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -188,12 +243,12 @@ asn_TYPE_descriptor_t asn_DEF_beginDomainDef_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_beginDomainDef_2, + asn_MBR_ControlElement__beginDomainDef_2, 4, /* Elements count */ &asn_SPC_beginDomainDef_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_continueDomainDef_8[] = { +static asn_TYPE_member_t asn_MBR_ControlElement__continueDomainDef_8[] = { { ATF_NOFLAGS, 0, offsetof(struct ControlElement__continueDomainDef, domainName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -274,12 +329,12 @@ asn_TYPE_descriptor_t asn_DEF_continueDomainDef_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_continueDomainDef_8, + asn_MBR_ControlElement__continueDomainDef_8, 2, /* Elements count */ &asn_SPC_continueDomainDef_specs_8 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfDomains_14[] = { +static asn_TYPE_member_t asn_MBR_ControlElement__piDefinition__listOfDomains_14[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -298,7 +353,7 @@ static asn_TYPE_member_t asn_MBR_listOfDomains_14[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfDomains_tags_14[] = { @@ -333,7 +388,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfDomains_14 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfDomains_14, + asn_MBR_ControlElement__piDefinition__listOfDomains_14, 1, /* Single element */ &asn_SPC_listOfDomains_specs_14 /* Additional specs */ }; @@ -360,7 +415,7 @@ static int asn_DFL_16_set_1(void **sptr) { *st = 1; return 0; } -static asn_TYPE_member_t asn_MBR_piDefinition_12[] = { +static asn_TYPE_member_t asn_MBR_ControlElement__piDefinition_12[] = { { ATF_NOFLAGS, 0, offsetof(struct ControlElement__piDefinition, piName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -507,7 +562,7 @@ asn_TYPE_descriptor_t asn_DEF_piDefinition_12 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_piDefinition_12, + asn_MBR_ControlElement__piDefinition_12, 5, /* Elements count */ &asn_SPC_piDefinition_specs_12 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ControlElement.h b/src/icspacket/proto/mms/_mms/ControlElement.h index 025493b5..f81c1bb8 100644 --- a/src/icspacket/proto/mms/_mms/ControlElement.h +++ b/src/icspacket/proto/mms/_mms/ControlElement.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include +#include "MMSString.h" #include #include #include -#include -#include +#include "LoadData.h" +#include "ProgramInvocationState.h" #include #ifdef __cplusplus @@ -41,38 +41,38 @@ typedef struct ControlElement { ControlElement_PR present; union ControlElement_u { struct ControlElement__beginDomainDef { - Identifier_t domainName; + Identifier_t domainName; struct ControlElement__beginDomainDef__capabilities { A_SEQUENCE_OF(MMSString_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } capabilities; - BOOLEAN_t sharable; - struct LoadData *loadData; /* OPTIONAL */ + BOOLEAN_t sharable; + struct LoadData *loadData; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } beginDomainDef; struct ControlElement__continueDomainDef { - Identifier_t domainName; - LoadData_t loadData; + Identifier_t domainName; + LoadData_t loadData; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } continueDomainDef; - Identifier_t endDomainDef; + Identifier_t endDomainDef; struct ControlElement__piDefinition { - Identifier_t piName; + Identifier_t piName; struct ControlElement__piDefinition__listOfDomains { A_SEQUENCE_OF(Identifier_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfDomains; - BOOLEAN_t *reusable; /* DEFAULT TRUE */ - BOOLEAN_t *monitorType; /* OPTIONAL */ - ProgramInvocationState_t *pIState; /* OPTIONAL */ + BOOLEAN_t *reusable; /* DEFAULT TRUE */ + BOOLEAN_t *monitorType; /* OPTIONAL */ + ProgramInvocationState_t *pIState; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -93,7 +93,7 @@ extern asn_TYPE_member_t asn_MBR_ControlElement_1[4]; #endif /* Referred external types */ -#include +#include "LoadData.h" #endif /* _ControlElement_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ControlElement_Py.c b/src/icspacket/proto/mms/_mms/ControlElement_Py.c index d6cbe466..1ab2e8a4 100644 --- a/src/icspacket/proto/mms/_mms/ControlElement_Py.c +++ b/src/icspacket/proto/mms/_mms/ControlElement_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -81,7 +81,7 @@ PY_IMPL_SEQ_FROMPY(ControlElement_beginDomainDef_ANON_2, asn_DEF_ControlElement. PY_IMPL_SEQ_INIT(ControlElement_beginDomainDef_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ControlElement, beginDomainDef, &src->choice.beginDomainDef, ControlElement_beginDomainDef_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(ControlElement, beginDomainDef, &src->choice.beginDomainDef, ControlElement_beginDomainDef_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(ControlElement, ControlElement, beginDomainDef, beginDomainDef, asn_DEF_ControlElement); +PY_IMPL_CHOICE_GENERIC_SETATTR(ControlElement, ControlElement, beginDomainDef, beginDomainDef, *asn_DEF_ControlElement.elements[0].type); PY_IMPL_CHOICE_GETATTR(ControlElement, ControlElement, beginDomainDef, beginDomainDef); PY_IMPL_SEQ_ATTR_FROMPY(ControlElement_continueDomainDef_ANON_8, domainName, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(ControlElement_continueDomainDef_ANON_8, domainName, Identifier); @@ -117,7 +117,7 @@ PY_IMPL_SEQ_FROMPY(ControlElement_continueDomainDef_ANON_8, asn_DEF_ControlEleme PY_IMPL_SEQ_INIT(ControlElement_continueDomainDef_ANON_8); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ControlElement, continueDomainDef, &src->choice.continueDomainDef, ControlElement_continueDomainDef_ANON_8); PY_IMPL_SEQ_ANON_ATTR_TOPY(ControlElement, continueDomainDef, &src->choice.continueDomainDef, ControlElement_continueDomainDef_ANON_8); -PY_IMPL_CHOICE_GENERIC_SETATTR(ControlElement, ControlElement, continueDomainDef, continueDomainDef, asn_DEF_ControlElement); +PY_IMPL_CHOICE_GENERIC_SETATTR(ControlElement, ControlElement, continueDomainDef, continueDomainDef, *asn_DEF_ControlElement.elements[1].type); PY_IMPL_CHOICE_GETATTR(ControlElement, ControlElement, continueDomainDef, continueDomainDef); PY_IMPL_SEQ_OF_ITEM_TOPY(ControlElement_listOfDomains_ANON_14, Identifier_t, PyAsnIdentifier_ToPython((Identifier_t *)src, parent)); PY_IMPL_SEQ_OF_ITEM_FROMPY(ControlElement_listOfDomains_ANON_14, Identifier_t, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); @@ -203,7 +203,7 @@ PY_IMPL_SEQ_FROMPY(ControlElement_piDefinition_ANON_12, asn_DEF_ControlElement.e PY_IMPL_SEQ_INIT(ControlElement_piDefinition_ANON_12); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ControlElement, piDefinition, &src->choice.piDefinition, ControlElement_piDefinition_ANON_12); PY_IMPL_SEQ_ANON_ATTR_TOPY(ControlElement, piDefinition, &src->choice.piDefinition, ControlElement_piDefinition_ANON_12); -PY_IMPL_CHOICE_GENERIC_SETATTR(ControlElement, ControlElement, piDefinition, piDefinition, asn_DEF_ControlElement); +PY_IMPL_CHOICE_GENERIC_SETATTR(ControlElement, ControlElement, piDefinition, piDefinition, *asn_DEF_ControlElement.elements[3].type); PY_IMPL_CHOICE_GETATTR(ControlElement, ControlElement, piDefinition, piDefinition); PY_IMPL_CHOICE_ATTR_FROMPY(ControlElement, ControlElement, endDomainDef, endDomainDef,PyAsnIdentifier_FromPython(value, &dst->choice.endDomainDef)); PY_IMPL_CHOICE_ATTR_TOPY(ControlElement, endDomainDef, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.endDomainDef)); diff --git a/src/icspacket/proto/mms/_mms/ControlElement_Py.h b/src/icspacket/proto/mms/_mms/ControlElement_Py.h index 974a4934..847449c6 100644 --- a/src/icspacket/proto/mms/_mms/ControlElement_Py.h +++ b/src/icspacket/proto/mms/_mms/ControlElement_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,9 +13,24 @@ #include #include #include +#include +#include +#include +#include +#include +#include #include #include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Request.c b/src/icspacket/proto/mms/_mms/CreateJournal-Request.c index e5b82bdc..2d69bf33 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Request.c +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_CreateJournal_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CreateJournal_Request, journalName), + { ATF_POINTER, 0, offsetof(struct CreateJournal_Request, journalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Request.h b/src/icspacket/proto/mms/_mms/CreateJournal-Request.h index af180f8c..8d0b44e2 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Request.h +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,16 +10,18 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* CreateJournal-Request */ typedef struct CreateJournal_Request { - ObjectName_t journalName; + struct ObjectName *journalName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -34,5 +36,8 @@ extern asn_TYPE_member_t asn_MBR_CreateJournal_Request_1[1]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _CreateJournal_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.c b/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.c index cce88594..d387e9d3 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(CreateJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(CreateJournal_Request, journalName, ObjectName); -PY_IMPL_SEQ_GETATTR(CreateJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(CreateJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(CreateJournal_Request, journalName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(CreateJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(CreateJournal_Request, journalName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(CreateJournal_Request, journalName); PY_IMPL_SEQ_SETATTR(CreateJournal_Request, journalName); PY_IMPL_GENERIC_DEALLOC(CreateJournal_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(CreateJournal_Request); diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.h b/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.h index b23df6bf..fec7178c 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Response.c b/src/icspacket/proto/mms/_mms/CreateJournal-Response.c index 5f632499..71131672 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Response.c +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Response.h b/src/icspacket/proto/mms/_mms/CreateJournal-Response.h index 42e03cd9..586e15f1 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Response.h +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* CreateJournal-Response */ -typedef NULL_t CreateJournal_Response_t; +typedef NULL_t CreateJournal_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_CreateJournal_Response; diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.c b/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.c index e8d39604..b081ca6e 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.h b/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.h index bc9f3073..357dd760 100644 --- a/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/CreateJournal-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.c b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.c index dd641d7d..7a94fb09 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.c +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfDomainNames_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfDomainNames __attribute__((weak, alias("asn_DEF_listOfDomainNames_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfDomainNames_3; +static asn_TYPE_descriptor_t asn_DEF_listOfDomainNames; +__attribute__((constructor)) static void asn_DEF_listOfDomainNames_3_alias_init(void) { + asn_DEF_listOfDomainNames = asn_DEF_listOfDomainNames_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CreateProgramInvocation_Request__listOfDomainNames_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfDomainNames_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfDomainNames_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfDomainNames_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfDomainNames_3, + asn_MBR_CreateProgramInvocation_Request__listOfDomainNames_3, 1, /* Single element */ &asn_SPC_listOfDomainNames_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.h b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.h index 9e497697..41de8808 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.h +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include @@ -22,15 +22,15 @@ extern "C" { /* CreateProgramInvocation-Request */ typedef struct CreateProgramInvocation_Request { - Identifier_t programInvocationName; + Identifier_t programInvocationName; struct CreateProgramInvocation_Request__listOfDomainNames { A_SEQUENCE_OF(Identifier_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfDomainNames; - BOOLEAN_t *reusable; /* DEFAULT TRUE */ - BOOLEAN_t *monitorType; /* OPTIONAL */ + BOOLEAN_t *reusable; /* DEFAULT TRUE */ + BOOLEAN_t *monitorType; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.c b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.c index 1db0ded6..18c4edd5 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.h b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.h index fbab3e5f..740cf7ad 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.c b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.c index 32c1d9eb..10975fb7 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.c +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.h b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.h index 1ce0cd44..95fd7dcd 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.h +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* CreateProgramInvocation-Response */ -typedef NULL_t CreateProgramInvocation_Response_t; +typedef NULL_t CreateProgramInvocation_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_CreateProgramInvocation_Response; diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.c b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.c index ad8a17f3..497482f6 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.h b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.h index 00622a7e..6ab50051 100644 --- a/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/CreateProgramInvocation-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.c b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.c index 3e62caa6..4ca721cb 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.c +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_domains_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_domains __attribute__((weak, alias("asn_DEF_domains_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_domains_3; +static asn_TYPE_descriptor_t asn_DEF_domains; +__attribute__((constructor)) static void asn_DEF_domains_3_alias_init(void) { + asn_DEF_domains = asn_DEF_domains_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_programInvocations __attribute__((weak, alias("asn_DEF_programInvocations_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_programInvocations_5; +static asn_TYPE_descriptor_t asn_DEF_programInvocations; +__attribute__((constructor)) static void asn_DEF_programInvocations_5_alias_init(void) { + asn_DEF_programInvocations = asn_DEF_programInvocations_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_CreateUnitControl_Request__domains_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_domains_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_domains_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_domains_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_domains_3, + asn_MBR_CreateUnitControl_Request__domains_3, 1, /* Single element */ &asn_SPC_domains_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_programInvocations_5[] = { +static asn_TYPE_member_t asn_MBR_CreateUnitControl_Request__programInvocations_5[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_programInvocations_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_programInvocations_tags_5[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_programInvocations_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_programInvocations_5, + asn_MBR_CreateUnitControl_Request__programInvocations_5, 1, /* Single element */ &asn_SPC_programInvocations_specs_5 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.h b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.h index 1c4162b1..9143bbd2 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.h +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include @@ -21,7 +21,7 @@ extern "C" { /* CreateUnitControl-Request */ typedef struct CreateUnitControl_Request { - Identifier_t unitControl; + Identifier_t unitControl; struct CreateUnitControl_Request__domains { A_SEQUENCE_OF(Identifier_t) list; diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.c b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.c index 4953804e..7a2d0dc2 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.h b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.h index 7c49dc32..f604e128 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.c b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.c index e44fa78b..bbb1c82c 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.c +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.h b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.h index 4221766d..606baeaf 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.h +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* CreateUnitControl-Response */ -typedef NULL_t CreateUnitControl_Response_t; +typedef NULL_t CreateUnitControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_CreateUnitControl_Response; diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.c b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.c index 14bac388..df936e9f 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.h b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.h index b62d9257..fdfd6f10 100644 --- a/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/CreateUnitControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Data.c b/src/icspacket/proto/mms/_mms/Data.c index cd24f593..2064910b 100644 --- a/src/icspacket/proto/mms/_mms/Data.c +++ b/src/icspacket/proto/mms/_mms/Data.c @@ -1,10 +1,44 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_array_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_array __attribute__((weak, alias("asn_DEF_array_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_array_2; +static asn_TYPE_descriptor_t asn_DEF_array; +__attribute__((constructor)) static void asn_DEF_array_2_alias_init(void) { + asn_DEF_array = asn_DEF_array_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_structure __attribute__((weak, alias("asn_DEF_structure_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_structure_4; +static asn_TYPE_descriptor_t asn_DEF_structure; +__attribute__((constructor)) static void asn_DEF_structure_4_alias_init(void) { + asn_DEF_structure = asn_DEF_structure_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_bit_string_constr_7 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_booleanArray_constr_16 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_Data__array_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +57,7 @@ static asn_TYPE_member_t asn_MBR_array_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_array_tags_2[] = { @@ -58,12 +92,12 @@ asn_TYPE_descriptor_t asn_DEF_array_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_array_2, + asn_MBR_Data__array_2, 1, /* Single element */ &asn_SPC_array_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_structure_4[] = { +static asn_TYPE_member_t asn_MBR_Data__structure_4[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +116,7 @@ static asn_TYPE_member_t asn_MBR_structure_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_structure_tags_4[] = { @@ -117,7 +151,7 @@ asn_TYPE_descriptor_t asn_DEF_structure_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_structure_4, + asn_MBR_Data__structure_4, 1, /* Single element */ &asn_SPC_structure_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Data.h b/src/icspacket/proto/mms/_mms/Data.h index 24258205..0947ce39 100644 --- a/src/icspacket/proto/mms/_mms/Data.h +++ b/src/icspacket/proto/mms/_mms/Data.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,14 +13,14 @@ #include #include #include -#include +#include "FloatingPoint.h" #include #include #include -#include +#include "TimeOfDay.h" #include -#include -#include +#include "MMSString.h" +#include "UtcTime.h" #include #include #include @@ -69,20 +69,20 @@ typedef struct Data { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } structure; - BOOLEAN_t boolean; - BIT_STRING_t bit_string; - long integer; - long Unsigned; - FloatingPoint_t floating_point; - OCTET_STRING_t octet_string; - VisibleString_t visible_string; - GeneralizedTime_t generalized_time; - TimeOfDay_t binary_time; - long bcd; - BIT_STRING_t booleanArray; - OBJECT_IDENTIFIER_t objId; - MMSString_t mMSString; - UtcTime_t utc_time; + BOOLEAN_t boolean; + BIT_STRING_t bit_string; + long integer; + long Unsigned; + FloatingPoint_t floating_point; + OCTET_STRING_t octet_string; + VisibleString_t visible_string; + GeneralizedTime_t generalized_time; + TimeOfDay_t binary_time; + long bcd; + BIT_STRING_t booleanArray; + OBJECT_IDENTIFIER_t objId; + MMSString_t mMSString; + UtcTime_t utc_time; } choice; /* Context for parsing across buffer boundaries */ @@ -99,7 +99,7 @@ extern asn_TYPE_member_t asn_MBR_Data_1[16]; #endif /* Referred external types */ -#include +#include "Data.h" #endif /* _Data_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DataAccessError.c b/src/icspacket/proto/mms/_mms/DataAccessError.c index 717c8b17..64e33729 100644 --- a/src/icspacket/proto/mms/_mms/DataAccessError.c +++ b/src/icspacket/proto/mms/_mms/DataAccessError.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DataAccessError.h b/src/icspacket/proto/mms/_mms/DataAccessError.h index ec245111..d66b496a 100644 --- a/src/icspacket/proto/mms/_mms/DataAccessError.h +++ b/src/icspacket/proto/mms/_mms/DataAccessError.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,7 +33,7 @@ typedef enum DataAccessError { } e_DataAccessError; /* DataAccessError */ -typedef long DataAccessError_t; +typedef long DataAccessError_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DataAccessError; diff --git a/src/icspacket/proto/mms/_mms/DataAccessError_Py.c b/src/icspacket/proto/mms/_mms/DataAccessError_Py.c index 4ca1d6c9..13e28a6e 100644 --- a/src/icspacket/proto/mms/_mms/DataAccessError_Py.c +++ b/src/icspacket/proto/mms/_mms/DataAccessError_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DataAccessError_Py.h b/src/icspacket/proto/mms/_mms/DataAccessError_Py.h index 4c608067..485c40ea 100644 --- a/src/icspacket/proto/mms/_mms/DataAccessError_Py.h +++ b/src/icspacket/proto/mms/_mms/DataAccessError_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Data_Py.c b/src/icspacket/proto/mms/_mms/Data_Py.c index 3595e3e5..1f9dfed1 100644 --- a/src/icspacket/proto/mms/_mms/Data_Py.c +++ b/src/icspacket/proto/mms/_mms/Data_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -34,7 +34,7 @@ PY_IMPL_ENCODE_JER(Data_array_ANON_2); PY_IMPL_GENERIC_IS_VALID(Data_array_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(Data, array, &src->choice.array, Data_array_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(Data, array, &src->choice.array, Data_array_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, array, array, asn_DEF_Data); +PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, array, array, *asn_DEF_Data.elements[0].type); PY_IMPL_CHOICE_GETATTR(Data, Data, array, array); PY_IMPL_SEQ_OF_LEN(Data_array_ANON_2); PY_IMPL_SEQ_OF_GETITEM(Data_array_ANON_2); @@ -67,7 +67,7 @@ PY_IMPL_ENCODE_JER(Data_structure_ANON_4); PY_IMPL_GENERIC_IS_VALID(Data_structure_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(Data, structure, &src->choice.structure, Data_structure_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(Data, structure, &src->choice.structure, Data_structure_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, structure, structure, asn_DEF_Data); +PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, structure, structure, *asn_DEF_Data.elements[1].type); PY_IMPL_CHOICE_GETATTR(Data, Data, structure, structure); PY_IMPL_SEQ_OF_LEN(Data_structure_ANON_4); PY_IMPL_SEQ_OF_GETITEM(Data_structure_ANON_4); @@ -454,7 +454,7 @@ int PyAsnData_ModInit(PyObject *mod) { PY_IMPL_MOD_ASSIGN_OBJECT(Data, structure_TYPE, &PyAsnData_structure_ANON_4_Type); PY_IMPL_MOD_ASSIGN_OBJECT(Data, bit_string_TYPE, &PyAsnData_bit_string_Type); PY_IMPL_MOD_ASSIGN_OBJECT(Data, booleanArray_TYPE, &PyAsnData_booleanArray_Type); - PY_IMPL_NEW_ENUM(Data.PRESENT, PyAsnEnumData_PRESENT_Type, -1, + PY_IMPL_NEW_ENUM(Data.PRESENT, PyAsnEnumData_PRESENT_Type, -1, PY_IMPL_ENUM_VALUE(PR_NOTHING, Data_PR_NOTHING, 0); PY_IMPL_ENUM_VALUE(PR_array, Data_PR_array, 1); PY_IMPL_ENUM_VALUE(PR_structure, Data_PR_structure, 2); diff --git a/src/icspacket/proto/mms/_mms/Data_Py.h b/src/icspacket/proto/mms/_mms/Data_Py.h index cdcaa37a..9332da1d 100644 --- a/src/icspacket/proto/mms/_mms/Data_Py.h +++ b/src/icspacket/proto/mms/_mms/Data_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,9 +13,15 @@ #include #include #include +#include +#include +#include +#include +#include #include #include #include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.c b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.c index 324e7911..956ba81c 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_accessControlListElements_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_accessControlListElements __attribute__((weak, alias("asn_DEF_accessControlListElements_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_accessControlListElements_3; +static asn_TYPE_descriptor_t asn_DEF_accessControlListElements; +__attribute__((constructor)) static void asn_DEF_accessControlListElements_3_alias_init(void) { + asn_DEF_accessControlListElements = asn_DEF_accessControlListElements_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DefineAccessControlList_Request__accessControlListElements_3[] = { { ATF_POINTER, 7, offsetof(struct DefineAccessControlList_Request__accessControlListElements, readAccessCondition), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -192,7 +203,7 @@ asn_TYPE_descriptor_t asn_DEF_accessControlListElements_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_accessControlListElements_3, + asn_MBR_DefineAccessControlList_Request__accessControlListElements_3, 7, /* Elements count */ &asn_SPC_accessControlListElements_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.h b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.h index 69c1cd99..134dd697 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -22,15 +22,15 @@ struct AccessCondition; /* DefineAccessControlList-Request */ typedef struct DefineAccessControlList_Request { - Identifier_t accessControlListName; + Identifier_t accessControlListName; struct DefineAccessControlList_Request__accessControlListElements { - struct AccessCondition *readAccessCondition; /* OPTIONAL */ - struct AccessCondition *storeAccessCondition; /* OPTIONAL */ - struct AccessCondition *writeAccessCondition; /* OPTIONAL */ - struct AccessCondition *loadAccessCondition; /* OPTIONAL */ - struct AccessCondition *executeAccessCondition; /* OPTIONAL */ - struct AccessCondition *deleteAccessCondition; /* OPTIONAL */ - struct AccessCondition *editAccessCondition; /* OPTIONAL */ + struct AccessCondition *readAccessCondition; /* OPTIONAL */ + struct AccessCondition *storeAccessCondition; /* OPTIONAL */ + struct AccessCondition *writeAccessCondition; /* OPTIONAL */ + struct AccessCondition *loadAccessCondition; /* OPTIONAL */ + struct AccessCondition *executeAccessCondition; /* OPTIONAL */ + struct AccessCondition *deleteAccessCondition; /* OPTIONAL */ + struct AccessCondition *editAccessCondition; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -50,7 +50,7 @@ extern asn_TYPE_member_t asn_MBR_DefineAccessControlList_Request_1[2]; #endif /* Referred external types */ -#include +#include "AccessCondition.h" #endif /* _DefineAccessControlList_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.c index 9ed5691f..8b582c08 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.h index 7717d741..fc08d57b 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,14 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.c b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.c index a5c86785..5cca016b 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.h b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.h index 2da56515..577c56be 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineAccessControlList-Response */ -typedef NULL_t DefineAccessControlList_Response_t; +typedef NULL_t DefineAccessControlList_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineAccessControlList_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.c index 7e2aebb2..168829a9 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.h index 0f192199..507082dc 100644 --- a/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineAccessControlList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Request.c b/src/icspacket/proto/mms/_mms/DefineEventAction-Request.c index 3634368b..bed95d82 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfModifier_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfModifier __attribute__((weak, alias("asn_DEF_listOfModifier_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfModifier_3; +static asn_TYPE_descriptor_t asn_DEF_listOfModifier; +__attribute__((constructor)) static void asn_DEF_listOfModifier_3_alias_init(void) { + asn_DEF_listOfModifier = asn_DEF_listOfModifier_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DefineEventAction_Request__listOfModifier_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfModifier_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfModifier_tags_3[] = { @@ -58,13 +69,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfModifier_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfModifier_3, + asn_MBR_DefineEventAction_Request__listOfModifier_3, 1, /* Single element */ &asn_SPC_listOfModifier_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_DefineEventAction_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineEventAction_Request, eventActionName), + { ATF_POINTER, 0, offsetof(struct DefineEventAction_Request, eventActionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Request.h b/src/icspacket/proto/mms/_mms/DefineEventAction-Request.h index 038a93f0..be4c800b 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -20,21 +19,22 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct ConfirmedServiceRequest; struct Request_Detail; struct Modifier; /* DefineEventAction-Request */ typedef struct DefineEventAction_Request { - ObjectName_t eventActionName; + struct ObjectName *eventActionName; struct DefineEventAction_Request__listOfModifier { A_SEQUENCE_OF(struct Modifier) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfModifier; - struct ConfirmedServiceRequest *confirmedServiceRequest; - struct Request_Detail *cs_extension; /* OPTIONAL */ + struct ConfirmedServiceRequest *confirmedServiceRequest; + struct Request_Detail *cs_extension; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -50,9 +50,10 @@ extern asn_TYPE_member_t asn_MBR_DefineEventAction_Request_1[4]; #endif /* Referred external types */ -#include -#include -#include +#include "ObjectName.h" +#include "ConfirmedServiceRequest.h" +#include "Request-Detail.h" +#include "Modifier.h" #endif /* _DefineEventAction_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.c index 4c186dce..ce8cfa74 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -39,15 +39,17 @@ PY_IMPL_SEQ_OF_LEN(DefineEventAction_Request_listOfModifier_ANON_3); PY_IMPL_SEQ_OF_GETITEM(DefineEventAction_Request_listOfModifier_ANON_3); PY_IMPL_SEQ_OF_CLEAR(DefineEventAction_Request_listOfModifier_ANON_3); PY_IMPL_SEQ_OF_EXTEND(DefineEventAction_Request_listOfModifier_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(DefineEventAction_Request, eventActionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventAction_Request, eventActionName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineEventAction_Request, eventActionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventAction_Request, eventActionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventAction_Request, eventActionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineEventAction_Request, eventActionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineEventAction_Request, eventActionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineEventAction_Request, eventActionName); PY_IMPL_SEQ_SETATTR(DefineEventAction_Request, eventActionName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventAction_Request, confirmedServiceRequest); PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventAction_Request, confirmedServiceRequest, ConfirmedServiceRequest_t); PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineEventAction_Request, confirmedServiceRequest, PyAsnConfirmedServiceRequest_FromPython(value, (ConfirmedServiceRequest_t *)target)); PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineEventAction_Request, confirmedServiceRequest, ConfirmedServiceRequest); -PY_IMPL_SEQ_GETATTR(DefineEventAction_Request, confirmedServiceRequest); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineEventAction_Request, confirmedServiceRequest); PY_IMPL_SEQ_SETATTR(DefineEventAction_Request, confirmedServiceRequest); PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventAction_Request, cs_extension); PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventAction_Request, cs_extension, Request_Detail_t); diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.h index 07b17566..b8260f44 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Response.c b/src/icspacket/proto/mms/_mms/DefineEventAction-Response.c index 4436fc2c..494fccd5 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Response.h b/src/icspacket/proto/mms/_mms/DefineEventAction-Response.h index a62dfef6..18bcee22 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineEventAction-Response */ -typedef NULL_t DefineEventAction_Response_t; +typedef NULL_t DefineEventAction_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineEventAction_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.c index ec5f1d2e..48a7bca4 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.h index 7ddb9e40..b002988a 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventAction-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.c b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.c index cc1bedde..442d53c9 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -49,7 +49,7 @@ static int asn_DFL_5_set_64(void **sptr) { return 0; } asn_TYPE_member_t asn_MBR_DefineEventCondition_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineEventCondition_Request, eventConditionName), + { ATF_POINTER, 0, offsetof(struct DefineEventCondition_Request, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.h b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.h index 25274071..ddd62726 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,12 +10,11 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "EC-Class.h" +#include "Priority.h" +#include "Unsigned8.h" #include -#include +#include "Unsigned32.h" #include #ifdef __cplusplus @@ -23,17 +22,18 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct VariableSpecification; /* DefineEventCondition-Request */ typedef struct DefineEventCondition_Request { - ObjectName_t eventConditionName; - EC_Class_t Class; - Priority_t *priority; /* DEFAULT 64 */ - Unsigned8_t *severity; /* DEFAULT 64 */ - BOOLEAN_t *alarmSummaryReports; /* OPTIONAL */ - struct VariableSpecification *monitoredVariable; /* OPTIONAL */ - Unsigned32_t *evaluationInterval; /* OPTIONAL */ + struct ObjectName *eventConditionName; + EC_Class_t Class; + Priority_t *priority; /* DEFAULT 64 */ + Unsigned8_t *severity; /* DEFAULT 64 */ + BOOLEAN_t *alarmSummaryReports; /* OPTIONAL */ + struct VariableSpecification *monitoredVariable; /* OPTIONAL */ + Unsigned32_t *evaluationInterval; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -49,7 +49,8 @@ extern asn_TYPE_member_t asn_MBR_DefineEventCondition_Request_1[7]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "VariableSpecification.h" #endif /* _DefineEventCondition_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.c index 9932c5cc..e66a2d1c 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineEventCondition_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventCondition_Request, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineEventCondition_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventCondition_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventCondition_Request, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineEventCondition_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineEventCondition_Request, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineEventCondition_Request, eventConditionName); PY_IMPL_SEQ_SETATTR(DefineEventCondition_Request, eventConditionName); PY_IMPL_SEQ_ATTR_FROMPY(DefineEventCondition_Request, Class, PyAsnEC_Class_FromPython(value, (EC_Class_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventCondition_Request, Class, EC_Class); @@ -65,7 +67,7 @@ PY_IMPL_REPR(DefineEventCondition_Request); PY_IMPL_GENERIC_IS_VALID(DefineEventCondition_Request); PY_IMPL_SEQ_FROMPY(DefineEventCondition_Request, &asn_DEF_DefineEventCondition_Request, PY_IMPL_SEQ_INIT_ATTR(DefineEventCondition_Request, eventConditionName, eventConditionName); - PY_IMPL_SEQ_INIT_ATTR(DefineEventCondition_Request, class_, Class); + PY_IMPL_SEQ_INIT_ATTR(DefineEventCondition_Request, c_l_a_s_s_, Class); PY_IMPL_SEQ_INIT_ATTR(DefineEventCondition_Request, priority, priority); PY_IMPL_SEQ_INIT_ATTR(DefineEventCondition_Request, severity, severity); PY_IMPL_SEQ_INIT_ATTR(DefineEventCondition_Request, alarmSummaryReports, alarmSummaryReports); @@ -77,7 +79,7 @@ PY_IMPL_SEQ_INIT(DefineEventCondition_Request); /* class attributes definition */ static PyGetSetDef PyAsnDefineEventCondition_Request_getset[] = { PY_IMPL_GETSET_ITEM_INTERNAL(DefineEventCondition_Request, eventConditionName, eventConditionName), - PY_IMPL_GETSET_ITEM_INTERNAL(DefineEventCondition_Request, class_, Class), + PY_IMPL_GETSET_ITEM_INTERNAL(DefineEventCondition_Request, c_l_a_s_s_, Class), PY_IMPL_GETSET_ITEM_INTERNAL(DefineEventCondition_Request, priority, priority), PY_IMPL_GETSET_ITEM_INTERNAL(DefineEventCondition_Request, severity, severity), PY_IMPL_GETSET_ITEM_INTERNAL(DefineEventCondition_Request, alarmSummaryReports, alarmSummaryReports), diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.h index 7573bc77..246bfe3a 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.c b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.c index f1669c77..466e51f1 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.h b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.h index 0b1d924b..52967ae8 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineEventCondition-Response */ -typedef NULL_t DefineEventCondition_Response_t; +typedef NULL_t DefineEventCondition_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineEventCondition_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.c index 4bd0f95b..c6c72018 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.h index 4de15d12..741d613b 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventCondition-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.c b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.c index 15e873d9..5a2f97ae 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.c +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.h b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.h index 06d705c4..3ea1bcd0 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.h +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* DefineEventConditionList-Error */ -typedef ObjectName_t DefineEventConditionList_Error_t; +typedef ObjectName_t DefineEventConditionList_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineEventConditionList_Error; diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.c b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.c index 9b15e25c..6d93d9bd 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.h b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.h index dc56cc06..b2e41c66 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.c b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.c index 5892a540..b05d9527 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfEventConditionName_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName __attribute__((weak, alias("asn_DEF_listOfEventConditionName_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_3; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionName_3_alias_init(void) { + asn_DEF_listOfEventConditionName = asn_DEF_listOfEventConditionName_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName __attribute__((weak, alias("asn_DEF_listOfEventConditionListName_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_5; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionListName_5_alias_init(void) { + asn_DEF_listOfEventConditionListName = asn_DEF_listOfEventConditionListName_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DefineEventConditionList_Request__listOfEventConditionName_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionName_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionName_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionName_3, + asn_MBR_DefineEventConditionList_Request__listOfEventConditionName_3, 1, /* Single element */ &asn_SPC_listOfEventConditionName_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_5[] = { +static asn_TYPE_member_t asn_MBR_DefineEventConditionList_Request__listOfEventConditionListName_5[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionListName_tags_5[] = { @@ -117,13 +139,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionListName_5, + asn_MBR_DefineEventConditionList_Request__listOfEventConditionListName_5, 1, /* Single element */ &asn_SPC_listOfEventConditionListName_specs_5 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_DefineEventConditionList_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineEventConditionList_Request, eventConditionListName), + { ATF_POINTER, 0, offsetof(struct DefineEventConditionList_Request, eventConditionListName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.h b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.h index 61ababa4..434264b2 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -24,7 +23,7 @@ struct ObjectName; /* DefineEventConditionList-Request */ typedef struct DefineEventConditionList_Request { - ObjectName_t eventConditionListName; + struct ObjectName *eventConditionListName; struct DefineEventConditionList_Request__listOfEventConditionName { A_SEQUENCE_OF(struct ObjectName) list; @@ -52,7 +51,7 @@ extern asn_TYPE_member_t asn_MBR_DefineEventConditionList_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DefineEventConditionList_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.c index 5f64217f..ba3acbaf 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -72,9 +72,11 @@ PY_IMPL_SEQ_OF_LEN(DefineEventConditionList_Request_listOfEventConditionListName PY_IMPL_SEQ_OF_GETITEM(DefineEventConditionList_Request_listOfEventConditionListName_ANON_5); PY_IMPL_SEQ_OF_CLEAR(DefineEventConditionList_Request_listOfEventConditionListName_ANON_5); PY_IMPL_SEQ_OF_EXTEND(DefineEventConditionList_Request_listOfEventConditionListName_ANON_5); -PY_IMPL_SEQ_ATTR_FROMPY(DefineEventConditionList_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventConditionList_Request, eventConditionListName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineEventConditionList_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventConditionList_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventConditionList_Request, eventConditionListName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineEventConditionList_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineEventConditionList_Request, eventConditionListName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineEventConditionList_Request, eventConditionListName); PY_IMPL_SEQ_SETATTR(DefineEventConditionList_Request, eventConditionListName); PY_IMPL_GENERIC_DEALLOC(DefineEventConditionList_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(DefineEventConditionList_Request); diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.h index cc463894..b14bf334 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.c b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.c index 0213cbfc..f1408a15 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.h b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.h index 7f4e21fb..fb0f0c56 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineEventConditionList-Response */ -typedef NULL_t DefineEventConditionList_Response_t; +typedef NULL_t DefineEventConditionList_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineEventConditionList_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.c index f78d7538..213ceefe 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.h index a50bad82..7e1ccbb2 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventConditionList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.c b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.c index b137ff11..1d6a7ff3 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.c +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.h b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.h index 7b75fe96..984e7c3a 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.h +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* DefineEventEnrollment-Error */ -typedef ObjectName_t DefineEventEnrollment_Error_t; +typedef ObjectName_t DefineEventEnrollment_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineEventEnrollment_Error; diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.c b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.c index dcac4216..2b360548 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.h b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.h index aabf33e2..c4d950da 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.c b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.c index 4e8a8e69..ec430475 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.c @@ -1,11 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_eventConditionTransitions_constr_4 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_DefineEventEnrollment_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineEventEnrollment_Request, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct DefineEventEnrollment_Request, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -25,7 +31,7 @@ asn_TYPE_member_t asn_MBR_DefineEventEnrollment_Request_1[] = { 0, 0, /* No default value */ "eventEnrollmentName" }, - { ATF_NOFLAGS, 0, offsetof(struct DefineEventEnrollment_Request, eventConditionName), + { ATF_POINTER, 0, offsetof(struct DefineEventEnrollment_Request, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.h b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.h index 508522e1..65f416ee 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,8 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "Transitions.h" +#include "AlarmAckRule.h" #include #ifdef __cplusplus @@ -25,12 +24,12 @@ struct ApplicationReference; /* DefineEventEnrollment-Request */ typedef struct DefineEventEnrollment_Request { - ObjectName_t eventEnrollmentName; - ObjectName_t eventConditionName; - Transitions_t eventConditionTransitions; - AlarmAckRule_t alarmAcknowledgmentRule; - struct ObjectName *eventActionName; /* OPTIONAL */ - struct ApplicationReference *clientApplication; /* OPTIONAL */ + struct ObjectName *eventEnrollmentName; + struct ObjectName *eventConditionName; + Transitions_t eventConditionTransitions; + AlarmAckRule_t alarmAcknowledgmentRule; + struct ObjectName *eventActionName; /* OPTIONAL */ + struct ApplicationReference *clientApplication; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,8 +45,8 @@ extern asn_TYPE_member_t asn_MBR_DefineEventEnrollment_Request_1[6]; #endif /* Referred external types */ -#include -#include +#include "ObjectName.h" +#include "ApplicationReference.h" #endif /* _DefineEventEnrollment_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.c index c8b32d2c..b55ecdda 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineEventEnrollment_Request, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventEnrollment_Request, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineEventEnrollment_Request, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventEnrollment_Request, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventEnrollment_Request, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineEventEnrollment_Request, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineEventEnrollment_Request, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineEventEnrollment_Request, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(DefineEventEnrollment_Request, eventEnrollmentName); -PY_IMPL_SEQ_ATTR_FROMPY(DefineEventEnrollment_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventEnrollment_Request, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineEventEnrollment_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineEventEnrollment_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineEventEnrollment_Request, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineEventEnrollment_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineEventEnrollment_Request, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineEventEnrollment_Request, eventConditionName); PY_IMPL_SEQ_SETATTR(DefineEventEnrollment_Request, eventConditionName); PY_IMPL_SEQ_ATTR_FROMPY(DefineEventEnrollment_Request, eventConditionTransitions, PyAsnTransitions_FromPython(value, (Transitions_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(DefineEventEnrollment_Request, eventConditionTransitions, Transitions); diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.h index a92ad45b..edeeae2b 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,8 +13,10 @@ #include #include #include +#include #include #include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.c b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.c index 27052574..8bbac0a9 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.h b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.h index 37bf0e8d..2552515a 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineEventEnrollment-Response */ -typedef NULL_t DefineEventEnrollment_Response_t; +typedef NULL_t DefineEventEnrollment_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineEventEnrollment_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.c index 64188d75..94de308f 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.h index 197cec68..60a71991 100644 --- a/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineEventEnrollment-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Request.c b/src/icspacket/proto/mms/_mms/DefineNamedType-Request.c index b90c7725..23875dbe 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_DefineNamedType_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineNamedType_Request, typeName), + { ATF_POINTER, 0, offsetof(struct DefineNamedType_Request, typeName), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_ObjectName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_DefineNamedType_Request_1[] = { 0, 0, /* No default value */ "typeName" }, - { ATF_NOFLAGS, 0, offsetof(struct DefineNamedType_Request, typeSpecification), + { ATF_POINTER, 0, offsetof(struct DefineNamedType_Request, typeSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_TypeSpecification, diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Request.h b/src/icspacket/proto/mms/_mms/DefineNamedType-Request.h index 9c000c67..2cf37aa1 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; +struct TypeSpecification; + /* DefineNamedType-Request */ typedef struct DefineNamedType_Request { - ObjectName_t typeName; - TypeSpecification_t typeSpecification; + struct ObjectName *typeName; + struct TypeSpecification *typeSpecification; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,9 @@ extern asn_TYPE_member_t asn_MBR_DefineNamedType_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" +#include "TypeSpecification.h" + #endif /* _DefineNamedType_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.c index f71cf82b..4ec741de 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedType_Request, typeName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedType_Request, typeName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineNamedType_Request, typeName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedType_Request, typeName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedType_Request, typeName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedType_Request, typeName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedType_Request, typeName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineNamedType_Request, typeName); PY_IMPL_SEQ_SETATTR(DefineNamedType_Request, typeName); -PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedType_Request, typeSpecification, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedType_Request, typeSpecification, TypeSpecification); -PY_IMPL_SEQ_GETATTR(DefineNamedType_Request, typeSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedType_Request, typeSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedType_Request, typeSpecification, TypeSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedType_Request, typeSpecification, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedType_Request, typeSpecification, TypeSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineNamedType_Request, typeSpecification); PY_IMPL_SEQ_SETATTR(DefineNamedType_Request, typeSpecification); PY_IMPL_GENERIC_DEALLOC(DefineNamedType_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(DefineNamedType_Request); diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.h index e956477b..c4fd196a 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Response.c b/src/icspacket/proto/mms/_mms/DefineNamedType-Response.c index c1c1316e..94581701 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Response.h b/src/icspacket/proto/mms/_mms/DefineNamedType-Response.h index 0c5a45a6..8242d9dd 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineNamedType-Response */ -typedef NULL_t DefineNamedType_Response_t; +typedef NULL_t DefineNamedType_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineNamedType_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.c index edec3162..b2a1eb0f 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.h index f7688f1e..15d0fb02 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedType-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.c b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.c index 4ad92ed7..1685f9a7 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_DefineNamedVariable_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineNamedVariable_Request, variableName), + { ATF_POINTER, 0, offsetof(struct DefineNamedVariable_Request, variableName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_DefineNamedVariable_Request_1[] = { 0, 0, /* No default value */ "variableName" }, - { ATF_NOFLAGS, 0, offsetof(struct DefineNamedVariable_Request, address), + { ATF_POINTER, 0, offsetof(struct DefineNamedVariable_Request, address), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_Address, diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.h b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.h index 0c62b325..7c71cbfb 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -19,13 +17,15 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; +struct Address; struct TypeSpecification; /* DefineNamedVariable-Request */ typedef struct DefineNamedVariable_Request { - ObjectName_t variableName; - Address_t address; - struct TypeSpecification *typeSpecification; /* OPTIONAL */ + struct ObjectName *variableName; + struct Address *address; + struct TypeSpecification *typeSpecification; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,9 @@ extern asn_TYPE_member_t asn_MBR_DefineNamedVariable_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "Address.h" +#include "TypeSpecification.h" #endif /* _DefineNamedVariable_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.c index a1ac1d24..6461b51c 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedVariable_Request, variableName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedVariable_Request, variableName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineNamedVariable_Request, variableName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedVariable_Request, variableName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedVariable_Request, variableName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedVariable_Request, variableName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedVariable_Request, variableName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineNamedVariable_Request, variableName); PY_IMPL_SEQ_SETATTR(DefineNamedVariable_Request, variableName); -PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedVariable_Request, address, PyAsnAddress_FromPython(value, (Address_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedVariable_Request, address, Address); -PY_IMPL_SEQ_GETATTR(DefineNamedVariable_Request, address); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedVariable_Request, address); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedVariable_Request, address, Address_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedVariable_Request, address, PyAsnAddress_FromPython(value, (Address_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedVariable_Request, address, Address); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineNamedVariable_Request, address); PY_IMPL_SEQ_SETATTR(DefineNamedVariable_Request, address); PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedVariable_Request, typeSpecification); PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedVariable_Request, typeSpecification, TypeSpecification_t); diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.h index 2e21b317..cebb94ec 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.c b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.c index e0d58e6d..d1565db8 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.h b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.h index f794448f..d82b9d79 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineNamedVariable-Response */ -typedef NULL_t DefineNamedVariable_Response_t; +typedef NULL_t DefineNamedVariable_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineNamedVariable_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.c index af05ca59..46c33773 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.h index 20130f1e..cfc6cdee 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariable-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.c b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.c index 2c8822c3..b22f571a 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.c @@ -1,11 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_Member_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineNamedVariableList_Request__listOfVariable__Member, variableSpecification), +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfVariable __attribute__((weak, alias("asn_DEF_listOfVariable_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfVariable_3; +static asn_TYPE_descriptor_t asn_DEF_listOfVariable; +__attribute__((constructor)) static void asn_DEF_listOfVariable_3_alias_init(void) { + asn_DEF_listOfVariable = asn_DEF_listOfVariable_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member, variableSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_VariableSpecification, @@ -25,7 +36,7 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = { 0, 0, /* No default value */ "variableSpecification" }, - { ATF_POINTER, 1, offsetof(struct DefineNamedVariableList_Request__listOfVariable__Member, alternateAccess), + { ATF_POINTER, 1, offsetof(struct DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member, alternateAccess), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlternateAccess, @@ -46,11 +57,11 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = { "alternateAccess" }, }; -static const int asn_MAP_Member_oms_4[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_4[] = { +static const int asn_MAP_listOfVariable_Member_oms_4[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_listOfVariable_Member_tags_4[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_4[] = { +static const asn_TYPE_tag2member_t asn_MAP_listOfVariable_Member_tag2el_4[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* name */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* address */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* variableDescription */ @@ -58,26 +69,26 @@ static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_4[] = { { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 }, /* invalidated */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 1, 0, 0 } /* alternateAccess */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_4 = { - sizeof(struct DefineNamedVariableList_Request__listOfVariable__Member), - offsetof(struct DefineNamedVariableList_Request__listOfVariable__Member, _asn_ctx), - asn_MAP_Member_tag2el_4, +static asn_SEQUENCE_specifics_t asn_SPC_listOfVariable_Member_specs_4 = { + sizeof(struct DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member), + offsetof(struct DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member, _asn_ctx), + asn_MAP_listOfVariable_Member_tag2el_4, 6, /* Count of tags in the map */ - asn_MAP_Member_oms_4, /* Optional members */ + asn_MAP_listOfVariable_Member_oms_4, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_4 = { +asn_TYPE_descriptor_t asn_DEF_listOfVariable_Member_4 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_4, - sizeof(asn_DEF_Member_tags_4) - /sizeof(asn_DEF_Member_tags_4[0]), /* 1 */ - asn_DEF_Member_tags_4, /* Same as above */ - sizeof(asn_DEF_Member_tags_4) - /sizeof(asn_DEF_Member_tags_4[0]), /* 1 */ + asn_DEF_listOfVariable_Member_tags_4, + sizeof(asn_DEF_listOfVariable_Member_tags_4) + /sizeof(asn_DEF_listOfVariable_Member_tags_4[0]), /* 1 */ + asn_DEF_listOfVariable_Member_tags_4, /* Same as above */ + sizeof(asn_DEF_listOfVariable_Member_tags_4) + /sizeof(asn_DEF_listOfVariable_Member_tags_4[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -90,16 +101,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_4, + asn_MBR_DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member_4, 2, /* Elements count */ - &asn_SPC_Member_specs_4 /* Additional specs */ + &asn_SPC_listOfVariable_Member_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfVariable_3[] = { +static asn_TYPE_member_t asn_MBR_DefineNamedVariableList_Request__listOfVariable_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_4, + &asn_DEF_listOfVariable_Member_4, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -149,13 +160,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfVariable_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfVariable_3, + asn_MBR_DefineNamedVariableList_Request__listOfVariable_3, 1, /* Single element */ &asn_SPC_listOfVariable_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_DefineNamedVariableList_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineNamedVariableList_Request, variableListName), + { ATF_POINTER, 0, offsetof(struct DefineNamedVariableList_Request, variableListName), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.h b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.h index 96efced8..4f33c7a1 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,8 @@ #include /* Including external dependencies */ -#include #include -#include +#include "VariableSpecification.h" #include #include @@ -21,22 +20,23 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct AlternateAccess; /* Forward definitions */ -typedef struct DefineNamedVariableList_Request__listOfVariable__Member { - VariableSpecification_t variableSpecification; - struct AlternateAccess *alternateAccess; /* OPTIONAL */ +typedef struct DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member { + VariableSpecification_t variableSpecification; + struct AlternateAccess *alternateAccess; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} DefineNamedVariableList_Request__listOfVariable__Member; +} DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member; /* DefineNamedVariableList-Request */ typedef struct DefineNamedVariableList_Request { - ObjectName_t variableListName; + struct ObjectName *variableListName; struct DefineNamedVariableList_Request__listOfVariable { - A_SEQUENCE_OF(DefineNamedVariableList_Request__listOfVariable__Member) list; + A_SEQUENCE_OF(DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -56,7 +56,8 @@ extern asn_TYPE_member_t asn_MBR_DefineNamedVariableList_Request_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "AlternateAccess.h" #endif /* _DefineNamedVariableList_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.c index fba685ba..edbb46e4 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.c @@ -1,50 +1,50 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedVariableList_Request_Member_ANON_4, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedVariableList_Request_Member_ANON_4, variableSpecification, VariableSpecification); -PY_IMPL_SEQ_GETATTR(DefineNamedVariableList_Request_Member_ANON_4, variableSpecification); -PY_IMPL_SEQ_SETATTR(DefineNamedVariableList_Request_Member_ANON_4, variableSpecification); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess, AlternateAccess_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess, AlternateAccess); -PY_IMPL_SEQ_OPT_GETATTR(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess); -PY_IMPL_SEQ_OPT_SETATTR(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess); -PY_IMPL_CHECK_CONSTRAINTS(DefineNamedVariableList_Request_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); -PY_IMPL_ENCODE(DefineNamedVariableList_Request_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); -PY_IMPL_DECODE(DefineNamedVariableList_Request_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); -PY_IMPL_DEALLOC(DefineNamedVariableList_Request_Member_ANON_4, *(asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type)); -PY_IMPL_SEQ_TOPY(DefineNamedVariableList_Request_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); -PY_IMPL_DECODE_BER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_Member_ANON_4, ber, ATS_BER); -PY_IMPL_DECODE_DER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_Member_ANON_4, der, ATS_DER); -PY_IMPL_DECODE_CER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_Member_ANON_4, cer, ATS_BER); -PY_IMPL_DECODE_XER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_ENCODE_XER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_Member_ANON_4, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_ENCODE_JER(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_GENERIC_NEW(DefineNamedVariableList_Request_Member_ANON_4, NULL); -PY_IMPL_REPR(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_GENERIC_IS_VALID(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_SEQ_FROMPY(DefineNamedVariableList_Request_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(DefineNamedVariableList_Request_Member_ANON_4, variableSpecification, variableSpecification); - PY_IMPL_SEQ_INIT_ATTR(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess, alternateAccess); +PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, variableSpecification, VariableSpecification); +PY_IMPL_SEQ_GETATTR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, variableSpecification); +PY_IMPL_SEQ_SETATTR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, variableSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess, AlternateAccess_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess, AlternateAccess); +PY_IMPL_SEQ_OPT_GETATTR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess); +PY_IMPL_SEQ_OPT_SETATTR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess); +PY_IMPL_CHECK_CONSTRAINTS(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); +PY_IMPL_ENCODE(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); +PY_IMPL_DECODE(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); +PY_IMPL_DEALLOC(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, *(asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type)); +PY_IMPL_SEQ_TOPY(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type); +PY_IMPL_DECODE_BER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, ber, ATS_BER); +PY_IMPL_DECODE_DER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, der, ATS_DER); +PY_IMPL_DECODE_CER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, cer, ATS_BER); +PY_IMPL_DECODE_XER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_XER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_JER(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_GENERIC_NEW(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, NULL); +PY_IMPL_REPR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_GENERIC_IS_VALID(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_SEQ_FROMPY(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, asn_DEF_DefineNamedVariableList_Request.elements[1].type->elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, variableSpecification, variableSpecification); + PY_IMPL_SEQ_INIT_ATTR(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess, alternateAccess); ); -PY_IMPL_SEQ_INIT(DefineNamedVariableList_Request_Member_ANON_4); -PY_IMPL_SEQ_OF_ITEM_TOPY(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_Member_ANON_4_t, PyAsnDefineNamedVariableList_Request_Member_ANON_4_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_Member_ANON_4_t, PyAsnDefineNamedVariableList_Request_Member_ANON_4_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_Member_ANON_4_t); -PY_IMPL_SEQ_OF_GENERIC_SETITEM(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_Member_ANON_4_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_DefineNamedVariableList_Request.elements[1].type)); -PY_IMPL_SEQ_OF_ADD(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_Member_ANON_4_t); +PY_IMPL_SEQ_INIT(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); +PY_IMPL_SEQ_OF_ITEM_TOPY(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t, PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t, PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t); +PY_IMPL_SEQ_OF_GENERIC_SETITEM(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_DefineNamedVariableList_Request.elements[1].type)); +PY_IMPL_SEQ_OF_ADD(DefineNamedVariableList_Request_listOfVariable_ANON_3, DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t); PY_IMPL_SEQ_OF_NEW(DefineNamedVariableList_Request_listOfVariable_ANON_3); PY_IMPL_SEQ_OF_DEALLOC(DefineNamedVariableList_Request_listOfVariable_ANON_3, asn_set_empty); PY_IMPL_SEQ_OF_INIT(DefineNamedVariableList_Request_listOfVariable_ANON_3); @@ -73,9 +73,11 @@ PY_IMPL_SEQ_OF_LEN(DefineNamedVariableList_Request_listOfVariable_ANON_3); PY_IMPL_SEQ_OF_GETITEM(DefineNamedVariableList_Request_listOfVariable_ANON_3); PY_IMPL_SEQ_OF_CLEAR(DefineNamedVariableList_Request_listOfVariable_ANON_3); PY_IMPL_SEQ_OF_EXTEND(DefineNamedVariableList_Request_listOfVariable_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(DefineNamedVariableList_Request, variableListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineNamedVariableList_Request, variableListName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineNamedVariableList_Request, variableListName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineNamedVariableList_Request, variableListName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineNamedVariableList_Request, variableListName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineNamedVariableList_Request, variableListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineNamedVariableList_Request, variableListName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineNamedVariableList_Request, variableListName); PY_IMPL_SEQ_SETATTR(DefineNamedVariableList_Request, variableListName); PY_IMPL_GENERIC_DEALLOC(DefineNamedVariableList_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(DefineNamedVariableList_Request); @@ -103,9 +105,9 @@ PY_IMPL_SEQ_FROMPY(DefineNamedVariableList_Request, &asn_DEF_DefineNamedVariable PY_IMPL_SEQ_INIT(DefineNamedVariableList_Request); /* class attributes definition */ -static PyGetSetDef PyAsnDefineNamedVariableList_Request_Member_ANON_4_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(DefineNamedVariableList_Request_Member_ANON_4, variableSpecification, variableSpecification), - PY_IMPL_GETSET_ITEM_INTERNAL(DefineNamedVariableList_Request_Member_ANON_4, alternateAccess, alternateAccess), +static PyGetSetDef PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, variableSpecification, variableSpecification), + PY_IMPL_GETSET_ITEM_INTERNAL(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, alternateAccess, alternateAccess), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_getset[] = { @@ -123,20 +125,20 @@ static PyGetSetDef PyAsnDefineNamedVariableList_Request_getset[] = { }; /* class methods definition */ -static PyMethodDef PyAsnDefineNamedVariableList_Request_Member_ANON_4_methods[] = { - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnDefineNamedVariableList_Request_Member_ANON_4__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_Member_ANON_4, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_methods[] = { + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_methods[] = { @@ -176,18 +178,18 @@ static PyMethodDef PyAsnDefineNamedVariableList_Request_methods[] = { }; /* type definition */ -PyTypeObject PyAsnDefineNamedVariableList_Request_Member_ANON_4_Type = { +PyTypeObject PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.DefineNamedVariableList_Request.listOfVariable_TYPE.Member_TYPE", - .tp_basicsize = sizeof(PyAsnDefineNamedVariableList_Request_Member_ANON_4Object), + .tp_basicsize = sizeof(PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnDefineNamedVariableList_Request_Member_ANON_4__new, - .tp_repr = (reprfunc)PyAsnDefineNamedVariableList_Request_Member_ANON_4__repr, - .tp_dealloc = (destructor)PyAsnDefineNamedVariableList_Request_Member_ANON_4__dealloc, - .tp_init = (initproc)PyAsnDefineNamedVariableList_Request_Member_ANON_4__init, - .tp_getset = PyAsnDefineNamedVariableList_Request_Member_ANON_4_getset, - .tp_methods = PyAsnDefineNamedVariableList_Request_Member_ANON_4_methods, - .tp_doc = "ASN.1 anonymous type DefineNamedVariableList_Request__listOfVariable__Member_TYPE part of listOfVariable", + .tp_new = (newfunc)PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4__new, + .tp_repr = (reprfunc)PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4__repr, + .tp_dealloc = (destructor)PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4__dealloc, + .tp_init = (initproc)PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4__init, + .tp_getset = PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_getset, + .tp_methods = PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_methods, + .tp_doc = "ASN.1 anonymous type DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member_TYPE part of listOfVariable", }; PyTypeObject PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -219,7 +221,7 @@ PyTypeObject PyAsnDefineNamedVariableList_Request_Type = { /* module initializer */ int PyAsnDefineNamedVariableList_Request_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnDefineNamedVariableList_Request_Member_ANON_4_Type) < 0) return -1; + if (PyType_Ready(&PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_Type) < 0) return -1; if (PyType_Ready(&PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_Type) < 0) return -1; if (PyType_Ready(&PyAsnDefineNamedVariableList_Request_Type) < 0) return -1; return 0; @@ -229,7 +231,7 @@ void PyAsnDefineNamedVariableList_Request_ModClear(PyObject *mod) { } int PyAsnDefineNamedVariableList_Request_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(DefineNamedVariableList_Request_listOfVariable_ANON_3, Member_TYPE, &PyAsnDefineNamedVariableList_Request_Member_ANON_4_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(DefineNamedVariableList_Request_listOfVariable_ANON_3, Member_TYPE, &PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_Type); PY_IMPL_MOD_ASSIGN_OBJECT(DefineNamedVariableList_Request, listOfVariable_TYPE, &PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_Type); PY_IMPL_MOD_ADD_OBJECT(mod, DefineNamedVariableList_Request); return 0; diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.h index 15e88cd4..43c555cd 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,6 +14,10 @@ #include #include #include +#include +#include +#include +#include #include #ifdef __cplusplus @@ -21,8 +25,8 @@ extern "C" { #endif /* DefineNamedVariableList-Request */ -PyCompat_DEF_ANON_STRUCT(DefineNamedVariableList_Request_Member_ANON_4, DefineNamedVariableList_Request__listOfVariable__Member); -PyCompat_DEF_TYPE(DefineNamedVariableList_Request_Member_ANON_4); +PyCompat_DEF_ANON_STRUCT(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4, DefineNamedVariableList_Request__listOfVariable__listOfVariable_Member); +PyCompat_DEF_TYPE(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4); typedef struct DefineNamedVariableList_Request__listOfVariable DefineNamedVariableList_Request_listOfVariable_ANON_3_t; PyCompat_DEF_STRUCT(DefineNamedVariableList_Request_listOfVariable_ANON_3); PyCompat_DEF_TYPE(DefineNamedVariableList_Request_listOfVariable_ANON_3); @@ -30,8 +34,8 @@ PyCompat_DEF_STRUCT(DefineNamedVariableList_Request); PyCompat_DEF_TYPE(DefineNamedVariableList_Request); /* Type Converters */ -int PyAsnDefineNamedVariableList_Request_Member_ANON_4_FromPython(PyObject *pObj, DefineNamedVariableList_Request_Member_ANON_4_t *pDst); -PyObject *PyAsnDefineNamedVariableList_Request_Member_ANON_4_ToPython(DefineNamedVariableList_Request_Member_ANON_4_t *pSrc, PyObject *parent); +int PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_FromPython(PyObject *pObj, DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t *pDst); +PyObject *PyAsnDefineNamedVariableList_Request_listOfVariable_Member_ANON_4_ToPython(DefineNamedVariableList_Request_listOfVariable_Member_ANON_4_t *pSrc, PyObject *parent); int PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_FromPython(PyObject *pObj, DefineNamedVariableList_Request_listOfVariable_ANON_3_t *pDst); PyObject *PyAsnDefineNamedVariableList_Request_listOfVariable_ANON_3_ToPython(DefineNamedVariableList_Request_listOfVariable_ANON_3_t *pSrc, PyObject *parent); int PyAsnDefineNamedVariableList_Request_FromPython(PyObject *pObj, DefineNamedVariableList_Request_t *pDst); diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.c b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.c index 3494f1a6..848ef70a 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.h b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.h index 6635efe5..bc05a5cb 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineNamedVariableList-Response */ -typedef NULL_t DefineNamedVariableList_Response_t; +typedef NULL_t DefineNamedVariableList_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineNamedVariableList_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.c index 8fa572ab..5d5a5668 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.h index 9b48023b..55a8d67a 100644 --- a/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineNamedVariableList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.c b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.c index d376266d..dfb2e849 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_DefineScatteredAccess_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineScatteredAccess_Request, scatteredAccessName), + { ATF_POINTER, 0, offsetof(struct DefineScatteredAccess_Request, scatteredAccessName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_DefineScatteredAccess_Request_1[] = { 0, 0, /* No default value */ "scatteredAccessName" }, - { ATF_NOFLAGS, 0, offsetof(struct DefineScatteredAccess_Request, scatteredAccessDescription), + { ATF_POINTER, 0, offsetof(struct DefineScatteredAccess_Request, scatteredAccessDescription), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ScatteredAccessDescription, diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.h b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.h index f39f7f85..54e47060 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; +struct ScatteredAccessDescription; + /* DefineScatteredAccess-Request */ typedef struct DefineScatteredAccess_Request { - ObjectName_t scatteredAccessName; - ScatteredAccessDescription_t scatteredAccessDescription; + struct ObjectName *scatteredAccessName; + struct ScatteredAccessDescription *scatteredAccessDescription; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,9 @@ extern asn_TYPE_member_t asn_MBR_DefineScatteredAccess_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" +#include "ScatteredAccessDescription.h" + #endif /* _DefineScatteredAccess_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.c index 0cb73f77..f46df355 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineScatteredAccess_Request, scatteredAccessName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineScatteredAccess_Request, scatteredAccessName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineScatteredAccess_Request, scatteredAccessName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineScatteredAccess_Request, scatteredAccessName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineScatteredAccess_Request, scatteredAccessName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineScatteredAccess_Request, scatteredAccessName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineScatteredAccess_Request, scatteredAccessName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineScatteredAccess_Request, scatteredAccessName); PY_IMPL_SEQ_SETATTR(DefineScatteredAccess_Request, scatteredAccessName); -PY_IMPL_SEQ_ATTR_FROMPY(DefineScatteredAccess_Request, scatteredAccessDescription, PyAsnScatteredAccessDescription_FromPython(value, (ScatteredAccessDescription_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineScatteredAccess_Request, scatteredAccessDescription, ScatteredAccessDescription); -PY_IMPL_SEQ_GETATTR(DefineScatteredAccess_Request, scatteredAccessDescription); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineScatteredAccess_Request, scatteredAccessDescription); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineScatteredAccess_Request, scatteredAccessDescription, ScatteredAccessDescription_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineScatteredAccess_Request, scatteredAccessDescription, PyAsnScatteredAccessDescription_FromPython(value, (ScatteredAccessDescription_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineScatteredAccess_Request, scatteredAccessDescription, ScatteredAccessDescription); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineScatteredAccess_Request, scatteredAccessDescription); PY_IMPL_SEQ_SETATTR(DefineScatteredAccess_Request, scatteredAccessDescription); PY_IMPL_GENERIC_DEALLOC(DefineScatteredAccess_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(DefineScatteredAccess_Request); diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.h index 66048e52..b2a6e442 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.c b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.c index a6a63f73..c9874234 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.h b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.h index 33115b88..a87e9bd4 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineScatteredAccess-Response */ -typedef NULL_t DefineScatteredAccess_Response_t; +typedef NULL_t DefineScatteredAccess_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineScatteredAccess_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.c index 291ff77e..61c8761a 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.h index b502cf11..7befc849 100644 --- a/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineScatteredAccess-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.c b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.c index 75489296..301a8eea 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.c +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_DefineSemaphore_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DefineSemaphore_Request, semaphoreName), + { ATF_POINTER, 0, offsetof(struct DefineSemaphore_Request, semaphoreName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.h b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.h index 276f0c05..009eb0bf 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.h +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned16.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* DefineSemaphore-Request */ typedef struct DefineSemaphore_Request { - ObjectName_t semaphoreName; - Unsigned16_t numberOfTokens; + struct ObjectName *semaphoreName; + Unsigned16_t numberOfTokens; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_DefineSemaphore_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _DefineSemaphore_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.c b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.c index 34b08fff..efc17792 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DefineSemaphore_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DefineSemaphore_Request, semaphoreName, ObjectName); -PY_IMPL_SEQ_GETATTR(DefineSemaphore_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DefineSemaphore_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DefineSemaphore_Request, semaphoreName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DefineSemaphore_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DefineSemaphore_Request, semaphoreName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DefineSemaphore_Request, semaphoreName); PY_IMPL_SEQ_SETATTR(DefineSemaphore_Request, semaphoreName); PY_IMPL_SEQ_ATTR_FROMPY(DefineSemaphore_Request, numberOfTokens, PyAsnUnsigned16_FromPython(value, (Unsigned16_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(DefineSemaphore_Request, numberOfTokens, Unsigned16); diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.h b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.h index e355e7b7..001aa88c 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.c b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.c index 8ed4ff03..f4a8d701 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.c +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.h b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.h index 856d3002..e0819157 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.h +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DefineSemaphore-Response */ -typedef NULL_t DefineSemaphore_Response_t; +typedef NULL_t DefineSemaphore_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DefineSemaphore_Response; diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.c b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.c index 2cabba0d..e35f498d 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.h b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.h index b38d1660..6de1a49a 100644 --- a/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DefineSemaphore-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.c b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.c index a9d9d02d..cfa76c38 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.h b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.h index bb283f6f..c961d67a 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* DeleteAccessControlList-Request */ -typedef Identifier_t DeleteAccessControlList_Request_t; +typedef Identifier_t DeleteAccessControlList_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteAccessControlList_Request; diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.c index 3aef379f..ef881ade 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.h index ea527ebf..d0194bb6 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.c b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.c index 2b79c4a6..9951191d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.h b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.h index bae041a8..9db3c298 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteAccessControlList-Response */ -typedef NULL_t DeleteAccessControlList_Response_t; +typedef NULL_t DeleteAccessControlList_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteAccessControlList_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.c index 76dedd4e..3d31c109 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.h index 11bd5045..111cf3e5 100644 --- a/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteAccessControlList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Request.c b/src/icspacket/proto/mms/_mms/DeleteDomain-Request.c index 8e2f4048..aeaf7679 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Request.h b/src/icspacket/proto/mms/_mms/DeleteDomain-Request.h index 441c3749..7031afc1 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* DeleteDomain-Request */ -typedef Identifier_t DeleteDomain_Request_t; +typedef Identifier_t DeleteDomain_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteDomain_Request; diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.c index c0a98697..3fcb1741 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.h index f1150bb7..f695c995 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Response.c b/src/icspacket/proto/mms/_mms/DeleteDomain-Response.c index 15e5fb8d..4c1fddfe 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Response.h b/src/icspacket/proto/mms/_mms/DeleteDomain-Response.h index 025ff8a6..476679f3 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteDomain-Response */ -typedef NULL_t DeleteDomain_Response_t; +typedef NULL_t DeleteDomain_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteDomain_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.c index 2755fbba..1d87a942 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.h index 8d2687dc..ba9426d5 100644 --- a/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteDomain-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.c b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.c index 9b6d160d..31ee3b06 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_specific_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_specific __attribute__((weak, alias("asn_DEF_specific_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_specific_2; +static asn_TYPE_descriptor_t asn_DEF_specific; +__attribute__((constructor)) static void asn_DEF_specific_2_alias_init(void) { + asn_DEF_specific = asn_DEF_specific_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DeleteEventAction_Request__specific_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_specific_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_specific_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_specific_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_specific_2, + asn_MBR_DeleteEventAction_Request__specific_2, 1, /* Single element */ &asn_SPC_specific_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.h b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.h index 97bb5d81..5fc09f52 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -42,9 +42,9 @@ typedef struct DeleteEventAction_Request { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } specific; - NULL_t aa_specific; - Identifier_t domain; - NULL_t vmd; + NULL_t aa_specific; + Identifier_t domain; + NULL_t vmd; } choice; /* Context for parsing across buffer boundaries */ @@ -61,7 +61,7 @@ extern asn_TYPE_member_t asn_MBR_DeleteEventAction_Request_1[4]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DeleteEventAction_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.c index 7602989a..cb348901 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,7 +33,7 @@ PY_IMPL_ENCODE_JER(DeleteEventAction_Request_specific_ANON_2); PY_IMPL_GENERIC_IS_VALID(DeleteEventAction_Request_specific_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(DeleteEventAction_Request, specific, &src->choice.specific, DeleteEventAction_Request_specific_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(DeleteEventAction_Request, specific, &src->choice.specific, DeleteEventAction_Request_specific_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(DeleteEventAction_Request, DeleteEventAction_Request, specific, specific, asn_DEF_DeleteEventAction_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(DeleteEventAction_Request, DeleteEventAction_Request, specific, specific, *asn_DEF_DeleteEventAction_Request.elements[0].type); PY_IMPL_CHOICE_GETATTR(DeleteEventAction_Request, DeleteEventAction_Request, specific, specific); PY_IMPL_SEQ_OF_LEN(DeleteEventAction_Request_specific_ANON_2); PY_IMPL_SEQ_OF_GETITEM(DeleteEventAction_Request_specific_ANON_2); diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.h index 94f46011..64fec098 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.c b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.c index 72846ab1..cb956b7e 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.h b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.h index 5c092c00..57e99070 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* DeleteEventAction-Response */ -typedef Unsigned32_t DeleteEventAction_Response_t; +typedef Unsigned32_t DeleteEventAction_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteEventAction_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.c index a47983ee..3c21c32d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.h index ce527e22..a126a28b 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventAction-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.c b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.c index 0045b098..c2e78442 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_specific_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_specific __attribute__((weak, alias("asn_DEF_specific_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_specific_2; +static asn_TYPE_descriptor_t asn_DEF_specific; +__attribute__((constructor)) static void asn_DEF_specific_2_alias_init(void) { + asn_DEF_specific = asn_DEF_specific_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DeleteEventCondition_Request__specific_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_specific_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_specific_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_specific_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_specific_2, + asn_MBR_DeleteEventCondition_Request__specific_2, 1, /* Single element */ &asn_SPC_specific_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.h b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.h index 800c44e9..4a74fb8a 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -42,9 +42,9 @@ typedef struct DeleteEventCondition_Request { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } specific; - NULL_t aa_specific; - Identifier_t domain; - NULL_t vmd; + NULL_t aa_specific; + Identifier_t domain; + NULL_t vmd; } choice; /* Context for parsing across buffer boundaries */ @@ -61,7 +61,7 @@ extern asn_TYPE_member_t asn_MBR_DeleteEventCondition_Request_1[4]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DeleteEventCondition_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.c index 56b6f5eb..d77dc10c 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,7 +33,7 @@ PY_IMPL_ENCODE_JER(DeleteEventCondition_Request_specific_ANON_2); PY_IMPL_GENERIC_IS_VALID(DeleteEventCondition_Request_specific_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(DeleteEventCondition_Request, specific, &src->choice.specific, DeleteEventCondition_Request_specific_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(DeleteEventCondition_Request, specific, &src->choice.specific, DeleteEventCondition_Request_specific_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(DeleteEventCondition_Request, DeleteEventCondition_Request, specific, specific, asn_DEF_DeleteEventCondition_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(DeleteEventCondition_Request, DeleteEventCondition_Request, specific, specific, *asn_DEF_DeleteEventCondition_Request.elements[0].type); PY_IMPL_CHOICE_GETATTR(DeleteEventCondition_Request, DeleteEventCondition_Request, specific, specific); PY_IMPL_SEQ_OF_LEN(DeleteEventCondition_Request_specific_ANON_2); PY_IMPL_SEQ_OF_GETITEM(DeleteEventCondition_Request_specific_ANON_2); diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.h index 35e637d5..eda11ded 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.c b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.c index bbef479b..d43f4769 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.h b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.h index 3aa2a94d..3f45e4b2 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* DeleteEventCondition-Response */ -typedef Unsigned32_t DeleteEventCondition_Response_t; +typedef Unsigned32_t DeleteEventCondition_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteEventCondition_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.c index c6a4fb7e..28b46266 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.h index 8f875b5c..38200b1d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventCondition-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.c b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.c index 59fddb62..e1c0b180 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.h b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.h index e1181b58..e5e5527e 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* DeleteEventConditionList-Request */ -typedef ObjectName_t DeleteEventConditionList_Request_t; +typedef ObjectName_t DeleteEventConditionList_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteEventConditionList_Request; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.c index 4a0d8a94..ccbf0ae6 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.h index a023c72b..7e8433f1 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.c b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.c index 6997b081..dcbc868c 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.h b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.h index f374e092..db417535 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteEventConditionList-Response */ -typedef NULL_t DeleteEventConditionList_Response_t; +typedef NULL_t DeleteEventConditionList_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteEventConditionList_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.c index a933b8df..bc667a0c 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.h index 8546735f..cfe20eb8 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventConditionList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.c b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.c index 2b4443db..98768fe1 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_specific_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_specific __attribute__((weak, alias("asn_DEF_specific_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_specific_2; +static asn_TYPE_descriptor_t asn_DEF_specific; +__attribute__((constructor)) static void asn_DEF_specific_2_alias_init(void) { + asn_DEF_specific = asn_DEF_specific_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_DeleteEventEnrollment_Request__specific_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_specific_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_specific_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_specific_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_specific_2, + asn_MBR_DeleteEventEnrollment_Request__specific_2, 1, /* Single element */ &asn_SPC_specific_specs_2 /* Additional specs */ }; @@ -84,7 +95,7 @@ asn_TYPE_member_t asn_MBR_DeleteEventEnrollment_Request_1[] = { 0, 0, /* No default value */ "specific" }, - { ATF_NOFLAGS, 0, offsetof(struct DeleteEventEnrollment_Request, choice.ec), + { ATF_POINTER, 0, offsetof(struct DeleteEventEnrollment_Request, choice.ec), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -104,7 +115,7 @@ asn_TYPE_member_t asn_MBR_DeleteEventEnrollment_Request_1[] = { 0, 0, /* No default value */ "ec" }, - { ATF_NOFLAGS, 0, offsetof(struct DeleteEventEnrollment_Request, choice.ea), + { ATF_POINTER, 0, offsetof(struct DeleteEventEnrollment_Request, choice.ea), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.h b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.h index 9c18c7b7..70221e9c 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -40,8 +39,8 @@ typedef struct DeleteEventEnrollment_Request { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } specific; - ObjectName_t ec; - ObjectName_t ea; + struct ObjectName *ec; + struct ObjectName *ea; } choice; /* Context for parsing across buffer boundaries */ @@ -58,7 +57,7 @@ extern asn_TYPE_member_t asn_MBR_DeleteEventEnrollment_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DeleteEventEnrollment_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.c index 82cec559..d00908cd 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,18 +33,18 @@ PY_IMPL_ENCODE_JER(DeleteEventEnrollment_Request_specific_ANON_2); PY_IMPL_GENERIC_IS_VALID(DeleteEventEnrollment_Request_specific_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(DeleteEventEnrollment_Request, specific, &src->choice.specific, DeleteEventEnrollment_Request_specific_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(DeleteEventEnrollment_Request, specific, &src->choice.specific, DeleteEventEnrollment_Request_specific_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, specific, specific, asn_DEF_DeleteEventEnrollment_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, specific, specific, *asn_DEF_DeleteEventEnrollment_Request.elements[0].type); PY_IMPL_CHOICE_GETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, specific, specific); PY_IMPL_SEQ_OF_LEN(DeleteEventEnrollment_Request_specific_ANON_2); PY_IMPL_SEQ_OF_GETITEM(DeleteEventEnrollment_Request_specific_ANON_2); PY_IMPL_SEQ_OF_CLEAR(DeleteEventEnrollment_Request_specific_ANON_2); PY_IMPL_SEQ_OF_EXTEND(DeleteEventEnrollment_Request_specific_ANON_2); -PY_IMPL_CHOICE_ATTR_FROMPY(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ec, ec,PyAsnObjectName_FromPython(value, &dst->choice.ec)); -PY_IMPL_CHOICE_ATTR_TOPY(DeleteEventEnrollment_Request, ec, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.ec)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ec, ec, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.ec)); +PY_IMPL_CHOICE_ATTR_TOPY(DeleteEventEnrollment_Request, ec, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.ec)); PY_IMPL_CHOICE_GETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ec, ec); PY_IMPL_CHOICE_SETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ec, ec); -PY_IMPL_CHOICE_ATTR_FROMPY(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ea, ea,PyAsnObjectName_FromPython(value, &dst->choice.ea)); -PY_IMPL_CHOICE_ATTR_TOPY(DeleteEventEnrollment_Request, ea, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.ea)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ea, ea, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.ea)); +PY_IMPL_CHOICE_ATTR_TOPY(DeleteEventEnrollment_Request, ea, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.ea)); PY_IMPL_CHOICE_GETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ea, ea); PY_IMPL_CHOICE_SETATTR(DeleteEventEnrollment_Request, DeleteEventEnrollment_Request, ea, ea); PY_IMPL_GENERIC_DEALLOC(DeleteEventEnrollment_Request); diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.h index 2d384d56..25ab1ab8 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,10 @@ #include #include #include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.c b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.c index d75ab9a2..11b8d2c9 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.h b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.h index 91ea9318..0e19bcb0 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* DeleteEventEnrollment-Response */ -typedef Unsigned32_t DeleteEventEnrollment_Response_t; +typedef Unsigned32_t DeleteEventEnrollment_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteEventEnrollment_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.c index e579030a..facdb338 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.h index bc955618..80f6f939 100644 --- a/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteEventEnrollment-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Request.c b/src/icspacket/proto/mms/_mms/DeleteJournal-Request.c index 84100e8c..3d8f0fd8 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_DeleteJournal_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DeleteJournal_Request, journalName), + { ATF_POINTER, 0, offsetof(struct DeleteJournal_Request, journalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Request.h b/src/icspacket/proto/mms/_mms/DeleteJournal-Request.h index c351507d..b91ee46d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,16 +10,18 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* DeleteJournal-Request */ typedef struct DeleteJournal_Request { - ObjectName_t journalName; + struct ObjectName *journalName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -34,5 +36,8 @@ extern asn_TYPE_member_t asn_MBR_DeleteJournal_Request_1[1]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _DeleteJournal_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.c index 0a6513d0..cf355274 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DeleteJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DeleteJournal_Request, journalName, ObjectName); -PY_IMPL_SEQ_GETATTR(DeleteJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DeleteJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DeleteJournal_Request, journalName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DeleteJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DeleteJournal_Request, journalName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DeleteJournal_Request, journalName); PY_IMPL_SEQ_SETATTR(DeleteJournal_Request, journalName); PY_IMPL_GENERIC_DEALLOC(DeleteJournal_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(DeleteJournal_Request); diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.h index 6db0ab10..4c3df6c7 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Response.c b/src/icspacket/proto/mms/_mms/DeleteJournal-Response.c index e9c6fe89..426bb73b 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Response.h b/src/icspacket/proto/mms/_mms/DeleteJournal-Response.h index 5da0ea92..84be30fc 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteJournal-Response */ -typedef NULL_t DeleteJournal_Response_t; +typedef NULL_t DeleteJournal_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteJournal_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.c index c53fe0f6..a8ede4e4 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.h index 3d4a6417..b8b31986 100644 --- a/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteJournal-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.c b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.c index 5da53467..ad4c9a1f 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.h b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.h index 469d075b..9888d37e 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* DeleteNamedType-Error */ -typedef Unsigned32_t DeleteNamedType_Error_t; +typedef Unsigned32_t DeleteNamedType_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteNamedType_Error; diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.c b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.c index 9af292ce..ba746d60 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.h b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.h index 9d8be293..df61b779 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.c b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.c index 340987b1..64ed17a6 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfTypeName __attribute__((weak, alias("asn_DEF_listOfTypeName_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfTypeName_7; +static asn_TYPE_descriptor_t asn_DEF_listOfTypeName; +__attribute__((constructor)) static void asn_DEF_listOfTypeName_7_alias_init(void) { + asn_DEF_listOfTypeName = asn_DEF_listOfTypeName_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_scopeOfDelete_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -51,7 +62,7 @@ static int asn_DFL_2_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_listOfTypeName_7[] = { +static asn_TYPE_member_t asn_MBR_DeleteNamedType_Request__listOfTypeName_7[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -70,7 +81,7 @@ static asn_TYPE_member_t asn_MBR_listOfTypeName_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfTypeName_tags_7[] = { @@ -105,7 +116,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfTypeName_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfTypeName_7, + asn_MBR_DeleteNamedType_Request__listOfTypeName_7, 1, /* Single element */ &asn_SPC_listOfTypeName_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.h b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.h index e8f8f9fc..0263c1dd 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -33,14 +33,14 @@ struct ObjectName; /* DeleteNamedType-Request */ typedef struct DeleteNamedType_Request { - long scopeOfDelete; /* DEFAULT 0 */ + long scopeOfDelete; /* DEFAULT 0 */ struct DeleteNamedType_Request__listOfTypeName { A_SEQUENCE_OF(struct ObjectName) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfTypeName; - Identifier_t *domainName; /* OPTIONAL */ + Identifier_t *domainName; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -56,7 +56,7 @@ extern asn_TYPE_member_t asn_MBR_DeleteNamedType_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DeleteNamedType_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.c index 008679f2..9698d476 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.h index 86878828..e1e15766 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.c b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.c index 15cd87d9..67f38760 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.h b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.h index 2ff7a27e..300ba714 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include #ifdef __cplusplus @@ -19,8 +19,8 @@ extern "C" { /* DeleteNamedType-Response */ typedef struct DeleteNamedType_Response { - Unsigned32_t numberMatched; - Unsigned32_t numberDeleted; + Unsigned32_t numberMatched; + Unsigned32_t numberDeleted; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.c index 20616afe..b55a383d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.h index 88184c0b..c1c7d4ba 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedType-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.c b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.c index 199b8100..37f6fe32 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.h b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.h index 5dadd75a..e5db7230 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* DeleteNamedVariableList-Error */ -typedef Unsigned32_t DeleteNamedVariableList_Error_t; +typedef Unsigned32_t DeleteNamedVariableList_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteNamedVariableList_Error; diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.c b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.c index 3ab49ba7..189355ce 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.h b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.h index 917f8305..857c21b3 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.c b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.c index 37a59f2b..3b0ea0bb 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfVariableListName __attribute__((weak, alias("asn_DEF_listOfVariableListName_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfVariableListName_7; +static asn_TYPE_descriptor_t asn_DEF_listOfVariableListName; +__attribute__((constructor)) static void asn_DEF_listOfVariableListName_7_alias_init(void) { + asn_DEF_listOfVariableListName = asn_DEF_listOfVariableListName_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_scopeOfDelete_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -51,7 +62,7 @@ static int asn_DFL_2_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_listOfVariableListName_7[] = { +static asn_TYPE_member_t asn_MBR_DeleteNamedVariableList_Request__listOfVariableListName_7[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -70,7 +81,7 @@ static asn_TYPE_member_t asn_MBR_listOfVariableListName_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfVariableListName_tags_7[] = { @@ -105,7 +116,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfVariableListName_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfVariableListName_7, + asn_MBR_DeleteNamedVariableList_Request__listOfVariableListName_7, 1, /* Single element */ &asn_SPC_listOfVariableListName_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.h b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.h index 3210b04a..7a30411f 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -33,14 +33,14 @@ struct ObjectName; /* DeleteNamedVariableList-Request */ typedef struct DeleteNamedVariableList_Request { - long scopeOfDelete; /* DEFAULT 0 */ + long scopeOfDelete; /* DEFAULT 0 */ struct DeleteNamedVariableList_Request__listOfVariableListName { A_SEQUENCE_OF(struct ObjectName) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfVariableListName; - Identifier_t *domainName; /* OPTIONAL */ + Identifier_t *domainName; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -56,7 +56,7 @@ extern asn_TYPE_member_t asn_MBR_DeleteNamedVariableList_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DeleteNamedVariableList_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.c index 7e5af488..f4e35853 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.h index 28e3ed32..aaa237e2 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.c b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.c index a1822c7b..82a039be 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.h b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.h index 0942fc10..58e2c26c 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include #ifdef __cplusplus @@ -19,8 +19,8 @@ extern "C" { /* DeleteNamedVariableList-Response */ typedef struct DeleteNamedVariableList_Response { - Unsigned32_t numberMatched; - Unsigned32_t numberDeleted; + Unsigned32_t numberMatched; + Unsigned32_t numberDeleted; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.c index 452eb34e..cf2ffa5d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.h index 08f505a4..9b824b36 100644 --- a/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteNamedVariableList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.c b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.c index 8a2ee5d0..a271ca4a 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.h b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.h index ad6b6b3e..a73457db 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* DeleteProgramInvocation-Request */ -typedef Identifier_t DeleteProgramInvocation_Request_t; +typedef Identifier_t DeleteProgramInvocation_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteProgramInvocation_Request; diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.c index 3a53d030..5883c7c6 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.h index 48da1712..ed59712e 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.c b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.c index c06297a6..27bbf3b9 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.h b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.h index 5235aa52..40bbd289 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteProgramInvocation-Response */ -typedef NULL_t DeleteProgramInvocation_Response_t; +typedef NULL_t DeleteProgramInvocation_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteProgramInvocation_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.c index 21303cfa..5f1dae93 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.h index c43002a7..98bf75d2 100644 --- a/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteProgramInvocation-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.c b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.c index e6203feb..1d2fc5bd 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.h b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.h index 216e7e03..21ef776e 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* DeleteSemaphore-Request */ -typedef ObjectName_t DeleteSemaphore_Request_t; +typedef ObjectName_t DeleteSemaphore_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteSemaphore_Request; diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.c index 217e3dfa..fa7375b3 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.h index e7f7fe41..1aab28f6 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.c b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.c index f4fc5778..751e17aa 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.h b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.h index ad44f8d7..3e9f9aac 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteSemaphore-Response */ -typedef NULL_t DeleteSemaphore_Response_t; +typedef NULL_t DeleteSemaphore_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteSemaphore_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.c index fa73f650..7cf335c2 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.h index 973b5447..a6a2ad8c 100644 --- a/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteSemaphore-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.c b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.c index 6957a663..9d49d5de 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.c +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.h b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.h index 4672d8f7..e06f7ff9 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.h +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -28,8 +28,8 @@ typedef enum DeleteUnitControl_Error_PR { typedef struct DeleteUnitControl_Error { DeleteUnitControl_Error_PR present; union DeleteUnitControl_Error_u { - Identifier_t domain; - Identifier_t programInvocation; + Identifier_t domain; + Identifier_t programInvocation; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.c b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.c index 3a211ca1..2b627f8b 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.h b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.h index 4f2c5b89..dc7543a4 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.c b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.c index a2fa4437..c4fb03e9 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.h b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.h index 26d68c17..92c99066 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* DeleteUnitControl-Request */ -typedef Identifier_t DeleteUnitControl_Request_t; +typedef Identifier_t DeleteUnitControl_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteUnitControl_Request; diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.c index 7db198d6..1fd49437 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.h index 21506315..10f18cae 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.c b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.c index a459b947..e3da4ab2 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.h b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.h index b1a54637..a761f253 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DeleteUnitControl-Response */ -typedef NULL_t DeleteUnitControl_Response_t; +typedef NULL_t DeleteUnitControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteUnitControl_Response; diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.c index a3a1217b..d90421ea 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.h index 4bb9a2d5..e5573d27 100644 --- a/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteUnitControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.c b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.c index 1b979f1c..819ace16 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.c +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.h b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.h index 3c121da1..baf798ca 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.h +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* DeleteVariableAccess-Error */ -typedef Unsigned32_t DeleteVariableAccess_Error_t; +typedef Unsigned32_t DeleteVariableAccess_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DeleteVariableAccess_Error; diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.c b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.c index 024523d8..793e1f76 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.h b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.h index 27bba477..4459b2f5 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.c b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.c index 2dfff037..cd8c6118 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.c +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfName __attribute__((weak, alias("asn_DEF_listOfName_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfName_7; +static asn_TYPE_descriptor_t asn_DEF_listOfName; +__attribute__((constructor)) static void asn_DEF_listOfName_7_alias_init(void) { + asn_DEF_listOfName = asn_DEF_listOfName_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_scopeOfDelete_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -51,7 +62,7 @@ static int asn_DFL_2_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_listOfName_7[] = { +static asn_TYPE_member_t asn_MBR_DeleteVariableAccess_Request__listOfName_7[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -70,7 +81,7 @@ static asn_TYPE_member_t asn_MBR_listOfName_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfName_tags_7[] = { @@ -105,7 +116,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfName_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfName_7, + asn_MBR_DeleteVariableAccess_Request__listOfName_7, 1, /* Single element */ &asn_SPC_listOfName_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.h b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.h index 72a2fa41..b762c663 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.h +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -33,14 +33,14 @@ struct ObjectName; /* DeleteVariableAccess-Request */ typedef struct DeleteVariableAccess_Request { - long scopeOfDelete; /* DEFAULT 0 */ + long scopeOfDelete; /* DEFAULT 0 */ struct DeleteVariableAccess_Request__listOfName { A_SEQUENCE_OF(struct ObjectName) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfName; - Identifier_t *domainName; /* OPTIONAL */ + Identifier_t *domainName; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -56,7 +56,7 @@ extern asn_TYPE_member_t asn_MBR_DeleteVariableAccess_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _DeleteVariableAccess_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.c b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.c index 69fd5180..6f4b50ea 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.h b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.h index 8e142fb6..7b429195 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.c b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.c index 9c9a42b3..96d47e72 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.c +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.h b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.h index 1dd2adb2..8ae306e5 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.h +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include #ifdef __cplusplus @@ -19,8 +19,8 @@ extern "C" { /* DeleteVariableAccess-Response */ typedef struct DeleteVariableAccess_Response { - Unsigned32_t numberMatched; - Unsigned32_t numberDeleted; + Unsigned32_t numberMatched; + Unsigned32_t numberDeleted; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.c b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.c index e8e4fd28..6af1e96d 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.h b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.h index ecee47ce..ac9bce5e 100644 --- a/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DeleteVariableAccess-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/DirectoryEntry.c b/src/icspacket/proto/mms/_mms/DirectoryEntry.c index b8abc072..48521344 100644 --- a/src/icspacket/proto/mms/_mms/DirectoryEntry.c +++ b/src/icspacket/proto/mms/_mms/DirectoryEntry.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_DirectoryEntry_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DirectoryEntry, fileName), + { ATF_POINTER, 0, offsetof(struct DirectoryEntry, fileName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_DirectoryEntry_1[] = { 0, 0, /* No default value */ "fileName" }, - { ATF_NOFLAGS, 0, offsetof(struct DirectoryEntry, fileAttributes), + { ATF_POINTER, 0, offsetof(struct DirectoryEntry, fileAttributes), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileAttributes, diff --git a/src/icspacket/proto/mms/_mms/DirectoryEntry.h b/src/icspacket/proto/mms/_mms/DirectoryEntry.h index e095bcdc..e2ad1446 100644 --- a/src/icspacket/proto/mms/_mms/DirectoryEntry.h +++ b/src/icspacket/proto/mms/_mms/DirectoryEntry.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct FileName; +struct FileAttributes; + /* DirectoryEntry */ typedef struct DirectoryEntry { - FileName_t fileName; - FileAttributes_t fileAttributes; + struct FileName *fileName; + struct FileAttributes *fileAttributes; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,9 @@ extern asn_TYPE_member_t asn_MBR_DirectoryEntry_1[2]; } #endif +/* Referred external types */ +#include "FileName.h" +#include "FileAttributes.h" + #endif /* _DirectoryEntry_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.c b/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.c index 42e5bb3e..2bb03953 100644 --- a/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.c +++ b/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DirectoryEntry, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DirectoryEntry, fileName, FileName); -PY_IMPL_SEQ_GETATTR(DirectoryEntry, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DirectoryEntry, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DirectoryEntry, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DirectoryEntry, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DirectoryEntry, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DirectoryEntry, fileName); PY_IMPL_SEQ_SETATTR(DirectoryEntry, fileName); -PY_IMPL_SEQ_ATTR_FROMPY(DirectoryEntry, fileAttributes, PyAsnFileAttributes_FromPython(value, (FileAttributes_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DirectoryEntry, fileAttributes, FileAttributes); -PY_IMPL_SEQ_GETATTR(DirectoryEntry, fileAttributes); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DirectoryEntry, fileAttributes); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DirectoryEntry, fileAttributes, FileAttributes_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DirectoryEntry, fileAttributes, PyAsnFileAttributes_FromPython(value, (FileAttributes_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DirectoryEntry, fileAttributes, FileAttributes); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DirectoryEntry, fileAttributes); PY_IMPL_SEQ_SETATTR(DirectoryEntry, fileAttributes); PY_IMPL_GENERIC_DEALLOC(DirectoryEntry); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(DirectoryEntry); diff --git a/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.h b/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.h index bf868777..1d8cdaf4 100644 --- a/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.h +++ b/src/icspacket/proto/mms/_mms/DirectoryEntry_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DomainName.c b/src/icspacket/proto/mms/_mms/DomainName.c index cd6506ec..fc990d9c 100644 --- a/src/icspacket/proto/mms/_mms/DomainName.c +++ b/src/icspacket/proto/mms/_mms/DomainName.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/DomainName.h b/src/icspacket/proto/mms/_mms/DomainName.h index e1c78622..1ea2b181 100644 --- a/src/icspacket/proto/mms/_mms/DomainName.h +++ b/src/icspacket/proto/mms/_mms/DomainName.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* DomainName */ -typedef UTF8String_t DomainName_t; +typedef UTF8String_t DomainName_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DomainName; diff --git a/src/icspacket/proto/mms/_mms/DomainName_Py.c b/src/icspacket/proto/mms/_mms/DomainName_Py.c index 8e1b9e41..82cc3f25 100644 --- a/src/icspacket/proto/mms/_mms/DomainName_Py.c +++ b/src/icspacket/proto/mms/_mms/DomainName_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/DomainName_Py.h b/src/icspacket/proto/mms/_mms/DomainName_Py.h index 2911d22d..8a9a4b6a 100644 --- a/src/icspacket/proto/mms/_mms/DomainName_Py.h +++ b/src/icspacket/proto/mms/_mms/DomainName_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/DomainState.c b/src/icspacket/proto/mms/_mms/DomainState.c index 1de21c44..642bc5f2 100644 --- a/src/icspacket/proto/mms/_mms/DomainState.c +++ b/src/icspacket/proto/mms/_mms/DomainState.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DomainState.h b/src/icspacket/proto/mms/_mms/DomainState.h index 53f4d770..6a13d50f 100644 --- a/src/icspacket/proto/mms/_mms/DomainState.h +++ b/src/icspacket/proto/mms/_mms/DomainState.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -36,7 +36,7 @@ typedef enum DomainState { } e_DomainState; /* DomainState */ -typedef long DomainState_t; +typedef long DomainState_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DomainState; diff --git a/src/icspacket/proto/mms/_mms/DomainState_Py.c b/src/icspacket/proto/mms/_mms/DomainState_Py.c index c20ea53d..e86d598e 100644 --- a/src/icspacket/proto/mms/_mms/DomainState_Py.c +++ b/src/icspacket/proto/mms/_mms/DomainState_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DomainState_Py.h b/src/icspacket/proto/mms/_mms/DomainState_Py.h index 6160857c..f59a0b4d 100644 --- a/src/icspacket/proto/mms/_mms/DomainState_Py.h +++ b/src/icspacket/proto/mms/_mms/DomainState_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Request.c b/src/icspacket/proto/mms/_mms/DownloadSegment-Request.c index ed1d3183..563df725 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Request.c +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Request.h b/src/icspacket/proto/mms/_mms/DownloadSegment-Request.h index 992f04bb..41c6d293 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Request.h +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* DownloadSegment-Request */ -typedef Identifier_t DownloadSegment_Request_t; +typedef Identifier_t DownloadSegment_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_DownloadSegment_Request; diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.c b/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.c index 506ad600..4e116d07 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.h b/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.h index 1694c589..60e20896 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Response.c b/src/icspacket/proto/mms/_mms/DownloadSegment-Response.c index 132eed6f..65a4eace 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Response.c +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -27,7 +27,7 @@ static int asn_DFL_3_set_1(void **sptr) { return 0; } asn_TYPE_member_t asn_MBR_DownloadSegment_Response_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DownloadSegment_Response, loadData), + { ATF_POINTER, 0, offsetof(struct DownloadSegment_Response, loadData), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_LoadData, diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Response.h b/src/icspacket/proto/mms/_mms/DownloadSegment-Response.h index 4fd11b37..f8217cd2 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Response.h +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include @@ -18,10 +17,13 @@ extern "C" { #endif +/* Forward declarations */ +struct LoadData; + /* DownloadSegment-Response */ typedef struct DownloadSegment_Response { - LoadData_t loadData; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + struct LoadData *loadData; + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_DownloadSegment_Response_1[2]; } #endif +/* Referred external types */ +#include "LoadData.h" + #endif /* _DownloadSegment_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.c b/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.c index 7e896bac..ca4bb026 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(DownloadSegment_Response, loadData, PyAsnLoadData_FromPython(value, (LoadData_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(DownloadSegment_Response, loadData, LoadData); -PY_IMPL_SEQ_GETATTR(DownloadSegment_Response, loadData); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(DownloadSegment_Response, loadData); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(DownloadSegment_Response, loadData, LoadData_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(DownloadSegment_Response, loadData, PyAsnLoadData_FromPython(value, (LoadData_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(DownloadSegment_Response, loadData, LoadData); +PY_IMPL_SEQ_AUTOVIV_GETATTR(DownloadSegment_Response, loadData); PY_IMPL_SEQ_SETATTR(DownloadSegment_Response, loadData); PY_IMPL_SEQ_ATTR_GENERIC_FREE(DownloadSegment_Response, moreFollows); PY_IMPL_SEQ_ATTR_GENERIC_NEW(DownloadSegment_Response, moreFollows, BOOLEAN_t); diff --git a/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.h b/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.h index 5d834939..d947055e 100644 --- a/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/DownloadSegment-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EC-Class.c b/src/icspacket/proto/mms/_mms/EC-Class.c index 75fcb165..d73fc2b5 100644 --- a/src/icspacket/proto/mms/_mms/EC-Class.c +++ b/src/icspacket/proto/mms/_mms/EC-Class.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EC-Class.h b/src/icspacket/proto/mms/_mms/EC-Class.h index 2f86a665..0bd32dc1 100644 --- a/src/icspacket/proto/mms/_mms/EC-Class.h +++ b/src/icspacket/proto/mms/_mms/EC-Class.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -23,7 +23,7 @@ typedef enum EC_Class { } e_EC_Class; /* EC-Class */ -typedef long EC_Class_t; +typedef long EC_Class_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_EC_Class; diff --git a/src/icspacket/proto/mms/_mms/EC-Class_Py.c b/src/icspacket/proto/mms/_mms/EC-Class_Py.c index 39eb4a36..84e65e58 100644 --- a/src/icspacket/proto/mms/_mms/EC-Class_Py.c +++ b/src/icspacket/proto/mms/_mms/EC-Class_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EC-Class_Py.h b/src/icspacket/proto/mms/_mms/EC-Class_Py.h index 10c2f0a3..3ed08598 100644 --- a/src/icspacket/proto/mms/_mms/EC-Class_Py.h +++ b/src/icspacket/proto/mms/_mms/EC-Class_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EC-State.c b/src/icspacket/proto/mms/_mms/EC-State.c index cfadb4aa..33f4cafc 100644 --- a/src/icspacket/proto/mms/_mms/EC-State.c +++ b/src/icspacket/proto/mms/_mms/EC-State.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EC-State.h b/src/icspacket/proto/mms/_mms/EC-State.h index 0a898177..c8d34136 100644 --- a/src/icspacket/proto/mms/_mms/EC-State.h +++ b/src/icspacket/proto/mms/_mms/EC-State.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -24,7 +24,7 @@ typedef enum EC_State { } e_EC_State; /* EC-State */ -typedef long EC_State_t; +typedef long EC_State_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_EC_State; diff --git a/src/icspacket/proto/mms/_mms/EC-State_Py.c b/src/icspacket/proto/mms/_mms/EC-State_Py.c index 8fe99983..89250863 100644 --- a/src/icspacket/proto/mms/_mms/EC-State_Py.c +++ b/src/icspacket/proto/mms/_mms/EC-State_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EC-State_Py.h b/src/icspacket/proto/mms/_mms/EC-State_Py.h index 7717e029..7f0e09b1 100644 --- a/src/icspacket/proto/mms/_mms/EC-State_Py.h +++ b/src/icspacket/proto/mms/_mms/EC-State_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-Class.c b/src/icspacket/proto/mms/_mms/EE-Class.c index 398ce039..9089ece5 100644 --- a/src/icspacket/proto/mms/_mms/EE-Class.c +++ b/src/icspacket/proto/mms/_mms/EE-Class.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-Class.h b/src/icspacket/proto/mms/_mms/EE-Class.h index 663f5eca..1ed1d688 100644 --- a/src/icspacket/proto/mms/_mms/EE-Class.h +++ b/src/icspacket/proto/mms/_mms/EE-Class.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -23,7 +23,7 @@ typedef enum EE_Class { } e_EE_Class; /* EE-Class */ -typedef long EE_Class_t; +typedef long EE_Class_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_EE_Class; diff --git a/src/icspacket/proto/mms/_mms/EE-Class_Py.c b/src/icspacket/proto/mms/_mms/EE-Class_Py.c index 17e480b4..d85ab4b2 100644 --- a/src/icspacket/proto/mms/_mms/EE-Class_Py.c +++ b/src/icspacket/proto/mms/_mms/EE-Class_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-Class_Py.h b/src/icspacket/proto/mms/_mms/EE-Class_Py.h index 39b870e4..7bc98290 100644 --- a/src/icspacket/proto/mms/_mms/EE-Class_Py.h +++ b/src/icspacket/proto/mms/_mms/EE-Class_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-Duration.c b/src/icspacket/proto/mms/_mms/EE-Duration.c index f0b39c27..052ec7c0 100644 --- a/src/icspacket/proto/mms/_mms/EE-Duration.c +++ b/src/icspacket/proto/mms/_mms/EE-Duration.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-Duration.h b/src/icspacket/proto/mms/_mms/EE-Duration.h index 4fde5538..d5175295 100644 --- a/src/icspacket/proto/mms/_mms/EE-Duration.h +++ b/src/icspacket/proto/mms/_mms/EE-Duration.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -23,7 +23,7 @@ typedef enum EE_Duration { } e_EE_Duration; /* EE-Duration */ -typedef long EE_Duration_t; +typedef long EE_Duration_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_EE_Duration; diff --git a/src/icspacket/proto/mms/_mms/EE-Duration_Py.c b/src/icspacket/proto/mms/_mms/EE-Duration_Py.c index e7f1f77a..6248951c 100644 --- a/src/icspacket/proto/mms/_mms/EE-Duration_Py.c +++ b/src/icspacket/proto/mms/_mms/EE-Duration_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-Duration_Py.h b/src/icspacket/proto/mms/_mms/EE-Duration_Py.h index 1a218abc..0b38fb97 100644 --- a/src/icspacket/proto/mms/_mms/EE-Duration_Py.h +++ b/src/icspacket/proto/mms/_mms/EE-Duration_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-State.c b/src/icspacket/proto/mms/_mms/EE-State.c index 2123827c..293d686e 100644 --- a/src/icspacket/proto/mms/_mms/EE-State.c +++ b/src/icspacket/proto/mms/_mms/EE-State.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-State.h b/src/icspacket/proto/mms/_mms/EE-State.h index e311f456..a0fe6695 100644 --- a/src/icspacket/proto/mms/_mms/EE-State.h +++ b/src/icspacket/proto/mms/_mms/EE-State.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef enum EE_State { } e_EE_State; /* EE-State */ -typedef long EE_State_t; +typedef long EE_State_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_EE_State; diff --git a/src/icspacket/proto/mms/_mms/EE-State_Py.c b/src/icspacket/proto/mms/_mms/EE-State_Py.c index 03203de0..54b33347 100644 --- a/src/icspacket/proto/mms/_mms/EE-State_Py.c +++ b/src/icspacket/proto/mms/_mms/EE-State_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EE-State_Py.h b/src/icspacket/proto/mms/_mms/EE-State_Py.h index 3daf96c6..ebf1c87c 100644 --- a/src/icspacket/proto/mms/_mms/EE-State_Py.h +++ b/src/icspacket/proto/mms/_mms/EE-State_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EEAttributes.c b/src/icspacket/proto/mms/_mms/EEAttributes.c index 82053fa3..5a89a09a 100644 --- a/src/icspacket/proto/mms/_mms/EEAttributes.c +++ b/src/icspacket/proto/mms/_mms/EEAttributes.c @@ -1,10 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_eventConditionName_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_eventConditionName __attribute__((weak, alias("asn_DEF_eventConditionName_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_eventConditionName_3; +static asn_TYPE_descriptor_t asn_DEF_eventConditionName; +__attribute__((constructor)) static void asn_DEF_eventConditionName_3_alias_init(void) { + asn_DEF_eventConditionName = asn_DEF_eventConditionName_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_eventActionName __attribute__((weak, alias("asn_DEF_eventActionName_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_eventActionName_6; +static asn_TYPE_descriptor_t asn_DEF_eventActionName; +__attribute__((constructor)) static void asn_DEF_eventActionName_6_alias_init(void) { + asn_DEF_eventActionName = asn_DEF_eventActionName_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_displayEnhancement __attribute__((weak, alias("asn_DEF_displayEnhancement_15"))); +#else +static asn_TYPE_descriptor_t asn_DEF_displayEnhancement_15; +static asn_TYPE_descriptor_t asn_DEF_displayEnhancement; +__attribute__((constructor)) static void asn_DEF_displayEnhancement_15_alias_init(void) { + asn_DEF_displayEnhancement = asn_DEF_displayEnhancement_15; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_EEAttributes__eventConditionName_3[] = { { ATF_NOFLAGS, 0, offsetof(struct EEAttributes__eventConditionName, choice.eventCondition), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -81,12 +114,12 @@ asn_TYPE_descriptor_t asn_DEF_eventConditionName_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_eventConditionName_3, + asn_MBR_EEAttributes__eventConditionName_3, 2, /* Elements count */ &asn_SPC_eventConditionName_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_eventActionName_6[] = { +static asn_TYPE_member_t asn_MBR_EEAttributes__eventActionName_6[] = { { ATF_NOFLAGS, 0, offsetof(struct EEAttributes__eventActionName, choice.eventAction), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -163,7 +196,7 @@ asn_TYPE_descriptor_t asn_DEF_eventActionName_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_eventActionName_6, + asn_MBR_EEAttributes__eventActionName_6, 2, /* Elements count */ &asn_SPC_eventActionName_specs_6 /* Additional specs */ }; @@ -212,7 +245,7 @@ static int asn_DFL_12_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_displayEnhancement_15[] = { +static asn_TYPE_member_t asn_MBR_EEAttributes__displayEnhancement_15[] = { { ATF_NOFLAGS, 0, offsetof(struct EEAttributes__displayEnhancement, choice.string), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -310,13 +343,13 @@ asn_TYPE_descriptor_t asn_DEF_displayEnhancement_15 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_displayEnhancement_15, + asn_MBR_EEAttributes__displayEnhancement_15, 3, /* Elements count */ &asn_SPC_displayEnhancement_specs_15 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_EEAttributes_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EEAttributes, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct EEAttributes, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/EEAttributes.h b/src/icspacket/proto/mms/_mms/EEAttributes.h index 71604f87..5f77ad58 100644 --- a/src/icspacket/proto/mms/_mms/EEAttributes.h +++ b/src/icspacket/proto/mms/_mms/EEAttributes.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,12 +10,12 @@ #include /* Including external dependencies */ -#include #include -#include -#include -#include -#include +#include "EE-Class.h" +#include "EE-Duration.h" +#include "Unsigned32.h" +#include "Identifier.h" +#include "ObjectName.h" #include #include #include @@ -45,16 +45,17 @@ typedef enum EEAttributes__displayEnhancement_PR { } EEAttributes__displayEnhancement_PR; /* Forward declarations */ +struct ObjectName; struct ApplicationReference; /* EEAttributes */ typedef struct EEAttributes { - ObjectName_t eventEnrollmentName; + struct ObjectName *eventEnrollmentName; struct EEAttributes__eventConditionName { EEAttributes__eventConditionName_PR present; union EEAttributes__eventConditionName_u { - ObjectName_t eventCondition; - NULL_t undefined; + ObjectName_t eventCondition; + NULL_t undefined; } choice; /* Context for parsing across buffer boundaries */ @@ -63,31 +64,31 @@ typedef struct EEAttributes { struct EEAttributes__eventActionName { EEAttributes__eventActionName_PR present; union EEAttributes__eventActionName_u { - ObjectName_t eventAction; - NULL_t undefined; + ObjectName_t eventAction; + NULL_t undefined; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *eventActionName; - struct ApplicationReference *clientApplication; /* OPTIONAL */ - BOOLEAN_t mmsDeletable; /* DEFAULT FALSE */ - EE_Class_t enrollmentClass; - EE_Duration_t duration; /* DEFAULT 0 */ - Unsigned32_t *invokeID; /* OPTIONAL */ - Unsigned32_t *remainingAcceptableDelay; /* OPTIONAL */ + struct ApplicationReference *clientApplication; /* OPTIONAL */ + BOOLEAN_t mmsDeletable; /* DEFAULT FALSE */ + EE_Class_t enrollmentClass; + EE_Duration_t duration; /* DEFAULT 0 */ + Unsigned32_t *invokeID; /* OPTIONAL */ + Unsigned32_t *remainingAcceptableDelay; /* OPTIONAL */ struct EEAttributes__displayEnhancement { EEAttributes__displayEnhancement_PR present; union EEAttributes__displayEnhancement_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } displayEnhancement; - Identifier_t *accessControlList; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -103,7 +104,8 @@ extern asn_TYPE_member_t asn_MBR_EEAttributes_1[11]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "ApplicationReference.h" #endif /* _EEAttributes_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/EEAttributes_Py.c b/src/icspacket/proto/mms/_mms/EEAttributes_Py.c index bd85599c..3e7291a6 100644 --- a/src/icspacket/proto/mms/_mms/EEAttributes_Py.c +++ b/src/icspacket/proto/mms/_mms/EEAttributes_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -125,9 +125,11 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(EEAttributes, displayEnhancement, &src->displayEnha PY_IMPL_SEQ_ANON_ATTR_TOPY(EEAttributes, displayEnhancement, &src->displayEnhancement, EEAttributes_displayEnhancement_ANON_15); PY_IMPL_SEQ_INNER_SETATTR(EEAttributes, displayEnhancement, displayEnhancement, EEAttributes_displayEnhancement_ANON_15); PY_IMPL_SEQ_INNER_GETATTR(EEAttributes, displayEnhancement, &self->ob_value->displayEnhancement, EEAttributes_displayEnhancement_ANON_15); -PY_IMPL_SEQ_ATTR_FROMPY(EEAttributes, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(EEAttributes, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(EEAttributes, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(EEAttributes, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(EEAttributes, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EEAttributes, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EEAttributes, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(EEAttributes, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(EEAttributes, eventEnrollmentName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(EEAttributes, clientApplication); PY_IMPL_SEQ_ATTR_GENERIC_NEW(EEAttributes, clientApplication, ApplicationReference_t); diff --git a/src/icspacket/proto/mms/_mms/EEAttributes_Py.h b/src/icspacket/proto/mms/_mms/EEAttributes_Py.h index 4709e1cc..f65cab01 100644 --- a/src/icspacket/proto/mms/_mms/EEAttributes_Py.h +++ b/src/icspacket/proto/mms/_mms/EEAttributes_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,10 +13,19 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.c b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.c index 1e09ee3b..86dd3d4d 100644 --- a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.c +++ b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.c @@ -1,10 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_syntaxes_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_syntaxes __attribute__((weak, alias("asn_DEF_syntaxes_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_syntaxes_3; +static asn_TYPE_descriptor_t asn_DEF_syntaxes; +__attribute__((constructor)) static void asn_DEF_syntaxes_3_alias_init(void) { + asn_DEF_syntaxes = asn_DEF_syntaxes_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_context_negotiation __attribute__((weak, alias("asn_DEF_context_negotiation_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_context_negotiation_8; +static asn_TYPE_descriptor_t asn_DEF_context_negotiation; +__attribute__((constructor)) static void asn_DEF_context_negotiation_8_alias_init(void) { + asn_DEF_context_negotiation = asn_DEF_context_negotiation_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_identification __attribute__((weak, alias("asn_DEF_identification_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_identification_2; +static asn_TYPE_descriptor_t asn_DEF_identification; +__attribute__((constructor)) static void asn_DEF_identification_2_alias_init(void) { + asn_DEF_identification = asn_DEF_identification_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_EMBEDDED_PDV__identification__syntaxes_3[] = { { ATF_NOFLAGS, 0, offsetof(struct EMBEDDED_PDV__identification__syntaxes, abstract), (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, @@ -85,12 +118,12 @@ asn_TYPE_descriptor_t asn_DEF_syntaxes_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_syntaxes_3, + asn_MBR_EMBEDDED_PDV__identification__syntaxes_3, 2, /* Elements count */ &asn_SPC_syntaxes_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_context_negotiation_8[] = { +static asn_TYPE_member_t asn_MBR_EMBEDDED_PDV__identification__context_negotiation_8[] = { { ATF_NOFLAGS, 0, offsetof(struct EMBEDDED_PDV__identification__context_negotiation, presentation_context_id), (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, @@ -171,12 +204,12 @@ asn_TYPE_descriptor_t asn_DEF_context_negotiation_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_context_negotiation_8, + asn_MBR_EMBEDDED_PDV__identification__context_negotiation_8, 2, /* Elements count */ &asn_SPC_context_negotiation_specs_8 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_identification_2[] = { +static asn_TYPE_member_t asn_MBR_EMBEDDED_PDV__identification_2[] = { { ATF_NOFLAGS, 0, offsetof(struct EMBEDDED_PDV__identification, choice.syntaxes), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, @@ -337,7 +370,7 @@ asn_TYPE_descriptor_t asn_DEF_identification_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_identification_2, + asn_MBR_EMBEDDED_PDV__identification_2, 6, /* Elements count */ &asn_SPC_identification_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.h b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.h index d8b41142..d4cbd29a 100644 --- a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.h +++ b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -38,29 +38,29 @@ typedef struct EMBEDDED_PDV { EMBEDDED_PDV__identification_PR present; union EMBEDDED_PDV__identification_u { struct EMBEDDED_PDV__identification__syntaxes { - OBJECT_IDENTIFIER_t abstract; - OBJECT_IDENTIFIER_t transfer; + OBJECT_IDENTIFIER_t abstract; + OBJECT_IDENTIFIER_t transfer; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } syntaxes; - OBJECT_IDENTIFIER_t syntax; - long presentation_context_id; + OBJECT_IDENTIFIER_t syntax; + long presentation_context_id; struct EMBEDDED_PDV__identification__context_negotiation { - long presentation_context_id; - OBJECT_IDENTIFIER_t transfer_syntax; + long presentation_context_id; + OBJECT_IDENTIFIER_t transfer_syntax; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } context_negotiation; - OBJECT_IDENTIFIER_t transfer_syntax; - NULL_t fixed; + OBJECT_IDENTIFIER_t transfer_syntax; + NULL_t fixed; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } identification; - OCTET_STRING_t data_value; + OCTET_STRING_t data_value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.c b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.c index 7e6fa607..5a241fa0 100644 --- a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.c +++ b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -41,7 +41,7 @@ PY_IMPL_SEQ_FROMPY(EMBEDDED_PDV_syntaxes_ANON_3, asn_DEF_EMBEDDED_PDV.elements[0 PY_IMPL_SEQ_INIT(EMBEDDED_PDV_syntaxes_ANON_3); PY_IMPL_SEQ_ANON_ATTR_FROMPY(EMBEDDED_PDV_identification_ANON_2, syntaxes, &src->choice.syntaxes, EMBEDDED_PDV_syntaxes_ANON_3); PY_IMPL_SEQ_ANON_ATTR_TOPY(EMBEDDED_PDV_identification_ANON_2, syntaxes, &src->choice.syntaxes, EMBEDDED_PDV_syntaxes_ANON_3); -PY_IMPL_CHOICE_GENERIC_SETATTR(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, syntaxes, syntaxes, asn_DEF_EMBEDDED_PDV); +PY_IMPL_CHOICE_GENERIC_SETATTR(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, syntaxes, syntaxes, *asn_DEF_EMBEDDED_PDV.elements[0].type->elements[0].type); PY_IMPL_CHOICE_GETATTR(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, syntaxes, syntaxes); PY_IMPL_SEQ_ATTR_FROMPY(EMBEDDED_PDV_context_negotiation_ANON_8, presentation_context_id, PyCompatLong_FromObject(value, target, 1)); PY_IMPL_SEQ_ATTR_TOPY(EMBEDDED_PDV_context_negotiation_ANON_8, presentation_context_id, PyCompatLong_AsObject(target, 1)); @@ -77,7 +77,7 @@ PY_IMPL_SEQ_FROMPY(EMBEDDED_PDV_context_negotiation_ANON_8, asn_DEF_EMBEDDED_PDV PY_IMPL_SEQ_INIT(EMBEDDED_PDV_context_negotiation_ANON_8); PY_IMPL_SEQ_ANON_ATTR_FROMPY(EMBEDDED_PDV_identification_ANON_2, context_negotiation, &src->choice.context_negotiation, EMBEDDED_PDV_context_negotiation_ANON_8); PY_IMPL_SEQ_ANON_ATTR_TOPY(EMBEDDED_PDV_identification_ANON_2, context_negotiation, &src->choice.context_negotiation, EMBEDDED_PDV_context_negotiation_ANON_8); -PY_IMPL_CHOICE_GENERIC_SETATTR(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, context_negotiation, context_negotiation, asn_DEF_EMBEDDED_PDV); +PY_IMPL_CHOICE_GENERIC_SETATTR(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, context_negotiation, context_negotiation, *asn_DEF_EMBEDDED_PDV.elements[0].type->elements[3].type); PY_IMPL_CHOICE_GETATTR(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, context_negotiation, context_negotiation); PY_IMPL_CHOICE_ATTR_FROMPY(EMBEDDED_PDV_identification_ANON_2, EMBEDDED_PDV__identification, syntax, syntax,PyCompatOID_FromUnicode(value, &dst->choice.syntax)); PY_IMPL_CHOICE_ATTR_TOPY(EMBEDDED_PDV_identification_ANON_2, syntax, PyCompatOID_AsUTF8String(&src->choice.syntax)); diff --git a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.h b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.h index c92ee96f..b933ad03 100644 --- a/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.h +++ b/src/icspacket/proto/mms/_mms/EMBEDDED-PDV_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,16 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/EN-Additional-Detail.c b/src/icspacket/proto/mms/_mms/EN-Additional-Detail.c index 69c0bcf0..67d67cc0 100644 --- a/src/icspacket/proto/mms/_mms/EN-Additional-Detail.c +++ b/src/icspacket/proto/mms/_mms/EN-Additional-Detail.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EN-Additional-Detail.h b/src/icspacket/proto/mms/_mms/EN-Additional-Detail.h index b5a5f06f..c1300bdd 100644 --- a/src/icspacket/proto/mms/_mms/EN-Additional-Detail.h +++ b/src/icspacket/proto/mms/_mms/EN-Additional-Detail.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -31,9 +31,9 @@ typedef enum EN_Additional_Detail_PR { typedef struct EN_Additional_Detail { EN_Additional_Detail_PR present; union EN_Additional_Detail_u { - VisibleString_t string; - long index; - NULL_t noEnhancement; + VisibleString_t string; + long index; + NULL_t noEnhancement; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.c b/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.c index 73219334..465f48ef 100644 --- a/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.c +++ b/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.h b/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.h index 51ffce0a..95df0484 100644 --- a/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.h +++ b/src/icspacket/proto/mms/_mms/EN-Additional-Detail_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EntryContent.c b/src/icspacket/proto/mms/_mms/EntryContent.c index 8ea8e1bc..97a7186b 100644 --- a/src/icspacket/proto/mms/_mms/EntryContent.c +++ b/src/icspacket/proto/mms/_mms/EntryContent.c @@ -1,10 +1,54 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_event_5[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_event __attribute__((weak, alias("asn_DEF_event_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_event_5; +static asn_TYPE_descriptor_t asn_DEF_event; +__attribute__((constructor)) static void asn_DEF_event_5_alias_init(void) { + asn_DEF_event = asn_DEF_event_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfVariables __attribute__((weak, alias("asn_DEF_listOfVariables_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfVariables_8; +static asn_TYPE_descriptor_t asn_DEF_listOfVariables; +__attribute__((constructor)) static void asn_DEF_listOfVariables_8_alias_init(void) { + asn_DEF_listOfVariables = asn_DEF_listOfVariables_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_data __attribute__((weak, alias("asn_DEF_data_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_data_4; +static asn_TYPE_descriptor_t asn_DEF_data; +__attribute__((constructor)) static void asn_DEF_data_4_alias_init(void) { + asn_DEF_data = asn_DEF_data_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_entryForm __attribute__((weak, alias("asn_DEF_entryForm_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_entryForm_3; +static asn_TYPE_descriptor_t asn_DEF_entryForm; +__attribute__((constructor)) static void asn_DEF_entryForm_3_alias_init(void) { + asn_DEF_entryForm = asn_DEF_entryForm_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_EntryContent__entryForm__data__event_5[] = { { ATF_NOFLAGS, 0, offsetof(struct EntryContent__entryForm__data__event, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -85,12 +129,12 @@ asn_TYPE_descriptor_t asn_DEF_event_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_event_5, + asn_MBR_EntryContent__entryForm__data__event_5, 2, /* Elements count */ &asn_SPC_event_specs_5 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfVariables_8[] = { +static asn_TYPE_member_t asn_MBR_EntryContent__entryForm__data__listOfVariables_8[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -109,7 +153,7 @@ static asn_TYPE_member_t asn_MBR_listOfVariables_8[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfVariables_tags_8[] = { @@ -144,12 +188,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfVariables_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfVariables_8, + asn_MBR_EntryContent__entryForm__data__listOfVariables_8, 1, /* Single element */ &asn_SPC_listOfVariables_specs_8 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_data_4[] = { +static asn_TYPE_member_t asn_MBR_EntryContent__entryForm__data_4[] = { { ATF_POINTER, 2, offsetof(struct EntryContent__entryForm__data, event), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, @@ -232,12 +276,12 @@ asn_TYPE_descriptor_t asn_DEF_data_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_data_4, + asn_MBR_EntryContent__entryForm__data_4, 2, /* Elements count */ &asn_SPC_data_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_entryForm_3[] = { +static asn_TYPE_member_t asn_MBR_EntryContent__entryForm_3[] = { { ATF_NOFLAGS, 0, offsetof(struct EntryContent__entryForm, choice.data), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, @@ -314,7 +358,7 @@ asn_TYPE_descriptor_t asn_DEF_entryForm_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_entryForm_3, + asn_MBR_EntryContent__entryForm_3, 2, /* Elements count */ &asn_SPC_entryForm_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/EntryContent.h b/src/icspacket/proto/mms/_mms/EntryContent.h index eda78343..41998afb 100644 --- a/src/icspacket/proto/mms/_mms/EntryContent.h +++ b/src/icspacket/proto/mms/_mms/EntryContent.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,10 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "TimeOfDay.h" +#include "MMSString.h" +#include "ObjectName.h" +#include "EC-State.h" #include #include #include @@ -35,14 +35,14 @@ struct Journal_Variable; /* EntryContent */ typedef struct EntryContent { - TimeOfDay_t occurrenceTime; + TimeOfDay_t occurrenceTime; struct EntryContent__entryForm { EntryContent__entryForm_PR present; union EntryContent__entryForm_u { struct EntryContent__entryForm__data { struct EntryContent__entryForm__data__event { - ObjectName_t eventConditionName; - EC_State_t currentState; + ObjectName_t eventConditionName; + EC_State_t currentState; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -57,7 +57,7 @@ typedef struct EntryContent { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } data; - MMSString_t annotation; + MMSString_t annotation; } choice; /* Context for parsing across buffer boundaries */ @@ -78,7 +78,7 @@ extern asn_TYPE_member_t asn_MBR_EntryContent_1[2]; #endif /* Referred external types */ -#include +#include "Journal-Variable.h" #endif /* _EntryContent_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/EntryContent_Py.c b/src/icspacket/proto/mms/_mms/EntryContent_Py.c index 3675380a..06741c67 100644 --- a/src/icspacket/proto/mms/_mms/EntryContent_Py.c +++ b/src/icspacket/proto/mms/_mms/EntryContent_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -101,7 +101,7 @@ PY_IMPL_SEQ_FROMPY(EntryContent_data_ANON_4, asn_DEF_EntryContent.elements[1].ty PY_IMPL_SEQ_INIT(EntryContent_data_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(EntryContent_entryForm_ANON_3, data, &src->choice.data, EntryContent_data_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(EntryContent_entryForm_ANON_3, data, &src->choice.data, EntryContent_data_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(EntryContent_entryForm_ANON_3, EntryContent__entryForm, data, data, asn_DEF_EntryContent); +PY_IMPL_CHOICE_GENERIC_SETATTR(EntryContent_entryForm_ANON_3, EntryContent__entryForm, data, data, *asn_DEF_EntryContent.elements[1].type->elements[0].type); PY_IMPL_CHOICE_GETATTR(EntryContent_entryForm_ANON_3, EntryContent__entryForm, data, data); PY_IMPL_CHOICE_ATTR_FROMPY(EntryContent_entryForm_ANON_3, EntryContent__entryForm, annotation, annotation,PyAsnMMSString_FromPython(value, &dst->choice.annotation)); PY_IMPL_CHOICE_ATTR_TOPY(EntryContent_entryForm_ANON_3, annotation, PyCompatAsnType_FromParent(&PyAsnMMSString_Type, parent, (void *)&src->choice.annotation)); diff --git a/src/icspacket/proto/mms/_mms/EntryContent_Py.h b/src/icspacket/proto/mms/_mms/EntryContent_Py.h index 57be18a1..034ba220 100644 --- a/src/icspacket/proto/mms/_mms/EntryContent_Py.h +++ b/src/icspacket/proto/mms/_mms/EntryContent_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,8 +14,16 @@ #include #include #include +#include +#include #include +#include +#include +#include +#include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/EventConditionStatus.c b/src/icspacket/proto/mms/_mms/EventConditionStatus.c index bdbe14a5..cd9180fb 100644 --- a/src/icspacket/proto/mms/_mms/EventConditionStatus.c +++ b/src/icspacket/proto/mms/_mms/EventConditionStatus.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_EventConditionStatus_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EventConditionStatus, eventConditionName), + { ATF_POINTER, 0, offsetof(struct EventConditionStatus, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/EventConditionStatus.h b/src/icspacket/proto/mms/_mms/EventConditionStatus.h index 76d39b6c..23b65400 100644 --- a/src/icspacket/proto/mms/_mms/EventConditionStatus.h +++ b/src/icspacket/proto/mms/_mms/EventConditionStatus.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,8 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "EC-State.h" +#include "Unsigned32.h" #include #include @@ -21,16 +20,17 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct EventTime; /* EventConditionStatus */ typedef struct EventConditionStatus { - ObjectName_t eventConditionName; - EC_State_t currentState; - Unsigned32_t numberOfEventEnrollments; - BOOLEAN_t *enabled; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ + struct ObjectName *eventConditionName; + EC_State_t currentState; + Unsigned32_t numberOfEventEnrollments; + BOOLEAN_t *enabled; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,8 @@ extern asn_TYPE_member_t asn_MBR_EventConditionStatus_1[6]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "EventTime.h" #endif /* _EventConditionStatus_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.c b/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.c index 523ba253..ec59f0e4 100644 --- a/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.c +++ b/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(EventConditionStatus, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(EventConditionStatus, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(EventConditionStatus, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventConditionStatus, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventConditionStatus, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EventConditionStatus, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EventConditionStatus, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(EventConditionStatus, eventConditionName); PY_IMPL_SEQ_SETATTR(EventConditionStatus, eventConditionName); PY_IMPL_SEQ_ATTR_FROMPY(EventConditionStatus, currentState, PyAsnEC_State_FromPython(value, (EC_State_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(EventConditionStatus, currentState, EC_State); diff --git a/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.h b/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.h index 6c80e7ac..f28891cf 100644 --- a/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.h +++ b/src/icspacket/proto/mms/_mms/EventConditionStatus_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/EventNotification.c b/src/icspacket/proto/mms/_mms/EventNotification.c index bed86048..340c51c5 100644 --- a/src/icspacket/proto/mms/_mms/EventNotification.c +++ b/src/icspacket/proto/mms/_mms/EventNotification.c @@ -1,9 +1,53 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_success __attribute__((weak, alias("asn_DEF_success_12"))); +#else +static asn_TYPE_descriptor_t asn_DEF_success_12; +static asn_TYPE_descriptor_t asn_DEF_success; +__attribute__((constructor)) static void asn_DEF_success_12_alias_init(void) { + asn_DEF_success = asn_DEF_success_12; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_failure __attribute__((weak, alias("asn_DEF_failure_15"))); +#else +static asn_TYPE_descriptor_t asn_DEF_failure_15; +static asn_TYPE_descriptor_t asn_DEF_failure; +__attribute__((constructor)) static void asn_DEF_failure_15_alias_init(void) { + asn_DEF_failure = asn_DEF_failure_15; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_successOrFailure __attribute__((weak, alias("asn_DEF_successOrFailure_11"))); +#else +static asn_TYPE_descriptor_t asn_DEF_successOrFailure_11; +static asn_TYPE_descriptor_t asn_DEF_successOrFailure; +__attribute__((constructor)) static void asn_DEF_successOrFailure_11_alias_init(void) { + asn_DEF_successOrFailure = asn_DEF_successOrFailure_11; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_actionResult __attribute__((weak, alias("asn_DEF_actionResult_9"))); +#else +static asn_TYPE_descriptor_t asn_DEF_actionResult_9; +static asn_TYPE_descriptor_t asn_DEF_actionResult; +__attribute__((constructor)) static void asn_DEF_actionResult_9_alias_init(void) { + asn_DEF_actionResult = asn_DEF_actionResult_9; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int asn_DFL_7_cmp_0(const void *sptr) { const BOOLEAN_t *st = sptr; @@ -26,8 +70,8 @@ static int asn_DFL_7_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_success_12[] = { - { ATF_NOFLAGS, 0, offsetof(struct EventNotification__actionResult__successOrFailure__success, confirmedServiceResponse), +static asn_TYPE_member_t asn_MBR_EventNotification__actionResult__successOrFailure__success_12[] = { + { ATF_POINTER, 0, offsetof(struct EventNotification__actionResult__successOrFailure__success, confirmedServiceResponse), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_ConfirmedServiceResponse, @@ -194,12 +238,12 @@ asn_TYPE_descriptor_t asn_DEF_success_12 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_success_12, + asn_MBR_EventNotification__actionResult__successOrFailure__success_12, 2, /* Elements count */ &asn_SPC_success_specs_12 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_failure_15[] = { +static asn_TYPE_member_t asn_MBR_EventNotification__actionResult__successOrFailure__failure_15[] = { { ATF_POINTER, 1, offsetof(struct EventNotification__actionResult__successOrFailure__failure, modifierPosition), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -282,12 +326,12 @@ asn_TYPE_descriptor_t asn_DEF_failure_15 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_failure_15, + asn_MBR_EventNotification__actionResult__successOrFailure__failure_15, 2, /* Elements count */ &asn_SPC_failure_specs_15 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_successOrFailure_11[] = { +static asn_TYPE_member_t asn_MBR_EventNotification__actionResult__successOrFailure_11[] = { { ATF_NOFLAGS, 0, offsetof(struct EventNotification__actionResult__successOrFailure, choice.success), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, @@ -364,12 +408,12 @@ asn_TYPE_descriptor_t asn_DEF_successOrFailure_11 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_successOrFailure_11, + asn_MBR_EventNotification__actionResult__successOrFailure_11, 2, /* Elements count */ &asn_SPC_successOrFailure_specs_11 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_actionResult_9[] = { +static asn_TYPE_member_t asn_MBR_EventNotification__actionResult_9[] = { { ATF_NOFLAGS, 0, offsetof(struct EventNotification__actionResult, eventActionName), -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -453,13 +497,13 @@ asn_TYPE_descriptor_t asn_DEF_actionResult_9 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_actionResult_9, + asn_MBR_EventNotification__actionResult_9, 2, /* Elements count */ &asn_SPC_actionResult_specs_9 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_EventNotification_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EventNotification, eventEnrollmentName), + { ATF_POINTER, 0, offsetof(struct EventNotification, eventEnrollmentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -479,7 +523,7 @@ asn_TYPE_member_t asn_MBR_EventNotification_1[] = { 0, 0, /* No default value */ "eventEnrollmentName" }, - { ATF_NOFLAGS, 0, offsetof(struct EventNotification, eventConditionName), + { ATF_POINTER, 0, offsetof(struct EventNotification, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -539,7 +583,7 @@ asn_TYPE_member_t asn_MBR_EventNotification_1[] = { 0, 0, /* No default value */ "currentState" }, - { ATF_NOFLAGS, 0, offsetof(struct EventNotification, transitionTime), + { ATF_POINTER, 0, offsetof(struct EventNotification, transitionTime), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_EventTime, diff --git a/src/icspacket/proto/mms/_mms/EventNotification.h b/src/icspacket/proto/mms/_mms/EventNotification.h index 5332efdc..913d14e7 100644 --- a/src/icspacket/proto/mms/_mms/EventNotification.h +++ b/src/icspacket/proto/mms/_mms/EventNotification.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,16 +10,14 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "Severity.h" +#include "EC-State.h" #include -#include -#include +#include "AlarmAckRule.h" +#include "ObjectName.h" #include -#include -#include +#include "Unsigned32.h" +#include "ServiceError.h" #include #ifdef __cplusplus @@ -34,32 +32,35 @@ typedef enum EventNotification__actionResult__successOrFailure_PR { } EventNotification__actionResult__successOrFailure_PR; /* Forward declarations */ +struct ObjectName; +struct EventTime; +struct ConfirmedServiceResponse; struct Response_Detail; /* EventNotification */ typedef struct EventNotification { - ObjectName_t eventEnrollmentName; - ObjectName_t eventConditionName; - Severity_t severity; - EC_State_t *currentState; /* OPTIONAL */ - EventTime_t transitionTime; - BOOLEAN_t notificationLost; /* DEFAULT FALSE */ - AlarmAckRule_t *alarmAcknowledgmentRule; /* OPTIONAL */ + struct ObjectName *eventEnrollmentName; + struct ObjectName *eventConditionName; + Severity_t severity; + EC_State_t *currentState; /* OPTIONAL */ + struct EventTime *transitionTime; + BOOLEAN_t notificationLost; /* DEFAULT FALSE */ + AlarmAckRule_t *alarmAcknowledgmentRule; /* OPTIONAL */ struct EventNotification__actionResult { - ObjectName_t eventActionName; + ObjectName_t eventActionName; struct EventNotification__actionResult__successOrFailure { EventNotification__actionResult__successOrFailure_PR present; union EventNotification__actionResult__successOrFailure_u { struct EventNotification__actionResult__successOrFailure__success { - ConfirmedServiceResponse_t confirmedServiceResponse; - struct Response_Detail *cs_Response_Detail; /* OPTIONAL */ + struct ConfirmedServiceResponse *confirmedServiceResponse; + struct Response_Detail *cs_Response_Detail; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } success; struct EventNotification__actionResult__successOrFailure__failure { - Unsigned32_t *modifierPosition; /* OPTIONAL */ - ServiceError_t serviceError; + Unsigned32_t *modifierPosition; /* OPTIONAL */ + ServiceError_t serviceError; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -88,7 +89,10 @@ extern asn_TYPE_member_t asn_MBR_EventNotification_1[8]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "EventTime.h" +#include "ConfirmedServiceResponse.h" +#include "Response-Detail.h" #endif /* _EventNotification_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/EventNotification_Py.c b/src/icspacket/proto/mms/_mms/EventNotification_Py.c index 9bd20569..4c8bf673 100644 --- a/src/icspacket/proto/mms/_mms/EventNotification_Py.c +++ b/src/icspacket/proto/mms/_mms/EventNotification_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(EventNotification_success_ANON_12, confirmedServiceResponse, PyAsnConfirmedServiceResponse_FromPython(value, (ConfirmedServiceResponse_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(EventNotification_success_ANON_12, confirmedServiceResponse, ConfirmedServiceResponse); -PY_IMPL_SEQ_GETATTR(EventNotification_success_ANON_12, confirmedServiceResponse); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventNotification_success_ANON_12, confirmedServiceResponse); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventNotification_success_ANON_12, confirmedServiceResponse, ConfirmedServiceResponse_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EventNotification_success_ANON_12, confirmedServiceResponse, PyAsnConfirmedServiceResponse_FromPython(value, (ConfirmedServiceResponse_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EventNotification_success_ANON_12, confirmedServiceResponse, ConfirmedServiceResponse); +PY_IMPL_SEQ_AUTOVIV_GETATTR(EventNotification_success_ANON_12, confirmedServiceResponse); PY_IMPL_SEQ_SETATTR(EventNotification_success_ANON_12, confirmedServiceResponse); PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventNotification_success_ANON_12, cs_Response_Detail); PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventNotification_success_ANON_12, cs_Response_Detail, Response_Detail_t); @@ -42,7 +44,7 @@ PY_IMPL_SEQ_FROMPY(EventNotification_success_ANON_12, asn_DEF_EventNotification. PY_IMPL_SEQ_INIT(EventNotification_success_ANON_12); PY_IMPL_SEQ_ANON_ATTR_FROMPY(EventNotification_successOrFailure_ANON_11, success, &src->choice.success, EventNotification_success_ANON_12); PY_IMPL_SEQ_ANON_ATTR_TOPY(EventNotification_successOrFailure_ANON_11, success, &src->choice.success, EventNotification_success_ANON_12); -PY_IMPL_CHOICE_GENERIC_SETATTR(EventNotification_successOrFailure_ANON_11, EventNotification__actionResult__successOrFailure, success, success, asn_DEF_EventNotification); +PY_IMPL_CHOICE_GENERIC_SETATTR(EventNotification_successOrFailure_ANON_11, EventNotification__actionResult__successOrFailure, success, success, *asn_DEF_EventNotification.elements[7].type->elements[1].type->elements[0].type); PY_IMPL_CHOICE_GETATTR(EventNotification_successOrFailure_ANON_11, EventNotification__actionResult__successOrFailure, success, success); PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventNotification_failure_ANON_15, modifierPosition); PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventNotification_failure_ANON_15, modifierPosition, Unsigned32_t); @@ -80,7 +82,7 @@ PY_IMPL_SEQ_FROMPY(EventNotification_failure_ANON_15, asn_DEF_EventNotification. PY_IMPL_SEQ_INIT(EventNotification_failure_ANON_15); PY_IMPL_SEQ_ANON_ATTR_FROMPY(EventNotification_successOrFailure_ANON_11, failure, &src->choice.failure, EventNotification_failure_ANON_15); PY_IMPL_SEQ_ANON_ATTR_TOPY(EventNotification_successOrFailure_ANON_11, failure, &src->choice.failure, EventNotification_failure_ANON_15); -PY_IMPL_CHOICE_GENERIC_SETATTR(EventNotification_successOrFailure_ANON_11, EventNotification__actionResult__successOrFailure, failure, failure, asn_DEF_EventNotification); +PY_IMPL_CHOICE_GENERIC_SETATTR(EventNotification_successOrFailure_ANON_11, EventNotification__actionResult__successOrFailure, failure, failure, *asn_DEF_EventNotification.elements[7].type->elements[1].type->elements[1].type); PY_IMPL_CHOICE_GETATTR(EventNotification_successOrFailure_ANON_11, EventNotification__actionResult__successOrFailure, failure, failure); PY_IMPL_CHECK_CONSTRAINTS(EventNotification_successOrFailure_ANON_11, asn_DEF_EventNotification.elements[7].type->elements[1].type); PY_IMPL_ENCODE(EventNotification_successOrFailure_ANON_11, asn_DEF_EventNotification.elements[7].type->elements[1].type); @@ -144,13 +146,17 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(EventNotification, actionResult, src->actionResult, PY_IMPL_SEQ_ANON_ATTR_TOPY(EventNotification, actionResult, src->actionResult, EventNotification_actionResult_ANON_9); PY_IMPL_SEQ_INNER_OPT_SETATTR(EventNotification, actionResult, actionResult, EventNotification_actionResult_ANON_9, *asn_DEF_EventNotification.elements[7].type); PY_IMPL_SEQ_INNER_GETATTR(EventNotification, actionResult, self->ob_value->actionResult, EventNotification_actionResult_ANON_9); -PY_IMPL_SEQ_ATTR_FROMPY(EventNotification, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(EventNotification, eventEnrollmentName, ObjectName); -PY_IMPL_SEQ_GETATTR(EventNotification, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventNotification, eventEnrollmentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventNotification, eventEnrollmentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EventNotification, eventEnrollmentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EventNotification, eventEnrollmentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(EventNotification, eventEnrollmentName); PY_IMPL_SEQ_SETATTR(EventNotification, eventEnrollmentName); -PY_IMPL_SEQ_ATTR_FROMPY(EventNotification, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(EventNotification, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(EventNotification, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventNotification, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventNotification, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EventNotification, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EventNotification, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(EventNotification, eventConditionName); PY_IMPL_SEQ_SETATTR(EventNotification, eventConditionName); PY_IMPL_SEQ_ATTR_FROMPY(EventNotification, severity, PyAsnSeverity_FromPython(value, (Severity_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(EventNotification, severity, Severity); @@ -162,9 +168,11 @@ PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EventNotification, currentState, PyAsnEC_State_ PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EventNotification, currentState, EC_State); PY_IMPL_SEQ_OPT_GETATTR(EventNotification, currentState); PY_IMPL_SEQ_OPT_SETATTR(EventNotification, currentState); -PY_IMPL_SEQ_ATTR_FROMPY(EventNotification, transitionTime, PyAsnEventTime_FromPython(value, (EventTime_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(EventNotification, transitionTime, EventTime); -PY_IMPL_SEQ_GETATTR(EventNotification, transitionTime); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(EventNotification, transitionTime); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(EventNotification, transitionTime, EventTime_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(EventNotification, transitionTime, PyAsnEventTime_FromPython(value, (EventTime_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(EventNotification, transitionTime, EventTime); +PY_IMPL_SEQ_AUTOVIV_GETATTR(EventNotification, transitionTime); PY_IMPL_SEQ_SETATTR(EventNotification, transitionTime); PY_IMPL_SEQ_ATTR_FROMPY(EventNotification, notificationLost, PyCompatBool_FromObject(value, (unsigned int *)target)); PY_IMPL_SEQ_ATTR_TOPY(EventNotification, notificationLost, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); diff --git a/src/icspacket/proto/mms/_mms/EventNotification_Py.h b/src/icspacket/proto/mms/_mms/EventNotification_Py.h index 4ae87601..317b8bda 100644 --- a/src/icspacket/proto/mms/_mms/EventNotification_Py.h +++ b/src/icspacket/proto/mms/_mms/EventNotification_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,8 +14,18 @@ #include #include #include +#include +#include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/EventTime.c b/src/icspacket/proto/mms/_mms/EventTime.c index b8173b51..823a2b3f 100644 --- a/src/icspacket/proto/mms/_mms/EventTime.c +++ b/src/icspacket/proto/mms/_mms/EventTime.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EventTime.h b/src/icspacket/proto/mms/_mms/EventTime.h index a8f251f4..66c3f57d 100644 --- a/src/icspacket/proto/mms/_mms/EventTime.h +++ b/src/icspacket/proto/mms/_mms/EventTime.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "TimeOfDay.h" +#include "Unsigned32.h" #include #include @@ -31,9 +31,9 @@ typedef enum EventTime_PR { typedef struct EventTime { EventTime_PR present; union EventTime_u { - TimeOfDay_t timeOfDay; - Unsigned32_t timeSequenceIdentifier; - NULL_t undefined; + TimeOfDay_t timeOfDay; + Unsigned32_t timeSequenceIdentifier; + NULL_t undefined; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/EventTime_Py.c b/src/icspacket/proto/mms/_mms/EventTime_Py.c index a212624c..42be6bce 100644 --- a/src/icspacket/proto/mms/_mms/EventTime_Py.c +++ b/src/icspacket/proto/mms/_mms/EventTime_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/EventTime_Py.h b/src/icspacket/proto/mms/_mms/EventTime_Py.h index 81ba07f2..2c9409a5 100644 --- a/src/icspacket/proto/mms/_mms/EventTime_Py.h +++ b/src/icspacket/proto/mms/_mms/EventTime_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Request.c b/src/icspacket/proto/mms/_mms/ExchangeData-Request.c index 5149d923..37fc5179 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Request.c +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfRequestData_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfRequestData __attribute__((weak, alias("asn_DEF_listOfRequestData_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfRequestData_3; +static asn_TYPE_descriptor_t asn_DEF_listOfRequestData; +__attribute__((constructor)) static void asn_DEF_listOfRequestData_3_alias_init(void) { + asn_DEF_listOfRequestData = asn_DEF_listOfRequestData_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ExchangeData_Request__listOfRequestData_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfRequestData_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfRequestData_tags_3[] = { @@ -58,13 +69,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfRequestData_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfRequestData_3, + asn_MBR_ExchangeData_Request__listOfRequestData_3, 1, /* Single element */ &asn_SPC_listOfRequestData_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_ExchangeData_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ExchangeData_Request, dataExchangeName), + { ATF_POINTER, 0, offsetof(struct ExchangeData_Request, dataExchangeName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Request.h b/src/icspacket/proto/mms/_mms/ExchangeData-Request.h index 2c3b20f3..ad6e605a 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Request.h +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -20,11 +19,12 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct Data; /* ExchangeData-Request */ typedef struct ExchangeData_Request { - ObjectName_t dataExchangeName; + struct ObjectName *dataExchangeName; struct ExchangeData_Request__listOfRequestData { A_SEQUENCE_OF(struct Data) list; @@ -46,7 +46,8 @@ extern asn_TYPE_member_t asn_MBR_ExchangeData_Request_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "Data.h" #endif /* _ExchangeData_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.c b/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.c index af04997e..43c0321f 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -39,9 +39,11 @@ PY_IMPL_SEQ_OF_LEN(ExchangeData_Request_listOfRequestData_ANON_3); PY_IMPL_SEQ_OF_GETITEM(ExchangeData_Request_listOfRequestData_ANON_3); PY_IMPL_SEQ_OF_CLEAR(ExchangeData_Request_listOfRequestData_ANON_3); PY_IMPL_SEQ_OF_EXTEND(ExchangeData_Request_listOfRequestData_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(ExchangeData_Request, dataExchangeName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ExchangeData_Request, dataExchangeName, ObjectName); -PY_IMPL_SEQ_GETATTR(ExchangeData_Request, dataExchangeName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ExchangeData_Request, dataExchangeName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ExchangeData_Request, dataExchangeName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ExchangeData_Request, dataExchangeName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ExchangeData_Request, dataExchangeName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ExchangeData_Request, dataExchangeName); PY_IMPL_SEQ_SETATTR(ExchangeData_Request, dataExchangeName); PY_IMPL_GENERIC_DEALLOC(ExchangeData_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(ExchangeData_Request); diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.h b/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.h index b8205cc7..0f0a151b 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Response.c b/src/icspacket/proto/mms/_mms/ExchangeData-Response.c index 3aa87212..7fc09fa1 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Response.c +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfResponseData_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfResponseData __attribute__((weak, alias("asn_DEF_listOfResponseData_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfResponseData_2; +static asn_TYPE_descriptor_t asn_DEF_listOfResponseData; +__attribute__((constructor)) static void asn_DEF_listOfResponseData_2_alias_init(void) { + asn_DEF_listOfResponseData = asn_DEF_listOfResponseData_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ExchangeData_Response__listOfResponseData_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfResponseData_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfResponseData_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfResponseData_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfResponseData_2, + asn_MBR_ExchangeData_Response__listOfResponseData_2, 1, /* Single element */ &asn_SPC_listOfResponseData_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Response.h b/src/icspacket/proto/mms/_mms/ExchangeData-Response.h index d7bb92d5..423c456e 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Response.h +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -44,7 +44,7 @@ extern asn_TYPE_member_t asn_MBR_ExchangeData_Response_1[1]; #endif /* Referred external types */ -#include +#include "Data.h" #endif /* _ExchangeData_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.c b/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.c index 3fae4df7..4644dba3 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.h b/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.h index 7e3b2846..b28d1d6a 100644 --- a/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ExchangeData-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ExtendedStatus.c b/src/icspacket/proto/mms/_mms/ExtendedStatus.c index b91680d2..35c3621f 100644 --- a/src/icspacket/proto/mms/_mms/ExtendedStatus.c +++ b/src/icspacket/proto/mms/_mms/ExtendedStatus.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_ExtendedStatus_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_ExtendedStatus_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_ExtendedStatus_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/ExtendedStatus.h b/src/icspacket/proto/mms/_mms/ExtendedStatus.h index 801174e5..93eb006a 100644 --- a/src/icspacket/proto/mms/_mms/ExtendedStatus.h +++ b/src/icspacket/proto/mms/_mms/ExtendedStatus.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,9 +25,10 @@ typedef enum ExtendedStatus { } e_ExtendedStatus; /* ExtendedStatus */ -typedef BIT_STRING_t ExtendedStatus_t; +typedef BIT_STRING_t ExtendedStatus_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_ExtendedStatus_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ExtendedStatus; asn_struct_free_f ExtendedStatus_free; asn_struct_print_f ExtendedStatus_print; diff --git a/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.c b/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.c index aefd0021..ed5c715c 100644 --- a/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.c +++ b/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.h b/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.h index aadcb2a3..2ff5d1b7 100644 --- a/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.h +++ b/src/icspacket/proto/mms/_mms/ExtendedStatus_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileAttributes.c b/src/icspacket/proto/mms/_mms/FileAttributes.c index 89a50fef..bf7bdfd1 100644 --- a/src/icspacket/proto/mms/_mms/FileAttributes.c +++ b/src/icspacket/proto/mms/_mms/FileAttributes.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileAttributes.h b/src/icspacket/proto/mms/_mms/FileAttributes.h index 850887bd..4bc2a6f9 100644 --- a/src/icspacket/proto/mms/_mms/FileAttributes.h +++ b/src/icspacket/proto/mms/_mms/FileAttributes.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include #include @@ -20,8 +20,8 @@ extern "C" { /* FileAttributes */ typedef struct FileAttributes { - Unsigned32_t sizeOfFile; - GeneralizedTime_t *lastModified; /* OPTIONAL */ + Unsigned32_t sizeOfFile; + GeneralizedTime_t *lastModified; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/FileAttributes_Py.c b/src/icspacket/proto/mms/_mms/FileAttributes_Py.c index 7af6ee9c..6b2e12f7 100644 --- a/src/icspacket/proto/mms/_mms/FileAttributes_Py.c +++ b/src/icspacket/proto/mms/_mms/FileAttributes_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileAttributes_Py.h b/src/icspacket/proto/mms/_mms/FileAttributes_Py.h index 0e678ec1..4ae16710 100644 --- a/src/icspacket/proto/mms/_mms/FileAttributes_Py.h +++ b/src/icspacket/proto/mms/_mms/FileAttributes_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileClose-Request.c b/src/icspacket/proto/mms/_mms/FileClose-Request.c index 468e6df3..1fc71cfe 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Request.c +++ b/src/icspacket/proto/mms/_mms/FileClose-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileClose-Request.h b/src/icspacket/proto/mms/_mms/FileClose-Request.h index af1af9d3..b85e421b 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Request.h +++ b/src/icspacket/proto/mms/_mms/FileClose-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Integer32.h" #ifdef __cplusplus extern "C" { #endif /* FileClose-Request */ -typedef Integer32_t FileClose_Request_t; +typedef Integer32_t FileClose_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileClose_Request; diff --git a/src/icspacket/proto/mms/_mms/FileClose-Request_Py.c b/src/icspacket/proto/mms/_mms/FileClose-Request_Py.c index 7c0af881..69e93294 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/FileClose-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileClose-Request_Py.h b/src/icspacket/proto/mms/_mms/FileClose-Request_Py.h index f068abcd..e499d63c 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/FileClose-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileClose-Response.c b/src/icspacket/proto/mms/_mms/FileClose-Response.c index 7cd1719f..4cdf5d6a 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Response.c +++ b/src/icspacket/proto/mms/_mms/FileClose-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileClose-Response.h b/src/icspacket/proto/mms/_mms/FileClose-Response.h index 481b662e..73ec0c78 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Response.h +++ b/src/icspacket/proto/mms/_mms/FileClose-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* FileClose-Response */ -typedef NULL_t FileClose_Response_t; +typedef NULL_t FileClose_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileClose_Response; diff --git a/src/icspacket/proto/mms/_mms/FileClose-Response_Py.c b/src/icspacket/proto/mms/_mms/FileClose-Response_Py.c index 8732a0ae..f3680d3e 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/FileClose-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileClose-Response_Py.h b/src/icspacket/proto/mms/_mms/FileClose-Response_Py.h index 818f6657..db3bf045 100644 --- a/src/icspacket/proto/mms/_mms/FileClose-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/FileClose-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Request.c b/src/icspacket/proto/mms/_mms/FileDelete-Request.c index 146ce520..fc93269e 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Request.c +++ b/src/icspacket/proto/mms/_mms/FileDelete-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Request.h b/src/icspacket/proto/mms/_mms/FileDelete-Request.h index 6d43c109..bbff7bcd 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Request.h +++ b/src/icspacket/proto/mms/_mms/FileDelete-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "FileName.h" #ifdef __cplusplus extern "C" { #endif /* FileDelete-Request */ -typedef FileName_t FileDelete_Request_t; +typedef FileName_t FileDelete_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileDelete_Request; diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.c b/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.c index 48a1dd5d..c62c2989 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.h b/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.h index 50e480b8..16db263c 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/FileDelete-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Response.c b/src/icspacket/proto/mms/_mms/FileDelete-Response.c index 2dac3b95..f630120a 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Response.c +++ b/src/icspacket/proto/mms/_mms/FileDelete-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Response.h b/src/icspacket/proto/mms/_mms/FileDelete-Response.h index 3e59dd46..c081c6eb 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Response.h +++ b/src/icspacket/proto/mms/_mms/FileDelete-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* FileDelete-Response */ -typedef NULL_t FileDelete_Response_t; +typedef NULL_t FileDelete_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileDelete_Response; diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.c b/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.c index 871a894c..2d27f63e 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.h b/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.h index b82b469b..c66b3d7e 100644 --- a/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/FileDelete-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Request.c b/src/icspacket/proto/mms/_mms/FileDirectory-Request.c index 51a4ab59..2ac7b98e 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Request.c +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Request.h b/src/icspacket/proto/mms/_mms/FileDirectory-Request.h index 6bdc1322..7a3158f7 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Request.h +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -21,8 +21,8 @@ struct FileName; /* FileDirectory-Request */ typedef struct FileDirectory_Request { - struct FileName *fileSpecification; /* OPTIONAL */ - struct FileName *continueAfter; /* OPTIONAL */ + struct FileName *fileSpecification; /* OPTIONAL */ + struct FileName *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,7 +38,7 @@ extern asn_TYPE_member_t asn_MBR_FileDirectory_Request_1[2]; #endif /* Referred external types */ -#include +#include "FileName.h" #endif /* _FileDirectory_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.c b/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.c index d862af58..fc348593 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.h b/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.h index ae3542d3..9faebf67 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Response.c b/src/icspacket/proto/mms/_mms/FileDirectory-Response.c index 52935c14..573df3fd 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Response.c +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfDirectoryEntry_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfDirectoryEntry __attribute__((weak, alias("asn_DEF_listOfDirectoryEntry_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfDirectoryEntry_2; +static asn_TYPE_descriptor_t asn_DEF_listOfDirectoryEntry; +__attribute__((constructor)) static void asn_DEF_listOfDirectoryEntry_2_alias_init(void) { + asn_DEF_listOfDirectoryEntry = asn_DEF_listOfDirectoryEntry_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_FileDirectory_Response__listOfDirectoryEntry_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfDirectoryEntry_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfDirectoryEntry_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfDirectoryEntry_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfDirectoryEntry_2, + asn_MBR_FileDirectory_Response__listOfDirectoryEntry_2, 1, /* Single element */ &asn_SPC_listOfDirectoryEntry_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Response.h b/src/icspacket/proto/mms/_mms/FileDirectory-Response.h index 8389aa1a..49389087 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Response.h +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct FileDirectory_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfDirectoryEntry; - BOOLEAN_t moreFollows; /* DEFAULT FALSE */ + BOOLEAN_t moreFollows; /* DEFAULT FALSE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_FileDirectory_Response_1[2]; #endif /* Referred external types */ -#include +#include "DirectoryEntry.h" #endif /* _FileDirectory_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.c b/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.c index d3e07d7f..165c418a 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.h b/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.h index dcafeaa1..8863eb18 100644 --- a/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/FileDirectory-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/FileName.c b/src/icspacket/proto/mms/_mms/FileName.c index 4e4ea378..46f60e2a 100644 --- a/src/icspacket/proto/mms/_mms/FileName.c +++ b/src/icspacket/proto/mms/_mms/FileName.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_FileName_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_FileName_tags_1[] = { diff --git a/src/icspacket/proto/mms/_mms/FileName.h b/src/icspacket/proto/mms/_mms/FileName.h index 924aa438..6e54923b 100644 --- a/src/icspacket/proto/mms/_mms/FileName.h +++ b/src/icspacket/proto/mms/_mms/FileName.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileName_Py.c b/src/icspacket/proto/mms/_mms/FileName_Py.c index 73c80dd7..67cc7e59 100644 --- a/src/icspacket/proto/mms/_mms/FileName_Py.c +++ b/src/icspacket/proto/mms/_mms/FileName_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileName_Py.h b/src/icspacket/proto/mms/_mms/FileName_Py.h index 872708f2..1104d04d 100644 --- a/src/icspacket/proto/mms/_mms/FileName_Py.h +++ b/src/icspacket/proto/mms/_mms/FileName_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Request.c b/src/icspacket/proto/mms/_mms/FileOpen-Request.c index 92ebbee2..e9845fad 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Request.c +++ b/src/icspacket/proto/mms/_mms/FileOpen-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_FileOpen_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct FileOpen_Request, fileName), + { ATF_POINTER, 0, offsetof(struct FileOpen_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Request.h b/src/icspacket/proto/mms/_mms/FileOpen-Request.h index 991bbc2a..b93350df 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Request.h +++ b/src/icspacket/proto/mms/_mms/FileOpen-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Unsigned32.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct FileName; + /* FileOpen-Request */ typedef struct FileOpen_Request { - FileName_t fileName; - Unsigned32_t initialPosition; + struct FileName *fileName; + Unsigned32_t initialPosition; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_FileOpen_Request_1[2]; } #endif +/* Referred external types */ +#include "FileName.h" + #endif /* _FileOpen_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.c b/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.c index 66786ddb..2cd577c6 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(FileOpen_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(FileOpen_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(FileOpen_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(FileOpen_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(FileOpen_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(FileOpen_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(FileOpen_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(FileOpen_Request, fileName); PY_IMPL_SEQ_SETATTR(FileOpen_Request, fileName); PY_IMPL_SEQ_ATTR_FROMPY(FileOpen_Request, initialPosition, PyAsnUnsigned32_FromPython(value, (Unsigned32_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(FileOpen_Request, initialPosition, Unsigned32); diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.h b/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.h index 6b4dc80e..d36aa610 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/FileOpen-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Response.c b/src/icspacket/proto/mms/_mms/FileOpen-Response.c index fd6caaee..70e680c5 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Response.c +++ b/src/icspacket/proto/mms/_mms/FileOpen-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_FileOpen_Response_1[] = { 0, 0, /* No default value */ "frsmID" }, - { ATF_NOFLAGS, 0, offsetof(struct FileOpen_Response, fileAttributes), + { ATF_POINTER, 0, offsetof(struct FileOpen_Response, fileAttributes), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileAttributes, diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Response.h b/src/icspacket/proto/mms/_mms/FileOpen-Response.h index 1280b777..b3e6e05a 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Response.h +++ b/src/icspacket/proto/mms/_mms/FileOpen-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Integer32.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct FileAttributes; + /* FileOpen-Response */ typedef struct FileOpen_Response { - Integer32_t frsmID; - FileAttributes_t fileAttributes; + Integer32_t frsmID; + struct FileAttributes *fileAttributes; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_FileOpen_Response_1[2]; } #endif +/* Referred external types */ +#include "FileAttributes.h" + #endif /* _FileOpen_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.c b/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.c index 8f1d42bf..57d350ae 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(FileOpen_Response, frsmID, PyAsnInteger32_FromPython(val PY_IMPL_SEQ_REF_ATTR_TOPY(FileOpen_Response, frsmID, Integer32); PY_IMPL_SEQ_GETATTR(FileOpen_Response, frsmID); PY_IMPL_SEQ_SETATTR(FileOpen_Response, frsmID); -PY_IMPL_SEQ_ATTR_FROMPY(FileOpen_Response, fileAttributes, PyAsnFileAttributes_FromPython(value, (FileAttributes_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(FileOpen_Response, fileAttributes, FileAttributes); -PY_IMPL_SEQ_GETATTR(FileOpen_Response, fileAttributes); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(FileOpen_Response, fileAttributes); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(FileOpen_Response, fileAttributes, FileAttributes_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(FileOpen_Response, fileAttributes, PyAsnFileAttributes_FromPython(value, (FileAttributes_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(FileOpen_Response, fileAttributes, FileAttributes); +PY_IMPL_SEQ_AUTOVIV_GETATTR(FileOpen_Response, fileAttributes); PY_IMPL_SEQ_SETATTR(FileOpen_Response, fileAttributes); PY_IMPL_GENERIC_DEALLOC(FileOpen_Response); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(FileOpen_Response); diff --git a/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.h b/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.h index 733046b4..df94ff5d 100644 --- a/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/FileOpen-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRead-Request.c b/src/icspacket/proto/mms/_mms/FileRead-Request.c index 9db11c57..99877898 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Request.c +++ b/src/icspacket/proto/mms/_mms/FileRead-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRead-Request.h b/src/icspacket/proto/mms/_mms/FileRead-Request.h index 85e89b1b..b9028813 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Request.h +++ b/src/icspacket/proto/mms/_mms/FileRead-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Integer32.h" #ifdef __cplusplus extern "C" { #endif /* FileRead-Request */ -typedef Integer32_t FileRead_Request_t; +typedef Integer32_t FileRead_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileRead_Request; diff --git a/src/icspacket/proto/mms/_mms/FileRead-Request_Py.c b/src/icspacket/proto/mms/_mms/FileRead-Request_Py.c index 0cb076ed..3ac69698 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/FileRead-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRead-Request_Py.h b/src/icspacket/proto/mms/_mms/FileRead-Request_Py.h index 3b3375ab..59ac5f13 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/FileRead-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRead-Response.c b/src/icspacket/proto/mms/_mms/FileRead-Response.c index b7561ebc..c98d8749 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Response.c +++ b/src/icspacket/proto/mms/_mms/FileRead-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRead-Response.h b/src/icspacket/proto/mms/_mms/FileRead-Response.h index fb141765..19a20f29 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Response.h +++ b/src/icspacket/proto/mms/_mms/FileRead-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -20,8 +20,8 @@ extern "C" { /* FileRead-Response */ typedef struct FileRead_Response { - OCTET_STRING_t fileData; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + OCTET_STRING_t fileData; + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/FileRead-Response_Py.c b/src/icspacket/proto/mms/_mms/FileRead-Response_Py.c index c2a1c121..47885ee8 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/FileRead-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRead-Response_Py.h b/src/icspacket/proto/mms/_mms/FileRead-Response_Py.h index ed282cc3..3f1a2dab 100644 --- a/src/icspacket/proto/mms/_mms/FileRead-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/FileRead-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRename-Error.c b/src/icspacket/proto/mms/_mms/FileRename-Error.c index a9771062..0f79bf07 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Error.c +++ b/src/icspacket/proto/mms/_mms/FileRename-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRename-Error.h b/src/icspacket/proto/mms/_mms/FileRename-Error.h index 9bb9c302..f5940c0e 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Error.h +++ b/src/icspacket/proto/mms/_mms/FileRename-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -23,7 +23,7 @@ typedef enum FileRename_Error { } e_FileRename_Error; /* FileRename-Error */ -typedef long FileRename_Error_t; +typedef long FileRename_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileRename_Error; diff --git a/src/icspacket/proto/mms/_mms/FileRename-Error_Py.c b/src/icspacket/proto/mms/_mms/FileRename-Error_Py.c index abc5501a..6db68e54 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/FileRename-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRename-Error_Py.h b/src/icspacket/proto/mms/_mms/FileRename-Error_Py.h index 532eac6f..47dbf0f3 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/FileRename-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRename-Request.c b/src/icspacket/proto/mms/_mms/FileRename-Request.c index 03aa08e3..039e2397 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Request.c +++ b/src/icspacket/proto/mms/_mms/FileRename-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_FileRename_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct FileRename_Request, currentFileName), + { ATF_POINTER, 0, offsetof(struct FileRename_Request, currentFileName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_FileRename_Request_1[] = { 0, 0, /* No default value */ "currentFileName" }, - { ATF_NOFLAGS, 0, offsetof(struct FileRename_Request, newFileName), + { ATF_POINTER, 0, offsetof(struct FileRename_Request, newFileName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/FileRename-Request.h b/src/icspacket/proto/mms/_mms/FileRename-Request.h index ae8be7c6..5954caa9 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Request.h +++ b/src/icspacket/proto/mms/_mms/FileRename-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,17 +10,19 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct FileName; + /* FileRename-Request */ typedef struct FileRename_Request { - FileName_t currentFileName; - FileName_t newFileName; + struct FileName *currentFileName; + struct FileName *newFileName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -35,5 +37,8 @@ extern asn_TYPE_member_t asn_MBR_FileRename_Request_1[2]; } #endif +/* Referred external types */ +#include "FileName.h" + #endif /* _FileRename_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/FileRename-Request_Py.c b/src/icspacket/proto/mms/_mms/FileRename-Request_Py.c index 9c14f76f..c7f6d929 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/FileRename-Request_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(FileRename_Request, currentFileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(FileRename_Request, currentFileName, FileName); -PY_IMPL_SEQ_GETATTR(FileRename_Request, currentFileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(FileRename_Request, currentFileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(FileRename_Request, currentFileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(FileRename_Request, currentFileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(FileRename_Request, currentFileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(FileRename_Request, currentFileName); PY_IMPL_SEQ_SETATTR(FileRename_Request, currentFileName); -PY_IMPL_SEQ_ATTR_FROMPY(FileRename_Request, newFileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(FileRename_Request, newFileName, FileName); -PY_IMPL_SEQ_GETATTR(FileRename_Request, newFileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(FileRename_Request, newFileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(FileRename_Request, newFileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(FileRename_Request, newFileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(FileRename_Request, newFileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(FileRename_Request, newFileName); PY_IMPL_SEQ_SETATTR(FileRename_Request, newFileName); PY_IMPL_GENERIC_DEALLOC(FileRename_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(FileRename_Request); diff --git a/src/icspacket/proto/mms/_mms/FileRename-Request_Py.h b/src/icspacket/proto/mms/_mms/FileRename-Request_Py.h index fe81092e..8c6f18b7 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/FileRename-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/FileRename-Response.c b/src/icspacket/proto/mms/_mms/FileRename-Response.c index cabdc517..bfdf4bf9 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Response.c +++ b/src/icspacket/proto/mms/_mms/FileRename-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRename-Response.h b/src/icspacket/proto/mms/_mms/FileRename-Response.h index 35c26cfc..9391214f 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Response.h +++ b/src/icspacket/proto/mms/_mms/FileRename-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* FileRename-Response */ -typedef NULL_t FileRename_Response_t; +typedef NULL_t FileRename_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FileRename_Response; diff --git a/src/icspacket/proto/mms/_mms/FileRename-Response_Py.c b/src/icspacket/proto/mms/_mms/FileRename-Response_Py.c index ee9ce3d1..c7ea7256 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/FileRename-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FileRename-Response_Py.h b/src/icspacket/proto/mms/_mms/FileRename-Response_Py.h index 0a5dc07a..85d85b1e 100644 --- a/src/icspacket/proto/mms/_mms/FileRename-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/FileRename-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FloatingPoint.c b/src/icspacket/proto/mms/_mms/FloatingPoint.c index 52be51ae..1aa8b2e5 100644 --- a/src/icspacket/proto/mms/_mms/FloatingPoint.c +++ b/src/icspacket/proto/mms/_mms/FloatingPoint.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FloatingPoint.h b/src/icspacket/proto/mms/_mms/FloatingPoint.h index d06d3b03..265ec83f 100644 --- a/src/icspacket/proto/mms/_mms/FloatingPoint.h +++ b/src/icspacket/proto/mms/_mms/FloatingPoint.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* FloatingPoint */ -typedef OCTET_STRING_t FloatingPoint_t; +typedef OCTET_STRING_t FloatingPoint_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FloatingPoint; diff --git a/src/icspacket/proto/mms/_mms/FloatingPoint_Py.c b/src/icspacket/proto/mms/_mms/FloatingPoint_Py.c index 5a5b38ef..f1402194 100644 --- a/src/icspacket/proto/mms/_mms/FloatingPoint_Py.c +++ b/src/icspacket/proto/mms/_mms/FloatingPoint_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/FloatingPoint_Py.h b/src/icspacket/proto/mms/_mms/FloatingPoint_Py.h index 04ef2af3..ce9fc467 100644 --- a/src/icspacket/proto/mms/_mms/FloatingPoint_Py.h +++ b/src/icspacket/proto/mms/_mms/FloatingPoint_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.c index 23c78b62..9cc33d86 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_namedObject_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_namedObject __attribute__((weak, alias("asn_DEF_namedObject_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_namedObject_4; +static asn_TYPE_descriptor_t asn_DEF_namedObject; +__attribute__((constructor)) static void asn_DEF_namedObject_4_alias_init(void) { + asn_DEF_namedObject = asn_DEF_namedObject_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetAccessControlListAttributes_Request__namedObject_4[] = { { ATF_NOFLAGS, 0, offsetof(struct GetAccessControlListAttributes_Request__namedObject, objectClass), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -85,7 +96,7 @@ asn_TYPE_descriptor_t asn_DEF_namedObject_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_namedObject_4, + asn_MBR_GetAccessControlListAttributes_Request__namedObject_4, 2, /* Elements count */ &asn_SPC_namedObject_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.h index 28738361..f0836c4f 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,10 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include -#include +#include "ObjectClass.h" +#include "ObjectName.h" #include #include @@ -33,11 +33,11 @@ typedef enum GetAccessControlListAttributes_Request_PR { typedef struct GetAccessControlListAttributes_Request { GetAccessControlListAttributes_Request_PR present; union GetAccessControlListAttributes_Request_u { - Identifier_t accessControlListName; - NULL_t vMD; + Identifier_t accessControlListName; + NULL_t vMD; struct GetAccessControlListAttributes_Request__namedObject { - ObjectClass_t objectClass; - ObjectName_t objectName; + ObjectClass_t objectClass; + ObjectName_t objectName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.c index fc8137b5..88a22fce 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -40,7 +40,7 @@ PY_IMPL_SEQ_FROMPY(GetAccessControlListAttributes_Request_namedObject_ANON_4, as PY_IMPL_SEQ_INIT(GetAccessControlListAttributes_Request_namedObject_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(GetAccessControlListAttributes_Request, namedObject, &src->choice.namedObject, GetAccessControlListAttributes_Request_namedObject_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(GetAccessControlListAttributes_Request, namedObject, &src->choice.namedObject, GetAccessControlListAttributes_Request_namedObject_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(GetAccessControlListAttributes_Request, GetAccessControlListAttributes_Request, namedObject, namedObject, asn_DEF_GetAccessControlListAttributes_Request); +PY_IMPL_CHOICE_GENERIC_SETATTR(GetAccessControlListAttributes_Request, GetAccessControlListAttributes_Request, namedObject, namedObject, *asn_DEF_GetAccessControlListAttributes_Request.elements[2].type); PY_IMPL_CHOICE_GETATTR(GetAccessControlListAttributes_Request, GetAccessControlListAttributes_Request, namedObject, namedObject); PY_IMPL_CHOICE_ATTR_FROMPY(GetAccessControlListAttributes_Request, GetAccessControlListAttributes_Request, accessControlListName, accessControlListName,PyAsnIdentifier_FromPython(value, &dst->choice.accessControlListName)); PY_IMPL_CHOICE_ATTR_TOPY(GetAccessControlListAttributes_Request, accessControlListName, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.accessControlListName)); diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.h index 441b5374..b5ec7b14 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.c index 80b6fbfa..23786da4 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_accessControlListElements_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_accessControlListElements __attribute__((weak, alias("asn_DEF_accessControlListElements_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_accessControlListElements_3; +static asn_TYPE_descriptor_t asn_DEF_accessControlListElements; +__attribute__((constructor)) static void asn_DEF_accessControlListElements_3_alias_init(void) { + asn_DEF_accessControlListElements = asn_DEF_accessControlListElements_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_references __attribute__((weak, alias("asn_DEF_references_12"))); +#else +static asn_TYPE_descriptor_t asn_DEF_references_12; +static asn_TYPE_descriptor_t asn_DEF_references; +__attribute__((constructor)) static void asn_DEF_references_12_alias_init(void) { + asn_DEF_references = asn_DEF_references_12; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetAccessControlListAttributes_Response__accessControlListElements_3[] = { { ATF_POINTER, 7, offsetof(struct GetAccessControlListAttributes_Response__accessControlListElements, readAccessCondition), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -192,13 +214,13 @@ asn_TYPE_descriptor_t asn_DEF_accessControlListElements_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_accessControlListElements_3, + asn_MBR_GetAccessControlListAttributes_Response__accessControlListElements_3, 7, /* Elements count */ &asn_SPC_accessControlListElements_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_Member_13[] = { - { ATF_NOFLAGS, 0, offsetof(struct GetAccessControlListAttributes_Response__references__Member, objectClass), +static asn_TYPE_member_t asn_MBR_GetAccessControlListAttributes_Response__references__references_Member_13[] = { + { ATF_NOFLAGS, 0, offsetof(struct GetAccessControlListAttributes_Response__references__references_Member, objectClass), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectClass, @@ -218,7 +240,7 @@ static asn_TYPE_member_t asn_MBR_Member_13[] = { 0, 0, /* No default value */ "objectClass" }, - { ATF_NOFLAGS, 0, offsetof(struct GetAccessControlListAttributes_Response__references__Member, objectCount), + { ATF_NOFLAGS, 0, offsetof(struct GetAccessControlListAttributes_Response__references__references_Member, objectCount), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, @@ -239,32 +261,32 @@ static asn_TYPE_member_t asn_MBR_Member_13[] = { "objectCount" }, }; -static const ber_tlv_tag_t asn_DEF_Member_tags_13[] = { +static const ber_tlv_tag_t asn_DEF_references_Member_tags_13[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_13[] = { +static const asn_TYPE_tag2member_t asn_MAP_references_Member_tag2el_13[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* objectClass */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* objectCount */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_13 = { - sizeof(struct GetAccessControlListAttributes_Response__references__Member), - offsetof(struct GetAccessControlListAttributes_Response__references__Member, _asn_ctx), - asn_MAP_Member_tag2el_13, +static asn_SEQUENCE_specifics_t asn_SPC_references_Member_specs_13 = { + sizeof(struct GetAccessControlListAttributes_Response__references__references_Member), + offsetof(struct GetAccessControlListAttributes_Response__references__references_Member, _asn_ctx), + asn_MAP_references_Member_tag2el_13, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_13 = { +asn_TYPE_descriptor_t asn_DEF_references_Member_13 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_13, - sizeof(asn_DEF_Member_tags_13) - /sizeof(asn_DEF_Member_tags_13[0]), /* 1 */ - asn_DEF_Member_tags_13, /* Same as above */ - sizeof(asn_DEF_Member_tags_13) - /sizeof(asn_DEF_Member_tags_13[0]), /* 1 */ + asn_DEF_references_Member_tags_13, + sizeof(asn_DEF_references_Member_tags_13) + /sizeof(asn_DEF_references_Member_tags_13[0]), /* 1 */ + asn_DEF_references_Member_tags_13, /* Same as above */ + sizeof(asn_DEF_references_Member_tags_13) + /sizeof(asn_DEF_references_Member_tags_13[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -277,16 +299,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_13 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_13, + asn_MBR_GetAccessControlListAttributes_Response__references__references_Member_13, 2, /* Elements count */ - &asn_SPC_Member_specs_13 /* Additional specs */ + &asn_SPC_references_Member_specs_13 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_references_12[] = { +static asn_TYPE_member_t asn_MBR_GetAccessControlListAttributes_Response__references_12[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_13, + &asn_DEF_references_Member_13, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -336,7 +358,7 @@ asn_TYPE_descriptor_t asn_DEF_references_12 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_references_12, + asn_MBR_GetAccessControlListAttributes_Response__references_12, 1, /* Single element */ &asn_SPC_references_specs_12 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.h index 6be6b0f6..6b76179f 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,11 +10,11 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include -#include +#include "ObjectClass.h" #include #include @@ -26,37 +26,37 @@ extern "C" { struct AccessCondition; /* Forward definitions */ -typedef struct GetAccessControlListAttributes_Response__references__Member { - ObjectClass_t objectClass; - long objectCount; +typedef struct GetAccessControlListAttributes_Response__references__references_Member { + ObjectClass_t objectClass; + long objectCount; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} GetAccessControlListAttributes_Response__references__Member; +} GetAccessControlListAttributes_Response__references__references_Member; /* GetAccessControlListAttributes-Response */ typedef struct GetAccessControlListAttributes_Response { - Identifier_t name; + Identifier_t name; struct GetAccessControlListAttributes_Response__accessControlListElements { - struct AccessCondition *readAccessCondition; /* OPTIONAL */ - struct AccessCondition *storeAccessCondition; /* OPTIONAL */ - struct AccessCondition *writeAccessCondition; /* OPTIONAL */ - struct AccessCondition *loadAccessCondition; /* OPTIONAL */ - struct AccessCondition *executeAccessCondition; /* OPTIONAL */ - struct AccessCondition *deleteAccessCondition; /* OPTIONAL */ - struct AccessCondition *editAccessCondition; /* OPTIONAL */ + struct AccessCondition *readAccessCondition; /* OPTIONAL */ + struct AccessCondition *storeAccessCondition; /* OPTIONAL */ + struct AccessCondition *writeAccessCondition; /* OPTIONAL */ + struct AccessCondition *loadAccessCondition; /* OPTIONAL */ + struct AccessCondition *executeAccessCondition; /* OPTIONAL */ + struct AccessCondition *deleteAccessCondition; /* OPTIONAL */ + struct AccessCondition *editAccessCondition; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } accessControlListElements; - BOOLEAN_t vMDuse; + BOOLEAN_t vMDuse; struct GetAccessControlListAttributes_Response__references { - A_SEQUENCE_OF(GetAccessControlListAttributes_Response__references__Member) list; + A_SEQUENCE_OF(GetAccessControlListAttributes_Response__references__references_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } references; - Identifier_t *accessControlList; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -72,7 +72,7 @@ extern asn_TYPE_member_t asn_MBR_GetAccessControlListAttributes_Response_1[5]; #endif /* Referred external types */ -#include +#include "AccessCondition.h" #endif /* _GetAccessControlListAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.c index 2db471a1..ce205036 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -81,43 +81,43 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(GetAccessControlListAttributes_Response, accessCont PY_IMPL_SEQ_ANON_ATTR_TOPY(GetAccessControlListAttributes_Response, accessControlListElements, &src->accessControlListElements, GetAccessControlListAttributes_Response_accessControlListElements_ANON_3); PY_IMPL_SEQ_INNER_SETATTR(GetAccessControlListAttributes_Response, accessControlListElements, accessControlListElements, GetAccessControlListAttributes_Response_accessControlListElements_ANON_3); PY_IMPL_SEQ_INNER_GETATTR(GetAccessControlListAttributes_Response, accessControlListElements, &self->ob_value->accessControlListElements, GetAccessControlListAttributes_Response_accessControlListElements_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(GetAccessControlListAttributes_Response_Member_ANON_13, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetAccessControlListAttributes_Response_Member_ANON_13, objectClass, ObjectClass); -PY_IMPL_SEQ_GETATTR(GetAccessControlListAttributes_Response_Member_ANON_13, objectClass); -PY_IMPL_SEQ_SETATTR(GetAccessControlListAttributes_Response_Member_ANON_13, objectClass); -PY_IMPL_SEQ_ATTR_FROMPY(GetAccessControlListAttributes_Response_Member_ANON_13, objectCount, PyCompatLong_FromObject(value, target, 1)); -PY_IMPL_SEQ_ATTR_TOPY(GetAccessControlListAttributes_Response_Member_ANON_13, objectCount, PyCompatLong_AsObject(target, 1)); -PY_IMPL_SEQ_GETATTR(GetAccessControlListAttributes_Response_Member_ANON_13, objectCount); -PY_IMPL_SEQ_SETATTR(GetAccessControlListAttributes_Response_Member_ANON_13, objectCount); -PY_IMPL_CHECK_CONSTRAINTS(GetAccessControlListAttributes_Response_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); -PY_IMPL_ENCODE(GetAccessControlListAttributes_Response_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); -PY_IMPL_DECODE(GetAccessControlListAttributes_Response_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); -PY_IMPL_DEALLOC(GetAccessControlListAttributes_Response_Member_ANON_13, *(asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type)); -PY_IMPL_SEQ_TOPY(GetAccessControlListAttributes_Response_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); -PY_IMPL_DECODE_BER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_Member_ANON_13, ber, ATS_BER); -PY_IMPL_DECODE_DER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_Member_ANON_13, der, ATS_DER); -PY_IMPL_DECODE_CER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_Member_ANON_13, cer, ATS_BER); -PY_IMPL_DECODE_XER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_ENCODE_XER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_Member_ANON_13, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_ENCODE_JER(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_GENERIC_NEW(GetAccessControlListAttributes_Response_Member_ANON_13, NULL); -PY_IMPL_REPR(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_GENERIC_IS_VALID(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_SEQ_FROMPY(GetAccessControlListAttributes_Response_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(GetAccessControlListAttributes_Response_Member_ANON_13, objectClass, objectClass); - PY_IMPL_SEQ_INIT_ATTR(GetAccessControlListAttributes_Response_Member_ANON_13, objectCount, objectCount); +PY_IMPL_SEQ_ATTR_FROMPY(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectClass, ObjectClass); +PY_IMPL_SEQ_GETATTR(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectClass); +PY_IMPL_SEQ_SETATTR(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectClass); +PY_IMPL_SEQ_ATTR_FROMPY(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectCount, PyCompatLong_FromObject(value, target, 1)); +PY_IMPL_SEQ_ATTR_TOPY(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectCount, PyCompatLong_AsObject(target, 1)); +PY_IMPL_SEQ_GETATTR(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectCount); +PY_IMPL_SEQ_SETATTR(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectCount); +PY_IMPL_CHECK_CONSTRAINTS(GetAccessControlListAttributes_Response_references_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); +PY_IMPL_ENCODE(GetAccessControlListAttributes_Response_references_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); +PY_IMPL_DECODE(GetAccessControlListAttributes_Response_references_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); +PY_IMPL_DEALLOC(GetAccessControlListAttributes_Response_references_Member_ANON_13, *(asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type)); +PY_IMPL_SEQ_TOPY(GetAccessControlListAttributes_Response_references_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type); +PY_IMPL_DECODE_BER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_references_Member_ANON_13, ber, ATS_BER); +PY_IMPL_DECODE_DER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_references_Member_ANON_13, der, ATS_DER); +PY_IMPL_DECODE_CER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_references_Member_ANON_13, cer, ATS_BER); +PY_IMPL_DECODE_XER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_ENCODE_XER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_ENCODE_SPECIFIC(GetAccessControlListAttributes_Response_references_Member_ANON_13, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_ENCODE_JER(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_GENERIC_NEW(GetAccessControlListAttributes_Response_references_Member_ANON_13, NULL); +PY_IMPL_REPR(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_GENERIC_IS_VALID(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_SEQ_FROMPY(GetAccessControlListAttributes_Response_references_Member_ANON_13, asn_DEF_GetAccessControlListAttributes_Response.elements[3].type->elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectClass, objectClass); + PY_IMPL_SEQ_INIT_ATTR(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectCount, objectCount); ); -PY_IMPL_SEQ_INIT(GetAccessControlListAttributes_Response_Member_ANON_13); -PY_IMPL_SEQ_OF_ITEM_TOPY(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_Member_ANON_13_t, PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_Member_ANON_13_t, PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_Member_ANON_13_t); -PY_IMPL_SEQ_OF_GENERIC_SETITEM(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_Member_ANON_13_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_GetAccessControlListAttributes_Response.elements[3].type)); -PY_IMPL_SEQ_OF_ADD(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_Member_ANON_13_t); +PY_IMPL_SEQ_INIT(GetAccessControlListAttributes_Response_references_Member_ANON_13); +PY_IMPL_SEQ_OF_ITEM_TOPY(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_references_Member_ANON_13_t, PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_references_Member_ANON_13_t, PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_references_Member_ANON_13_t); +PY_IMPL_SEQ_OF_GENERIC_SETITEM(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_references_Member_ANON_13_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_GetAccessControlListAttributes_Response.elements[3].type)); +PY_IMPL_SEQ_OF_ADD(GetAccessControlListAttributes_Response_references_ANON_12, GetAccessControlListAttributes_Response_references_Member_ANON_13_t); PY_IMPL_SEQ_OF_NEW(GetAccessControlListAttributes_Response_references_ANON_12); PY_IMPL_SEQ_OF_DEALLOC(GetAccessControlListAttributes_Response_references_ANON_12, asn_set_empty); PY_IMPL_SEQ_OF_INIT(GetAccessControlListAttributes_Response_references_ANON_12); @@ -199,9 +199,9 @@ static PyGetSetDef PyAsnGetAccessControlListAttributes_Response_accessControlLis PY_IMPL_GETSET_ITEM_INTERNAL(GetAccessControlListAttributes_Response_accessControlListElements_ANON_3, editAccessCondition, editAccessCondition), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; -static PyGetSetDef PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(GetAccessControlListAttributes_Response_Member_ANON_13, objectClass, objectClass), - PY_IMPL_GETSET_ITEM_INTERNAL(GetAccessControlListAttributes_Response_Member_ANON_13, objectCount, objectCount), +static PyGetSetDef PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectClass, objectClass), + PY_IMPL_GETSET_ITEM_INTERNAL(GetAccessControlListAttributes_Response_references_Member_ANON_13, objectCount, objectCount), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnGetAccessControlListAttributes_Response_references_ANON_12_getset[] = { @@ -238,20 +238,20 @@ static PyMethodDef PyAsnGetAccessControlListAttributes_Response_accessControlLis PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_accessControlListElements_ANON_3, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; -static PyMethodDef PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_methods[] = { - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnGetAccessControlListAttributes_Response_Member_ANON_13__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_Member_ANON_13, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_methods[] = { + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(GetAccessControlListAttributes_Response_references_Member_ANON_13, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnGetAccessControlListAttributes_Response_references_ANON_12_methods[] = { @@ -304,18 +304,18 @@ PyTypeObject PyAsnGetAccessControlListAttributes_Response_accessControlListEleme .tp_methods = PyAsnGetAccessControlListAttributes_Response_accessControlListElements_ANON_3_methods, .tp_doc = "ASN.1 anonymous type GetAccessControlListAttributes_Response__accessControlListElements_TYPE part of GetAccessControlListAttributes_Response", }; -PyTypeObject PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_Type = { +PyTypeObject PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.GetAccessControlListAttributes_Response.references_TYPE.Member_TYPE", - .tp_basicsize = sizeof(PyAsnGetAccessControlListAttributes_Response_Member_ANON_13Object), + .tp_basicsize = sizeof(PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnGetAccessControlListAttributes_Response_Member_ANON_13__new, - .tp_repr = (reprfunc)PyAsnGetAccessControlListAttributes_Response_Member_ANON_13__repr, - .tp_dealloc = (destructor)PyAsnGetAccessControlListAttributes_Response_Member_ANON_13__dealloc, - .tp_init = (initproc)PyAsnGetAccessControlListAttributes_Response_Member_ANON_13__init, - .tp_getset = PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_getset, - .tp_methods = PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_methods, - .tp_doc = "ASN.1 anonymous type GetAccessControlListAttributes_Response__references__Member_TYPE part of references", + .tp_new = (newfunc)PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13__new, + .tp_repr = (reprfunc)PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13__repr, + .tp_dealloc = (destructor)PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13__dealloc, + .tp_init = (initproc)PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13__init, + .tp_getset = PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_getset, + .tp_methods = PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_methods, + .tp_doc = "ASN.1 anonymous type GetAccessControlListAttributes_Response__references__references_Member_TYPE part of references", }; PyTypeObject PyAsnGetAccessControlListAttributes_Response_references_ANON_12_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -348,7 +348,7 @@ PyTypeObject PyAsnGetAccessControlListAttributes_Response_Type = { /* module initializer */ int PyAsnGetAccessControlListAttributes_Response_ModSetupTypes(void) { if (PyType_Ready(&PyAsnGetAccessControlListAttributes_Response_accessControlListElements_ANON_3_Type) < 0) return -1; - if (PyType_Ready(&PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_Type) < 0) return -1; + if (PyType_Ready(&PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_Type) < 0) return -1; if (PyType_Ready(&PyAsnGetAccessControlListAttributes_Response_references_ANON_12_Type) < 0) return -1; if (PyType_Ready(&PyAsnGetAccessControlListAttributes_Response_Type) < 0) return -1; return 0; @@ -359,7 +359,7 @@ void PyAsnGetAccessControlListAttributes_Response_ModClear(PyObject *mod) { int PyAsnGetAccessControlListAttributes_Response_ModInit(PyObject *mod) { PY_IMPL_MOD_ASSIGN_OBJECT(GetAccessControlListAttributes_Response, accessControlListElements_TYPE, &PyAsnGetAccessControlListAttributes_Response_accessControlListElements_ANON_3_Type); - PY_IMPL_MOD_ASSIGN_OBJECT(GetAccessControlListAttributes_Response_references_ANON_12, Member_TYPE, &PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(GetAccessControlListAttributes_Response_references_ANON_12, Member_TYPE, &PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_Type); PY_IMPL_MOD_ASSIGN_OBJECT(GetAccessControlListAttributes_Response, references_TYPE, &PyAsnGetAccessControlListAttributes_Response_references_ANON_12_Type); PY_IMPL_MOD_ADD_OBJECT(mod, GetAccessControlListAttributes_Response); return 0; diff --git a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.h index 9f452c16..e8c66ff5 100644 --- a/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetAccessControlListAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,20 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include #include #ifdef __cplusplus @@ -23,8 +36,8 @@ extern "C" { /* GetAccessControlListAttributes-Response */ PyCompat_DEF_ANON_STRUCT(GetAccessControlListAttributes_Response_accessControlListElements_ANON_3, GetAccessControlListAttributes_Response__accessControlListElements); PyCompat_DEF_TYPE(GetAccessControlListAttributes_Response_accessControlListElements_ANON_3); -PyCompat_DEF_ANON_STRUCT(GetAccessControlListAttributes_Response_Member_ANON_13, GetAccessControlListAttributes_Response__references__Member); -PyCompat_DEF_TYPE(GetAccessControlListAttributes_Response_Member_ANON_13); +PyCompat_DEF_ANON_STRUCT(GetAccessControlListAttributes_Response_references_Member_ANON_13, GetAccessControlListAttributes_Response__references__references_Member); +PyCompat_DEF_TYPE(GetAccessControlListAttributes_Response_references_Member_ANON_13); typedef struct GetAccessControlListAttributes_Response__references GetAccessControlListAttributes_Response_references_ANON_12_t; PyCompat_DEF_STRUCT(GetAccessControlListAttributes_Response_references_ANON_12); PyCompat_DEF_TYPE(GetAccessControlListAttributes_Response_references_ANON_12); @@ -34,8 +47,8 @@ PyCompat_DEF_TYPE(GetAccessControlListAttributes_Response); /* Type Converters */ int PyAsnGetAccessControlListAttributes_Response_accessControlListElements_ANON_3_FromPython(PyObject *pObj, GetAccessControlListAttributes_Response_accessControlListElements_ANON_3_t *pDst); PyObject *PyAsnGetAccessControlListAttributes_Response_accessControlListElements_ANON_3_ToPython(GetAccessControlListAttributes_Response_accessControlListElements_ANON_3_t *pSrc, PyObject *parent); -int PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_FromPython(PyObject *pObj, GetAccessControlListAttributes_Response_Member_ANON_13_t *pDst); -PyObject *PyAsnGetAccessControlListAttributes_Response_Member_ANON_13_ToPython(GetAccessControlListAttributes_Response_Member_ANON_13_t *pSrc, PyObject *parent); +int PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_FromPython(PyObject *pObj, GetAccessControlListAttributes_Response_references_Member_ANON_13_t *pDst); +PyObject *PyAsnGetAccessControlListAttributes_Response_references_Member_ANON_13_ToPython(GetAccessControlListAttributes_Response_references_Member_ANON_13_t *pSrc, PyObject *parent); int PyAsnGetAccessControlListAttributes_Response_references_ANON_12_FromPython(PyObject *pObj, GetAccessControlListAttributes_Response_references_ANON_12_t *pDst); PyObject *PyAsnGetAccessControlListAttributes_Response_references_ANON_12_ToPython(GetAccessControlListAttributes_Response_references_ANON_12_t *pSrc, PyObject *parent); int PyAsnGetAccessControlListAttributes_Response_FromPython(PyObject *pObj, GetAccessControlListAttributes_Response_t *pDst); diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.c b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.c index 6d0640e8..58cd0796 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_severityFilter __attribute__((weak, alias("asn_DEF_severityFilter_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_severityFilter_8; +static asn_TYPE_descriptor_t asn_DEF_severityFilter; +__attribute__((constructor)) static void asn_DEF_severityFilter_8_alias_init(void) { + asn_DEF_severityFilter = asn_DEF_severityFilter_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_acknowledgementFilter_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -95,7 +106,7 @@ static int asn_DFL_4_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_severityFilter_8[] = { +static asn_TYPE_member_t asn_MBR_GetAlarmEnrollmentSummary_Request__severityFilter_8[] = { { ATF_NOFLAGS, 0, offsetof(struct GetAlarmEnrollmentSummary_Request__severityFilter, mostSevere), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -176,7 +187,7 @@ asn_TYPE_descriptor_t asn_DEF_severityFilter_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_severityFilter_8, + asn_MBR_GetAlarmEnrollmentSummary_Request__severityFilter_8, 2, /* Elements count */ &asn_SPC_severityFilter_specs_8 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.h b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.h index 2f74e9f7..e8874ddf 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,7 +12,7 @@ /* Including external dependencies */ #include #include -#include +#include "Unsigned8.h" #include #ifdef __cplusplus @@ -31,17 +31,17 @@ struct ObjectName; /* GetAlarmEnrollmentSummary-Request */ typedef struct GetAlarmEnrollmentSummary_Request { - BOOLEAN_t *enrollmentsOnly; /* DEFAULT TRUE */ - BOOLEAN_t *activeAlarmsOnly; /* DEFAULT TRUE */ - long acknowledgementFilter; /* DEFAULT 0 */ + BOOLEAN_t *enrollmentsOnly; /* DEFAULT TRUE */ + BOOLEAN_t *activeAlarmsOnly; /* DEFAULT TRUE */ + long acknowledgementFilter; /* DEFAULT 0 */ struct GetAlarmEnrollmentSummary_Request__severityFilter { - Unsigned8_t mostSevere; - Unsigned8_t leastSevere; + Unsigned8_t mostSevere; + Unsigned8_t leastSevere; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *severityFilter; - struct ObjectName *continueAfter; /* OPTIONAL */ + struct ObjectName *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -57,7 +57,7 @@ extern asn_TYPE_member_t asn_MBR_GetAlarmEnrollmentSummary_Request_1[5]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _GetAlarmEnrollmentSummary_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.c b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.c index e7fd634e..35b0d17f 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.h b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.h index a195c1b0..e95ff344 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.c b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.c index 0a620f89..484274f3 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfAlarmEnrollmentSummary_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfAlarmEnrollmentSummary __attribute__((weak, alias("asn_DEF_listOfAlarmEnrollmentSummary_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfAlarmEnrollmentSummary_2; +static asn_TYPE_descriptor_t asn_DEF_listOfAlarmEnrollmentSummary; +__attribute__((constructor)) static void asn_DEF_listOfAlarmEnrollmentSummary_2_alias_init(void) { + asn_DEF_listOfAlarmEnrollmentSummary = asn_DEF_listOfAlarmEnrollmentSummary_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetAlarmEnrollmentSummary_Response__listOfAlarmEnrollmentSummary_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfAlarmEnrollmentSummary_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfAlarmEnrollmentSummary_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfAlarmEnrollmentSummary_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfAlarmEnrollmentSummary_2, + asn_MBR_GetAlarmEnrollmentSummary_Response__listOfAlarmEnrollmentSummary_2, 1, /* Single element */ &asn_SPC_listOfAlarmEnrollmentSummary_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.h b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.h index e9697178..ba4bcf24 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct GetAlarmEnrollmentSummary_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfAlarmEnrollmentSummary; - BOOLEAN_t moreFollows; /* DEFAULT FALSE */ + BOOLEAN_t moreFollows; /* DEFAULT FALSE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_GetAlarmEnrollmentSummary_Response_1[2]; #endif /* Referred external types */ -#include +#include "AlarmEnrollmentSummary.h" #endif /* _GetAlarmEnrollmentSummary_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.c b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.c index 36ea2b93..9d325b91 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.h b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.h index 47fe6f0c..21c68e0c 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmEnrollmentSummary-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.c b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.c index 5d09398a..12d4b679 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_severityFilter __attribute__((weak, alias("asn_DEF_severityFilter_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_severityFilter_8; +static asn_TYPE_descriptor_t asn_DEF_severityFilter; +__attribute__((constructor)) static void asn_DEF_severityFilter_8_alias_init(void) { + asn_DEF_severityFilter = asn_DEF_severityFilter_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_acknowledgementFilter_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -95,7 +106,7 @@ static int asn_DFL_4_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_severityFilter_8[] = { +static asn_TYPE_member_t asn_MBR_GetAlarmSummary_Request__severityFilter_8[] = { { ATF_NOFLAGS, 0, offsetof(struct GetAlarmSummary_Request__severityFilter, mostSevere), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -176,7 +187,7 @@ asn_TYPE_descriptor_t asn_DEF_severityFilter_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_severityFilter_8, + asn_MBR_GetAlarmSummary_Request__severityFilter_8, 2, /* Elements count */ &asn_SPC_severityFilter_specs_8 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.h b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.h index 63370c6b..92be5c3e 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,7 +12,7 @@ /* Including external dependencies */ #include #include -#include +#include "Unsigned8.h" #include #ifdef __cplusplus @@ -31,17 +31,17 @@ struct ObjectName; /* GetAlarmSummary-Request */ typedef struct GetAlarmSummary_Request { - BOOLEAN_t *enrollmentsOnly; /* DEFAULT TRUE */ - BOOLEAN_t *activeAlarmsOnly; /* DEFAULT TRUE */ - long acknowledgementFilter; /* DEFAULT 0 */ + BOOLEAN_t *enrollmentsOnly; /* DEFAULT TRUE */ + BOOLEAN_t *activeAlarmsOnly; /* DEFAULT TRUE */ + long acknowledgementFilter; /* DEFAULT 0 */ struct GetAlarmSummary_Request__severityFilter { - Unsigned8_t mostSevere; - Unsigned8_t leastSevere; + Unsigned8_t mostSevere; + Unsigned8_t leastSevere; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *severityFilter; - struct ObjectName *continueAfter; /* OPTIONAL */ + struct ObjectName *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -57,7 +57,7 @@ extern asn_TYPE_member_t asn_MBR_GetAlarmSummary_Request_1[5]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _GetAlarmSummary_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.c b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.c index 7efe4a91..0a1112aa 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.h b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.h index b0c95ad8..e3159144 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.c b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.c index d6893002..2ba82ac3 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfAlarmSummary_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfAlarmSummary __attribute__((weak, alias("asn_DEF_listOfAlarmSummary_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfAlarmSummary_2; +static asn_TYPE_descriptor_t asn_DEF_listOfAlarmSummary; +__attribute__((constructor)) static void asn_DEF_listOfAlarmSummary_2_alias_init(void) { + asn_DEF_listOfAlarmSummary = asn_DEF_listOfAlarmSummary_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetAlarmSummary_Response__listOfAlarmSummary_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfAlarmSummary_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfAlarmSummary_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfAlarmSummary_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfAlarmSummary_2, + asn_MBR_GetAlarmSummary_Response__listOfAlarmSummary_2, 1, /* Single element */ &asn_SPC_listOfAlarmSummary_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.h b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.h index 30c20a0d..e626eb40 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct GetAlarmSummary_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfAlarmSummary; - BOOLEAN_t moreFollows; /* DEFAULT FALSE */ + BOOLEAN_t moreFollows; /* DEFAULT FALSE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_GetAlarmSummary_Response_1[2]; #endif /* Referred external types */ -#include +#include "AlarmSummary.h" #endif /* _GetAlarmSummary_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.c b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.c index ef5f70aa..046e1a74 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.h b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.h index ce99d078..983a6850 100644 --- a/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetAlarmSummary-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.c b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.c index cc71f548..7ab6daf7 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.c +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.h b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.h index e82afa1a..f611782d 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.h +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "MMSString.h" #include #ifdef __cplusplus @@ -19,7 +19,7 @@ extern "C" { /* GetCapabilityList-Request */ typedef struct GetCapabilityList_Request { - MMSString_t *continueAfter; /* OPTIONAL */ + MMSString_t *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.c b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.c index a401baa7..2c2aee99 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.h b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.h index d5d96c1c..33face08 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.c b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.c index 34191528..e49acae7 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.c +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfCapabilities_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfCapabilities __attribute__((weak, alias("asn_DEF_listOfCapabilities_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_2; +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities; +__attribute__((constructor)) static void asn_DEF_listOfCapabilities_2_alias_init(void) { + asn_DEF_listOfCapabilities = asn_DEF_listOfCapabilities_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetCapabilityList_Response__listOfCapabilities_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfCapabilities_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfCapabilities_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfCapabilities_2, + asn_MBR_GetCapabilityList_Response__listOfCapabilities_2, 1, /* Single element */ &asn_SPC_listOfCapabilities_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.h b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.h index 4a8019f2..843275a5 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.h +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "MMSString.h" #include #include #include @@ -28,7 +28,7 @@ typedef struct GetCapabilityList_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfCapabilities; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.c b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.c index 9ed66c53..47dfeebf 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.h b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.h index 5b24f2dd..462802c5 100644 --- a/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetCapabilityList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.c index bb1634f4..9bccda3f 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.h index 9ce0262f..473481d4 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetDataExchangeAttributes-Request */ -typedef ObjectName_t GetDataExchangeAttributes_Request_t; +typedef ObjectName_t GetDataExchangeAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetDataExchangeAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.c index 4a9ed995..549d4a9a 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.h index a6ba5b9b..dfb27f27 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.c index f6bf4413..ee35ffd5 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfRequestTypeDescriptions_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfRequestTypeDescriptions __attribute__((weak, alias("asn_DEF_listOfRequestTypeDescriptions_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfRequestTypeDescriptions_3; +static asn_TYPE_descriptor_t asn_DEF_listOfRequestTypeDescriptions; +__attribute__((constructor)) static void asn_DEF_listOfRequestTypeDescriptions_3_alias_init(void) { + asn_DEF_listOfRequestTypeDescriptions = asn_DEF_listOfRequestTypeDescriptions_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfResponseTypeDescriptions __attribute__((weak, alias("asn_DEF_listOfResponseTypeDescriptions_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfResponseTypeDescriptions_5; +static asn_TYPE_descriptor_t asn_DEF_listOfResponseTypeDescriptions; +__attribute__((constructor)) static void asn_DEF_listOfResponseTypeDescriptions_5_alias_init(void) { + asn_DEF_listOfResponseTypeDescriptions = asn_DEF_listOfResponseTypeDescriptions_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetDataExchangeAttributes_Response__listOfRequestTypeDescriptions_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfRequestTypeDescriptions_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfRequestTypeDescriptions_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfRequestTypeDescriptions_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfRequestTypeDescriptions_3, + asn_MBR_GetDataExchangeAttributes_Response__listOfRequestTypeDescriptions_3, 1, /* Single element */ &asn_SPC_listOfRequestTypeDescriptions_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfResponseTypeDescriptions_5[] = { +static asn_TYPE_member_t asn_MBR_GetDataExchangeAttributes_Response__listOfResponseTypeDescriptions_5[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_listOfResponseTypeDescriptions_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfResponseTypeDescriptions_tags_5[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfResponseTypeDescriptions_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfResponseTypeDescriptions_5, + asn_MBR_GetDataExchangeAttributes_Response__listOfResponseTypeDescriptions_5, 1, /* Single element */ &asn_SPC_listOfResponseTypeDescriptions_specs_5 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.h index 1e9e8918..908996ac 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -25,7 +25,7 @@ struct TypeDescription; /* GetDataExchangeAttributes-Response */ typedef struct GetDataExchangeAttributes_Response { - BOOLEAN_t inUse; + BOOLEAN_t inUse; struct GetDataExchangeAttributes_Response__listOfRequestTypeDescriptions { A_SEQUENCE_OF(struct TypeDescription) list; @@ -38,8 +38,8 @@ typedef struct GetDataExchangeAttributes_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfResponseTypeDescriptions; - Identifier_t *programInvocation; /* OPTIONAL */ - Identifier_t *accessControlList; /* OPTIONAL */ + Identifier_t *programInvocation; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -55,7 +55,7 @@ extern asn_TYPE_member_t asn_MBR_GetDataExchangeAttributes_Response_1[5]; #endif /* Referred external types */ -#include +#include "TypeDescription.h" #endif /* _GetDataExchangeAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.c index 608f7ba1..494c7be9 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.h index 830fced2..9b207157 100644 --- a/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetDataExchangeAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.c index 78122e95..b6dcc539 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.h index 8d3f81d0..460f5967 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* GetDomainAttributes-Request */ -typedef Identifier_t GetDomainAttributes_Request_t; +typedef Identifier_t GetDomainAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetDomainAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.c index 2b14f93f..60fd26a1 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.h index acca60dd..cdbd4a7f 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.c index 92e3dfbc..626926c3 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfCapabilities_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfCapabilities __attribute__((weak, alias("asn_DEF_listOfCapabilities_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_2; +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities; +__attribute__((constructor)) static void asn_DEF_listOfCapabilities_2_alias_init(void) { + asn_DEF_listOfCapabilities = asn_DEF_listOfCapabilities_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfProgramInvocations __attribute__((weak, alias("asn_DEF_listOfProgramInvocations_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfProgramInvocations_7; +static asn_TYPE_descriptor_t asn_DEF_listOfProgramInvocations; +__attribute__((constructor)) static void asn_DEF_listOfProgramInvocations_7_alias_init(void) { + asn_DEF_listOfProgramInvocations = asn_DEF_listOfProgramInvocations_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetDomainAttributes_Response__listOfCapabilities_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfCapabilities_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfCapabilities_tags_2[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfCapabilities_2, + asn_MBR_GetDomainAttributes_Response__listOfCapabilities_2, 1, /* Single element */ &asn_SPC_listOfCapabilities_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfProgramInvocations_7[] = { +static asn_TYPE_member_t asn_MBR_GetDomainAttributes_Response__listOfProgramInvocations_7[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_listOfProgramInvocations_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfProgramInvocations_tags_7[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfProgramInvocations_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfProgramInvocations_7, + asn_MBR_GetDomainAttributes_Response__listOfProgramInvocations_7, 1, /* Single element */ &asn_SPC_listOfProgramInvocations_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.h index b5947c1a..ab570ffc 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,11 +10,11 @@ #include /* Including external dependencies */ -#include +#include "DomainState.h" #include -#include -#include -#include +#include "Integer8.h" +#include "Identifier.h" +#include "MMSString.h" #include #include #include @@ -31,17 +31,17 @@ typedef struct GetDomainAttributes_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfCapabilities; - DomainState_t state; - BOOLEAN_t mmsDeletable; - BOOLEAN_t sharable; + DomainState_t state; + BOOLEAN_t mmsDeletable; + BOOLEAN_t sharable; struct GetDomainAttributes_Response__listOfProgramInvocations { A_SEQUENCE_OF(Identifier_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfProgramInvocations; - Integer8_t uploadInProgress; - Identifier_t *accessControlList; /* OPTIONAL */ + Integer8_t uploadInProgress; + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.c index 4400b9c6..7b1950bb 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.h index 2d45ede5..0e05b3d3 100644 --- a/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetDomainAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,9 +13,14 @@ #include #include #include +#include +#include #include +#include +#include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.c index 21d6f540..d313f42e 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.h index 016f20cc..bbcc61b9 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetEventActionAttributes-Request */ -typedef ObjectName_t GetEventActionAttributes_Request_t; +typedef ObjectName_t GetEventActionAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetEventActionAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.c index 333b04c5..947aaf1f 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.h index 8a12943c..800aedea 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.c index 8f9f2f37..5c576dbd 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfModifier __attribute__((weak, alias("asn_DEF_listOfModifier_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfModifier_3; +static asn_TYPE_descriptor_t asn_DEF_listOfModifier; +__attribute__((constructor)) static void asn_DEF_listOfModifier_3_alias_init(void) { + asn_DEF_listOfModifier = asn_DEF_listOfModifier_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int asn_DFL_2_cmp_0(const void *sptr) { const BOOLEAN_t *st = sptr; @@ -26,7 +37,7 @@ static int asn_DFL_2_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_listOfModifier_3[] = { +static asn_TYPE_member_t asn_MBR_GetEventActionAttributes_Response__listOfModifier_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -45,7 +56,7 @@ static asn_TYPE_member_t asn_MBR_listOfModifier_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfModifier_tags_3[] = { @@ -80,7 +91,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfModifier_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfModifier_3, + asn_MBR_GetEventActionAttributes_Response__listOfModifier_3, 1, /* Single element */ &asn_SPC_listOfModifier_specs_3 /* Additional specs */ }; @@ -127,7 +138,7 @@ asn_TYPE_member_t asn_MBR_GetEventActionAttributes_Response_1[] = { 0, 0, /* No default value */ "listOfModifier" }, - { ATF_NOFLAGS, 0, offsetof(struct GetEventActionAttributes_Response, confirmedServiceRequest), + { ATF_POINTER, 0, offsetof(struct GetEventActionAttributes_Response, confirmedServiceRequest), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ConfirmedServiceRequest, diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.h index 590ae333..ee2af69e 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,8 +11,7 @@ /* Including external dependencies */ #include -#include -#include +#include "Identifier.h" #include #include #include @@ -22,21 +21,22 @@ extern "C" { #endif /* Forward declarations */ +struct ConfirmedServiceRequest; struct Request_Detail; struct Modifier; /* GetEventActionAttributes-Response */ typedef struct GetEventActionAttributes_Response { - BOOLEAN_t mmsDeletable; /* DEFAULT FALSE */ + BOOLEAN_t mmsDeletable; /* DEFAULT FALSE */ struct GetEventActionAttributes_Response__listOfModifier { A_SEQUENCE_OF(struct Modifier) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfModifier; - ConfirmedServiceRequest_t confirmedServiceRequest; - struct Request_Detail *cs_extension; /* OPTIONAL */ - Identifier_t *accessControlList; /* OPTIONAL */ + struct ConfirmedServiceRequest *confirmedServiceRequest; + struct Request_Detail *cs_extension; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -52,8 +52,9 @@ extern asn_TYPE_member_t asn_MBR_GetEventActionAttributes_Response_1[5]; #endif /* Referred external types */ -#include -#include +#include "ConfirmedServiceRequest.h" +#include "Request-Detail.h" +#include "Modifier.h" #endif /* _GetEventActionAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.c index 697bc5b3..a8a4825f 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -43,9 +43,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(GetEventActionAttributes_Response, mmsDeletable, PyCompa PY_IMPL_SEQ_ATTR_TOPY(GetEventActionAttributes_Response, mmsDeletable, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); PY_IMPL_SEQ_GETATTR(GetEventActionAttributes_Response, mmsDeletable); PY_IMPL_SEQ_SETATTR(GetEventActionAttributes_Response, mmsDeletable); -PY_IMPL_SEQ_ATTR_FROMPY(GetEventActionAttributes_Response, confirmedServiceRequest, PyAsnConfirmedServiceRequest_FromPython(value, (ConfirmedServiceRequest_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetEventActionAttributes_Response, confirmedServiceRequest, ConfirmedServiceRequest); -PY_IMPL_SEQ_GETATTR(GetEventActionAttributes_Response, confirmedServiceRequest); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetEventActionAttributes_Response, confirmedServiceRequest); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetEventActionAttributes_Response, confirmedServiceRequest, ConfirmedServiceRequest_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetEventActionAttributes_Response, confirmedServiceRequest, PyAsnConfirmedServiceRequest_FromPython(value, (ConfirmedServiceRequest_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetEventActionAttributes_Response, confirmedServiceRequest, ConfirmedServiceRequest); +PY_IMPL_SEQ_AUTOVIV_GETATTR(GetEventActionAttributes_Response, confirmedServiceRequest); PY_IMPL_SEQ_SETATTR(GetEventActionAttributes_Response, confirmedServiceRequest); PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetEventActionAttributes_Response, cs_extension); PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetEventActionAttributes_Response, cs_extension, Request_Detail_t); diff --git a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.h index 29f64a6a..28bdea54 100644 --- a/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventActionAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.c index a2ef6e26..5ab74d8a 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.h index 4f67b35a..17d1c0dc 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetEventConditionAttributes-Request */ -typedef ObjectName_t GetEventConditionAttributes_Request_t; +typedef ObjectName_t GetEventConditionAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetEventConditionAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.c index eb5db79f..d1c1c175 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.h index d45fbd57..1549f475 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.c index aadbcf2e..8b53b96c 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_monitoredVariable __attribute__((weak, alias("asn_DEF_monitoredVariable_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_monitoredVariable_7; +static asn_TYPE_descriptor_t asn_DEF_monitoredVariable; +__attribute__((constructor)) static void asn_DEF_monitoredVariable_7_alias_init(void) { + asn_DEF_monitoredVariable = asn_DEF_monitoredVariable_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int asn_DFL_2_cmp_0(const void *sptr) { const BOOLEAN_t *st = sptr; @@ -92,7 +103,7 @@ static int asn_DFL_6_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_monitoredVariable_7[] = { +static asn_TYPE_member_t asn_MBR_GetEventConditionAttributes_Response__monitoredVariable_7[] = { { ATF_NOFLAGS, 0, offsetof(struct GetEventConditionAttributes_Response__monitoredVariable, choice.variableReference), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -169,7 +180,7 @@ asn_TYPE_descriptor_t asn_DEF_monitoredVariable_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_monitoredVariable_7, + asn_MBR_GetEventConditionAttributes_Response__monitoredVariable_7, 2, /* Elements count */ &asn_SPC_monitoredVariable_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.h index ebbaf094..5d6b6215 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,12 +11,12 @@ /* Including external dependencies */ #include -#include -#include -#include -#include -#include -#include +#include "EC-Class.h" +#include "Priority.h" +#include "Unsigned8.h" +#include "Unsigned32.h" +#include "Identifier.h" +#include "VariableSpecification.h" #include #include #include @@ -34,23 +34,23 @@ typedef enum GetEventConditionAttributes_Response__monitoredVariable_PR { /* GetEventConditionAttributes-Response */ typedef struct GetEventConditionAttributes_Response { - BOOLEAN_t mmsDeletable; /* DEFAULT FALSE */ - EC_Class_t Class; - Priority_t *priority; /* DEFAULT 64 */ - Unsigned8_t *severity; /* DEFAULT 64 */ - BOOLEAN_t alarmSummaryReports; /* DEFAULT FALSE */ + BOOLEAN_t mmsDeletable; /* DEFAULT FALSE */ + EC_Class_t Class; + Priority_t *priority; /* DEFAULT 64 */ + Unsigned8_t *severity; /* DEFAULT 64 */ + BOOLEAN_t alarmSummaryReports; /* DEFAULT FALSE */ struct GetEventConditionAttributes_Response__monitoredVariable { GetEventConditionAttributes_Response__monitoredVariable_PR present; union GetEventConditionAttributes_Response__monitoredVariable_u { - VariableSpecification_t variableReference; - NULL_t undefined; + VariableSpecification_t variableReference; + NULL_t undefined; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *monitoredVariable; - Unsigned32_t *evaluationInterval; /* OPTIONAL */ - Identifier_t *accessControlList; /* OPTIONAL */ + Unsigned32_t *evaluationInterval; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.c index ec3c79aa..8779d2f6 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -101,7 +101,7 @@ PY_IMPL_REPR(GetEventConditionAttributes_Response); PY_IMPL_GENERIC_IS_VALID(GetEventConditionAttributes_Response); PY_IMPL_SEQ_FROMPY(GetEventConditionAttributes_Response, &asn_DEF_GetEventConditionAttributes_Response, PY_IMPL_SEQ_INIT_ATTR(GetEventConditionAttributes_Response, mmsDeletable, mmsDeletable); - PY_IMPL_SEQ_INIT_ATTR(GetEventConditionAttributes_Response, class_, Class); + PY_IMPL_SEQ_INIT_ATTR(GetEventConditionAttributes_Response, c_l_a_s_s_, Class); PY_IMPL_SEQ_INIT_ATTR(GetEventConditionAttributes_Response, priority, priority); PY_IMPL_SEQ_INIT_ATTR(GetEventConditionAttributes_Response, severity, severity); PY_IMPL_SEQ_INIT_ATTR(GetEventConditionAttributes_Response, alarmSummaryReports, alarmSummaryReports); @@ -120,7 +120,7 @@ static PyGetSetDef PyAsnGetEventConditionAttributes_Response_monitoredVariable_A }; static PyGetSetDef PyAsnGetEventConditionAttributes_Response_getset[] = { PY_IMPL_GETSET_ITEM_INTERNAL(GetEventConditionAttributes_Response, mmsDeletable, mmsDeletable), - PY_IMPL_GETSET_ITEM_INTERNAL(GetEventConditionAttributes_Response, class_, Class), + PY_IMPL_GETSET_ITEM_INTERNAL(GetEventConditionAttributes_Response, c_l_a_s_s_, Class), PY_IMPL_GETSET_ITEM_INTERNAL(GetEventConditionAttributes_Response, priority, priority), PY_IMPL_GETSET_ITEM_INTERNAL(GetEventConditionAttributes_Response, severity, severity), PY_IMPL_GETSET_ITEM_INTERNAL(GetEventConditionAttributes_Response, alarmSummaryReports, alarmSummaryReports), diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.h index 18cba7ec..53a4e305 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.c index e18e14b2..ab52fea4 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.h index 0746735b..5d8ca853 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetEventConditionListAttributes-Request */ -typedef ObjectName_t GetEventConditionListAttributes_Request_t; +typedef ObjectName_t GetEventConditionListAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetEventConditionListAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.c index eb1fd256..4d2a6dd6 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.h index a6ff57bc..a0836ce1 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.c index 3da85bc9..4112ad70 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfEventConditionName_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName __attribute__((weak, alias("asn_DEF_listOfEventConditionName_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_2; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionName_2_alias_init(void) { + asn_DEF_listOfEventConditionName = asn_DEF_listOfEventConditionName_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName __attribute__((weak, alias("asn_DEF_listOfEventConditionListName_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_4; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionListName_4_alias_init(void) { + asn_DEF_listOfEventConditionListName = asn_DEF_listOfEventConditionListName_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetEventConditionListAttributes_Response__listOfEventConditionName_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionName_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionName_tags_2[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionName_2, + asn_MBR_GetEventConditionListAttributes_Response__listOfEventConditionName_2, 1, /* Single element */ &asn_SPC_listOfEventConditionName_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_4[] = { +static asn_TYPE_member_t asn_MBR_GetEventConditionListAttributes_Response__listOfEventConditionListName_4[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionListName_tags_4[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionListName_4, + asn_MBR_GetEventConditionListAttributes_Response__listOfEventConditionListName_4, 1, /* Single element */ &asn_SPC_listOfEventConditionListName_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.h index d1ba5110..0b6c91d3 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -50,7 +50,7 @@ extern asn_TYPE_member_t asn_MBR_GetEventConditionListAttributes_Response_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _GetEventConditionListAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.c index 4a84f6f4..ba05f3e1 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.h index d226cbcb..a97f8b2e 100644 --- a/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventConditionListAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,11 @@ #include #include #include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.c index 05fbeee5..54f9ff1a 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_eventEnrollmentNames __attribute__((weak, alias("asn_DEF_eventEnrollmentNames_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_eventEnrollmentNames_7; +static asn_TYPE_descriptor_t asn_DEF_eventEnrollmentNames; +__attribute__((constructor)) static void asn_DEF_eventEnrollmentNames_7_alias_init(void) { + asn_DEF_eventEnrollmentNames = asn_DEF_eventEnrollmentNames_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_scopeOfRequest_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -51,7 +62,7 @@ static int asn_DFL_2_set_1(void **sptr) { *st = 1; return 0; } -static asn_TYPE_member_t asn_MBR_eventEnrollmentNames_7[] = { +static asn_TYPE_member_t asn_MBR_GetEventEnrollmentAttributes_Request__eventEnrollmentNames_7[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -70,7 +81,7 @@ static asn_TYPE_member_t asn_MBR_eventEnrollmentNames_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_eventEnrollmentNames_tags_7[] = { @@ -105,7 +116,7 @@ asn_TYPE_descriptor_t asn_DEF_eventEnrollmentNames_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_eventEnrollmentNames_7, + asn_MBR_GetEventEnrollmentAttributes_Request__eventEnrollmentNames_7, 1, /* Single element */ &asn_SPC_eventEnrollmentNames_specs_7 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.h index 1e84e28d..de1c4c75 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -33,17 +33,17 @@ struct ObjectName; /* GetEventEnrollmentAttributes-Request */ typedef struct GetEventEnrollmentAttributes_Request { - long *scopeOfRequest; /* DEFAULT 1 */ + long *scopeOfRequest; /* DEFAULT 1 */ struct GetEventEnrollmentAttributes_Request__eventEnrollmentNames { A_SEQUENCE_OF(struct ObjectName) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *eventEnrollmentNames; - struct ApplicationReference *clientApplication; /* OPTIONAL */ - struct ObjectName *eventConditionName; /* OPTIONAL */ - struct ObjectName *eventActionName; /* OPTIONAL */ - struct ObjectName *continueAfter; /* OPTIONAL */ + struct ApplicationReference *clientApplication; /* OPTIONAL */ + struct ObjectName *eventConditionName; /* OPTIONAL */ + struct ObjectName *eventActionName; /* OPTIONAL */ + struct ObjectName *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -59,8 +59,8 @@ extern asn_TYPE_member_t asn_MBR_GetEventEnrollmentAttributes_Request_1[6]; #endif /* Referred external types */ -#include -#include +#include "ApplicationReference.h" +#include "ObjectName.h" #endif /* _GetEventEnrollmentAttributes_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.c index 1237177c..5c6af71b 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.h index 5c8abc52..58a48b3f 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,12 @@ #include #include #include +#include +#include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.c index d7210f53..293a679c 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfEEAttributes_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEEAttributes __attribute__((weak, alias("asn_DEF_listOfEEAttributes_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEEAttributes_2; +static asn_TYPE_descriptor_t asn_DEF_listOfEEAttributes; +__attribute__((constructor)) static void asn_DEF_listOfEEAttributes_2_alias_init(void) { + asn_DEF_listOfEEAttributes = asn_DEF_listOfEEAttributes_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetEventEnrollmentAttributes_Response__listOfEEAttributes_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfEEAttributes_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEEAttributes_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfEEAttributes_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEEAttributes_2, + asn_MBR_GetEventEnrollmentAttributes_Response__listOfEEAttributes_2, 1, /* Single element */ &asn_SPC_listOfEEAttributes_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.h index a8d4a40f..fd8b8744 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct GetEventEnrollmentAttributes_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfEEAttributes; - BOOLEAN_t moreFollows; /* DEFAULT FALSE */ + BOOLEAN_t moreFollows; /* DEFAULT FALSE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_GetEventEnrollmentAttributes_Response_1[2]; #endif /* Referred external types */ -#include +#include "EEAttributes.h" #endif /* _GetEventEnrollmentAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.c index 6039569e..741dcced 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.h index f5b0e511..89cd7a62 100644 --- a/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetEventEnrollmentAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Request.c b/src/icspacket/proto/mms/_mms/GetNameList-Request.c index 7efefcc1..3c5e88ae 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Request.c +++ b/src/icspacket/proto/mms/_mms/GetNameList-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_objectScope_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_objectScope __attribute__((weak, alias("asn_DEF_objectScope_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_objectScope_3; +static asn_TYPE_descriptor_t asn_DEF_objectScope; +__attribute__((constructor)) static void asn_DEF_objectScope_3_alias_init(void) { + asn_DEF_objectScope = asn_DEF_objectScope_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetNameList_Request__objectScope_3[] = { { ATF_NOFLAGS, 0, offsetof(struct GetNameList_Request__objectScope, choice.vmdSpecific), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,13 +113,13 @@ asn_TYPE_descriptor_t asn_DEF_objectScope_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_objectScope_3, + asn_MBR_GetNameList_Request__objectScope_3, 3, /* Elements count */ &asn_SPC_objectScope_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_GetNameList_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GetNameList_Request, objectClass), + { ATF_POINTER, 0, offsetof(struct GetNameList_Request, objectClass), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectClass, diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Request.h b/src/icspacket/proto/mms/_mms/GetNameList-Request.h index a6e340a6..a8ae5f38 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Request.h +++ b/src/icspacket/proto/mms/_mms/GetNameList-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #include #include @@ -28,21 +27,24 @@ typedef enum GetNameList_Request__objectScope_PR { GetNameList_Request__objectScope_PR_aaSpecific } GetNameList_Request__objectScope_PR; +/* Forward declarations */ +struct ObjectClass; + /* GetNameList-Request */ typedef struct GetNameList_Request { - ObjectClass_t objectClass; + struct ObjectClass *objectClass; struct GetNameList_Request__objectScope { GetNameList_Request__objectScope_PR present; union GetNameList_Request__objectScope_u { - NULL_t vmdSpecific; - Identifier_t domainSpecific; - NULL_t aaSpecific; + NULL_t vmdSpecific; + Identifier_t domainSpecific; + NULL_t aaSpecific; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } objectScope; - Identifier_t *continueAfter; /* OPTIONAL */ + Identifier_t *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -57,5 +59,8 @@ extern asn_TYPE_member_t asn_MBR_GetNameList_Request_1[3]; } #endif +/* Referred external types */ +#include "ObjectClass.h" + #endif /* _GetNameList_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.c b/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.c index a62d0c81..a9321146 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -49,9 +49,11 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(GetNameList_Request, objectScope, &src->objectScope PY_IMPL_SEQ_ANON_ATTR_TOPY(GetNameList_Request, objectScope, &src->objectScope, GetNameList_Request_objectScope_ANON_3); PY_IMPL_SEQ_INNER_SETATTR(GetNameList_Request, objectScope, objectScope, GetNameList_Request_objectScope_ANON_3); PY_IMPL_SEQ_INNER_GETATTR(GetNameList_Request, objectScope, &self->ob_value->objectScope, GetNameList_Request_objectScope_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(GetNameList_Request, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetNameList_Request, objectClass, ObjectClass); -PY_IMPL_SEQ_GETATTR(GetNameList_Request, objectClass); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetNameList_Request, objectClass); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetNameList_Request, objectClass, ObjectClass_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetNameList_Request, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetNameList_Request, objectClass, ObjectClass); +PY_IMPL_SEQ_AUTOVIV_GETATTR(GetNameList_Request, objectClass); PY_IMPL_SEQ_SETATTR(GetNameList_Request, objectClass); PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetNameList_Request, continueAfter); PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetNameList_Request, continueAfter, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.h b/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.h index 6caa1a21..3e3271ea 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetNameList-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,10 @@ #include #include #include +#include +#include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Response.c b/src/icspacket/proto/mms/_mms/GetNameList-Response.c index d9c45f03..c7972e1e 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Response.c +++ b/src/icspacket/proto/mms/_mms/GetNameList-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfIdentifier_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfIdentifier __attribute__((weak, alias("asn_DEF_listOfIdentifier_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfIdentifier_2; +static asn_TYPE_descriptor_t asn_DEF_listOfIdentifier; +__attribute__((constructor)) static void asn_DEF_listOfIdentifier_2_alias_init(void) { + asn_DEF_listOfIdentifier = asn_DEF_listOfIdentifier_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetNameList_Response__listOfIdentifier_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfIdentifier_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfIdentifier_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfIdentifier_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfIdentifier_2, + asn_MBR_GetNameList_Response__listOfIdentifier_2, 1, /* Single element */ &asn_SPC_listOfIdentifier_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Response.h b/src/icspacket/proto/mms/_mms/GetNameList-Response.h index 250f98aa..7a263071 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Response.h +++ b/src/icspacket/proto/mms/_mms/GetNameList-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include #include @@ -28,7 +28,7 @@ typedef struct GetNameList_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfIdentifier; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.c b/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.c index d351d7e5..5781a3f4 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.h b/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.h index ecd4585f..8ee542eb 100644 --- a/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetNameList-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.c index eeec9a30..2b3e8411 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.h index 3b6ed831..c9dd0ba8 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetNamedTypeAttributes-Request */ -typedef ObjectName_t GetNamedTypeAttributes_Request_t; +typedef ObjectName_t GetNamedTypeAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetNamedTypeAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.c index f8408e5d..b89d5f39 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.h index d2dcf044..169c35cb 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.c index e434d899..da03660e 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GetNamedTypeAttributes_Response_1[] = { 0, 0, /* No default value */ "mmsDeletable" }, - { ATF_NOFLAGS, 0, offsetof(struct GetNamedTypeAttributes_Response, typeSpecification), + { ATF_POINTER, 0, offsetof(struct GetNamedTypeAttributes_Response, typeSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_TypeSpecification, diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.h index 2e79984c..d955184c 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,8 +11,7 @@ /* Including external dependencies */ #include -#include -#include +#include "Identifier.h" #include #include @@ -20,12 +19,15 @@ extern "C" { #endif +/* Forward declarations */ +struct TypeSpecification; + /* GetNamedTypeAttributes-Response */ typedef struct GetNamedTypeAttributes_Response { - BOOLEAN_t mmsDeletable; - TypeSpecification_t typeSpecification; - Identifier_t *accessControlList; /* OPTIONAL */ - VisibleString_t *meaning; /* OPTIONAL */ + BOOLEAN_t mmsDeletable; + struct TypeSpecification *typeSpecification; + Identifier_t *accessControlList; /* OPTIONAL */ + VisibleString_t *meaning; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -40,5 +42,8 @@ extern asn_TYPE_member_t asn_MBR_GetNamedTypeAttributes_Response_1[4]; } #endif +/* Referred external types */ +#include "TypeSpecification.h" + #endif /* _GetNamedTypeAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.c index ccff183f..425c01fa 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(GetNamedTypeAttributes_Response, mmsDeletable, PyCompatB PY_IMPL_SEQ_ATTR_TOPY(GetNamedTypeAttributes_Response, mmsDeletable, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); PY_IMPL_SEQ_GETATTR(GetNamedTypeAttributes_Response, mmsDeletable); PY_IMPL_SEQ_SETATTR(GetNamedTypeAttributes_Response, mmsDeletable); -PY_IMPL_SEQ_ATTR_FROMPY(GetNamedTypeAttributes_Response, typeSpecification, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetNamedTypeAttributes_Response, typeSpecification, TypeSpecification); -PY_IMPL_SEQ_GETATTR(GetNamedTypeAttributes_Response, typeSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetNamedTypeAttributes_Response, typeSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetNamedTypeAttributes_Response, typeSpecification, TypeSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetNamedTypeAttributes_Response, typeSpecification, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetNamedTypeAttributes_Response, typeSpecification, TypeSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(GetNamedTypeAttributes_Response, typeSpecification); PY_IMPL_SEQ_SETATTR(GetNamedTypeAttributes_Response, typeSpecification); PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetNamedTypeAttributes_Response, accessControlList); PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetNamedTypeAttributes_Response, accessControlList, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.h index 4125e5e5..3dec2757 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetNamedTypeAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.c index 4f5f9464..1b17701e 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.h index 2eb59241..4e886f0a 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetNamedVariableListAttributes-Request */ -typedef ObjectName_t GetNamedVariableListAttributes_Request_t; +typedef ObjectName_t GetNamedVariableListAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetNamedVariableListAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.c index 1b5f32f1..7b51570d 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.h index b8bac3e5..78d06f6f 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.c index 12a6f0bc..a094e7bf 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.c @@ -1,11 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_Member_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct GetNamedVariableListAttributes_Response__listOfVariable__Member, variableSpecification), +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfVariable __attribute__((weak, alias("asn_DEF_listOfVariable_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfVariable_3; +static asn_TYPE_descriptor_t asn_DEF_listOfVariable; +__attribute__((constructor)) static void asn_DEF_listOfVariable_3_alias_init(void) { + asn_DEF_listOfVariable = asn_DEF_listOfVariable_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member_4[] = { + { ATF_NOFLAGS, 0, offsetof(struct GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member, variableSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_VariableSpecification, @@ -25,7 +36,7 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = { 0, 0, /* No default value */ "variableSpecification" }, - { ATF_POINTER, 1, offsetof(struct GetNamedVariableListAttributes_Response__listOfVariable__Member, alternateAccess), + { ATF_POINTER, 1, offsetof(struct GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member, alternateAccess), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlternateAccess, @@ -46,11 +57,11 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = { "alternateAccess" }, }; -static const int asn_MAP_Member_oms_4[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_4[] = { +static const int asn_MAP_listOfVariable_Member_oms_4[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_listOfVariable_Member_tags_4[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_4[] = { +static const asn_TYPE_tag2member_t asn_MAP_listOfVariable_Member_tag2el_4[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* name */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* address */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* variableDescription */ @@ -58,26 +69,26 @@ static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_4[] = { { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 }, /* invalidated */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 1, 0, 0 } /* alternateAccess */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_4 = { - sizeof(struct GetNamedVariableListAttributes_Response__listOfVariable__Member), - offsetof(struct GetNamedVariableListAttributes_Response__listOfVariable__Member, _asn_ctx), - asn_MAP_Member_tag2el_4, +static asn_SEQUENCE_specifics_t asn_SPC_listOfVariable_Member_specs_4 = { + sizeof(struct GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member), + offsetof(struct GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member, _asn_ctx), + asn_MAP_listOfVariable_Member_tag2el_4, 6, /* Count of tags in the map */ - asn_MAP_Member_oms_4, /* Optional members */ + asn_MAP_listOfVariable_Member_oms_4, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_4 = { +asn_TYPE_descriptor_t asn_DEF_listOfVariable_Member_4 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_4, - sizeof(asn_DEF_Member_tags_4) - /sizeof(asn_DEF_Member_tags_4[0]), /* 1 */ - asn_DEF_Member_tags_4, /* Same as above */ - sizeof(asn_DEF_Member_tags_4) - /sizeof(asn_DEF_Member_tags_4[0]), /* 1 */ + asn_DEF_listOfVariable_Member_tags_4, + sizeof(asn_DEF_listOfVariable_Member_tags_4) + /sizeof(asn_DEF_listOfVariable_Member_tags_4[0]), /* 1 */ + asn_DEF_listOfVariable_Member_tags_4, /* Same as above */ + sizeof(asn_DEF_listOfVariable_Member_tags_4) + /sizeof(asn_DEF_listOfVariable_Member_tags_4[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -90,16 +101,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_4, + asn_MBR_GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member_4, 2, /* Elements count */ - &asn_SPC_Member_specs_4 /* Additional specs */ + &asn_SPC_listOfVariable_Member_specs_4 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfVariable_3[] = { +static asn_TYPE_member_t asn_MBR_GetNamedVariableListAttributes_Response__listOfVariable_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_4, + &asn_DEF_listOfVariable_Member_4, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -149,7 +160,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfVariable_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfVariable_3, + asn_MBR_GetNamedVariableListAttributes_Response__listOfVariable_3, 1, /* Single element */ &asn_SPC_listOfVariable_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.h index 7c69c18c..02274d0a 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,9 +11,9 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include -#include +#include "VariableSpecification.h" #include #include @@ -25,24 +25,24 @@ extern "C" { struct AlternateAccess; /* Forward definitions */ -typedef struct GetNamedVariableListAttributes_Response__listOfVariable__Member { - VariableSpecification_t variableSpecification; - struct AlternateAccess *alternateAccess; /* OPTIONAL */ +typedef struct GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member { + VariableSpecification_t variableSpecification; + struct AlternateAccess *alternateAccess; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} GetNamedVariableListAttributes_Response__listOfVariable__Member; +} GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member; /* GetNamedVariableListAttributes-Response */ typedef struct GetNamedVariableListAttributes_Response { - BOOLEAN_t mmsDeletable; + BOOLEAN_t mmsDeletable; struct GetNamedVariableListAttributes_Response__listOfVariable { - A_SEQUENCE_OF(GetNamedVariableListAttributes_Response__listOfVariable__Member) list; + A_SEQUENCE_OF(GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfVariable; - Identifier_t *accessControlList; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -58,7 +58,7 @@ extern asn_TYPE_member_t asn_MBR_GetNamedVariableListAttributes_Response_1[3]; #endif /* Referred external types */ -#include +#include "AlternateAccess.h" #endif /* _GetNamedVariableListAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.c index a5283753..2824ef42 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.c @@ -1,50 +1,50 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(GetNamedVariableListAttributes_Response_Member_ANON_4, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetNamedVariableListAttributes_Response_Member_ANON_4, variableSpecification, VariableSpecification); -PY_IMPL_SEQ_GETATTR(GetNamedVariableListAttributes_Response_Member_ANON_4, variableSpecification); -PY_IMPL_SEQ_SETATTR(GetNamedVariableListAttributes_Response_Member_ANON_4, variableSpecification); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess, AlternateAccess_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess, AlternateAccess); -PY_IMPL_SEQ_OPT_GETATTR(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess); -PY_IMPL_SEQ_OPT_SETATTR(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess); -PY_IMPL_CHECK_CONSTRAINTS(GetNamedVariableListAttributes_Response_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); -PY_IMPL_ENCODE(GetNamedVariableListAttributes_Response_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); -PY_IMPL_DECODE(GetNamedVariableListAttributes_Response_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); -PY_IMPL_DEALLOC(GetNamedVariableListAttributes_Response_Member_ANON_4, *(asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type)); -PY_IMPL_SEQ_TOPY(GetNamedVariableListAttributes_Response_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); -PY_IMPL_DECODE_BER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_Member_ANON_4, ber, ATS_BER); -PY_IMPL_DECODE_DER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_Member_ANON_4, der, ATS_DER); -PY_IMPL_DECODE_CER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_Member_ANON_4, cer, ATS_BER); -PY_IMPL_DECODE_XER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_ENCODE_XER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_Member_ANON_4, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_ENCODE_JER(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_GENERIC_NEW(GetNamedVariableListAttributes_Response_Member_ANON_4, NULL); -PY_IMPL_REPR(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_GENERIC_IS_VALID(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_SEQ_FROMPY(GetNamedVariableListAttributes_Response_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(GetNamedVariableListAttributes_Response_Member_ANON_4, variableSpecification, variableSpecification); - PY_IMPL_SEQ_INIT_ATTR(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess, alternateAccess); +PY_IMPL_SEQ_ATTR_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, variableSpecification, VariableSpecification); +PY_IMPL_SEQ_GETATTR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, variableSpecification); +PY_IMPL_SEQ_SETATTR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, variableSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess, AlternateAccess_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess, AlternateAccess); +PY_IMPL_SEQ_OPT_GETATTR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess); +PY_IMPL_SEQ_OPT_SETATTR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess); +PY_IMPL_CHECK_CONSTRAINTS(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); +PY_IMPL_ENCODE(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); +PY_IMPL_DECODE(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); +PY_IMPL_DEALLOC(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, *(asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type)); +PY_IMPL_SEQ_TOPY(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type); +PY_IMPL_DECODE_BER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, ber, ATS_BER); +PY_IMPL_DECODE_DER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, der, ATS_DER); +PY_IMPL_DECODE_CER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, cer, ATS_BER); +PY_IMPL_DECODE_XER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_XER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_SPECIFIC(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_ENCODE_JER(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_GENERIC_NEW(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, NULL); +PY_IMPL_REPR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_GENERIC_IS_VALID(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_SEQ_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type->elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, variableSpecification, variableSpecification); + PY_IMPL_SEQ_INIT_ATTR(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess, alternateAccess); ); -PY_IMPL_SEQ_INIT(GetNamedVariableListAttributes_Response_Member_ANON_4); -PY_IMPL_SEQ_OF_ITEM_TOPY(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_Member_ANON_4_t, PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_Member_ANON_4_t, PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_Member_ANON_4_t); -PY_IMPL_SEQ_OF_GENERIC_SETITEM(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_Member_ANON_4_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type)); -PY_IMPL_SEQ_OF_ADD(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_Member_ANON_4_t); +PY_IMPL_SEQ_INIT(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); +PY_IMPL_SEQ_OF_ITEM_TOPY(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t, PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t, PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t); +PY_IMPL_SEQ_OF_GENERIC_SETITEM(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_GetNamedVariableListAttributes_Response.elements[1].type)); +PY_IMPL_SEQ_OF_ADD(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t); PY_IMPL_SEQ_OF_NEW(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3); PY_IMPL_SEQ_OF_DEALLOC(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, asn_set_empty); PY_IMPL_SEQ_OF_INIT(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3); @@ -110,9 +110,9 @@ PY_IMPL_SEQ_FROMPY(GetNamedVariableListAttributes_Response, &asn_DEF_GetNamedVar PY_IMPL_SEQ_INIT(GetNamedVariableListAttributes_Response); /* class attributes definition */ -static PyGetSetDef PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(GetNamedVariableListAttributes_Response_Member_ANON_4, variableSpecification, variableSpecification), - PY_IMPL_GETSET_ITEM_INTERNAL(GetNamedVariableListAttributes_Response_Member_ANON_4, alternateAccess, alternateAccess), +static PyGetSetDef PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, variableSpecification, variableSpecification), + PY_IMPL_GETSET_ITEM_INTERNAL(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, alternateAccess, alternateAccess), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_getset[] = { @@ -131,20 +131,20 @@ static PyGetSetDef PyAsnGetNamedVariableListAttributes_Response_getset[] = { }; /* class methods definition */ -static PyMethodDef PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_methods[] = { - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_Member_ANON_4, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_methods[] = { + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_methods[] = { @@ -184,18 +184,18 @@ static PyMethodDef PyAsnGetNamedVariableListAttributes_Response_methods[] = { }; /* type definition */ -PyTypeObject PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_Type = { +PyTypeObject PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.GetNamedVariableListAttributes_Response.listOfVariable_TYPE.Member_TYPE", - .tp_basicsize = sizeof(PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4Object), + .tp_basicsize = sizeof(PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4__new, - .tp_repr = (reprfunc)PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4__repr, - .tp_dealloc = (destructor)PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4__dealloc, - .tp_init = (initproc)PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4__init, - .tp_getset = PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_getset, - .tp_methods = PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_methods, - .tp_doc = "ASN.1 anonymous type GetNamedVariableListAttributes_Response__listOfVariable__Member_TYPE part of listOfVariable", + .tp_new = (newfunc)PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4__new, + .tp_repr = (reprfunc)PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4__repr, + .tp_dealloc = (destructor)PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4__dealloc, + .tp_init = (initproc)PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4__init, + .tp_getset = PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_getset, + .tp_methods = PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_methods, + .tp_doc = "ASN.1 anonymous type GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member_TYPE part of listOfVariable", }; PyTypeObject PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -227,7 +227,7 @@ PyTypeObject PyAsnGetNamedVariableListAttributes_Response_Type = { /* module initializer */ int PyAsnGetNamedVariableListAttributes_Response_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_Type) < 0) return -1; + if (PyType_Ready(&PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_Type) < 0) return -1; if (PyType_Ready(&PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_Type) < 0) return -1; if (PyType_Ready(&PyAsnGetNamedVariableListAttributes_Response_Type) < 0) return -1; return 0; @@ -237,7 +237,7 @@ void PyAsnGetNamedVariableListAttributes_Response_ModClear(PyObject *mod) { } int PyAsnGetNamedVariableListAttributes_Response_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, Member_TYPE, &PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3, Member_TYPE, &PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_Type); PY_IMPL_MOD_ASSIGN_OBJECT(GetNamedVariableListAttributes_Response, listOfVariable_TYPE, &PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_Type); PY_IMPL_MOD_ADD_OBJECT(mod, GetNamedVariableListAttributes_Response); return 0; diff --git a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.h index 23293b35..d812501d 100644 --- a/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetNamedVariableListAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,6 +14,10 @@ #include #include #include +#include +#include +#include +#include #include #ifdef __cplusplus @@ -21,8 +25,8 @@ extern "C" { #endif /* GetNamedVariableListAttributes-Response */ -PyCompat_DEF_ANON_STRUCT(GetNamedVariableListAttributes_Response_Member_ANON_4, GetNamedVariableListAttributes_Response__listOfVariable__Member); -PyCompat_DEF_TYPE(GetNamedVariableListAttributes_Response_Member_ANON_4); +PyCompat_DEF_ANON_STRUCT(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4, GetNamedVariableListAttributes_Response__listOfVariable__listOfVariable_Member); +PyCompat_DEF_TYPE(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4); typedef struct GetNamedVariableListAttributes_Response__listOfVariable GetNamedVariableListAttributes_Response_listOfVariable_ANON_3_t; PyCompat_DEF_STRUCT(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3); PyCompat_DEF_TYPE(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3); @@ -30,8 +34,8 @@ PyCompat_DEF_STRUCT(GetNamedVariableListAttributes_Response); PyCompat_DEF_TYPE(GetNamedVariableListAttributes_Response); /* Type Converters */ -int PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_FromPython(PyObject *pObj, GetNamedVariableListAttributes_Response_Member_ANON_4_t *pDst); -PyObject *PyAsnGetNamedVariableListAttributes_Response_Member_ANON_4_ToPython(GetNamedVariableListAttributes_Response_Member_ANON_4_t *pSrc, PyObject *parent); +int PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_FromPython(PyObject *pObj, GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t *pDst); +PyObject *PyAsnGetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_ToPython(GetNamedVariableListAttributes_Response_listOfVariable_Member_ANON_4_t *pSrc, PyObject *parent); int PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_FromPython(PyObject *pObj, GetNamedVariableListAttributes_Response_listOfVariable_ANON_3_t *pDst); PyObject *PyAsnGetNamedVariableListAttributes_Response_listOfVariable_ANON_3_ToPython(GetNamedVariableListAttributes_Response_listOfVariable_ANON_3_t *pSrc, PyObject *parent); int PyAsnGetNamedVariableListAttributes_Response_FromPython(PyObject *pObj, GetNamedVariableListAttributes_Response_t *pDst); diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.c index c6d2e8a3..9662238f 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.h index e2c31ecc..d68f66bf 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* GetProgramInvocationAttributes-Request */ -typedef Identifier_t GetProgramInvocationAttributes_Request_t; +typedef Identifier_t GetProgramInvocationAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetProgramInvocationAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.c index d44119a7..cd9215e5 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.h index 1c583298..f02dc24a 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.c index 064034c3..7d3e4a44 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfDomainNames_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfDomainNames __attribute__((weak, alias("asn_DEF_listOfDomainNames_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfDomainNames_3; +static asn_TYPE_descriptor_t asn_DEF_listOfDomainNames; +__attribute__((constructor)) static void asn_DEF_listOfDomainNames_3_alias_init(void) { + asn_DEF_listOfDomainNames = asn_DEF_listOfDomainNames_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_executionArgument __attribute__((weak, alias("asn_DEF_executionArgument_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_executionArgument_8; +static asn_TYPE_descriptor_t asn_DEF_executionArgument; +__attribute__((constructor)) static void asn_DEF_executionArgument_8_alias_init(void) { + asn_DEF_executionArgument = asn_DEF_executionArgument_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetProgramInvocationAttributes_Response__listOfDomainNames_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfDomainNames_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfDomainNames_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfDomainNames_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfDomainNames_3, + asn_MBR_GetProgramInvocationAttributes_Response__listOfDomainNames_3, 1, /* Single element */ &asn_SPC_listOfDomainNames_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_executionArgument_8[] = { +static asn_TYPE_member_t asn_MBR_GetProgramInvocationAttributes_Response__executionArgument_8[] = { { ATF_NOFLAGS, 0, offsetof(struct GetProgramInvocationAttributes_Response__executionArgument, choice.simpleString), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ @@ -161,7 +183,7 @@ asn_TYPE_descriptor_t asn_DEF_executionArgument_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_executionArgument_8, + asn_MBR_GetProgramInvocationAttributes_Response__executionArgument_8, 3, /* Elements count */ &asn_SPC_executionArgument_specs_8 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.h index 5bb802d6..b5cf6b24 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ProgramInvocationState.h" #include -#include +#include "Identifier.h" #include #include -#include -#include -#include +#include "MMSString.h" +#include "EXTERNAL.h" +#include "EMBEDDED-PDV.h" #include #include @@ -35,28 +35,28 @@ typedef enum GetProgramInvocationAttributes_Response__executionArgument_PR { /* GetProgramInvocationAttributes-Response */ typedef struct GetProgramInvocationAttributes_Response { - ProgramInvocationState_t state; + ProgramInvocationState_t state; struct GetProgramInvocationAttributes_Response__listOfDomainNames { A_SEQUENCE_OF(Identifier_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfDomainNames; - BOOLEAN_t mmsDeletable; - BOOLEAN_t reusable; - BOOLEAN_t monitor; + BOOLEAN_t mmsDeletable; + BOOLEAN_t reusable; + BOOLEAN_t monitor; struct GetProgramInvocationAttributes_Response__executionArgument { GetProgramInvocationAttributes_Response__executionArgument_PR present; union GetProgramInvocationAttributes_Response__executionArgument_u { - MMSString_t simpleString; - EXTERNAL_t encodedString; - EMBEDDED_PDV_t enmbeddedString; + MMSString_t simpleString; + EXTERNAL_t encodedString; + EMBEDDED_PDV_t enmbeddedString; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } executionArgument; - Identifier_t *accessControlList; /* OPTIONAL */ + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.c index f79b2156..e6873ded 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.h index 7c25e203..9c0ea32a 100644 --- a/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetProgramInvocationAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,10 +13,15 @@ #include #include #include +#include +#include #include #include #include +#include +#include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.c index 305b41a3..81732af3 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.h index f43d8257..06044c24 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* GetScatteredAccessAttributes-Request */ -typedef ObjectName_t GetScatteredAccessAttributes_Request_t; +typedef ObjectName_t GetScatteredAccessAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetScatteredAccessAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.c index 52e117a3..970472cb 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.h index afac582b..0b42c0b5 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.c index f9fff429..af78a315 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GetScatteredAccessAttributes_Response_1[] = { 0, 0, /* No default value */ "mmsDeletable" }, - { ATF_NOFLAGS, 0, offsetof(struct GetScatteredAccessAttributes_Response, scatteredAccessDescription), + { ATF_POINTER, 0, offsetof(struct GetScatteredAccessAttributes_Response, scatteredAccessDescription), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ScatteredAccessDescription, diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.h index cd3b9a90..04e4d9ba 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,19 +11,21 @@ /* Including external dependencies */ #include -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ScatteredAccessDescription; + /* GetScatteredAccessAttributes-Response */ typedef struct GetScatteredAccessAttributes_Response { - BOOLEAN_t mmsDeletable; - ScatteredAccessDescription_t scatteredAccessDescription; - Identifier_t *accessControlList; /* OPTIONAL */ + BOOLEAN_t mmsDeletable; + struct ScatteredAccessDescription *scatteredAccessDescription; + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,5 +40,8 @@ extern asn_TYPE_member_t asn_MBR_GetScatteredAccessAttributes_Response_1[3]; } #endif +/* Referred external types */ +#include "ScatteredAccessDescription.h" + #endif /* _GetScatteredAccessAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.c index 91f1a649..6d3f21bb 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(GetScatteredAccessAttributes_Response, mmsDeletable, PyC PY_IMPL_SEQ_ATTR_TOPY(GetScatteredAccessAttributes_Response, mmsDeletable, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); PY_IMPL_SEQ_GETATTR(GetScatteredAccessAttributes_Response, mmsDeletable); PY_IMPL_SEQ_SETATTR(GetScatteredAccessAttributes_Response, mmsDeletable); -PY_IMPL_SEQ_ATTR_FROMPY(GetScatteredAccessAttributes_Response, scatteredAccessDescription, PyAsnScatteredAccessDescription_FromPython(value, (ScatteredAccessDescription_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetScatteredAccessAttributes_Response, scatteredAccessDescription, ScatteredAccessDescription); -PY_IMPL_SEQ_GETATTR(GetScatteredAccessAttributes_Response, scatteredAccessDescription); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetScatteredAccessAttributes_Response, scatteredAccessDescription); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetScatteredAccessAttributes_Response, scatteredAccessDescription, ScatteredAccessDescription_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetScatteredAccessAttributes_Response, scatteredAccessDescription, PyAsnScatteredAccessDescription_FromPython(value, (ScatteredAccessDescription_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetScatteredAccessAttributes_Response, scatteredAccessDescription, ScatteredAccessDescription); +PY_IMPL_SEQ_AUTOVIV_GETATTR(GetScatteredAccessAttributes_Response, scatteredAccessDescription); PY_IMPL_SEQ_SETATTR(GetScatteredAccessAttributes_Response, scatteredAccessDescription); PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetScatteredAccessAttributes_Response, accessControlList); PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetScatteredAccessAttributes_Response, accessControlList, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.h index 623a739c..21143141 100644 --- a/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetScatteredAccessAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.c index 015aa83c..e72ba603 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.h index 1e0c8b6e..d190fb1f 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* GetUnitControlAttributes-Request */ -typedef Identifier_t GetUnitControlAttributes_Request_t; +typedef Identifier_t GetUnitControlAttributes_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GetUnitControlAttributes_Request; diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.c index e9cf384b..cb4af860 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.h index 7de3eca8..9d6246ef 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.c index 20e8e290..a96b6bfd 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_domains_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_domains __attribute__((weak, alias("asn_DEF_domains_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_domains_2; +static asn_TYPE_descriptor_t asn_DEF_domains; +__attribute__((constructor)) static void asn_DEF_domains_2_alias_init(void) { + asn_DEF_domains = asn_DEF_domains_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_programInvocations __attribute__((weak, alias("asn_DEF_programInvocations_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_programInvocations_4; +static asn_TYPE_descriptor_t asn_DEF_programInvocations; +__attribute__((constructor)) static void asn_DEF_programInvocations_4_alias_init(void) { + asn_DEF_programInvocations = asn_DEF_programInvocations_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetUnitControlAttributes_Response__domains_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_domains_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_domains_tags_2[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_domains_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_domains_2, + asn_MBR_GetUnitControlAttributes_Response__domains_2, 1, /* Single element */ &asn_SPC_domains_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_programInvocations_4[] = { +static asn_TYPE_member_t asn_MBR_GetUnitControlAttributes_Response__programInvocations_4[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_programInvocations_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_programInvocations_tags_4[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_programInvocations_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_programInvocations_4, + asn_MBR_GetUnitControlAttributes_Response__programInvocations_4, 1, /* Single element */ &asn_SPC_programInvocations_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.h index 67bbf325..626af4ec 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.c index 3340f64e..56d8150b 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.h index 42937f18..1e53c37d 100644 --- a/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetUnitControlAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,11 @@ #include #include #include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.c b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.c index ea805b57..0237cef3 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.c +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_GetVariableAccessAttributes_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GetVariableAccessAttributes_Request, choice.name), + { ATF_POINTER, 0, offsetof(struct GetVariableAccessAttributes_Request, choice.name), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GetVariableAccessAttributes_Request_1[] = { 0, 0, /* No default value */ "name" }, - { ATF_NOFLAGS, 0, offsetof(struct GetVariableAccessAttributes_Request, choice.address), + { ATF_POINTER, 0, offsetof(struct GetVariableAccessAttributes_Request, choice.address), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_Address, diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.h b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.h index 8b78cd6c..42bf3f2d 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.h +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -25,12 +23,16 @@ typedef enum GetVariableAccessAttributes_Request_PR { GetVariableAccessAttributes_Request_PR_address } GetVariableAccessAttributes_Request_PR; +/* Forward declarations */ +struct ObjectName; +struct Address; + /* GetVariableAccessAttributes-Request */ typedef struct GetVariableAccessAttributes_Request { GetVariableAccessAttributes_Request_PR present; union GetVariableAccessAttributes_Request_u { - ObjectName_t name; - Address_t address; + struct ObjectName *name; + struct Address *address; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +48,9 @@ extern asn_TYPE_member_t asn_MBR_GetVariableAccessAttributes_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" +#include "Address.h" + #endif /* _GetVariableAccessAttributes_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.c b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.c index ce487cd7..a03dc0dc 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.c @@ -1,17 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, name, name,PyAsnObjectName_FromPython(value, &dst->choice.name)); -PY_IMPL_CHOICE_ATTR_TOPY(GetVariableAccessAttributes_Request, name, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.name)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, name, name, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.name)); +PY_IMPL_CHOICE_ATTR_TOPY(GetVariableAccessAttributes_Request, name, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.name)); PY_IMPL_CHOICE_GETATTR(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, name, name); PY_IMPL_CHOICE_SETATTR(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, name, name); -PY_IMPL_CHOICE_ATTR_FROMPY(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, address, address,PyAsnAddress_FromPython(value, &dst->choice.address)); -PY_IMPL_CHOICE_ATTR_TOPY(GetVariableAccessAttributes_Request, address, PyCompatAsnType_FromParent(&PyAsnAddress_Type, parent, (void *)&src->choice.address)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, address, address, Address,PyAsnAddress_FromPython(value, dst->choice.address)); +PY_IMPL_CHOICE_ATTR_TOPY(GetVariableAccessAttributes_Request, address, PyCompatAsnType_FromParent(&PyAsnAddress_Type, parent, (void *)src->choice.address)); PY_IMPL_CHOICE_GETATTR(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, address, address); PY_IMPL_CHOICE_SETATTR(GetVariableAccessAttributes_Request, GetVariableAccessAttributes_Request, address, address); PY_IMPL_GENERIC_DEALLOC(GetVariableAccessAttributes_Request); diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.h b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.h index 4f238d64..8f57f10e 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.c b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.c index abc00787..189857ed 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.c +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_GetVariableAccessAttributes_Response_1[] = { 0, 0, /* No default value */ "address" }, - { ATF_NOFLAGS, 0, offsetof(struct GetVariableAccessAttributes_Response, typeDescription), + { ATF_POINTER, 0, offsetof(struct GetVariableAccessAttributes_Response, typeDescription), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_TypeDescription, diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.h b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.h index 1193c1e4..4534f235 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.h +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,8 +11,7 @@ /* Including external dependencies */ #include -#include -#include +#include "Identifier.h" #include #include @@ -22,14 +21,15 @@ extern "C" { /* Forward declarations */ struct Address; +struct TypeDescription; /* GetVariableAccessAttributes-Response */ typedef struct GetVariableAccessAttributes_Response { - BOOLEAN_t mmsDeletable; - struct Address *address; /* OPTIONAL */ - TypeDescription_t typeDescription; - Identifier_t *accessControlList; /* OPTIONAL */ - VisibleString_t *meaning; /* OPTIONAL */ + BOOLEAN_t mmsDeletable; + struct Address *address; /* OPTIONAL */ + struct TypeDescription *typeDescription; + Identifier_t *accessControlList; /* OPTIONAL */ + VisibleString_t *meaning; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -45,7 +45,8 @@ extern asn_TYPE_member_t asn_MBR_GetVariableAccessAttributes_Response_1[5]; #endif /* Referred external types */ -#include +#include "Address.h" +#include "TypeDescription.h" #endif /* _GetVariableAccessAttributes_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.c b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.c index f1926085..8b2e8425 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -16,9 +16,11 @@ PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetVariableAccessAttributes_Response, address, PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetVariableAccessAttributes_Response, address, Address); PY_IMPL_SEQ_OPT_GETATTR(GetVariableAccessAttributes_Response, address); PY_IMPL_SEQ_OPT_SETATTR(GetVariableAccessAttributes_Response, address); -PY_IMPL_SEQ_ATTR_FROMPY(GetVariableAccessAttributes_Response, typeDescription, PyAsnTypeDescription_FromPython(value, (TypeDescription_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GetVariableAccessAttributes_Response, typeDescription, TypeDescription); -PY_IMPL_SEQ_GETATTR(GetVariableAccessAttributes_Response, typeDescription); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetVariableAccessAttributes_Response, typeDescription); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetVariableAccessAttributes_Response, typeDescription, TypeDescription_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GetVariableAccessAttributes_Response, typeDescription, PyAsnTypeDescription_FromPython(value, (TypeDescription_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GetVariableAccessAttributes_Response, typeDescription, TypeDescription); +PY_IMPL_SEQ_AUTOVIV_GETATTR(GetVariableAccessAttributes_Response, typeDescription); PY_IMPL_SEQ_SETATTR(GetVariableAccessAttributes_Response, typeDescription); PY_IMPL_SEQ_ATTR_GENERIC_FREE(GetVariableAccessAttributes_Response, accessControlList); PY_IMPL_SEQ_ATTR_GENERIC_NEW(GetVariableAccessAttributes_Response, accessControlList, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.h b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.h index 4a4540bb..d1c0accb 100644 --- a/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/GetVariableAccessAttributes-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identifier.c b/src/icspacket/proto/mms/_mms/Identifier.c index ceab381a..a2b3cdb6 100644 --- a/src/icspacket/proto/mms/_mms/Identifier.c +++ b/src/icspacket/proto/mms/_mms/Identifier.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identifier.h b/src/icspacket/proto/mms/_mms/Identifier.h index e7890c28..185ed906 100644 --- a/src/icspacket/proto/mms/_mms/Identifier.h +++ b/src/icspacket/proto/mms/_mms/Identifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Identifier */ -typedef VisibleString_t Identifier_t; +typedef VisibleString_t Identifier_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Identifier; diff --git a/src/icspacket/proto/mms/_mms/Identifier_Py.c b/src/icspacket/proto/mms/_mms/Identifier_Py.c index dfcccedc..a96b1c24 100644 --- a/src/icspacket/proto/mms/_mms/Identifier_Py.c +++ b/src/icspacket/proto/mms/_mms/Identifier_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identifier_Py.h b/src/icspacket/proto/mms/_mms/Identifier_Py.h index 2e7cab55..1b96fdac 100644 --- a/src/icspacket/proto/mms/_mms/Identifier_Py.h +++ b/src/icspacket/proto/mms/_mms/Identifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identify-Request.c b/src/icspacket/proto/mms/_mms/Identify-Request.c index 28e7a1a6..c71bc0d9 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Request.c +++ b/src/icspacket/proto/mms/_mms/Identify-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identify-Request.h b/src/icspacket/proto/mms/_mms/Identify-Request.h index 3ccf96db..06d53c54 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Request.h +++ b/src/icspacket/proto/mms/_mms/Identify-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Identify-Request */ -typedef NULL_t Identify_Request_t; +typedef NULL_t Identify_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Identify_Request; diff --git a/src/icspacket/proto/mms/_mms/Identify-Request_Py.c b/src/icspacket/proto/mms/_mms/Identify-Request_Py.c index daa04780..a17e6f79 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Identify-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identify-Request_Py.h b/src/icspacket/proto/mms/_mms/Identify-Request_Py.h index dabafc7d..5518870f 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Identify-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identify-Response.c b/src/icspacket/proto/mms/_mms/Identify-Response.c index 984efb0d..2ddaa929 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Response.c +++ b/src/icspacket/proto/mms/_mms/Identify-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfAbstractSyntaxes_5[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfAbstractSyntaxes __attribute__((weak, alias("asn_DEF_listOfAbstractSyntaxes_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfAbstractSyntaxes_5; +static asn_TYPE_descriptor_t asn_DEF_listOfAbstractSyntaxes; +__attribute__((constructor)) static void asn_DEF_listOfAbstractSyntaxes_5_alias_init(void) { + asn_DEF_listOfAbstractSyntaxes = asn_DEF_listOfAbstractSyntaxes_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Identify_Response__listOfAbstractSyntaxes_5[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfAbstractSyntaxes_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfAbstractSyntaxes_tags_5[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfAbstractSyntaxes_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfAbstractSyntaxes_5, + asn_MBR_Identify_Response__listOfAbstractSyntaxes_5, 1, /* Single element */ &asn_SPC_listOfAbstractSyntaxes_specs_5 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Identify-Response.h b/src/icspacket/proto/mms/_mms/Identify-Response.h index 35e56aad..9007075b 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Response.h +++ b/src/icspacket/proto/mms/_mms/Identify-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "MMSString.h" #include #include #include @@ -22,9 +22,9 @@ extern "C" { /* Identify-Response */ typedef struct Identify_Response { - MMSString_t vendorName; - MMSString_t modelName; - MMSString_t revision; + MMSString_t vendorName; + MMSString_t modelName; + MMSString_t revision; struct Identify_Response__listOfAbstractSyntaxes { A_SEQUENCE_OF(OBJECT_IDENTIFIER_t) list; diff --git a/src/icspacket/proto/mms/_mms/Identify-Response_Py.c b/src/icspacket/proto/mms/_mms/Identify-Response_Py.c index f087bfc2..b6605060 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Identify-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Identify-Response_Py.h b/src/icspacket/proto/mms/_mms/Identify-Response_Py.h index 16e5e23f..2de2f623 100644 --- a/src/icspacket/proto/mms/_mms/Identify-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Identify-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,10 @@ #include #include #include +#include +#include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Implementation-data.c b/src/icspacket/proto/mms/_mms/Implementation-data.c index f7b75de3..a9158e5b 100644 --- a/src/icspacket/proto/mms/_mms/Implementation-data.c +++ b/src/icspacket/proto/mms/_mms/Implementation-data.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Implementation-data.h b/src/icspacket/proto/mms/_mms/Implementation-data.h index 18758782..31615ed9 100644 --- a/src/icspacket/proto/mms/_mms/Implementation-data.h +++ b/src/icspacket/proto/mms/_mms/Implementation-data.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Implementation-data */ -typedef GraphicString_t Implementation_data_t; +typedef GraphicString_t Implementation_data_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Implementation_data; diff --git a/src/icspacket/proto/mms/_mms/Implementation-data_Py.c b/src/icspacket/proto/mms/_mms/Implementation-data_Py.c index c68d27fb..de6e1f0d 100644 --- a/src/icspacket/proto/mms/_mms/Implementation-data_Py.c +++ b/src/icspacket/proto/mms/_mms/Implementation-data_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Implementation-data_Py.h b/src/icspacket/proto/mms/_mms/Implementation-data_Py.h index bc349768..8e4860a5 100644 --- a/src/icspacket/proto/mms/_mms/Implementation-data_Py.h +++ b/src/icspacket/proto/mms/_mms/Implementation-data_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/InformationReport.c b/src/icspacket/proto/mms/_mms/InformationReport.c index dd6350a1..744d79a6 100644 --- a/src/icspacket/proto/mms/_mms/InformationReport.c +++ b/src/icspacket/proto/mms/_mms/InformationReport.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfAccessResult_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfAccessResult __attribute__((weak, alias("asn_DEF_listOfAccessResult_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfAccessResult_3; +static asn_TYPE_descriptor_t asn_DEF_listOfAccessResult; +__attribute__((constructor)) static void asn_DEF_listOfAccessResult_3_alias_init(void) { + asn_DEF_listOfAccessResult = asn_DEF_listOfAccessResult_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_InformationReport__listOfAccessResult_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfAccessResult_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfAccessResult_tags_3[] = { @@ -58,13 +69,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfAccessResult_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfAccessResult_3, + asn_MBR_InformationReport__listOfAccessResult_3, 1, /* Single element */ &asn_SPC_listOfAccessResult_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_InformationReport_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InformationReport, variableAccessSpecification), + { ATF_POINTER, 0, offsetof(struct InformationReport, variableAccessSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_VariableAccessSpecification, diff --git a/src/icspacket/proto/mms/_mms/InformationReport.h b/src/icspacket/proto/mms/_mms/InformationReport.h index cbe67aa0..8c1133ba 100644 --- a/src/icspacket/proto/mms/_mms/InformationReport.h +++ b/src/icspacket/proto/mms/_mms/InformationReport.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -20,11 +19,12 @@ extern "C" { #endif /* Forward declarations */ +struct VariableAccessSpecification; struct AccessResult; /* InformationReport */ typedef struct InformationReport { - VariableAccessSpecification_t variableAccessSpecification; + struct VariableAccessSpecification *variableAccessSpecification; struct InformationReport__listOfAccessResult { A_SEQUENCE_OF(struct AccessResult) list; @@ -46,7 +46,8 @@ extern asn_TYPE_member_t asn_MBR_InformationReport_1[2]; #endif /* Referred external types */ -#include +#include "VariableAccessSpecification.h" +#include "AccessResult.h" #endif /* _InformationReport_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/InformationReport_Py.c b/src/icspacket/proto/mms/_mms/InformationReport_Py.c index 41166019..328dfc49 100644 --- a/src/icspacket/proto/mms/_mms/InformationReport_Py.c +++ b/src/icspacket/proto/mms/_mms/InformationReport_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -39,9 +39,11 @@ PY_IMPL_SEQ_OF_LEN(InformationReport_listOfAccessResult_ANON_3); PY_IMPL_SEQ_OF_GETITEM(InformationReport_listOfAccessResult_ANON_3); PY_IMPL_SEQ_OF_CLEAR(InformationReport_listOfAccessResult_ANON_3); PY_IMPL_SEQ_OF_EXTEND(InformationReport_listOfAccessResult_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(InformationReport, variableAccessSpecification, PyAsnVariableAccessSpecification_FromPython(value, (VariableAccessSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(InformationReport, variableAccessSpecification, VariableAccessSpecification); -PY_IMPL_SEQ_GETATTR(InformationReport, variableAccessSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(InformationReport, variableAccessSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(InformationReport, variableAccessSpecification, VariableAccessSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(InformationReport, variableAccessSpecification, PyAsnVariableAccessSpecification_FromPython(value, (VariableAccessSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(InformationReport, variableAccessSpecification, VariableAccessSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(InformationReport, variableAccessSpecification); PY_IMPL_SEQ_SETATTR(InformationReport, variableAccessSpecification); PY_IMPL_GENERIC_DEALLOC(InformationReport); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(InformationReport); diff --git a/src/icspacket/proto/mms/_mms/InformationReport_Py.h b/src/icspacket/proto/mms/_mms/InformationReport_Py.h index 82ad4048..cbeda808 100644 --- a/src/icspacket/proto/mms/_mms/InformationReport_Py.h +++ b/src/icspacket/proto/mms/_mms/InformationReport_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Request.c b/src/icspacket/proto/mms/_mms/InitializeJournal-Request.c index d8abe5e8..eea0d754 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Request.c +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_limitSpecification_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_limitSpecification __attribute__((weak, alias("asn_DEF_limitSpecification_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_limitSpecification_3; +static asn_TYPE_descriptor_t asn_DEF_limitSpecification; +__attribute__((constructor)) static void asn_DEF_limitSpecification_3_alias_init(void) { + asn_DEF_limitSpecification = asn_DEF_limitSpecification_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_InitializeJournal_Request__limitSpecification_3[] = { { ATF_NOFLAGS, 0, offsetof(struct InitializeJournal_Request__limitSpecification, limitingTime), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -87,13 +98,13 @@ asn_TYPE_descriptor_t asn_DEF_limitSpecification_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_limitSpecification_3, + asn_MBR_InitializeJournal_Request__limitSpecification_3, 2, /* Elements count */ &asn_SPC_limitSpecification_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_InitializeJournal_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InitializeJournal_Request, journalName), + { ATF_POINTER, 0, offsetof(struct InitializeJournal_Request, journalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Request.h b/src/icspacket/proto/mms/_mms/InitializeJournal-Request.h index 2d2b51bd..25fc25bf 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Request.h +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "TimeOfDay.h" #include #include @@ -19,12 +18,15 @@ extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* InitializeJournal-Request */ typedef struct InitializeJournal_Request { - ObjectName_t journalName; + struct ObjectName *journalName; struct InitializeJournal_Request__limitSpecification { - TimeOfDay_t limitingTime; - OCTET_STRING_t *limitingEntry; /* OPTIONAL */ + TimeOfDay_t limitingTime; + OCTET_STRING_t *limitingEntry; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -43,5 +45,8 @@ extern asn_TYPE_member_t asn_MBR_InitializeJournal_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _InitializeJournal_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.c b/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.c index 6dd3bd78..5c033185 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -45,9 +45,11 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(InitializeJournal_Request, limitSpecification, src- PY_IMPL_SEQ_ANON_ATTR_TOPY(InitializeJournal_Request, limitSpecification, src->limitSpecification, InitializeJournal_Request_limitSpecification_ANON_3); PY_IMPL_SEQ_INNER_OPT_SETATTR(InitializeJournal_Request, limitSpecification, limitSpecification, InitializeJournal_Request_limitSpecification_ANON_3, *asn_DEF_InitializeJournal_Request.elements[1].type); PY_IMPL_SEQ_INNER_GETATTR(InitializeJournal_Request, limitSpecification, self->ob_value->limitSpecification, InitializeJournal_Request_limitSpecification_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(InitializeJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(InitializeJournal_Request, journalName, ObjectName); -PY_IMPL_SEQ_GETATTR(InitializeJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(InitializeJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(InitializeJournal_Request, journalName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(InitializeJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(InitializeJournal_Request, journalName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(InitializeJournal_Request, journalName); PY_IMPL_SEQ_SETATTR(InitializeJournal_Request, journalName); PY_IMPL_GENERIC_DEALLOC(InitializeJournal_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(InitializeJournal_Request); diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.h b/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.h index 227aff6b..7655370e 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Response.c b/src/icspacket/proto/mms/_mms/InitializeJournal-Response.c index a8edb804..ec9a4b74 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Response.c +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Response.h b/src/icspacket/proto/mms/_mms/InitializeJournal-Response.h index d3d3c754..298d2433 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Response.h +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* InitializeJournal-Response */ -typedef Unsigned32_t InitializeJournal_Response_t; +typedef Unsigned32_t InitializeJournal_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_InitializeJournal_Response; diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.c b/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.c index 5ce434e8..3681cbf8 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.h b/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.h index 097886f5..5e70f440 100644 --- a/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/InitializeJournal-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.c b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.c index b229543d..798965b9 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.c +++ b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.h b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.h index 37535b4d..20b2f562 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.h +++ b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ServiceError.h" #ifdef __cplusplus extern "C" { #endif /* Initiate-ErrorPDU */ -typedef ServiceError_t Initiate_ErrorPDU_t; +typedef ServiceError_t Initiate_ErrorPDU_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Initiate_ErrorPDU; diff --git a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.c b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.c index 31a203ac..f3e8f953 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.h b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.h index b163e4fa..c40d968d 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Initiate-ErrorPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.c b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.c index bd002851..c1bfc76f 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.c +++ b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.c @@ -1,10 +1,45 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_initRequestDetail_6[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_initRequestDetail __attribute__((weak, alias("asn_DEF_initRequestDetail_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_initRequestDetail_6; +static asn_TYPE_descriptor_t asn_DEF_initRequestDetail; +__attribute__((constructor)) static void asn_DEF_initRequestDetail_6_alias_init(void) { + asn_DEF_initRequestDetail = asn_DEF_initRequestDetail_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_proposedParameterCBB_constr_8 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_servicesSupportedCalling_constr_9 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_additionalSupportedCalling_constr_10 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_additionalCbbSupportedCalling_constr_11 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_Initiate_RequestPDU__initRequestDetail_6[] = { { ATF_NOFLAGS, 0, offsetof(struct Initiate_RequestPDU__initRequestDetail, proposedVersionNumber), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -171,7 +206,7 @@ asn_TYPE_descriptor_t asn_DEF_initRequestDetail_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_initRequestDetail_6, + asn_MBR_Initiate_RequestPDU__initRequestDetail_6, 6, /* Elements count */ &asn_SPC_initRequestDetail_specs_6 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.h b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.h index 294a901a..72ec1869 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.h +++ b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,13 +10,13 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include +#include "Integer32.h" +#include "Integer16.h" +#include "Integer8.h" +#include "ParameterSupportOptions.h" +#include "ServiceSupportOptions.h" +#include "AdditionalSupportOptions.h" +#include "AdditionalCBBOptions.h" #include #include @@ -26,17 +26,17 @@ extern "C" { /* Initiate-RequestPDU */ typedef struct Initiate_RequestPDU { - Integer32_t *localDetailCalling; /* OPTIONAL */ - Integer16_t proposedMaxServOutstandingCalling; - Integer16_t proposedMaxServOutstandingCalled; - Integer8_t *proposedDataStructureNestingLevel; /* OPTIONAL */ + Integer32_t *localDetailCalling; /* OPTIONAL */ + Integer16_t proposedMaxServOutstandingCalling; + Integer16_t proposedMaxServOutstandingCalled; + Integer8_t *proposedDataStructureNestingLevel; /* OPTIONAL */ struct Initiate_RequestPDU__initRequestDetail { - Integer16_t proposedVersionNumber; - ParameterSupportOptions_t proposedParameterCBB; - ServiceSupportOptions_t servicesSupportedCalling; - AdditionalSupportOptions_t *additionalSupportedCalling; /* OPTIONAL */ - AdditionalCBBOptions_t *additionalCbbSupportedCalling; /* OPTIONAL */ - VisibleString_t *privilegeClassIdentityCalling; /* OPTIONAL */ + Integer16_t proposedVersionNumber; + ParameterSupportOptions_t proposedParameterCBB; + ServiceSupportOptions_t servicesSupportedCalling; + AdditionalSupportOptions_t *additionalSupportedCalling; /* OPTIONAL */ + AdditionalCBBOptions_t *additionalCbbSupportedCalling; /* OPTIONAL */ + VisibleString_t *privilegeClassIdentityCalling; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.c b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.c index fda3f4b1..25ef123a 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.h b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.h index 392e22cf..8b1d32fa 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Initiate-RequestPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,11 @@ #include #include #include +#include +#include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.c b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.c index df2bd451..e28aa0b9 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.c +++ b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.c @@ -1,10 +1,45 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_initResponseDetail_6[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_initResponseDetail __attribute__((weak, alias("asn_DEF_initResponseDetail_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_initResponseDetail_6; +static asn_TYPE_descriptor_t asn_DEF_initResponseDetail; +__attribute__((constructor)) static void asn_DEF_initResponseDetail_6_alias_init(void) { + asn_DEF_initResponseDetail = asn_DEF_initResponseDetail_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_negotiatedParameterCBB_constr_8 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_servicesSupportedCalled_constr_9 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_additionalSupportedCalled_constr_10 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_additionalCbbSupportedCalled_constr_11 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_Initiate_ResponsePDU__initResponseDetail_6[] = { { ATF_NOFLAGS, 0, offsetof(struct Initiate_ResponsePDU__initResponseDetail, negotiatedVersionNumber), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -171,7 +206,7 @@ asn_TYPE_descriptor_t asn_DEF_initResponseDetail_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_initResponseDetail_6, + asn_MBR_Initiate_ResponsePDU__initResponseDetail_6, 6, /* Elements count */ &asn_SPC_initResponseDetail_specs_6 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.h b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.h index 1ed84820..c6e33f6a 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.h +++ b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,13 +10,13 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include +#include "Integer32.h" +#include "Integer16.h" +#include "Integer8.h" +#include "ParameterSupportOptions.h" +#include "ServiceSupportOptions.h" +#include "AdditionalSupportOptions.h" +#include "AdditionalCBBOptions.h" #include #include @@ -26,17 +26,17 @@ extern "C" { /* Initiate-ResponsePDU */ typedef struct Initiate_ResponsePDU { - Integer32_t *localDetailCalled; /* OPTIONAL */ - Integer16_t negotiatedMaxServOutstandingCalling; - Integer16_t negotiatedMaxServOutstandingCalled; - Integer8_t *negotiatedDataStructureNestingLevel; /* OPTIONAL */ + Integer32_t *localDetailCalled; /* OPTIONAL */ + Integer16_t negotiatedMaxServOutstandingCalling; + Integer16_t negotiatedMaxServOutstandingCalled; + Integer8_t *negotiatedDataStructureNestingLevel; /* OPTIONAL */ struct Initiate_ResponsePDU__initResponseDetail { - Integer16_t negotiatedVersionNumber; - ParameterSupportOptions_t negotiatedParameterCBB; - ServiceSupportOptions_t servicesSupportedCalled; - AdditionalSupportOptions_t *additionalSupportedCalled; /* OPTIONAL */ - AdditionalCBBOptions_t *additionalCbbSupportedCalled; /* OPTIONAL */ - VisibleString_t *privilegeClassIdentityCalled; /* OPTIONAL */ + Integer16_t negotiatedVersionNumber; + ParameterSupportOptions_t negotiatedParameterCBB; + ServiceSupportOptions_t servicesSupportedCalled; + AdditionalSupportOptions_t *additionalSupportedCalled; /* OPTIONAL */ + AdditionalCBBOptions_t *additionalCbbSupportedCalled; /* OPTIONAL */ + VisibleString_t *privilegeClassIdentityCalled; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.c b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.c index 240bcc1f..cacbba5c 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.h b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.h index 41bd2691..74418704 100644 --- a/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Initiate-ResponsePDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,11 @@ #include #include #include +#include +#include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.c b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.c index e9aa7c28..49cddcb1 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.c +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfCapabilities __attribute__((weak, alias("asn_DEF_listOfCapabilities_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3; +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities; +__attribute__((constructor)) static void asn_DEF_listOfCapabilities_3_alias_init(void) { + asn_DEF_listOfCapabilities = asn_DEF_listOfCapabilities_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_InitiateDownloadSequence_Request__listOfCapabilities_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfCapabilities_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfCapabilities_3, + asn_MBR_InitiateDownloadSequence_Request__listOfCapabilities_3, 1, /* Single element */ &asn_SPC_listOfCapabilities_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.h b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.h index 3e8bfe01..e3452ad6 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.h +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,9 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include +#include "MMSString.h" #include #include #include @@ -23,14 +23,14 @@ extern "C" { /* InitiateDownloadSequence-Request */ typedef struct InitiateDownloadSequence_Request { - Identifier_t domainName; + Identifier_t domainName; struct InitiateDownloadSequence_Request__listOfCapabilities { A_SEQUENCE_OF(MMSString_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfCapabilities; - BOOLEAN_t sharable; + BOOLEAN_t sharable; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.c b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.c index 68b24dc6..8d4c8e9c 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.h b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.h index d2e04a2b..e6f99020 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.c b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.c index 01d2f34a..c69d8f5c 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.c +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.h b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.h index 74ac6b99..07df43ea 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.h +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* InitiateDownloadSequence-Response */ -typedef NULL_t InitiateDownloadSequence_Response_t; +typedef NULL_t InitiateDownloadSequence_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_InitiateDownloadSequence_Response; diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.c b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.c index f18b5f29..f9f9bca8 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.h b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.h index 628dd645..972a8e07 100644 --- a/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateDownloadSequence-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.c b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.c index 0dff2296..2f8149bd 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.c +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.h b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.h index cc1f9a8d..c9ce44ae 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.h +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -28,8 +28,8 @@ typedef enum InitiateUnitControl_Error_PR { typedef struct InitiateUnitControl_Error { InitiateUnitControl_Error_PR present; union InitiateUnitControl_Error_u { - Identifier_t domain; - Identifier_t programInvocation; + Identifier_t domain; + Identifier_t programInvocation; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.c b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.c index 6c6e235a..cbe3017f 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.h b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.h index 811835e9..8142ccf1 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControl-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.c b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.c index f32c1773..1819261a 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.c +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.h b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.h index 27a26e93..f8c048ca 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.h +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* InitiateUnitControlLoad-Request */ -typedef Identifier_t InitiateUnitControlLoad_Request_t; +typedef Identifier_t InitiateUnitControlLoad_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_InitiateUnitControlLoad_Request; diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.c b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.c index a77822aa..fea14c8f 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.h b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.h index 913a1737..6d6fb69a 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.c b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.c index 87769a98..4dadba19 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.c +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.h b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.h index 408fe602..22717bae 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.h +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* InitiateUnitControlLoad-Response */ -typedef NULL_t InitiateUnitControlLoad_Response_t; +typedef NULL_t InitiateUnitControlLoad_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_InitiateUnitControlLoad_Response; diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.c b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.c index ddc37c1a..022a5361 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.h b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.h index bf1232f2..6de91ab3 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateUnitControlLoad-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.c b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.c index 3c0f2f16..c8b18b16 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.c +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.h b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.h index 0d4e777b..a72fa358 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.h +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* InitiateUploadSequence-Request */ -typedef Identifier_t InitiateUploadSequence_Request_t; +typedef Identifier_t InitiateUploadSequence_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_InitiateUploadSequence_Request; diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.c b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.c index 6431fd18..2a699fc3 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.h b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.h index b5610c2b..ccd3812f 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.c b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.c index 8c44a694..b4711bee 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.c +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfCapabilities __attribute__((weak, alias("asn_DEF_listOfCapabilities_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3; +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities; +__attribute__((constructor)) static void asn_DEF_listOfCapabilities_3_alias_init(void) { + asn_DEF_listOfCapabilities = asn_DEF_listOfCapabilities_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_InitiateUploadSequence_Response__listOfCapabilities_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfCapabilities_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfCapabilities_3, + asn_MBR_InitiateUploadSequence_Response__listOfCapabilities_3, 1, /* Single element */ &asn_SPC_listOfCapabilities_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.h b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.h index d5785040..233db934 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.h +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Integer32.h" +#include "MMSString.h" #include #include #include @@ -22,7 +22,7 @@ extern "C" { /* InitiateUploadSequence-Response */ typedef struct InitiateUploadSequence_Response { - Integer32_t ulsmID; + Integer32_t ulsmID; struct InitiateUploadSequence_Response__listOfCapabilities { A_SEQUENCE_OF(MMSString_t) list; diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.c b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.c index 6902e65c..33c1095b 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.h b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.h index 656761a2..9a7e30a8 100644 --- a/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/InitiateUploadSequence-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Input-Request.c b/src/icspacket/proto/mms/_mms/Input-Request.c index 415a5781..002cd77f 100644 --- a/src/icspacket/proto/mms/_mms/Input-Request.c +++ b/src/icspacket/proto/mms/_mms/Input-Request.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfPromptData __attribute__((weak, alias("asn_DEF_listOfPromptData_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfPromptData_4; +static asn_TYPE_descriptor_t asn_DEF_listOfPromptData; +__attribute__((constructor)) static void asn_DEF_listOfPromptData_4_alias_init(void) { + asn_DEF_listOfPromptData = asn_DEF_listOfPromptData_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int asn_DFL_3_cmp_1(const void *sptr) { const BOOLEAN_t *st = sptr; @@ -26,7 +37,7 @@ static int asn_DFL_3_set_1(void **sptr) { *st = 1; return 0; } -static asn_TYPE_member_t asn_MBR_listOfPromptData_4[] = { +static asn_TYPE_member_t asn_MBR_Input_Request__listOfPromptData_4[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -45,7 +56,7 @@ static asn_TYPE_member_t asn_MBR_listOfPromptData_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfPromptData_tags_4[] = { @@ -80,7 +91,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfPromptData_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfPromptData_4, + asn_MBR_Input_Request__listOfPromptData_4, 1, /* Single element */ &asn_SPC_listOfPromptData_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Input-Request.h b/src/icspacket/proto/mms/_mms/Input-Request.h index 9f30de89..8df5f305 100644 --- a/src/icspacket/proto/mms/_mms/Input-Request.h +++ b/src/icspacket/proto/mms/_mms/Input-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,10 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include -#include +#include "Unsigned32.h" +#include "MMSString.h" #include #include #include @@ -24,15 +24,15 @@ extern "C" { /* Input-Request */ typedef struct Input_Request { - Identifier_t operatorStationName; - BOOLEAN_t *echo; /* DEFAULT TRUE */ + Identifier_t operatorStationName; + BOOLEAN_t *echo; /* DEFAULT TRUE */ struct Input_Request__listOfPromptData { A_SEQUENCE_OF(MMSString_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfPromptData; - Unsigned32_t *inputTimeOut; /* OPTIONAL */ + Unsigned32_t *inputTimeOut; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Input-Request_Py.c b/src/icspacket/proto/mms/_mms/Input-Request_Py.c index cd8bdd40..71491f97 100644 --- a/src/icspacket/proto/mms/_mms/Input-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Input-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Input-Request_Py.h b/src/icspacket/proto/mms/_mms/Input-Request_Py.h index b9173952..6e104161 100644 --- a/src/icspacket/proto/mms/_mms/Input-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Input-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/icspacket/proto/mms/_mms/Input-Response.c b/src/icspacket/proto/mms/_mms/Input-Response.c index e63f0dd5..78b5c9c3 100644 --- a/src/icspacket/proto/mms/_mms/Input-Response.c +++ b/src/icspacket/proto/mms/_mms/Input-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Input-Response.h b/src/icspacket/proto/mms/_mms/Input-Response.h index a6a322fe..c756f270 100644 --- a/src/icspacket/proto/mms/_mms/Input-Response.h +++ b/src/icspacket/proto/mms/_mms/Input-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "MMSString.h" #ifdef __cplusplus extern "C" { #endif /* Input-Response */ -typedef MMSString_t Input_Response_t; +typedef MMSString_t Input_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Input_Response; diff --git a/src/icspacket/proto/mms/_mms/Input-Response_Py.c b/src/icspacket/proto/mms/_mms/Input-Response_Py.c index 1f9534ae..814e1f9c 100644 --- a/src/icspacket/proto/mms/_mms/Input-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Input-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Input-Response_Py.h b/src/icspacket/proto/mms/_mms/Input-Response_Py.h index e7c9a5c8..a518e8ad 100644 --- a/src/icspacket/proto/mms/_mms/Input-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Input-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer16.c b/src/icspacket/proto/mms/_mms/Integer16.c index e4036c1f..f5d3cabc 100644 --- a/src/icspacket/proto/mms/_mms/Integer16.c +++ b/src/icspacket/proto/mms/_mms/Integer16.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer16.h b/src/icspacket/proto/mms/_mms/Integer16.h index 74bb3eeb..6d474ed5 100644 --- a/src/icspacket/proto/mms/_mms/Integer16.h +++ b/src/icspacket/proto/mms/_mms/Integer16.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Integer16 */ -typedef long Integer16_t; +typedef long Integer16_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Integer16; diff --git a/src/icspacket/proto/mms/_mms/Integer16_Py.c b/src/icspacket/proto/mms/_mms/Integer16_Py.c index 27ecddef..6368086b 100644 --- a/src/icspacket/proto/mms/_mms/Integer16_Py.c +++ b/src/icspacket/proto/mms/_mms/Integer16_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer16_Py.h b/src/icspacket/proto/mms/_mms/Integer16_Py.h index 028e3b95..c00b8eb7 100644 --- a/src/icspacket/proto/mms/_mms/Integer16_Py.h +++ b/src/icspacket/proto/mms/_mms/Integer16_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer32.c b/src/icspacket/proto/mms/_mms/Integer32.c index 7a0b9507..06c47773 100644 --- a/src/icspacket/proto/mms/_mms/Integer32.c +++ b/src/icspacket/proto/mms/_mms/Integer32.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer32.h b/src/icspacket/proto/mms/_mms/Integer32.h index f10b01c3..129a2ac1 100644 --- a/src/icspacket/proto/mms/_mms/Integer32.h +++ b/src/icspacket/proto/mms/_mms/Integer32.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Integer32 */ -typedef long Integer32_t; +typedef long Integer32_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Integer32; diff --git a/src/icspacket/proto/mms/_mms/Integer32_Py.c b/src/icspacket/proto/mms/_mms/Integer32_Py.c index 23f11101..2d36979c 100644 --- a/src/icspacket/proto/mms/_mms/Integer32_Py.c +++ b/src/icspacket/proto/mms/_mms/Integer32_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer32_Py.h b/src/icspacket/proto/mms/_mms/Integer32_Py.h index d6641858..94f84d6e 100644 --- a/src/icspacket/proto/mms/_mms/Integer32_Py.h +++ b/src/icspacket/proto/mms/_mms/Integer32_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer8.c b/src/icspacket/proto/mms/_mms/Integer8.c index 2c714872..724a8b49 100644 --- a/src/icspacket/proto/mms/_mms/Integer8.c +++ b/src/icspacket/proto/mms/_mms/Integer8.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer8.h b/src/icspacket/proto/mms/_mms/Integer8.h index 8b748166..2ef46e7d 100644 --- a/src/icspacket/proto/mms/_mms/Integer8.h +++ b/src/icspacket/proto/mms/_mms/Integer8.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Integer8 */ -typedef long Integer8_t; +typedef long Integer8_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Integer8; diff --git a/src/icspacket/proto/mms/_mms/Integer8_Py.c b/src/icspacket/proto/mms/_mms/Integer8_Py.c index eb00d818..d9576d43 100644 --- a/src/icspacket/proto/mms/_mms/Integer8_Py.c +++ b/src/icspacket/proto/mms/_mms/Integer8_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Integer8_Py.h b/src/icspacket/proto/mms/_mms/Integer8_Py.h index 73d6743c..19730374 100644 --- a/src/icspacket/proto/mms/_mms/Integer8_Py.h +++ b/src/icspacket/proto/mms/_mms/Integer8_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Journal-Variable.c b/src/icspacket/proto/mms/_mms/Journal-Variable.c index c2ed9902..212a3b9e 100644 --- a/src/icspacket/proto/mms/_mms/Journal-Variable.c +++ b/src/icspacket/proto/mms/_mms/Journal-Variable.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Journal_Variable_1[] = { 0, 0, /* No default value */ "variableTag" }, - { ATF_NOFLAGS, 0, offsetof(struct Journal_Variable, valueSpecification), + { ATF_POINTER, 0, offsetof(struct Journal_Variable, valueSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_Data, diff --git a/src/icspacket/proto/mms/_mms/Journal-Variable.h b/src/icspacket/proto/mms/_mms/Journal-Variable.h index bdda2190..5b6ba6b5 100644 --- a/src/icspacket/proto/mms/_mms/Journal-Variable.h +++ b/src/icspacket/proto/mms/_mms/Journal-Variable.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "MMS255String.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct Data; + /* Journal-Variable */ typedef struct Journal_Variable { - MMS255String_t variableTag; - Data_t valueSpecification; + MMS255String_t variableTag; + struct Data *valueSpecification; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_Journal_Variable_1[2]; } #endif +/* Referred external types */ +#include "Data.h" + #endif /* _Journal_Variable_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Journal-Variable_Py.c b/src/icspacket/proto/mms/_mms/Journal-Variable_Py.c index b3d1998e..314d3730 100644 --- a/src/icspacket/proto/mms/_mms/Journal-Variable_Py.c +++ b/src/icspacket/proto/mms/_mms/Journal-Variable_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(Journal_Variable, variableTag, PyAsnMMS255String_FromPyt PY_IMPL_SEQ_REF_ATTR_TOPY(Journal_Variable, variableTag, MMS255String); PY_IMPL_SEQ_GETATTR(Journal_Variable, variableTag); PY_IMPL_SEQ_SETATTR(Journal_Variable, variableTag); -PY_IMPL_SEQ_ATTR_FROMPY(Journal_Variable, valueSpecification, PyAsnData_FromPython(value, (Data_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Journal_Variable, valueSpecification, Data); -PY_IMPL_SEQ_GETATTR(Journal_Variable, valueSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Journal_Variable, valueSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Journal_Variable, valueSpecification, Data_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Journal_Variable, valueSpecification, PyAsnData_FromPython(value, (Data_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Journal_Variable, valueSpecification, Data); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Journal_Variable, valueSpecification); PY_IMPL_SEQ_SETATTR(Journal_Variable, valueSpecification); PY_IMPL_GENERIC_DEALLOC(Journal_Variable); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(Journal_Variable); diff --git a/src/icspacket/proto/mms/_mms/Journal-Variable_Py.h b/src/icspacket/proto/mms/_mms/Journal-Variable_Py.h index 05a8c39c..b9b3e8b3 100644 --- a/src/icspacket/proto/mms/_mms/Journal-Variable_Py.h +++ b/src/icspacket/proto/mms/_mms/Journal-Variable_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/JournalEntry.c b/src/icspacket/proto/mms/_mms/JournalEntry.c index 9afaf7ce..11997fbc 100644 --- a/src/icspacket/proto/mms/_mms/JournalEntry.c +++ b/src/icspacket/proto/mms/_mms/JournalEntry.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_JournalEntry_1[] = { 0, 0, /* No default value */ "entryIdentifier" }, - { ATF_NOFLAGS, 0, offsetof(struct JournalEntry, originatingApplication), + { ATF_POINTER, 0, offsetof(struct JournalEntry, originatingApplication), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ApplicationReference, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_JournalEntry_1[] = { 0, 0, /* No default value */ "originatingApplication" }, - { ATF_NOFLAGS, 0, offsetof(struct JournalEntry, entryContent), + { ATF_POINTER, 0, offsetof(struct JournalEntry, entryContent), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_EntryContent, diff --git a/src/icspacket/proto/mms/_mms/JournalEntry.h b/src/icspacket/proto/mms/_mms/JournalEntry.h index 3713e56e..8d98b21b 100644 --- a/src/icspacket/proto/mms/_mms/JournalEntry.h +++ b/src/icspacket/proto/mms/_mms/JournalEntry.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,19 +11,21 @@ /* Including external dependencies */ #include -#include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ApplicationReference; +struct EntryContent; + /* JournalEntry */ typedef struct JournalEntry { - OCTET_STRING_t entryIdentifier; - ApplicationReference_t originatingApplication; - EntryContent_t entryContent; + OCTET_STRING_t entryIdentifier; + struct ApplicationReference *originatingApplication; + struct EntryContent *entryContent; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,5 +40,9 @@ extern asn_TYPE_member_t asn_MBR_JournalEntry_1[3]; } #endif +/* Referred external types */ +#include "ApplicationReference.h" +#include "EntryContent.h" + #endif /* _JournalEntry_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/JournalEntry_Py.c b/src/icspacket/proto/mms/_mms/JournalEntry_Py.c index 8e288ad7..d112f5d1 100644 --- a/src/icspacket/proto/mms/_mms/JournalEntry_Py.c +++ b/src/icspacket/proto/mms/_mms/JournalEntry_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,13 +11,17 @@ PY_IMPL_SEQ_ATTR_FROMPY(JournalEntry, entryIdentifier, PyCompatBytes_ToStringAnd PY_IMPL_SEQ_ATTR_TOPY(JournalEntry, entryIdentifier, PyCompatBytes_FromStringAndSize(((ASN__PRIMITIVE_TYPE_t *)target)->buf, ((ASN__PRIMITIVE_TYPE_t *)target)->size)); PY_IMPL_SEQ_GETATTR(JournalEntry, entryIdentifier); PY_IMPL_SEQ_SETATTR(JournalEntry, entryIdentifier); -PY_IMPL_SEQ_ATTR_FROMPY(JournalEntry, originatingApplication, PyAsnApplicationReference_FromPython(value, (ApplicationReference_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(JournalEntry, originatingApplication, ApplicationReference); -PY_IMPL_SEQ_GETATTR(JournalEntry, originatingApplication); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(JournalEntry, originatingApplication); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(JournalEntry, originatingApplication, ApplicationReference_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(JournalEntry, originatingApplication, PyAsnApplicationReference_FromPython(value, (ApplicationReference_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(JournalEntry, originatingApplication, ApplicationReference); +PY_IMPL_SEQ_AUTOVIV_GETATTR(JournalEntry, originatingApplication); PY_IMPL_SEQ_SETATTR(JournalEntry, originatingApplication); -PY_IMPL_SEQ_ATTR_FROMPY(JournalEntry, entryContent, PyAsnEntryContent_FromPython(value, (EntryContent_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(JournalEntry, entryContent, EntryContent); -PY_IMPL_SEQ_GETATTR(JournalEntry, entryContent); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(JournalEntry, entryContent); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(JournalEntry, entryContent, EntryContent_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(JournalEntry, entryContent, PyAsnEntryContent_FromPython(value, (EntryContent_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(JournalEntry, entryContent, EntryContent); +PY_IMPL_SEQ_AUTOVIV_GETATTR(JournalEntry, entryContent); PY_IMPL_SEQ_SETATTR(JournalEntry, entryContent); PY_IMPL_GENERIC_DEALLOC(JournalEntry); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(JournalEntry); diff --git a/src/icspacket/proto/mms/_mms/JournalEntry_Py.h b/src/icspacket/proto/mms/_mms/JournalEntry_Py.h index be3645e5..404b60e8 100644 --- a/src/icspacket/proto/mms/_mms/JournalEntry_Py.h +++ b/src/icspacket/proto/mms/_mms/JournalEntry_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Kill-Request.c b/src/icspacket/proto/mms/_mms/Kill-Request.c index 1ae093eb..08932a62 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Request.c +++ b/src/icspacket/proto/mms/_mms/Kill-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Kill-Request.h b/src/icspacket/proto/mms/_mms/Kill-Request.h index 02f4f309..2e743e44 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Request.h +++ b/src/icspacket/proto/mms/_mms/Kill-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,7 +19,7 @@ extern "C" { /* Kill-Request */ typedef struct Kill_Request { - Identifier_t programInvocationName; + Identifier_t programInvocationName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Kill-Request_Py.c b/src/icspacket/proto/mms/_mms/Kill-Request_Py.c index d50abe74..1f4ee066 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Kill-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Kill-Request_Py.h b/src/icspacket/proto/mms/_mms/Kill-Request_Py.h index 041ee4fd..98c9355c 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Kill-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Kill-Response.c b/src/icspacket/proto/mms/_mms/Kill-Response.c index 1a82b996..9d75b644 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Response.c +++ b/src/icspacket/proto/mms/_mms/Kill-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Kill-Response.h b/src/icspacket/proto/mms/_mms/Kill-Response.h index 0977a64b..06b4b614 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Response.h +++ b/src/icspacket/proto/mms/_mms/Kill-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Kill-Response */ -typedef NULL_t Kill_Response_t; +typedef NULL_t Kill_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Kill_Response; diff --git a/src/icspacket/proto/mms/_mms/Kill-Response_Py.c b/src/icspacket/proto/mms/_mms/Kill-Response_Py.c index e3c884e9..234da615 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Kill-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Kill-Response_Py.h b/src/icspacket/proto/mms/_mms/Kill-Response_Py.h index 59cda6b3..1022fd9d 100644 --- a/src/icspacket/proto/mms/_mms/Kill-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Kill-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadData.c b/src/icspacket/proto/mms/_mms/LoadData.c index be915255..c5b958a1 100644 --- a/src/icspacket/proto/mms/_mms/LoadData.c +++ b/src/icspacket/proto/mms/_mms/LoadData.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_LoadData_1[] = { 0, 0, /* No default value */ "non-coded" }, - { ATF_NOFLAGS, 0, offsetof(struct LoadData, choice.coded), + { ATF_POINTER, 0, offsetof(struct LoadData, choice.coded), (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)), 0, &asn_DEF_EXTERNAL, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_LoadData_1[] = { 0, 0, /* No default value */ "coded" }, - { ATF_NOFLAGS, 0, offsetof(struct LoadData, choice.embedded), + { ATF_POINTER, 0, offsetof(struct LoadData, choice.embedded), (ASN_TAG_CLASS_UNIVERSAL | (11 << 2)), 0, &asn_DEF_EMBEDDED_PDV, diff --git a/src/icspacket/proto/mms/_mms/LoadData.h b/src/icspacket/proto/mms/_mms/LoadData.h index 9be23a75..21664aa9 100644 --- a/src/icspacket/proto/mms/_mms/LoadData.h +++ b/src/icspacket/proto/mms/_mms/LoadData.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,8 +11,6 @@ /* Including external dependencies */ #include -#include -#include #include #ifdef __cplusplus @@ -27,13 +25,17 @@ typedef enum LoadData_PR { LoadData_PR_embedded } LoadData_PR; +/* Forward declarations */ +struct EXTERNAL; +struct EMBEDDED_PDV; + /* LoadData */ typedef struct LoadData { LoadData_PR present; union LoadData_u { - OCTET_STRING_t non_coded; - EXTERNAL_t coded; - EMBEDDED_PDV_t embedded; + OCTET_STRING_t non_coded; + struct EXTERNAL *coded; + struct EMBEDDED_PDV *embedded; } choice; /* Context for parsing across buffer boundaries */ @@ -49,5 +51,9 @@ extern asn_TYPE_member_t asn_MBR_LoadData_1[3]; } #endif +/* Referred external types */ +#include "EXTERNAL.h" +#include "EMBEDDED-PDV.h" + #endif /* _LoadData_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/LoadData_Py.c b/src/icspacket/proto/mms/_mms/LoadData_Py.c index 8e76ca74..1db02fa0 100644 --- a/src/icspacket/proto/mms/_mms/LoadData_Py.c +++ b/src/icspacket/proto/mms/_mms/LoadData_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,12 +11,12 @@ PY_IMPL_CHOICE_ATTR_FROMPY(LoadData, LoadData, non_coded, non_coded, PyCompatByt PY_IMPL_CHOICE_ATTR_TOPY(LoadData, non_coded, PyCompatBytes_FromStringAndSize(src->choice.non_coded.buf, src->choice.non_coded.size)); PY_IMPL_CHOICE_GETATTR(LoadData, LoadData, non_coded, non_coded); PY_IMPL_CHOICE_SETATTR(LoadData, LoadData, non_coded, non_coded); -PY_IMPL_CHOICE_ATTR_FROMPY(LoadData, LoadData, coded, coded,PyAsnEXTERNAL_FromPython(value, &dst->choice.coded)); -PY_IMPL_CHOICE_ATTR_TOPY(LoadData, coded, PyCompatAsnType_FromParent(&PyAsnEXTERNAL_Type, parent, (void *)&src->choice.coded)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(LoadData, LoadData, coded, coded, EXTERNAL,PyAsnEXTERNAL_FromPython(value, dst->choice.coded)); +PY_IMPL_CHOICE_ATTR_TOPY(LoadData, coded, PyCompatAsnType_FromParent(&PyAsnEXTERNAL_Type, parent, (void *)src->choice.coded)); PY_IMPL_CHOICE_GETATTR(LoadData, LoadData, coded, coded); PY_IMPL_CHOICE_SETATTR(LoadData, LoadData, coded, coded); -PY_IMPL_CHOICE_ATTR_FROMPY(LoadData, LoadData, embedded, embedded,PyAsnEMBEDDED_PDV_FromPython(value, &dst->choice.embedded)); -PY_IMPL_CHOICE_ATTR_TOPY(LoadData, embedded, PyCompatAsnType_FromParent(&PyAsnEMBEDDED_PDV_Type, parent, (void *)&src->choice.embedded)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(LoadData, LoadData, embedded, embedded, EMBEDDED_PDV,PyAsnEMBEDDED_PDV_FromPython(value, dst->choice.embedded)); +PY_IMPL_CHOICE_ATTR_TOPY(LoadData, embedded, PyCompatAsnType_FromParent(&PyAsnEMBEDDED_PDV_Type, parent, (void *)src->choice.embedded)); PY_IMPL_CHOICE_GETATTR(LoadData, LoadData, embedded, embedded); PY_IMPL_CHOICE_SETATTR(LoadData, LoadData, embedded, embedded); PY_IMPL_GENERIC_DEALLOC(LoadData); diff --git a/src/icspacket/proto/mms/_mms/LoadData_Py.h b/src/icspacket/proto/mms/_mms/LoadData_Py.h index a4268238..2cb042af 100644 --- a/src/icspacket/proto/mms/_mms/LoadData_Py.h +++ b/src/icspacket/proto/mms/_mms/LoadData_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.c b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.c index ad40c44a..16bb7663 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.c +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfCapabilities __attribute__((weak, alias("asn_DEF_listOfCapabilities_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3; +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities; +__attribute__((constructor)) static void asn_DEF_listOfCapabilities_3_alias_init(void) { + asn_DEF_listOfCapabilities = asn_DEF_listOfCapabilities_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_LoadDomainContent_Request__listOfCapabilities_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfCapabilities_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfCapabilities_3, + asn_MBR_LoadDomainContent_Request__listOfCapabilities_3, 1, /* Single element */ &asn_SPC_listOfCapabilities_specs_3 /* Additional specs */ }; @@ -124,7 +135,7 @@ asn_TYPE_member_t asn_MBR_LoadDomainContent_Request_1[] = { 0, 0, /* No default value */ "sharable" }, - { ATF_NOFLAGS, 0, offsetof(struct LoadDomainContent_Request, fileName), + { ATF_POINTER, 0, offsetof(struct LoadDomainContent_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.h b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.h index 52048efb..cdaf98df 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.h +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,9 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include -#include +#include "MMSString.h" #include #include #include @@ -23,20 +22,21 @@ extern "C" { #endif /* Forward declarations */ +struct FileName; struct ApplicationReference; /* LoadDomainContent-Request */ typedef struct LoadDomainContent_Request { - Identifier_t domainName; + Identifier_t domainName; struct LoadDomainContent_Request__listOfCapabilities { A_SEQUENCE_OF(MMSString_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfCapabilities; - BOOLEAN_t sharable; - FileName_t fileName; - struct ApplicationReference *thirdParty; /* OPTIONAL */ + BOOLEAN_t sharable; + struct FileName *fileName; + struct ApplicationReference *thirdParty; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -52,7 +52,8 @@ extern asn_TYPE_member_t asn_MBR_LoadDomainContent_Request_1[5]; #endif /* Referred external types */ -#include +#include "FileName.h" +#include "ApplicationReference.h" #endif /* _LoadDomainContent_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.c b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.c index aad4d744..0418fb41 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -47,9 +47,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(LoadDomainContent_Request, sharable, PyCompatBool_FromOb PY_IMPL_SEQ_ATTR_TOPY(LoadDomainContent_Request, sharable, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); PY_IMPL_SEQ_GETATTR(LoadDomainContent_Request, sharable); PY_IMPL_SEQ_SETATTR(LoadDomainContent_Request, sharable); -PY_IMPL_SEQ_ATTR_FROMPY(LoadDomainContent_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(LoadDomainContent_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(LoadDomainContent_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(LoadDomainContent_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(LoadDomainContent_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(LoadDomainContent_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(LoadDomainContent_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(LoadDomainContent_Request, fileName); PY_IMPL_SEQ_SETATTR(LoadDomainContent_Request, fileName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(LoadDomainContent_Request, thirdParty); PY_IMPL_SEQ_ATTR_GENERIC_NEW(LoadDomainContent_Request, thirdParty, ApplicationReference_t); diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.h b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.h index 8da879b5..7f930c36 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.c b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.c index a9d0eb12..d88a644b 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.c +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.h b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.h index 98683769..eb181f72 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.h +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* LoadDomainContent-Response */ -typedef NULL_t LoadDomainContent_Response_t; +typedef NULL_t LoadDomainContent_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_LoadDomainContent_Response; diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.c b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.c index 35259c69..3bd9ee9f 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.h b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.h index 5d2963ed..f7d8c249 100644 --- a/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/LoadDomainContent-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.c b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.c index 018307bb..99e9f115 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.c +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.h b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.h index a54c5c47..b1deed4f 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.h +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -30,9 +30,9 @@ typedef enum LoadUnitControlFromFile_Error_PR { typedef struct LoadUnitControlFromFile_Error { LoadUnitControlFromFile_Error_PR present; union LoadUnitControlFromFile_Error_u { - NULL_t none; - Identifier_t domain; - Identifier_t programInvocation; + NULL_t none; + Identifier_t domain; + Identifier_t programInvocation; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.c b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.c index 513a511e..fd37ea56 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.h b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.h index a1057fcf..742d44bf 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.c b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.c index 6c80071f..f4c0912b 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.c +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_LoadUnitControlFromFile_Request_1[] = { 0, 0, /* No default value */ "unitControlName" }, - { ATF_NOFLAGS, 0, offsetof(struct LoadUnitControlFromFile_Request, fileName), + { ATF_POINTER, 0, offsetof(struct LoadUnitControlFromFile_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.h b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.h index 0cb52eb5..7f257692 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.h +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,13 +18,14 @@ extern "C" { #endif /* Forward declarations */ +struct FileName; struct ApplicationReference; /* LoadUnitControlFromFile-Request */ typedef struct LoadUnitControlFromFile_Request { - Identifier_t unitControlName; - FileName_t fileName; - struct ApplicationReference *thirdParty; /* OPTIONAL */ + Identifier_t unitControlName; + struct FileName *fileName; + struct ApplicationReference *thirdParty; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,8 @@ extern asn_TYPE_member_t asn_MBR_LoadUnitControlFromFile_Request_1[3]; #endif /* Referred external types */ -#include +#include "FileName.h" +#include "ApplicationReference.h" #endif /* _LoadUnitControlFromFile_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.c b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.c index d908d5b8..be7b2fee 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(LoadUnitControlFromFile_Request, unitControlName, PyAsnI PY_IMPL_SEQ_REF_ATTR_TOPY(LoadUnitControlFromFile_Request, unitControlName, Identifier); PY_IMPL_SEQ_GETATTR(LoadUnitControlFromFile_Request, unitControlName); PY_IMPL_SEQ_SETATTR(LoadUnitControlFromFile_Request, unitControlName); -PY_IMPL_SEQ_ATTR_FROMPY(LoadUnitControlFromFile_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(LoadUnitControlFromFile_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(LoadUnitControlFromFile_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(LoadUnitControlFromFile_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(LoadUnitControlFromFile_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(LoadUnitControlFromFile_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(LoadUnitControlFromFile_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(LoadUnitControlFromFile_Request, fileName); PY_IMPL_SEQ_SETATTR(LoadUnitControlFromFile_Request, fileName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(LoadUnitControlFromFile_Request, thirdParty); PY_IMPL_SEQ_ATTR_GENERIC_NEW(LoadUnitControlFromFile_Request, thirdParty, ApplicationReference_t); diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.h b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.h index 461e8fa3..dee50b6d 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.c b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.c index 8ca3ac47..87217ed2 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.c +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.h b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.h index 5db397f1..b66e7d51 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.h +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* LoadUnitControlFromFile-Response */ -typedef NULL_t LoadUnitControlFromFile_Response_t; +typedef NULL_t LoadUnitControlFromFile_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_LoadUnitControlFromFile_Response; diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.c b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.c index 32242556..ed46eaa1 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.h b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.h index d4c8987c..71049962 100644 --- a/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/LoadUnitControlFromFile-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMS255String.c b/src/icspacket/proto/mms/_mms/MMS255String.c index d00ad6b4..aa4bed09 100644 --- a/src/icspacket/proto/mms/_mms/MMS255String.c +++ b/src/icspacket/proto/mms/_mms/MMS255String.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMS255String.h b/src/icspacket/proto/mms/_mms/MMS255String.h index 6de941a9..efc29b28 100644 --- a/src/icspacket/proto/mms/_mms/MMS255String.h +++ b/src/icspacket/proto/mms/_mms/MMS255String.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* MMS255String */ -typedef UTF8String_t MMS255String_t; +typedef UTF8String_t MMS255String_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_MMS255String; diff --git a/src/icspacket/proto/mms/_mms/MMS255String_Py.c b/src/icspacket/proto/mms/_mms/MMS255String_Py.c index d7882d48..1a9b0ef9 100644 --- a/src/icspacket/proto/mms/_mms/MMS255String_Py.c +++ b/src/icspacket/proto/mms/_mms/MMS255String_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMS255String_Py.h b/src/icspacket/proto/mms/_mms/MMS255String_Py.h index a7764f66..ec711204 100644 --- a/src/icspacket/proto/mms/_mms/MMS255String_Py.h +++ b/src/icspacket/proto/mms/_mms/MMS255String_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMSString.c b/src/icspacket/proto/mms/_mms/MMSString.c index a16d90ba..5372edb0 100644 --- a/src/icspacket/proto/mms/_mms/MMSString.c +++ b/src/icspacket/proto/mms/_mms/MMSString.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMSString.h b/src/icspacket/proto/mms/_mms/MMSString.h index d8ea8a9c..6c175a39 100644 --- a/src/icspacket/proto/mms/_mms/MMSString.h +++ b/src/icspacket/proto/mms/_mms/MMSString.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* MMSString */ -typedef UTF8String_t MMSString_t; +typedef UTF8String_t MMSString_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_MMSString; diff --git a/src/icspacket/proto/mms/_mms/MMSString_Py.c b/src/icspacket/proto/mms/_mms/MMSString_Py.c index ca40412c..ad389ca6 100644 --- a/src/icspacket/proto/mms/_mms/MMSString_Py.c +++ b/src/icspacket/proto/mms/_mms/MMSString_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMSString_Py.h b/src/icspacket/proto/mms/_mms/MMSString_Py.h index 8a103901..53933367 100644 --- a/src/icspacket/proto/mms/_mms/MMSString_Py.h +++ b/src/icspacket/proto/mms/_mms/MMSString_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/MMSpdu.c b/src/icspacket/proto/mms/_mms/MMSpdu.c index 6fa5ed32..ee4d50e9 100644 --- a/src/icspacket/proto/mms/_mms/MMSpdu.c +++ b/src/icspacket/proto/mms/_mms/MMSpdu.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.confirmed_RequestPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.confirmed_RequestPDU), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Confirmed_RequestPDU, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "confirmed-RequestPDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.confirmed_ResponsePDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.confirmed_ResponsePDU), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Confirmed_ResponsePDU, @@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "confirmed-ResponsePDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.confirmed_ErrorPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.confirmed_ErrorPDU), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Confirmed_ErrorPDU, @@ -65,7 +65,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "confirmed-ErrorPDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.unconfirmed_PDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.unconfirmed_PDU), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Unconfirmed_PDU, @@ -85,7 +85,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "unconfirmed-PDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.rejectPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.rejectPDU), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RejectPDU, @@ -145,7 +145,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "cancel-ResponsePDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.cancel_ErrorPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.cancel_ErrorPDU), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Cancel_ErrorPDU, @@ -165,7 +165,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "cancel-ErrorPDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.initiate_RequestPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.initiate_RequestPDU), (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Initiate_RequestPDU, @@ -185,7 +185,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "initiate-RequestPDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.initiate_ResponsePDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.initiate_ResponsePDU), (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Initiate_ResponsePDU, @@ -205,7 +205,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "initiate-ResponsePDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.initiate_ErrorPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.initiate_ErrorPDU), (ASN_TAG_CLASS_CONTEXT | (10 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Initiate_ErrorPDU, @@ -265,7 +265,7 @@ static asn_TYPE_member_t asn_MBR_MMSpdu_1[] = { 0, 0, /* No default value */ "conclude-ResponsePDU" }, - { ATF_NOFLAGS, 0, offsetof(struct MMSpdu, choice.conclude_ErrorPDU), + { ATF_POINTER, 0, offsetof(struct MMSpdu, choice.conclude_ErrorPDU), (ASN_TAG_CLASS_CONTEXT | (13 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Conclude_ErrorPDU, diff --git a/src/icspacket/proto/mms/_mms/MMSpdu.h b/src/icspacket/proto/mms/_mms/MMSpdu.h index 7a663b68..8d481bc1 100644 --- a/src/icspacket/proto/mms/_mms/MMSpdu.h +++ b/src/icspacket/proto/mms/_mms/MMSpdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,20 +10,10 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "Cancel-RequestPDU.h" +#include "Cancel-ResponsePDU.h" +#include "Conclude-RequestPDU.h" +#include "Conclude-ResponsePDU.h" #include #ifdef __cplusplus @@ -49,24 +39,37 @@ typedef enum MMSpdu_PR { MMSpdu_PR_conclude_ErrorPDU } MMSpdu_PR; +/* Forward declarations */ +struct Confirmed_RequestPDU; +struct Confirmed_ResponsePDU; +struct Confirmed_ErrorPDU; +struct Unconfirmed_PDU; +struct RejectPDU; +struct Cancel_ErrorPDU; +struct Initiate_RequestPDU; +struct Initiate_ResponsePDU; +struct Initiate_ErrorPDU; +struct Conclude_ErrorPDU; +struct ServiceError; + /* MMSpdu */ typedef struct MMSpdu { MMSpdu_PR present; union MMSpdu_u { - Confirmed_RequestPDU_t confirmed_RequestPDU; - Confirmed_ResponsePDU_t confirmed_ResponsePDU; - Confirmed_ErrorPDU_t confirmed_ErrorPDU; - Unconfirmed_PDU_t unconfirmed_PDU; - RejectPDU_t rejectPDU; - Cancel_RequestPDU_t cancel_RequestPDU; - Cancel_ResponsePDU_t cancel_ResponsePDU; - Cancel_ErrorPDU_t cancel_ErrorPDU; - Initiate_RequestPDU_t initiate_RequestPDU; - Initiate_ResponsePDU_t initiate_ResponsePDU; - Initiate_ErrorPDU_t initiate_ErrorPDU; - Conclude_RequestPDU_t conclude_RequestPDU; - Conclude_ResponsePDU_t conclude_ResponsePDU; - Conclude_ErrorPDU_t conclude_ErrorPDU; + struct Confirmed_RequestPDU *confirmed_RequestPDU; + struct Confirmed_ResponsePDU *confirmed_ResponsePDU; + struct Confirmed_ErrorPDU *confirmed_ErrorPDU; + struct Unconfirmed_PDU *unconfirmed_PDU; + struct RejectPDU *rejectPDU; + Cancel_RequestPDU_t cancel_RequestPDU; + Cancel_ResponsePDU_t cancel_ResponsePDU; + struct Cancel_ErrorPDU *cancel_ErrorPDU; + struct Initiate_RequestPDU *initiate_RequestPDU; + struct Initiate_ResponsePDU *initiate_ResponsePDU; + struct ServiceError *initiate_ErrorPDU; + Conclude_RequestPDU_t conclude_RequestPDU; + Conclude_ResponsePDU_t conclude_ResponsePDU; + struct ServiceError *conclude_ErrorPDU; } choice; /* Context for parsing across buffer boundaries */ @@ -80,5 +83,17 @@ extern asn_TYPE_descriptor_t asn_DEF_MMSpdu; } #endif +/* Referred external types */ +#include "Confirmed-RequestPDU.h" +#include "Confirmed-ResponsePDU.h" +#include "Confirmed-ErrorPDU.h" +#include "Unconfirmed-PDU.h" +#include "RejectPDU.h" +#include "Cancel-ErrorPDU.h" +#include "Initiate-RequestPDU.h" +#include "Initiate-ResponsePDU.h" +#include "Initiate-ErrorPDU.h" +#include "Conclude-ErrorPDU.h" + #endif /* _MMSpdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/MMSpdu_Py.c b/src/icspacket/proto/mms/_mms/MMSpdu_Py.c index cfc65323..266321a9 100644 --- a/src/icspacket/proto/mms/_mms/MMSpdu_Py.c +++ b/src/icspacket/proto/mms/_mms/MMSpdu_Py.c @@ -1,29 +1,29 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, confirmed_RequestPDU, confirmed_RequestPDU,PyAsnConfirmed_RequestPDU_FromPython(value, &dst->choice.confirmed_RequestPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, confirmed_RequestPDU, PyCompatAsnType_FromParent(&PyAsnConfirmed_RequestPDU_Type, parent, (void *)&src->choice.confirmed_RequestPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, confirmed_RequestPDU, confirmed_RequestPDU, Confirmed_RequestPDU,PyAsnConfirmed_RequestPDU_FromPython(value, dst->choice.confirmed_RequestPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, confirmed_RequestPDU, PyCompatAsnType_FromParent(&PyAsnConfirmed_RequestPDU_Type, parent, (void *)src->choice.confirmed_RequestPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, confirmed_RequestPDU, confirmed_RequestPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, confirmed_RequestPDU, confirmed_RequestPDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, confirmed_ResponsePDU, confirmed_ResponsePDU,PyAsnConfirmed_ResponsePDU_FromPython(value, &dst->choice.confirmed_ResponsePDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, confirmed_ResponsePDU, PyCompatAsnType_FromParent(&PyAsnConfirmed_ResponsePDU_Type, parent, (void *)&src->choice.confirmed_ResponsePDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, confirmed_ResponsePDU, confirmed_ResponsePDU, Confirmed_ResponsePDU,PyAsnConfirmed_ResponsePDU_FromPython(value, dst->choice.confirmed_ResponsePDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, confirmed_ResponsePDU, PyCompatAsnType_FromParent(&PyAsnConfirmed_ResponsePDU_Type, parent, (void *)src->choice.confirmed_ResponsePDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, confirmed_ResponsePDU, confirmed_ResponsePDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, confirmed_ResponsePDU, confirmed_ResponsePDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, confirmed_ErrorPDU, confirmed_ErrorPDU,PyAsnConfirmed_ErrorPDU_FromPython(value, &dst->choice.confirmed_ErrorPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, confirmed_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnConfirmed_ErrorPDU_Type, parent, (void *)&src->choice.confirmed_ErrorPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, confirmed_ErrorPDU, confirmed_ErrorPDU, Confirmed_ErrorPDU,PyAsnConfirmed_ErrorPDU_FromPython(value, dst->choice.confirmed_ErrorPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, confirmed_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnConfirmed_ErrorPDU_Type, parent, (void *)src->choice.confirmed_ErrorPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, confirmed_ErrorPDU, confirmed_ErrorPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, confirmed_ErrorPDU, confirmed_ErrorPDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, unconfirmed_PDU, unconfirmed_PDU,PyAsnUnconfirmed_PDU_FromPython(value, &dst->choice.unconfirmed_PDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, unconfirmed_PDU, PyCompatAsnType_FromParent(&PyAsnUnconfirmed_PDU_Type, parent, (void *)&src->choice.unconfirmed_PDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, unconfirmed_PDU, unconfirmed_PDU, Unconfirmed_PDU,PyAsnUnconfirmed_PDU_FromPython(value, dst->choice.unconfirmed_PDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, unconfirmed_PDU, PyCompatAsnType_FromParent(&PyAsnUnconfirmed_PDU_Type, parent, (void *)src->choice.unconfirmed_PDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, unconfirmed_PDU, unconfirmed_PDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, unconfirmed_PDU, unconfirmed_PDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, rejectPDU, rejectPDU,PyAsnRejectPDU_FromPython(value, &dst->choice.rejectPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, rejectPDU, PyCompatAsnType_FromParent(&PyAsnRejectPDU_Type, parent, (void *)&src->choice.rejectPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, rejectPDU, rejectPDU, RejectPDU,PyAsnRejectPDU_FromPython(value, dst->choice.rejectPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, rejectPDU, PyCompatAsnType_FromParent(&PyAsnRejectPDU_Type, parent, (void *)src->choice.rejectPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, rejectPDU, rejectPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, rejectPDU, rejectPDU); PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, cancel_RequestPDU, cancel_RequestPDU,PyAsnCancel_RequestPDU_FromPython(value, &dst->choice.cancel_RequestPDU)); @@ -34,20 +34,20 @@ PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, cancel_ResponsePDU, cancel_ResponsePD PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, cancel_ResponsePDU, PyCompatAsnType_FromParent(&PyAsnCancel_ResponsePDU_Type, parent, (void *)&src->choice.cancel_ResponsePDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, cancel_ResponsePDU, cancel_ResponsePDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, cancel_ResponsePDU, cancel_ResponsePDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, cancel_ErrorPDU, cancel_ErrorPDU,PyAsnCancel_ErrorPDU_FromPython(value, &dst->choice.cancel_ErrorPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, cancel_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnCancel_ErrorPDU_Type, parent, (void *)&src->choice.cancel_ErrorPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, cancel_ErrorPDU, cancel_ErrorPDU, Cancel_ErrorPDU,PyAsnCancel_ErrorPDU_FromPython(value, dst->choice.cancel_ErrorPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, cancel_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnCancel_ErrorPDU_Type, parent, (void *)src->choice.cancel_ErrorPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, cancel_ErrorPDU, cancel_ErrorPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, cancel_ErrorPDU, cancel_ErrorPDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, initiate_RequestPDU, initiate_RequestPDU,PyAsnInitiate_RequestPDU_FromPython(value, &dst->choice.initiate_RequestPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, initiate_RequestPDU, PyCompatAsnType_FromParent(&PyAsnInitiate_RequestPDU_Type, parent, (void *)&src->choice.initiate_RequestPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, initiate_RequestPDU, initiate_RequestPDU, Initiate_RequestPDU,PyAsnInitiate_RequestPDU_FromPython(value, dst->choice.initiate_RequestPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, initiate_RequestPDU, PyCompatAsnType_FromParent(&PyAsnInitiate_RequestPDU_Type, parent, (void *)src->choice.initiate_RequestPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, initiate_RequestPDU, initiate_RequestPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, initiate_RequestPDU, initiate_RequestPDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, initiate_ResponsePDU, initiate_ResponsePDU,PyAsnInitiate_ResponsePDU_FromPython(value, &dst->choice.initiate_ResponsePDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, initiate_ResponsePDU, PyCompatAsnType_FromParent(&PyAsnInitiate_ResponsePDU_Type, parent, (void *)&src->choice.initiate_ResponsePDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, initiate_ResponsePDU, initiate_ResponsePDU, Initiate_ResponsePDU,PyAsnInitiate_ResponsePDU_FromPython(value, dst->choice.initiate_ResponsePDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, initiate_ResponsePDU, PyCompatAsnType_FromParent(&PyAsnInitiate_ResponsePDU_Type, parent, (void *)src->choice.initiate_ResponsePDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, initiate_ResponsePDU, initiate_ResponsePDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, initiate_ResponsePDU, initiate_ResponsePDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, initiate_ErrorPDU, initiate_ErrorPDU,PyAsnInitiate_ErrorPDU_FromPython(value, &dst->choice.initiate_ErrorPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, initiate_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnInitiate_ErrorPDU_Type, parent, (void *)&src->choice.initiate_ErrorPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, initiate_ErrorPDU, initiate_ErrorPDU, Initiate_ErrorPDU,PyAsnInitiate_ErrorPDU_FromPython(value, dst->choice.initiate_ErrorPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, initiate_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnInitiate_ErrorPDU_Type, parent, (void *)src->choice.initiate_ErrorPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, initiate_ErrorPDU, initiate_ErrorPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, initiate_ErrorPDU, initiate_ErrorPDU); PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, conclude_RequestPDU, conclude_RequestPDU,PyAsnConclude_RequestPDU_FromPython(value, &dst->choice.conclude_RequestPDU)); @@ -58,8 +58,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, conclude_ResponsePDU, conclude_Respon PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, conclude_ResponsePDU, PyCompatAsnType_FromParent(&PyAsnConclude_ResponsePDU_Type, parent, (void *)&src->choice.conclude_ResponsePDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, conclude_ResponsePDU, conclude_ResponsePDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, conclude_ResponsePDU, conclude_ResponsePDU); -PY_IMPL_CHOICE_ATTR_FROMPY(MMSpdu, MMSpdu, conclude_ErrorPDU, conclude_ErrorPDU,PyAsnConclude_ErrorPDU_FromPython(value, &dst->choice.conclude_ErrorPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, conclude_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnConclude_ErrorPDU_Type, parent, (void *)&src->choice.conclude_ErrorPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(MMSpdu, MMSpdu, conclude_ErrorPDU, conclude_ErrorPDU, Conclude_ErrorPDU,PyAsnConclude_ErrorPDU_FromPython(value, dst->choice.conclude_ErrorPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(MMSpdu, conclude_ErrorPDU, PyCompatAsnType_FromParent(&PyAsnConclude_ErrorPDU_Type, parent, (void *)src->choice.conclude_ErrorPDU)); PY_IMPL_CHOICE_GETATTR(MMSpdu, MMSpdu, conclude_ErrorPDU, conclude_ErrorPDU); PY_IMPL_CHOICE_SETATTR(MMSpdu, MMSpdu, conclude_ErrorPDU, conclude_ErrorPDU); PY_IMPL_GENERIC_DEALLOC(MMSpdu); diff --git a/src/icspacket/proto/mms/_mms/MMSpdu_Py.h b/src/icspacket/proto/mms/_mms/MMSpdu_Py.h index a9f38804..45f2ac55 100644 --- a/src/icspacket/proto/mms/_mms/MMSpdu_Py.h +++ b/src/icspacket/proto/mms/_mms/MMSpdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Mechanism-name.c b/src/icspacket/proto/mms/_mms/Mechanism-name.c index 3b40230a..e48eb603 100644 --- a/src/icspacket/proto/mms/_mms/Mechanism-name.c +++ b/src/icspacket/proto/mms/_mms/Mechanism-name.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Mechanism-name.h b/src/icspacket/proto/mms/_mms/Mechanism-name.h index bd1cba07..9efc166e 100644 --- a/src/icspacket/proto/mms/_mms/Mechanism-name.h +++ b/src/icspacket/proto/mms/_mms/Mechanism-name.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Mechanism-name */ -typedef OBJECT_IDENTIFIER_t Mechanism_name_t; +typedef OBJECT_IDENTIFIER_t Mechanism_name_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Mechanism_name; diff --git a/src/icspacket/proto/mms/_mms/Mechanism-name_Py.c b/src/icspacket/proto/mms/_mms/Mechanism-name_Py.c index b55f77cd..25bdb20a 100644 --- a/src/icspacket/proto/mms/_mms/Mechanism-name_Py.c +++ b/src/icspacket/proto/mms/_mms/Mechanism-name_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Mechanism-name_Py.h b/src/icspacket/proto/mms/_mms/Mechanism-name_Py.h index 1a26efbc..9ba2be77 100644 --- a/src/icspacket/proto/mms/_mms/Mechanism-name_Py.h +++ b/src/icspacket/proto/mms/_mms/Mechanism-name_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Modifier.c b/src/icspacket/proto/mms/_mms/Modifier.c index 49f5ee76..01037b73 100644 --- a/src/icspacket/proto/mms/_mms/Modifier.c +++ b/src/icspacket/proto/mms/_mms/Modifier.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_Modifier_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Modifier, choice.eventModifier), + { ATF_POINTER, 0, offsetof(struct Modifier, choice.eventModifier), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AttachToEventCondition, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Modifier_1[] = { 0, 0, /* No default value */ "eventModifier" }, - { ATF_NOFLAGS, 0, offsetof(struct Modifier, choice.semaphoreModifier), + { ATF_POINTER, 0, offsetof(struct Modifier, choice.semaphoreModifier), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AttachToSemaphore, diff --git a/src/icspacket/proto/mms/_mms/Modifier.h b/src/icspacket/proto/mms/_mms/Modifier.h index bdd8385c..71a3cf54 100644 --- a/src/icspacket/proto/mms/_mms/Modifier.h +++ b/src/icspacket/proto/mms/_mms/Modifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -25,12 +23,16 @@ typedef enum Modifier_PR { Modifier_PR_semaphoreModifier } Modifier_PR; +/* Forward declarations */ +struct AttachToEventCondition; +struct AttachToSemaphore; + /* Modifier */ typedef struct Modifier { Modifier_PR present; union Modifier_u { - AttachToEventCondition_t eventModifier; - AttachToSemaphore_t semaphoreModifier; + struct AttachToEventCondition *eventModifier; + struct AttachToSemaphore *semaphoreModifier; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +48,9 @@ extern asn_TYPE_member_t asn_MBR_Modifier_1[2]; } #endif +/* Referred external types */ +#include "AttachToEventCondition.h" +#include "AttachToSemaphore.h" + #endif /* _Modifier_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ModifierStep.c b/src/icspacket/proto/mms/_mms/ModifierStep.c index bad11637..4ba08b1d 100644 --- a/src/icspacket/proto/mms/_mms/ModifierStep.c +++ b/src/icspacket/proto/mms/_mms/ModifierStep.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_ModifierStep_1[] = { 0, 0, /* No default value */ "modifierID" }, - { ATF_NOFLAGS, 0, offsetof(struct ModifierStep, modifier), + { ATF_POINTER, 0, offsetof(struct ModifierStep, modifier), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_Modifier, diff --git a/src/icspacket/proto/mms/_mms/ModifierStep.h b/src/icspacket/proto/mms/_mms/ModifierStep.h index 828aac8b..fa3d18d8 100644 --- a/src/icspacket/proto/mms/_mms/ModifierStep.h +++ b/src/icspacket/proto/mms/_mms/ModifierStep.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,17 +11,19 @@ /* Including external dependencies */ #include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct Modifier; + /* ModifierStep */ typedef struct ModifierStep { - long modifierID; - Modifier_t modifier; + long modifierID; + struct Modifier *modifier; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -34,5 +36,8 @@ extern asn_TYPE_descriptor_t asn_DEF_ModifierStep; } #endif +/* Referred external types */ +#include "Modifier.h" + #endif /* _ModifierStep_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ModifierStep_Py.c b/src/icspacket/proto/mms/_mms/ModifierStep_Py.c index a6370ca5..2f4e6401 100644 --- a/src/icspacket/proto/mms/_mms/ModifierStep_Py.c +++ b/src/icspacket/proto/mms/_mms/ModifierStep_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(ModifierStep, modifierID, PyCompatLong_FromObject(value, PY_IMPL_SEQ_ATTR_TOPY(ModifierStep, modifierID, PyCompatLong_AsObject(target, 1)); PY_IMPL_SEQ_GETATTR(ModifierStep, modifierID); PY_IMPL_SEQ_SETATTR(ModifierStep, modifierID); -PY_IMPL_SEQ_ATTR_FROMPY(ModifierStep, modifier, PyAsnModifier_FromPython(value, (Modifier_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ModifierStep, modifier, Modifier); -PY_IMPL_SEQ_GETATTR(ModifierStep, modifier); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ModifierStep, modifier); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ModifierStep, modifier, Modifier_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ModifierStep, modifier, PyAsnModifier_FromPython(value, (Modifier_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ModifierStep, modifier, Modifier); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ModifierStep, modifier); PY_IMPL_SEQ_SETATTR(ModifierStep, modifier); PY_IMPL_GENERIC_DEALLOC(ModifierStep); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(ModifierStep); diff --git a/src/icspacket/proto/mms/_mms/ModifierStep_Py.h b/src/icspacket/proto/mms/_mms/ModifierStep_Py.h index a489a495..fd4859d3 100644 --- a/src/icspacket/proto/mms/_mms/ModifierStep_Py.h +++ b/src/icspacket/proto/mms/_mms/ModifierStep_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Modifier_Py.c b/src/icspacket/proto/mms/_mms/Modifier_Py.c index 15328278..1f20edf4 100644 --- a/src/icspacket/proto/mms/_mms/Modifier_Py.c +++ b/src/icspacket/proto/mms/_mms/Modifier_Py.c @@ -1,17 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(Modifier, Modifier, eventModifier, eventModifier,PyAsnAttachToEventCondition_FromPython(value, &dst->choice.eventModifier)); -PY_IMPL_CHOICE_ATTR_TOPY(Modifier, eventModifier, PyCompatAsnType_FromParent(&PyAsnAttachToEventCondition_Type, parent, (void *)&src->choice.eventModifier)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Modifier, Modifier, eventModifier, eventModifier, AttachToEventCondition,PyAsnAttachToEventCondition_FromPython(value, dst->choice.eventModifier)); +PY_IMPL_CHOICE_ATTR_TOPY(Modifier, eventModifier, PyCompatAsnType_FromParent(&PyAsnAttachToEventCondition_Type, parent, (void *)src->choice.eventModifier)); PY_IMPL_CHOICE_GETATTR(Modifier, Modifier, eventModifier, eventModifier); PY_IMPL_CHOICE_SETATTR(Modifier, Modifier, eventModifier, eventModifier); -PY_IMPL_CHOICE_ATTR_FROMPY(Modifier, Modifier, semaphoreModifier, semaphoreModifier,PyAsnAttachToSemaphore_FromPython(value, &dst->choice.semaphoreModifier)); -PY_IMPL_CHOICE_ATTR_TOPY(Modifier, semaphoreModifier, PyCompatAsnType_FromParent(&PyAsnAttachToSemaphore_Type, parent, (void *)&src->choice.semaphoreModifier)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Modifier, Modifier, semaphoreModifier, semaphoreModifier, AttachToSemaphore,PyAsnAttachToSemaphore_FromPython(value, dst->choice.semaphoreModifier)); +PY_IMPL_CHOICE_ATTR_TOPY(Modifier, semaphoreModifier, PyCompatAsnType_FromParent(&PyAsnAttachToSemaphore_Type, parent, (void *)src->choice.semaphoreModifier)); PY_IMPL_CHOICE_GETATTR(Modifier, Modifier, semaphoreModifier, semaphoreModifier); PY_IMPL_CHOICE_SETATTR(Modifier, Modifier, semaphoreModifier, semaphoreModifier); PY_IMPL_GENERIC_DEALLOC(Modifier); diff --git a/src/icspacket/proto/mms/_mms/Modifier_Py.h b/src/icspacket/proto/mms/_mms/Modifier_Py.h index ee819c7f..d4c6f8e1 100644 --- a/src/icspacket/proto/mms/_mms/Modifier_Py.h +++ b/src/icspacket/proto/mms/_mms/Modifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Name.c b/src/icspacket/proto/mms/_mms/Name.c index 35482aff..0309ae25 100644 --- a/src/icspacket/proto/mms/_mms/Name.c +++ b/src/icspacket/proto/mms/_mms/Name.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include asn_TYPE_member_t asn_MBR_Name_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Name, choice.rdnSequence), + { ATF_POINTER, 0, offsetof(struct Name, choice.rdnSequence), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, &asn_DEF_RDNSequence, diff --git a/src/icspacket/proto/mms/_mms/Name.h b/src/icspacket/proto/mms/_mms/Name.h index 91596e50..c91ca920 100644 --- a/src/icspacket/proto/mms/_mms/Name.h +++ b/src/icspacket/proto/mms/_mms/Name.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -23,11 +22,14 @@ typedef enum Name_PR { Name_PR_rdnSequence } Name_PR; +/* Forward declarations */ +struct RDNSequence; + /* Name */ typedef struct Name { Name_PR present; union Name_u { - RDNSequence_t rdnSequence; + struct RDNSequence *rdnSequence; } choice; /* Context for parsing across buffer boundaries */ @@ -43,5 +45,8 @@ extern asn_TYPE_member_t asn_MBR_Name_1[1]; } #endif +/* Referred external types */ +#include "RDNSequence.h" + #endif /* _Name_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Name_Py.c b/src/icspacket/proto/mms/_mms/Name_Py.c index b35ec003..2e2577f2 100644 --- a/src/icspacket/proto/mms/_mms/Name_Py.c +++ b/src/icspacket/proto/mms/_mms/Name_Py.c @@ -1,13 +1,13 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(Name, Name, rdnSequence, rdnSequence,PyAsnRDNSequence_FromPython(value, &dst->choice.rdnSequence)); -PY_IMPL_CHOICE_ATTR_TOPY(Name, rdnSequence, PyCompatAsnType_FromParent(&PyAsnRDNSequence_Type, parent, (void *)&src->choice.rdnSequence)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Name, Name, rdnSequence, rdnSequence, RDNSequence,PyAsnRDNSequence_FromPython(value, dst->choice.rdnSequence)); +PY_IMPL_CHOICE_ATTR_TOPY(Name, rdnSequence, PyCompatAsnType_FromParent(&PyAsnRDNSequence_Type, parent, (void *)src->choice.rdnSequence)); PY_IMPL_CHOICE_GETATTR(Name, Name, rdnSequence, rdnSequence); PY_IMPL_CHOICE_SETATTR(Name, Name, rdnSequence, rdnSequence); PY_IMPL_GENERIC_DEALLOC(Name); diff --git a/src/icspacket/proto/mms/_mms/Name_Py.h b/src/icspacket/proto/mms/_mms/Name_Py.h index 5f271fe5..f247a2ca 100644 --- a/src/icspacket/proto/mms/_mms/Name_Py.h +++ b/src/icspacket/proto/mms/_mms/Name_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObjectClass.c b/src/icspacket/proto/mms/_mms/ObjectClass.c index 8eea6e3b..9d5af51f 100644 --- a/src/icspacket/proto/mms/_mms/ObjectClass.c +++ b/src/icspacket/proto/mms/_mms/ObjectClass.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObjectClass.h b/src/icspacket/proto/mms/_mms/ObjectClass.h index ae7439bf..74ad7150 100644 --- a/src/icspacket/proto/mms/_mms/ObjectClass.h +++ b/src/icspacket/proto/mms/_mms/ObjectClass.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -48,8 +48,8 @@ typedef enum ObjectClass__csObjectClass { typedef struct ObjectClass { ObjectClass_PR present; union ObjectClass_u { - long basicObjectClass; - long csObjectClass; + long basicObjectClass; + long csObjectClass; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/ObjectClass_Py.c b/src/icspacket/proto/mms/_mms/ObjectClass_Py.c index d3d770be..21a44867 100644 --- a/src/icspacket/proto/mms/_mms/ObjectClass_Py.c +++ b/src/icspacket/proto/mms/_mms/ObjectClass_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObjectClass_Py.h b/src/icspacket/proto/mms/_mms/ObjectClass_Py.h index 46e3ee69..88bb2164 100644 --- a/src/icspacket/proto/mms/_mms/ObjectClass_Py.h +++ b/src/icspacket/proto/mms/_mms/ObjectClass_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObjectName.c b/src/icspacket/proto/mms/_mms/ObjectName.c index d5a8e84d..2f5971d7 100644 --- a/src/icspacket/proto/mms/_mms/ObjectName.c +++ b/src/icspacket/proto/mms/_mms/ObjectName.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_domain_specific_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_domain_specific __attribute__((weak, alias("asn_DEF_domain_specific_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_domain_specific_3; +static asn_TYPE_descriptor_t asn_DEF_domain_specific; +__attribute__((constructor)) static void asn_DEF_domain_specific_3_alias_init(void) { + asn_DEF_domain_specific = asn_DEF_domain_specific_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ObjectName__domain_specific_3[] = { { ATF_NOFLAGS, 0, offsetof(struct ObjectName__domain_specific, domainID), (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -85,7 +96,7 @@ asn_TYPE_descriptor_t asn_DEF_domain_specific_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_domain_specific_3, + asn_MBR_ObjectName__domain_specific_3, 2, /* Elements count */ &asn_SPC_domain_specific_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ObjectName.h b/src/icspacket/proto/mms/_mms/ObjectName.h index f820a27d..c8cd4b83 100644 --- a/src/icspacket/proto/mms/_mms/ObjectName.h +++ b/src/icspacket/proto/mms/_mms/ObjectName.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include @@ -30,15 +30,15 @@ typedef enum ObjectName_PR { typedef struct ObjectName { ObjectName_PR present; union ObjectName_u { - Identifier_t vmd_specific; + Identifier_t vmd_specific; struct ObjectName__domain_specific { - Identifier_t domainID; - Identifier_t itemID; + Identifier_t domainID; + Identifier_t itemID; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } domain_specific; - Identifier_t aa_specific; + Identifier_t aa_specific; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/ObjectName_Py.c b/src/icspacket/proto/mms/_mms/ObjectName_Py.c index da2ac5ba..20a3f3d3 100644 --- a/src/icspacket/proto/mms/_mms/ObjectName_Py.c +++ b/src/icspacket/proto/mms/_mms/ObjectName_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -40,7 +40,7 @@ PY_IMPL_SEQ_FROMPY(ObjectName_domain_specific_ANON_3, asn_DEF_ObjectName.element PY_IMPL_SEQ_INIT(ObjectName_domain_specific_ANON_3); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ObjectName, domain_specific, &src->choice.domain_specific, ObjectName_domain_specific_ANON_3); PY_IMPL_SEQ_ANON_ATTR_TOPY(ObjectName, domain_specific, &src->choice.domain_specific, ObjectName_domain_specific_ANON_3); -PY_IMPL_CHOICE_GENERIC_SETATTR(ObjectName, ObjectName, domain_specific, domain_specific, asn_DEF_ObjectName); +PY_IMPL_CHOICE_GENERIC_SETATTR(ObjectName, ObjectName, domain_specific, domain_specific, *asn_DEF_ObjectName.elements[1].type); PY_IMPL_CHOICE_GETATTR(ObjectName, ObjectName, domain_specific, domain_specific); PY_IMPL_CHOICE_ATTR_FROMPY(ObjectName, ObjectName, vmd_specific, vmd_specific,PyAsnIdentifier_FromPython(value, &dst->choice.vmd_specific)); PY_IMPL_CHOICE_ATTR_TOPY(ObjectName, vmd_specific, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.vmd_specific)); diff --git a/src/icspacket/proto/mms/_mms/ObjectName_Py.h b/src/icspacket/proto/mms/_mms/ObjectName_Py.h index 13975601..6fa84af8 100644 --- a/src/icspacket/proto/mms/_mms/ObjectName_Py.h +++ b/src/icspacket/proto/mms/_mms/ObjectName_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,11 @@ #include #include #include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Error.c b/src/icspacket/proto/mms/_mms/ObtainFile-Error.c index cc71dee7..71931fa5 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Error.c +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Error.h b/src/icspacket/proto/mms/_mms/ObtainFile-Error.h index 268433e9..a0493e70 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Error.h +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -23,7 +23,7 @@ typedef enum ObtainFile_Error { } e_ObtainFile_Error; /* ObtainFile-Error */ -typedef long ObtainFile_Error_t; +typedef long ObtainFile_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ObtainFile_Error; diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.c b/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.c index 88b08acd..75852d0e 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.h b/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.h index 80e5e872..f52a99e1 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Request.c b/src/icspacket/proto/mms/_mms/ObtainFile-Request.c index 3796d7a4..add7fec6 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Request.c +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_ObtainFile_Request_1[] = { 0, 0, /* No default value */ "sourceFileServer" }, - { ATF_NOFLAGS, 0, offsetof(struct ObtainFile_Request, sourceFile), + { ATF_POINTER, 0, offsetof(struct ObtainFile_Request, sourceFile), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_ObtainFile_Request_1[] = { 0, 0, /* No default value */ "sourceFile" }, - { ATF_NOFLAGS, 0, offsetof(struct ObtainFile_Request, destinationFile), + { ATF_POINTER, 0, offsetof(struct ObtainFile_Request, destinationFile), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Request.h b/src/icspacket/proto/mms/_mms/ObtainFile-Request.h index c8f7c151..bffb0fde 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Request.h +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -19,12 +18,13 @@ extern "C" { /* Forward declarations */ struct ApplicationReference; +struct FileName; /* ObtainFile-Request */ typedef struct ObtainFile_Request { - struct ApplicationReference *sourceFileServer; /* OPTIONAL */ - FileName_t sourceFile; - FileName_t destinationFile; + struct ApplicationReference *sourceFileServer; /* OPTIONAL */ + struct FileName *sourceFile; + struct FileName *destinationFile; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -40,7 +40,8 @@ extern asn_TYPE_member_t asn_MBR_ObtainFile_Request_1[3]; #endif /* Referred external types */ -#include +#include "ApplicationReference.h" +#include "FileName.h" #endif /* _ObtainFile_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.c b/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.c index 64c898f0..8e0234ab 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,13 +12,17 @@ PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ObtainFile_Request, sourceFileServer, PyAsnAppl PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ObtainFile_Request, sourceFileServer, ApplicationReference); PY_IMPL_SEQ_OPT_GETATTR(ObtainFile_Request, sourceFileServer); PY_IMPL_SEQ_OPT_SETATTR(ObtainFile_Request, sourceFileServer); -PY_IMPL_SEQ_ATTR_FROMPY(ObtainFile_Request, sourceFile, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ObtainFile_Request, sourceFile, FileName); -PY_IMPL_SEQ_GETATTR(ObtainFile_Request, sourceFile); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ObtainFile_Request, sourceFile); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ObtainFile_Request, sourceFile, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ObtainFile_Request, sourceFile, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ObtainFile_Request, sourceFile, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ObtainFile_Request, sourceFile); PY_IMPL_SEQ_SETATTR(ObtainFile_Request, sourceFile); -PY_IMPL_SEQ_ATTR_FROMPY(ObtainFile_Request, destinationFile, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ObtainFile_Request, destinationFile, FileName); -PY_IMPL_SEQ_GETATTR(ObtainFile_Request, destinationFile); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ObtainFile_Request, destinationFile); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ObtainFile_Request, destinationFile, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ObtainFile_Request, destinationFile, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ObtainFile_Request, destinationFile, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ObtainFile_Request, destinationFile); PY_IMPL_SEQ_SETATTR(ObtainFile_Request, destinationFile); PY_IMPL_GENERIC_DEALLOC(ObtainFile_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(ObtainFile_Request); diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.h b/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.h index 4cb266ce..9054e0e7 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,6 +14,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Response.c b/src/icspacket/proto/mms/_mms/ObtainFile-Response.c index 61647681..2db144ea 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Response.c +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Response.h b/src/icspacket/proto/mms/_mms/ObtainFile-Response.h index d22874c8..e2889246 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Response.h +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* ObtainFile-Response */ -typedef NULL_t ObtainFile_Response_t; +typedef NULL_t ObtainFile_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ObtainFile_Response; diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.c b/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.c index fc0e99b8..a76f5063 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.h b/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.h index 7c7587d4..b19fe0a8 100644 --- a/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ObtainFile-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/OperationState.c b/src/icspacket/proto/mms/_mms/OperationState.c index 08d6bd71..1a2405af 100644 --- a/src/icspacket/proto/mms/_mms/OperationState.c +++ b/src/icspacket/proto/mms/_mms/OperationState.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/OperationState.h b/src/icspacket/proto/mms/_mms/OperationState.h index c3585f0b..7b2a50ce 100644 --- a/src/icspacket/proto/mms/_mms/OperationState.h +++ b/src/icspacket/proto/mms/_mms/OperationState.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -27,7 +27,7 @@ typedef enum OperationState { } e_OperationState; /* OperationState */ -typedef long OperationState_t; +typedef long OperationState_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_OperationState; diff --git a/src/icspacket/proto/mms/_mms/OperationState_Py.c b/src/icspacket/proto/mms/_mms/OperationState_Py.c index 9947f380..2c98e8b9 100644 --- a/src/icspacket/proto/mms/_mms/OperationState_Py.c +++ b/src/icspacket/proto/mms/_mms/OperationState_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/OperationState_Py.h b/src/icspacket/proto/mms/_mms/OperationState_Py.h index fcf64e53..179fed25 100644 --- a/src/icspacket/proto/mms/_mms/OperationState_Py.h +++ b/src/icspacket/proto/mms/_mms/OperationState_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Output-Request.c b/src/icspacket/proto/mms/_mms/Output-Request.c index 54a0dcae..e5921360 100644 --- a/src/icspacket/proto/mms/_mms/Output-Request.c +++ b/src/icspacket/proto/mms/_mms/Output-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfOutputData_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfOutputData __attribute__((weak, alias("asn_DEF_listOfOutputData_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfOutputData_3; +static asn_TYPE_descriptor_t asn_DEF_listOfOutputData; +__attribute__((constructor)) static void asn_DEF_listOfOutputData_3_alias_init(void) { + asn_DEF_listOfOutputData = asn_DEF_listOfOutputData_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Output_Request__listOfOutputData_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfOutputData_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfOutputData_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfOutputData_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfOutputData_3, + asn_MBR_Output_Request__listOfOutputData_3, 1, /* Single element */ &asn_SPC_listOfOutputData_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Output-Request.h b/src/icspacket/proto/mms/_mms/Output-Request.h index b1d8d115..2412cb56 100644 --- a/src/icspacket/proto/mms/_mms/Output-Request.h +++ b/src/icspacket/proto/mms/_mms/Output-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" +#include "MMSString.h" #include #include #include @@ -22,7 +22,7 @@ extern "C" { /* Output-Request */ typedef struct Output_Request { - Identifier_t operatorStationName; + Identifier_t operatorStationName; struct Output_Request__listOfOutputData { A_SEQUENCE_OF(MMSString_t) list; diff --git a/src/icspacket/proto/mms/_mms/Output-Request_Py.c b/src/icspacket/proto/mms/_mms/Output-Request_Py.c index 91f968ce..01f9686b 100644 --- a/src/icspacket/proto/mms/_mms/Output-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Output-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Output-Request_Py.h b/src/icspacket/proto/mms/_mms/Output-Request_Py.h index 3185e170..c27b7fa0 100644 --- a/src/icspacket/proto/mms/_mms/Output-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Output-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Output-Response.c b/src/icspacket/proto/mms/_mms/Output-Response.c index d23785e9..07d3cb78 100644 --- a/src/icspacket/proto/mms/_mms/Output-Response.c +++ b/src/icspacket/proto/mms/_mms/Output-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Output-Response.h b/src/icspacket/proto/mms/_mms/Output-Response.h index a4b2eda7..976f1aff 100644 --- a/src/icspacket/proto/mms/_mms/Output-Response.h +++ b/src/icspacket/proto/mms/_mms/Output-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Output-Response */ -typedef NULL_t Output_Response_t; +typedef NULL_t Output_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Output_Response; diff --git a/src/icspacket/proto/mms/_mms/Output-Response_Py.c b/src/icspacket/proto/mms/_mms/Output-Response_Py.c index cca47ef1..1c8199c6 100644 --- a/src/icspacket/proto/mms/_mms/Output-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Output-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Output-Response_Py.h b/src/icspacket/proto/mms/_mms/Output-Response_Py.h index 1ff99cbc..b8288da8 100644 --- a/src/icspacket/proto/mms/_mms/Output-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Output-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ParameterSupportOptions.c b/src/icspacket/proto/mms/_mms/ParameterSupportOptions.c index c3271379..7d65c1b1 100644 --- a/src/icspacket/proto/mms/_mms/ParameterSupportOptions.c +++ b/src/icspacket/proto/mms/_mms/ParameterSupportOptions.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_ParameterSupportOptions_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_ParameterSupportOptions_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_ParameterSupportOptions_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/ParameterSupportOptions.h b/src/icspacket/proto/mms/_mms/ParameterSupportOptions.h index a04b351c..48c10b68 100644 --- a/src/icspacket/proto/mms/_mms/ParameterSupportOptions.h +++ b/src/icspacket/proto/mms/_mms/ParameterSupportOptions.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -37,9 +37,10 @@ typedef enum ParameterSupportOptions { } e_ParameterSupportOptions; /* ParameterSupportOptions */ -typedef BIT_STRING_t ParameterSupportOptions_t; +typedef BIT_STRING_t ParameterSupportOptions_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_ParameterSupportOptions_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ParameterSupportOptions; asn_struct_free_f ParameterSupportOptions_free; asn_struct_print_f ParameterSupportOptions_print; diff --git a/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.c b/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.c index e668d5d7..936215fb 100644 --- a/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.c +++ b/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.h b/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.h index 8fd903ce..3dd33e4b 100644 --- a/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.h +++ b/src/icspacket/proto/mms/_mms/ParameterSupportOptions_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Priority.c b/src/icspacket/proto/mms/_mms/Priority.c index 77621933..1a01fd32 100644 --- a/src/icspacket/proto/mms/_mms/Priority.c +++ b/src/icspacket/proto/mms/_mms/Priority.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Priority.h b/src/icspacket/proto/mms/_mms/Priority.h index 1ff6e4c4..e4071ff3 100644 --- a/src/icspacket/proto/mms/_mms/Priority.h +++ b/src/icspacket/proto/mms/_mms/Priority.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Priority */ -typedef long Priority_t; +typedef long Priority_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Priority; diff --git a/src/icspacket/proto/mms/_mms/Priority_Py.c b/src/icspacket/proto/mms/_mms/Priority_Py.c index 8c9737c2..0ef1e1f0 100644 --- a/src/icspacket/proto/mms/_mms/Priority_Py.c +++ b/src/icspacket/proto/mms/_mms/Priority_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Priority_Py.h b/src/icspacket/proto/mms/_mms/Priority_Py.h index 958dfabe..79a1411d 100644 --- a/src/icspacket/proto/mms/_mms/Priority_Py.h +++ b/src/icspacket/proto/mms/_mms/Priority_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ProgramInvocationState.c b/src/icspacket/proto/mms/_mms/ProgramInvocationState.c index ac769b7b..32405b46 100644 --- a/src/icspacket/proto/mms/_mms/ProgramInvocationState.c +++ b/src/icspacket/proto/mms/_mms/ProgramInvocationState.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ProgramInvocationState.h b/src/icspacket/proto/mms/_mms/ProgramInvocationState.h index 2f88317b..c303347c 100644 --- a/src/icspacket/proto/mms/_mms/ProgramInvocationState.h +++ b/src/icspacket/proto/mms/_mms/ProgramInvocationState.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef enum ProgramInvocationState { } e_ProgramInvocationState; /* ProgramInvocationState */ -typedef long ProgramInvocationState_t; +typedef long ProgramInvocationState_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ProgramInvocationState; diff --git a/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.c b/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.c index e419e13b..06385b5f 100644 --- a/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.c +++ b/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.h b/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.h index 0486666d..f58da82c 100644 --- a/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.h +++ b/src/icspacket/proto/mms/_mms/ProgramInvocationState_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RDNSequence.c b/src/icspacket/proto/mms/_mms/RDNSequence.c index 1993c73c..eb35a111 100644 --- a/src/icspacket/proto/mms/_mms/RDNSequence.c +++ b/src/icspacket/proto/mms/_mms/RDNSequence.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_RDNSequence_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_RDNSequence_tags_1[] = { diff --git a/src/icspacket/proto/mms/_mms/RDNSequence.h b/src/icspacket/proto/mms/_mms/RDNSequence.h index 09907850..45f1b7ae 100644 --- a/src/icspacket/proto/mms/_mms/RDNSequence.h +++ b/src/icspacket/proto/mms/_mms/RDNSequence.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -38,7 +38,7 @@ extern asn_TYPE_member_t asn_MBR_RDNSequence_1[1]; #endif /* Referred external types */ -#include +#include "RelativeDistinguishedName.h" #endif /* _RDNSequence_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RDNSequence_Py.c b/src/icspacket/proto/mms/_mms/RDNSequence_Py.c index 702b7933..dbb4a4f8 100644 --- a/src/icspacket/proto/mms/_mms/RDNSequence_Py.c +++ b/src/icspacket/proto/mms/_mms/RDNSequence_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RDNSequence_Py.h b/src/icspacket/proto/mms/_mms/RDNSequence_Py.h index b19e88e2..d0e7500e 100644 --- a/src/icspacket/proto/mms/_mms/RDNSequence_Py.h +++ b/src/icspacket/proto/mms/_mms/RDNSequence_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RLRE-apdu.c b/src/icspacket/proto/mms/_mms/RLRE-apdu.c index a40ed0cf..b2a86f43 100644 --- a/src/icspacket/proto/mms/_mms/RLRE-apdu.c +++ b/src/icspacket/proto/mms/_mms/RLRE-apdu.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RLRE-apdu.h b/src/icspacket/proto/mms/_mms/RLRE-apdu.h index fa74ff9e..05b93174 100644 --- a/src/icspacket/proto/mms/_mms/RLRE-apdu.h +++ b/src/icspacket/proto/mms/_mms/RLRE-apdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Release-response-reason.h" #include #ifdef __cplusplus @@ -22,8 +22,8 @@ struct Association_information; /* RLRE-apdu */ typedef struct RLRE_apdu { - Release_response_reason_t *reason; /* OPTIONAL */ - struct Association_information *user_information; /* OPTIONAL */ + Release_response_reason_t *reason; /* OPTIONAL */ + struct Association_information *user_information; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -39,7 +39,7 @@ extern asn_TYPE_member_t asn_MBR_RLRE_apdu_1[2]; #endif /* Referred external types */ -#include +#include "Association-information.h" #endif /* _RLRE_apdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.c b/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.c index 2238bf7c..edd68fcc 100644 --- a/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.c +++ b/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.h b/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.h index 50641b16..6ea23d42 100644 --- a/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.h +++ b/src/icspacket/proto/mms/_mms/RLRE-apdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RLRQ-apdu.c b/src/icspacket/proto/mms/_mms/RLRQ-apdu.c index f48f9c51..61a14289 100644 --- a/src/icspacket/proto/mms/_mms/RLRQ-apdu.c +++ b/src/icspacket/proto/mms/_mms/RLRQ-apdu.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RLRQ-apdu.h b/src/icspacket/proto/mms/_mms/RLRQ-apdu.h index 7e1ced8e..5503548f 100644 --- a/src/icspacket/proto/mms/_mms/RLRQ-apdu.h +++ b/src/icspacket/proto/mms/_mms/RLRQ-apdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Release-request-reason.h" #include #ifdef __cplusplus @@ -22,8 +22,8 @@ struct Association_information; /* RLRQ-apdu */ typedef struct RLRQ_apdu { - Release_request_reason_t *reason; /* OPTIONAL */ - struct Association_information *user_information; /* OPTIONAL */ + Release_request_reason_t *reason; /* OPTIONAL */ + struct Association_information *user_information; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -39,7 +39,7 @@ extern asn_TYPE_member_t asn_MBR_RLRQ_apdu_1[2]; #endif /* Referred external types */ -#include +#include "Association-information.h" #endif /* _RLRQ_apdu_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.c b/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.c index 569cc7e9..1c58f98f 100644 --- a/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.c +++ b/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.h b/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.h index c1d67ec9..e3213c52 100644 --- a/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.h +++ b/src/icspacket/proto/mms/_mms/RLRQ-apdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Read-Request.c b/src/icspacket/proto/mms/_mms/Read-Request.c index 6c076d80..c5492074 100644 --- a/src/icspacket/proto/mms/_mms/Read-Request.c +++ b/src/icspacket/proto/mms/_mms/Read-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -48,7 +48,7 @@ asn_TYPE_member_t asn_MBR_Read_Request_1[] = { &asn_DFL_2_set_0, /* Set DEFAULT 0 */ "specificationWithResult" }, - { ATF_NOFLAGS, 0, offsetof(struct Read_Request, variableAccessSpecification), + { ATF_POINTER, 0, offsetof(struct Read_Request, variableAccessSpecification), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_VariableAccessSpecification, diff --git a/src/icspacket/proto/mms/_mms/Read-Request.h b/src/icspacket/proto/mms/_mms/Read-Request.h index 9fd4493f..972cc277 100644 --- a/src/icspacket/proto/mms/_mms/Read-Request.h +++ b/src/icspacket/proto/mms/_mms/Read-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,17 +11,19 @@ /* Including external dependencies */ #include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct VariableAccessSpecification; + /* Read-Request */ typedef struct Read_Request { - BOOLEAN_t specificationWithResult; /* DEFAULT FALSE */ - VariableAccessSpecification_t variableAccessSpecification; + BOOLEAN_t specificationWithResult; /* DEFAULT FALSE */ + struct VariableAccessSpecification *variableAccessSpecification; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_Read_Request_1[2]; } #endif +/* Referred external types */ +#include "VariableAccessSpecification.h" + #endif /* _Read_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Read-Request_Py.c b/src/icspacket/proto/mms/_mms/Read-Request_Py.c index 26ed68ab..3a6bab04 100644 --- a/src/icspacket/proto/mms/_mms/Read-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Read-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(Read_Request, specificationWithResult, PyCompatBool_From PY_IMPL_SEQ_ATTR_TOPY(Read_Request, specificationWithResult, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); PY_IMPL_SEQ_GETATTR(Read_Request, specificationWithResult); PY_IMPL_SEQ_SETATTR(Read_Request, specificationWithResult); -PY_IMPL_SEQ_ATTR_FROMPY(Read_Request, variableAccessSpecification, PyAsnVariableAccessSpecification_FromPython(value, (VariableAccessSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Read_Request, variableAccessSpecification, VariableAccessSpecification); -PY_IMPL_SEQ_GETATTR(Read_Request, variableAccessSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Read_Request, variableAccessSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Read_Request, variableAccessSpecification, VariableAccessSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Read_Request, variableAccessSpecification, PyAsnVariableAccessSpecification_FromPython(value, (VariableAccessSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Read_Request, variableAccessSpecification, VariableAccessSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Read_Request, variableAccessSpecification); PY_IMPL_SEQ_SETATTR(Read_Request, variableAccessSpecification); PY_IMPL_GENERIC_DEALLOC(Read_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(Read_Request); diff --git a/src/icspacket/proto/mms/_mms/Read-Request_Py.h b/src/icspacket/proto/mms/_mms/Read-Request_Py.h index bec77961..0641e35e 100644 --- a/src/icspacket/proto/mms/_mms/Read-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Read-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Read-Response.c b/src/icspacket/proto/mms/_mms/Read-Response.c index 07136bfc..eb99e75d 100644 --- a/src/icspacket/proto/mms/_mms/Read-Response.c +++ b/src/icspacket/proto/mms/_mms/Read-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfAccessResult_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfAccessResult __attribute__((weak, alias("asn_DEF_listOfAccessResult_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfAccessResult_3; +static asn_TYPE_descriptor_t asn_DEF_listOfAccessResult; +__attribute__((constructor)) static void asn_DEF_listOfAccessResult_3_alias_init(void) { + asn_DEF_listOfAccessResult = asn_DEF_listOfAccessResult_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Read_Response__listOfAccessResult_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfAccessResult_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfAccessResult_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfAccessResult_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfAccessResult_3, + asn_MBR_Read_Response__listOfAccessResult_3, 1, /* Single element */ &asn_SPC_listOfAccessResult_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Read-Response.h b/src/icspacket/proto/mms/_mms/Read-Response.h index 75637c04..4308a874 100644 --- a/src/icspacket/proto/mms/_mms/Read-Response.h +++ b/src/icspacket/proto/mms/_mms/Read-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -24,7 +24,7 @@ struct AccessResult; /* Read-Response */ typedef struct Read_Response { - struct VariableAccessSpecification *variableAccessSpecification; /* OPTIONAL */ + struct VariableAccessSpecification *variableAccessSpecification; /* OPTIONAL */ struct Read_Response__listOfAccessResult { A_SEQUENCE_OF(struct AccessResult) list; @@ -46,8 +46,8 @@ extern asn_TYPE_member_t asn_MBR_Read_Response_1[2]; #endif /* Referred external types */ -#include -#include +#include "VariableAccessSpecification.h" +#include "AccessResult.h" #endif /* _Read_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Read-Response_Py.c b/src/icspacket/proto/mms/_mms/Read-Response_Py.c index 60070bc2..c906e84f 100644 --- a/src/icspacket/proto/mms/_mms/Read-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Read-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Read-Response_Py.h b/src/icspacket/proto/mms/_mms/Read-Response_Py.h index b2ad9ffc..ff4f5c62 100644 --- a/src/icspacket/proto/mms/_mms/Read-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Read-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Request.c b/src/icspacket/proto/mms/_mms/ReadJournal-Request.c index 3c04c702..583b311b 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Request.c +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Request.c @@ -1,10 +1,54 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_rangeStartSpecification_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_rangeStartSpecification __attribute__((weak, alias("asn_DEF_rangeStartSpecification_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_rangeStartSpecification_3; +static asn_TYPE_descriptor_t asn_DEF_rangeStartSpecification; +__attribute__((constructor)) static void asn_DEF_rangeStartSpecification_3_alias_init(void) { + asn_DEF_rangeStartSpecification = asn_DEF_rangeStartSpecification_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_rangeStopSpecification __attribute__((weak, alias("asn_DEF_rangeStopSpecification_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_rangeStopSpecification_6; +static asn_TYPE_descriptor_t asn_DEF_rangeStopSpecification; +__attribute__((constructor)) static void asn_DEF_rangeStopSpecification_6_alias_init(void) { + asn_DEF_rangeStopSpecification = asn_DEF_rangeStopSpecification_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfVariables __attribute__((weak, alias("asn_DEF_listOfVariables_9"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfVariables_9; +static asn_TYPE_descriptor_t asn_DEF_listOfVariables; +__attribute__((constructor)) static void asn_DEF_listOfVariables_9_alias_init(void) { + asn_DEF_listOfVariables = asn_DEF_listOfVariables_9; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_entryToStartAfter __attribute__((weak, alias("asn_DEF_entryToStartAfter_11"))); +#else +static asn_TYPE_descriptor_t asn_DEF_entryToStartAfter_11; +static asn_TYPE_descriptor_t asn_DEF_entryToStartAfter; +__attribute__((constructor)) static void asn_DEF_entryToStartAfter_11_alias_init(void) { + asn_DEF_entryToStartAfter = asn_DEF_entryToStartAfter_11; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ReadJournal_Request__rangeStartSpecification_3[] = { { ATF_NOFLAGS, 0, offsetof(struct ReadJournal_Request__rangeStartSpecification, choice.startingTime), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -81,12 +125,12 @@ asn_TYPE_descriptor_t asn_DEF_rangeStartSpecification_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_rangeStartSpecification_3, + asn_MBR_ReadJournal_Request__rangeStartSpecification_3, 2, /* Elements count */ &asn_SPC_rangeStartSpecification_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_rangeStopSpecification_6[] = { +static asn_TYPE_member_t asn_MBR_ReadJournal_Request__rangeStopSpecification_6[] = { { ATF_NOFLAGS, 0, offsetof(struct ReadJournal_Request__rangeStopSpecification, choice.endingTime), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -163,12 +207,12 @@ asn_TYPE_descriptor_t asn_DEF_rangeStopSpecification_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_rangeStopSpecification_6, + asn_MBR_ReadJournal_Request__rangeStopSpecification_6, 2, /* Elements count */ &asn_SPC_rangeStopSpecification_specs_6 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfVariables_9[] = { +static asn_TYPE_member_t asn_MBR_ReadJournal_Request__listOfVariables_9[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -187,7 +231,7 @@ static asn_TYPE_member_t asn_MBR_listOfVariables_9[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfVariables_tags_9[] = { @@ -222,12 +266,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfVariables_9 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfVariables_9, + asn_MBR_ReadJournal_Request__listOfVariables_9, 1, /* Single element */ &asn_SPC_listOfVariables_specs_9 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_entryToStartAfter_11[] = { +static asn_TYPE_member_t asn_MBR_ReadJournal_Request__entryToStartAfter_11[] = { { ATF_NOFLAGS, 0, offsetof(struct ReadJournal_Request__entryToStartAfter, timeSpecification), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -308,13 +352,13 @@ asn_TYPE_descriptor_t asn_DEF_entryToStartAfter_11 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_entryToStartAfter_11, + asn_MBR_ReadJournal_Request__entryToStartAfter_11, 2, /* Elements count */ &asn_SPC_entryToStartAfter_specs_11 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_ReadJournal_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReadJournal_Request, journalName), + { ATF_POINTER, 0, offsetof(struct ReadJournal_Request, journalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Request.h b/src/icspacket/proto/mms/_mms/ReadJournal-Request.h index e6f9d7de..df245959 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Request.h +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,11 +10,10 @@ #include /* Including external dependencies */ -#include -#include +#include "TimeOfDay.h" #include #include -#include +#include "Integer32.h" #include #include #include @@ -36,14 +35,17 @@ typedef enum ReadJournal_Request__rangeStopSpecification_PR { ReadJournal_Request__rangeStopSpecification_PR_numberOfEntries } ReadJournal_Request__rangeStopSpecification_PR; +/* Forward declarations */ +struct ObjectName; + /* ReadJournal-Request */ typedef struct ReadJournal_Request { - ObjectName_t journalName; + struct ObjectName *journalName; struct ReadJournal_Request__rangeStartSpecification { ReadJournal_Request__rangeStartSpecification_PR present; union ReadJournal_Request__rangeStartSpecification_u { - TimeOfDay_t startingTime; - OCTET_STRING_t startingEntry; + TimeOfDay_t startingTime; + OCTET_STRING_t startingEntry; } choice; /* Context for parsing across buffer boundaries */ @@ -52,8 +54,8 @@ typedef struct ReadJournal_Request { struct ReadJournal_Request__rangeStopSpecification { ReadJournal_Request__rangeStopSpecification_PR present; union ReadJournal_Request__rangeStopSpecification_u { - TimeOfDay_t endingTime; - Integer32_t numberOfEntries; + TimeOfDay_t endingTime; + Integer32_t numberOfEntries; } choice; /* Context for parsing across buffer boundaries */ @@ -66,8 +68,8 @@ typedef struct ReadJournal_Request { asn_struct_ctx_t _asn_ctx; } *listOfVariables; struct ReadJournal_Request__entryToStartAfter { - TimeOfDay_t timeSpecification; - OCTET_STRING_t entrySpecification; + TimeOfDay_t timeSpecification; + OCTET_STRING_t entrySpecification; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -86,5 +88,8 @@ extern asn_TYPE_member_t asn_MBR_ReadJournal_Request_1[5]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _ReadJournal_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.c b/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.c index 81f9b544..08d6d88f 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.c @@ -1,10 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include #include +#include /* class implementation */ PY_IMPL_CHOICE_ATTR_FROMPY(ReadJournal_Request_rangeStartSpecification_ANON_3, ReadJournal_Request__rangeStartSpecification, startingTime, startingTime,PyAsnTimeOfDay_FromPython(value, &dst->choice.startingTime)); @@ -152,9 +153,11 @@ PY_IMPL_SEQ_ANON_ATTR_FROMPY(ReadJournal_Request, entryToStartAfter, src->entryT PY_IMPL_SEQ_ANON_ATTR_TOPY(ReadJournal_Request, entryToStartAfter, src->entryToStartAfter, ReadJournal_Request_entryToStartAfter_ANON_11); PY_IMPL_SEQ_INNER_OPT_SETATTR(ReadJournal_Request, entryToStartAfter, entryToStartAfter, ReadJournal_Request_entryToStartAfter_ANON_11, *asn_DEF_ReadJournal_Request.elements[4].type); PY_IMPL_SEQ_INNER_GETATTR(ReadJournal_Request, entryToStartAfter, self->ob_value->entryToStartAfter, ReadJournal_Request_entryToStartAfter_ANON_11); -PY_IMPL_SEQ_ATTR_FROMPY(ReadJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ReadJournal_Request, journalName, ObjectName); -PY_IMPL_SEQ_GETATTR(ReadJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReadJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReadJournal_Request, journalName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ReadJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ReadJournal_Request, journalName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ReadJournal_Request, journalName); PY_IMPL_SEQ_SETATTR(ReadJournal_Request, journalName); PY_IMPL_GENERIC_DEALLOC(ReadJournal_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(ReadJournal_Request); diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.h b/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.h index 96a75d9e..9f1b0807 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,17 @@ #include #include #include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Response.c b/src/icspacket/proto/mms/_mms/ReadJournal-Response.c index a25b6202..77249b7f 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Response.c +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfJournalEntry_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry __attribute__((weak, alias("asn_DEF_listOfJournalEntry_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry_2; +static asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry; +__attribute__((constructor)) static void asn_DEF_listOfJournalEntry_2_alias_init(void) { + asn_DEF_listOfJournalEntry = asn_DEF_listOfJournalEntry_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ReadJournal_Response__listOfJournalEntry_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfJournalEntry_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfJournalEntry_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfJournalEntry_2, + asn_MBR_ReadJournal_Response__listOfJournalEntry_2, 1, /* Single element */ &asn_SPC_listOfJournalEntry_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Response.h b/src/icspacket/proto/mms/_mms/ReadJournal-Response.h index 0d15b98b..6e49a205 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Response.h +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct ReadJournal_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfJournalEntry; - BOOLEAN_t moreFollows; /* DEFAULT FALSE */ + BOOLEAN_t moreFollows; /* DEFAULT FALSE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_ReadJournal_Response_1[2]; #endif /* Referred external types */ -#include +#include "JournalEntry.h" #endif /* _ReadJournal_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.c b/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.c index 238297d7..8348d970 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.h b/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.h index bfcf5fce..990ad6fd 100644 --- a/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReadJournal-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/RejectPDU.c b/src/icspacket/proto/mms/_mms/RejectPDU.c index 923f9b6d..b7943b30 100644 --- a/src/icspacket/proto/mms/_mms/RejectPDU.c +++ b/src/icspacket/proto/mms/_mms/RejectPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -254,7 +254,18 @@ memb_conclude_errorPDU_constraint_3(const asn_TYPE_descriptor_t *td, const void } } -static asn_TYPE_member_t asn_MBR_rejectReason_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_rejectReason __attribute__((weak, alias("asn_DEF_rejectReason_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_rejectReason_3; +static asn_TYPE_descriptor_t asn_DEF_rejectReason; +__attribute__((constructor)) static void asn_DEF_rejectReason_3_alias_init(void) { + asn_DEF_rejectReason = asn_DEF_rejectReason_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_RejectPDU__rejectReason_3[] = { { ATF_NOFLAGS, 0, offsetof(struct RejectPDU__rejectReason, choice.confirmed_requestPDU), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -520,7 +531,7 @@ asn_TYPE_descriptor_t asn_DEF_rejectReason_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_rejectReason_3, + asn_MBR_RejectPDU__rejectReason_3, 11, /* Elements count */ &asn_SPC_rejectReason_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/RejectPDU.h b/src/icspacket/proto/mms/_mms/RejectPDU.h index 18044919..5eecc1c4 100644 --- a/src/icspacket/proto/mms/_mms/RejectPDU.h +++ b/src/icspacket/proto/mms/_mms/RejectPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include #include #include @@ -102,21 +102,21 @@ typedef enum RejectPDU__rejectReason__conclude_errorPDU { /* RejectPDU */ typedef struct RejectPDU { - Unsigned32_t *originalInvokeID; /* OPTIONAL */ + Unsigned32_t *originalInvokeID; /* OPTIONAL */ struct RejectPDU__rejectReason { RejectPDU__rejectReason_PR present; union RejectPDU__rejectReason_u { - long confirmed_requestPDU; - long confirmed_responsePDU; - long confirmed_errorPDU; - long unconfirmedPDU; - long pdu_error; - long cancel_requestPDU; - long cancel_responsePDU; - long cancel_errorPDU; - long conclude_requestPDU; - long conclude_responsePDU; - long conclude_errorPDU; + long confirmed_requestPDU; + long confirmed_responsePDU; + long confirmed_errorPDU; + long unconfirmedPDU; + long pdu_error; + long cancel_requestPDU; + long cancel_responsePDU; + long cancel_errorPDU; + long conclude_requestPDU; + long conclude_responsePDU; + long conclude_errorPDU; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/RejectPDU_Py.c b/src/icspacket/proto/mms/_mms/RejectPDU_Py.c index d06842ad..a1d77a8e 100644 --- a/src/icspacket/proto/mms/_mms/RejectPDU_Py.c +++ b/src/icspacket/proto/mms/_mms/RejectPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RejectPDU_Py.h b/src/icspacket/proto/mms/_mms/RejectPDU_Py.h index 699030d6..865cca27 100644 --- a/src/icspacket/proto/mms/_mms/RejectPDU_Py.h +++ b/src/icspacket/proto/mms/_mms/RejectPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.c b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.c index 87abcd91..c510c132 100644 --- a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.c +++ b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_RelativeDistinguishedName_tags_1[] = { diff --git a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.h b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.h index 7514a02a..3f7aac7f 100644 --- a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.h +++ b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -38,7 +38,7 @@ extern asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[1]; #endif /* Referred external types */ -#include +#include "AttributeTypeAndValue.h" #endif /* _RelativeDistinguishedName_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.c b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.c index b63ce37d..086fa930 100644 --- a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.c +++ b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.h b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.h index b8d2cc7e..af51d9f9 100644 --- a/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.h +++ b/src/icspacket/proto/mms/_mms/RelativeDistinguishedName_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Release-request-reason.c b/src/icspacket/proto/mms/_mms/Release-request-reason.c index 1a6be8cb..3d8eaf52 100644 --- a/src/icspacket/proto/mms/_mms/Release-request-reason.c +++ b/src/icspacket/proto/mms/_mms/Release-request-reason.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Release-request-reason.h b/src/icspacket/proto/mms/_mms/Release-request-reason.h index 21fe07c2..9dc4c94b 100644 --- a/src/icspacket/proto/mms/_mms/Release-request-reason.h +++ b/src/icspacket/proto/mms/_mms/Release-request-reason.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -24,7 +24,7 @@ typedef enum Release_request_reason { } e_Release_request_reason; /* Release-request-reason */ -typedef long Release_request_reason_t; +typedef long Release_request_reason_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Release_request_reason; diff --git a/src/icspacket/proto/mms/_mms/Release-request-reason_Py.c b/src/icspacket/proto/mms/_mms/Release-request-reason_Py.c index e8ac19df..becfd6eb 100644 --- a/src/icspacket/proto/mms/_mms/Release-request-reason_Py.c +++ b/src/icspacket/proto/mms/_mms/Release-request-reason_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Release-request-reason_Py.h b/src/icspacket/proto/mms/_mms/Release-request-reason_Py.h index b36d7e98..c4219aae 100644 --- a/src/icspacket/proto/mms/_mms/Release-request-reason_Py.h +++ b/src/icspacket/proto/mms/_mms/Release-request-reason_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Release-response-reason.c b/src/icspacket/proto/mms/_mms/Release-response-reason.c index 44359a8c..8361401d 100644 --- a/src/icspacket/proto/mms/_mms/Release-response-reason.c +++ b/src/icspacket/proto/mms/_mms/Release-response-reason.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Release-response-reason.h b/src/icspacket/proto/mms/_mms/Release-response-reason.h index 4e8f4526..f8eac1d4 100644 --- a/src/icspacket/proto/mms/_mms/Release-response-reason.h +++ b/src/icspacket/proto/mms/_mms/Release-response-reason.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ @@ -24,7 +24,7 @@ typedef enum Release_response_reason { } e_Release_response_reason; /* Release-response-reason */ -typedef long Release_response_reason_t; +typedef long Release_response_reason_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Release_response_reason; diff --git a/src/icspacket/proto/mms/_mms/Release-response-reason_Py.c b/src/icspacket/proto/mms/_mms/Release-response-reason_Py.c index 679a5ada..40a73d5e 100644 --- a/src/icspacket/proto/mms/_mms/Release-response-reason_Py.c +++ b/src/icspacket/proto/mms/_mms/Release-response-reason_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/Release-response-reason_Py.h b/src/icspacket/proto/mms/_mms/Release-response-reason_Py.h index cdd36b46..7531b877 100644 --- a/src/icspacket/proto/mms/_mms/Release-response-reason_Py.h +++ b/src/icspacket/proto/mms/_mms/Release-response-reason_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ACSE-1" */ diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Request.c b/src/icspacket/proto/mms/_mms/RelinquishControl-Request.c index e5cee0a9..3436ade7 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Request.c +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_RelinquishControl_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RelinquishControl_Request, semaphoreName), + { ATF_POINTER, 0, offsetof(struct RelinquishControl_Request, semaphoreName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Request.h b/src/icspacket/proto/mms/_mms/RelinquishControl-Request.h index d0d374b0..496ecb8a 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Request.h +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* RelinquishControl-Request */ typedef struct RelinquishControl_Request { - ObjectName_t semaphoreName; - Identifier_t *namedToken; /* OPTIONAL */ + struct ObjectName *semaphoreName; + Identifier_t *namedToken; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_RelinquishControl_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _RelinquishControl_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.c b/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.c index d326d0fe..b0513c6a 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(RelinquishControl_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(RelinquishControl_Request, semaphoreName, ObjectName); -PY_IMPL_SEQ_GETATTR(RelinquishControl_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(RelinquishControl_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(RelinquishControl_Request, semaphoreName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(RelinquishControl_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(RelinquishControl_Request, semaphoreName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(RelinquishControl_Request, semaphoreName); PY_IMPL_SEQ_SETATTR(RelinquishControl_Request, semaphoreName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(RelinquishControl_Request, namedToken); PY_IMPL_SEQ_ATTR_GENERIC_NEW(RelinquishControl_Request, namedToken, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.h b/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.h index 7e383866..8e977755 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Response.c b/src/icspacket/proto/mms/_mms/RelinquishControl-Response.c index be0e7480..92f0e0ce 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Response.c +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Response.h b/src/icspacket/proto/mms/_mms/RelinquishControl-Response.h index 8b902098..b4fcbe95 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Response.h +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* RelinquishControl-Response */ -typedef NULL_t RelinquishControl_Response_t; +typedef NULL_t RelinquishControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_RelinquishControl_Response; diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.c b/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.c index 8ecea532..2d568195 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.h b/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.h index d7d6634c..76f65187 100644 --- a/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/RelinquishControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.c b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.c index 3dc71f55..7873edaa 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.c +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Error_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RemoveEventConditionListReference_Error, choice.eventCondition), + { ATF_POINTER, 0, offsetof(struct RemoveEventConditionListReference_Error, choice.eventCondition), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Error_1[] = { 0, 0, /* No default value */ "eventCondition" }, - { ATF_NOFLAGS, 0, offsetof(struct RemoveEventConditionListReference_Error, choice.eventConditionList), + { ATF_POINTER, 0, offsetof(struct RemoveEventConditionListReference_Error, choice.eventConditionList), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.h b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.h index 101f871e..c9f84e0d 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.h +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -24,12 +23,15 @@ typedef enum RemoveEventConditionListReference_Error_PR { RemoveEventConditionListReference_Error_PR_eventConditionList } RemoveEventConditionListReference_Error_PR; +/* Forward declarations */ +struct ObjectName; + /* RemoveEventConditionListReference-Error */ typedef struct RemoveEventConditionListReference_Error { RemoveEventConditionListReference_Error_PR present; union RemoveEventConditionListReference_Error_u { - ObjectName_t eventCondition; - ObjectName_t eventConditionList; + struct ObjectName *eventCondition; + struct ObjectName *eventConditionList; } choice; /* Context for parsing across buffer boundaries */ @@ -45,5 +47,8 @@ extern asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Error_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _RemoveEventConditionListReference_Error_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.c b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.c index e9fa7f57..3b2dbeaf 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.c @@ -1,17 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventCondition, eventCondition,PyAsnObjectName_FromPython(value, &dst->choice.eventCondition)); -PY_IMPL_CHOICE_ATTR_TOPY(RemoveEventConditionListReference_Error, eventCondition, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.eventCondition)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventCondition, eventCondition, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.eventCondition)); +PY_IMPL_CHOICE_ATTR_TOPY(RemoveEventConditionListReference_Error, eventCondition, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.eventCondition)); PY_IMPL_CHOICE_GETATTR(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventCondition, eventCondition); PY_IMPL_CHOICE_SETATTR(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventCondition, eventCondition); -PY_IMPL_CHOICE_ATTR_FROMPY(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventConditionList, eventConditionList,PyAsnObjectName_FromPython(value, &dst->choice.eventConditionList)); -PY_IMPL_CHOICE_ATTR_TOPY(RemoveEventConditionListReference_Error, eventConditionList, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.eventConditionList)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventConditionList, eventConditionList, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.eventConditionList)); +PY_IMPL_CHOICE_ATTR_TOPY(RemoveEventConditionListReference_Error, eventConditionList, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.eventConditionList)); PY_IMPL_CHOICE_GETATTR(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventConditionList, eventConditionList); PY_IMPL_CHOICE_SETATTR(RemoveEventConditionListReference_Error, RemoveEventConditionListReference_Error, eventConditionList, eventConditionList); PY_IMPL_GENERIC_DEALLOC(RemoveEventConditionListReference_Error); diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.h b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.h index 137debff..402a9c32 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.c b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.c index 60af9c0f..fed85450 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.c +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfEventConditionName_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName __attribute__((weak, alias("asn_DEF_listOfEventConditionName_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_3; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionName_3_alias_init(void) { + asn_DEF_listOfEventConditionName = asn_DEF_listOfEventConditionName_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName __attribute__((weak, alias("asn_DEF_listOfEventConditionListName_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_5; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionListName_5_alias_init(void) { + asn_DEF_listOfEventConditionListName = asn_DEF_listOfEventConditionListName_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Request__listOfEventConditionName_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionName_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionName_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionName_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionName_3, + asn_MBR_RemoveEventConditionListReference_Request__listOfEventConditionName_3, 1, /* Single element */ &asn_SPC_listOfEventConditionName_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_5[] = { +static asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Request__listOfEventConditionListName_5[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionListName_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionListName_tags_5[] = { @@ -117,13 +139,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionListName_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionListName_5, + asn_MBR_RemoveEventConditionListReference_Request__listOfEventConditionListName_5, 1, /* Single element */ &asn_SPC_listOfEventConditionListName_specs_5 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RemoveEventConditionListReference_Request, eventConditionListName), + { ATF_POINTER, 0, offsetof(struct RemoveEventConditionListReference_Request, eventConditionListName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.h b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.h index 95ff1798..026f1955 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.h +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -24,7 +23,7 @@ struct ObjectName; /* RemoveEventConditionListReference-Request */ typedef struct RemoveEventConditionListReference_Request { - ObjectName_t eventConditionListName; + struct ObjectName *eventConditionListName; struct RemoveEventConditionListReference_Request__listOfEventConditionName { A_SEQUENCE_OF(struct ObjectName) list; @@ -52,7 +51,7 @@ extern asn_TYPE_member_t asn_MBR_RemoveEventConditionListReference_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _RemoveEventConditionListReference_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.c b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.c index 75174c50..abd46891 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -72,9 +72,11 @@ PY_IMPL_SEQ_OF_LEN(RemoveEventConditionListReference_Request_listOfEventConditio PY_IMPL_SEQ_OF_GETITEM(RemoveEventConditionListReference_Request_listOfEventConditionListName_ANON_5); PY_IMPL_SEQ_OF_CLEAR(RemoveEventConditionListReference_Request_listOfEventConditionListName_ANON_5); PY_IMPL_SEQ_OF_EXTEND(RemoveEventConditionListReference_Request_listOfEventConditionListName_ANON_5); -PY_IMPL_SEQ_ATTR_FROMPY(RemoveEventConditionListReference_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(RemoveEventConditionListReference_Request, eventConditionListName, ObjectName); -PY_IMPL_SEQ_GETATTR(RemoveEventConditionListReference_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(RemoveEventConditionListReference_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(RemoveEventConditionListReference_Request, eventConditionListName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(RemoveEventConditionListReference_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(RemoveEventConditionListReference_Request, eventConditionListName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(RemoveEventConditionListReference_Request, eventConditionListName); PY_IMPL_SEQ_SETATTR(RemoveEventConditionListReference_Request, eventConditionListName); PY_IMPL_GENERIC_DEALLOC(RemoveEventConditionListReference_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(RemoveEventConditionListReference_Request); diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.h b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.h index ea3e0a62..d4f53b47 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.c b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.c index 3bc0e7ec..5664a815 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.c +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.h b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.h index b0e405da..7d4c6c53 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.h +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* RemoveEventConditionListReference-Response */ -typedef NULL_t RemoveEventConditionListReference_Response_t; +typedef NULL_t RemoveEventConditionListReference_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_RemoveEventConditionListReference_Response; diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.c b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.c index 85ab3c4b..7d9b223d 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.h b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.h index 5f0fea74..41991055 100644 --- a/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/RemoveEventConditionListReference-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.c b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.c index fddc3459..b7bb3fa0 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.c +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_domains_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_domains __attribute__((weak, alias("asn_DEF_domains_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_domains_3; +static asn_TYPE_descriptor_t asn_DEF_domains; +__attribute__((constructor)) static void asn_DEF_domains_3_alias_init(void) { + asn_DEF_domains = asn_DEF_domains_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_programInvocations __attribute__((weak, alias("asn_DEF_programInvocations_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_programInvocations_5; +static asn_TYPE_descriptor_t asn_DEF_programInvocations; +__attribute__((constructor)) static void asn_DEF_programInvocations_5_alias_init(void) { + asn_DEF_programInvocations = asn_DEF_programInvocations_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_RemoveFromUnitControl_Request__domains_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_domains_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_domains_tags_3[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_domains_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_domains_3, + asn_MBR_RemoveFromUnitControl_Request__domains_3, 1, /* Single element */ &asn_SPC_domains_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_programInvocations_5[] = { +static asn_TYPE_member_t asn_MBR_RemoveFromUnitControl_Request__programInvocations_5[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -82,7 +104,7 @@ static asn_TYPE_member_t asn_MBR_programInvocations_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_programInvocations_tags_5[] = { @@ -117,7 +139,7 @@ asn_TYPE_descriptor_t asn_DEF_programInvocations_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_programInvocations_5, + asn_MBR_RemoveFromUnitControl_Request__programInvocations_5, 1, /* Single element */ &asn_SPC_programInvocations_specs_5 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.h b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.h index 0921afe9..565e1c9c 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.h +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include @@ -21,7 +21,7 @@ extern "C" { /* RemoveFromUnitControl-Request */ typedef struct RemoveFromUnitControl_Request { - Identifier_t unitControl; + Identifier_t unitControl; struct RemoveFromUnitControl_Request__domains { A_SEQUENCE_OF(Identifier_t) list; diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.c b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.c index b61d075d..e16bc9b3 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.h b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.h index 4d2127e2..93b83066 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,12 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.c b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.c index e2016e04..40bd97ec 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.c +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.h b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.h index 08edf908..c99900de 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.h +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* RemoveFromUnitControl-Response */ -typedef NULL_t RemoveFromUnitControl_Response_t; +typedef NULL_t RemoveFromUnitControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_RemoveFromUnitControl_Response; diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.c b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.c index 20985077..7ed10226 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.h b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.h index 6850b5ce..11e7b9fc 100644 --- a/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/RemoveFromUnitControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Rename-Request.c b/src/icspacket/proto/mms/_mms/Rename-Request.c index c982d0dd..edcbfabc 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Request.c +++ b/src/icspacket/proto/mms/_mms/Rename-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_Rename_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Rename_Request, objectClass), + { ATF_POINTER, 0, offsetof(struct Rename_Request, objectClass), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectClass, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Rename_Request_1[] = { 0, 0, /* No default value */ "objectClass" }, - { ATF_NOFLAGS, 0, offsetof(struct Rename_Request, currentName), + { ATF_POINTER, 0, offsetof(struct Rename_Request, currentName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/Rename-Request.h b/src/icspacket/proto/mms/_mms/Rename-Request.h index ff5137c7..ed523063 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Request.h +++ b/src/icspacket/proto/mms/_mms/Rename-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,20 +10,22 @@ #include /* Including external dependencies */ -#include -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectClass; +struct ObjectName; + /* Rename-Request */ typedef struct Rename_Request { - ObjectClass_t objectClass; - ObjectName_t currentName; - Identifier_t newIdentifier; + struct ObjectClass *objectClass; + struct ObjectName *currentName; + Identifier_t newIdentifier; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,5 +40,9 @@ extern asn_TYPE_member_t asn_MBR_Rename_Request_1[3]; } #endif +/* Referred external types */ +#include "ObjectClass.h" +#include "ObjectName.h" + #endif /* _Rename_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Rename-Request_Py.c b/src/icspacket/proto/mms/_mms/Rename-Request_Py.c index ed26049c..ff116326 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Rename-Request_Py.c @@ -1,18 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(Rename_Request, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Rename_Request, objectClass, ObjectClass); -PY_IMPL_SEQ_GETATTR(Rename_Request, objectClass); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Rename_Request, objectClass); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Rename_Request, objectClass, ObjectClass_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Rename_Request, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Rename_Request, objectClass, ObjectClass); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Rename_Request, objectClass); PY_IMPL_SEQ_SETATTR(Rename_Request, objectClass); -PY_IMPL_SEQ_ATTR_FROMPY(Rename_Request, currentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Rename_Request, currentName, ObjectName); -PY_IMPL_SEQ_GETATTR(Rename_Request, currentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Rename_Request, currentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Rename_Request, currentName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Rename_Request, currentName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Rename_Request, currentName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Rename_Request, currentName); PY_IMPL_SEQ_SETATTR(Rename_Request, currentName); PY_IMPL_SEQ_ATTR_FROMPY(Rename_Request, newIdentifier, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(Rename_Request, newIdentifier, Identifier); diff --git a/src/icspacket/proto/mms/_mms/Rename-Request_Py.h b/src/icspacket/proto/mms/_mms/Rename-Request_Py.h index b0317349..3b483b00 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Rename-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Rename-Response.c b/src/icspacket/proto/mms/_mms/Rename-Response.c index b5708da5..dfa0ebe1 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Response.c +++ b/src/icspacket/proto/mms/_mms/Rename-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Rename-Response.h b/src/icspacket/proto/mms/_mms/Rename-Response.h index badacdb8..b52bc2e2 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Response.h +++ b/src/icspacket/proto/mms/_mms/Rename-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Rename-Response */ -typedef NULL_t Rename_Response_t; +typedef NULL_t Rename_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Rename_Response; diff --git a/src/icspacket/proto/mms/_mms/Rename-Response_Py.c b/src/icspacket/proto/mms/_mms/Rename-Response_Py.c index efa1f7b1..8c468372 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Rename-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Rename-Response_Py.h b/src/icspacket/proto/mms/_mms/Rename-Response_Py.h index 15f63cb8..e68a5953 100644 --- a/src/icspacket/proto/mms/_mms/Rename-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Rename-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.c b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.c index b820b45f..a56d3a60 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_ReportAccessControlledObjects_Request_1[] = { 0, 0, /* No default value */ "accessControlList" }, - { ATF_NOFLAGS, 0, offsetof(struct ReportAccessControlledObjects_Request, objectClass), + { ATF_POINTER, 0, offsetof(struct ReportAccessControlledObjects_Request, objectClass), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectClass, diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.h b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.h index f681be6f..b59d5c52 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,13 +18,14 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectClass; struct ObjectName; /* ReportAccessControlledObjects-Request */ typedef struct ReportAccessControlledObjects_Request { - Identifier_t accessControlList; - ObjectClass_t objectClass; - struct ObjectName *continueAfter; /* OPTIONAL */ + Identifier_t accessControlList; + struct ObjectClass *objectClass; + struct ObjectName *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,8 @@ extern asn_TYPE_member_t asn_MBR_ReportAccessControlledObjects_Request_1[3]; #endif /* Referred external types */ -#include +#include "ObjectClass.h" +#include "ObjectName.h" #endif /* _ReportAccessControlledObjects_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.c index 69c5edd1..59feb95c 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(ReportAccessControlledObjects_Request, accessControlList PY_IMPL_SEQ_REF_ATTR_TOPY(ReportAccessControlledObjects_Request, accessControlList, Identifier); PY_IMPL_SEQ_GETATTR(ReportAccessControlledObjects_Request, accessControlList); PY_IMPL_SEQ_SETATTR(ReportAccessControlledObjects_Request, accessControlList); -PY_IMPL_SEQ_ATTR_FROMPY(ReportAccessControlledObjects_Request, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ReportAccessControlledObjects_Request, objectClass, ObjectClass); -PY_IMPL_SEQ_GETATTR(ReportAccessControlledObjects_Request, objectClass); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportAccessControlledObjects_Request, objectClass); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportAccessControlledObjects_Request, objectClass, ObjectClass_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ReportAccessControlledObjects_Request, objectClass, PyAsnObjectClass_FromPython(value, (ObjectClass_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ReportAccessControlledObjects_Request, objectClass, ObjectClass); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ReportAccessControlledObjects_Request, objectClass); PY_IMPL_SEQ_SETATTR(ReportAccessControlledObjects_Request, objectClass); PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportAccessControlledObjects_Request, continueAfter); PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportAccessControlledObjects_Request, continueAfter, ObjectName_t); diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.h index abb8d5b4..ffeb91de 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.c b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.c index 6f848cf8..0be7f3bd 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfNames_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfNames __attribute__((weak, alias("asn_DEF_listOfNames_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfNames_2; +static asn_TYPE_descriptor_t asn_DEF_listOfNames; +__attribute__((constructor)) static void asn_DEF_listOfNames_2_alias_init(void) { + asn_DEF_listOfNames = asn_DEF_listOfNames_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ReportAccessControlledObjects_Response__listOfNames_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfNames_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfNames_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfNames_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfNames_2, + asn_MBR_ReportAccessControlledObjects_Response__listOfNames_2, 1, /* Single element */ &asn_SPC_listOfNames_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.h b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.h index 8fb02685..6b3bf9ae 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct ReportAccessControlledObjects_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfNames; - BOOLEAN_t moreFollows; /* DEFAULT FALSE */ + BOOLEAN_t moreFollows; /* DEFAULT FALSE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_ReportAccessControlledObjects_Response_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" #endif /* _ReportAccessControlledObjects_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.c index 8de53f1a..73d0fdc9 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.h index 2c0af3df..09a77a22 100644 --- a/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportAccessControlledObjects-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.c index be40d60b..77ac126a 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.h index 41a7553b..290aa300 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* ReportEventActionStatus-Request */ -typedef ObjectName_t ReportEventActionStatus_Request_t; +typedef ObjectName_t ReportEventActionStatus_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ReportEventActionStatus_Request; diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.c index 3927f653..3e41fbb1 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.h index 31b4e8ef..0da1e9e4 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.c index a84916a0..f17559b9 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.h index 32db08fe..918e5b10 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #ifdef __cplusplus extern "C" { #endif /* ReportEventActionStatus-Response */ -typedef Unsigned32_t ReportEventActionStatus_Response_t; +typedef Unsigned32_t ReportEventActionStatus_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ReportEventActionStatus_Response; diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.c index fe731e9a..4ea7a1ff 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.h index a446a047..284f9304 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventActionStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.c index af79216e..181f5208 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_ReportEventConditionListStatus_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportEventConditionListStatus_Request, eventConditionListName), + { ATF_POINTER, 0, offsetof(struct ReportEventConditionListStatus_Request, eventConditionListName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.h index 3e5a81dc..0590fdd9 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* ReportEventConditionListStatus-Request */ typedef struct ReportEventConditionListStatus_Request { - ObjectName_t eventConditionListName; - Identifier_t *continueAfter; /* OPTIONAL */ + struct ObjectName *eventConditionListName; + Identifier_t *continueAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_ReportEventConditionListStatus_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _ReportEventConditionListStatus_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.c index 7f81fa38..d05c78f6 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(ReportEventConditionListStatus_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ReportEventConditionListStatus_Request, eventConditionListName, ObjectName); -PY_IMPL_SEQ_GETATTR(ReportEventConditionListStatus_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportEventConditionListStatus_Request, eventConditionListName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportEventConditionListStatus_Request, eventConditionListName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ReportEventConditionListStatus_Request, eventConditionListName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ReportEventConditionListStatus_Request, eventConditionListName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ReportEventConditionListStatus_Request, eventConditionListName); PY_IMPL_SEQ_SETATTR(ReportEventConditionListStatus_Request, eventConditionListName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportEventConditionListStatus_Request, continueAfter); PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportEventConditionListStatus_Request, continueAfter, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.h index 6256de5e..70ea3135 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.c index 3921e05b..11d7858f 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfEventConditionStatus_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfEventConditionStatus __attribute__((weak, alias("asn_DEF_listOfEventConditionStatus_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionStatus_2; +static asn_TYPE_descriptor_t asn_DEF_listOfEventConditionStatus; +__attribute__((constructor)) static void asn_DEF_listOfEventConditionStatus_2_alias_init(void) { + asn_DEF_listOfEventConditionStatus = asn_DEF_listOfEventConditionStatus_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ReportEventConditionListStatus_Response__listOfEventConditionStatus_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfEventConditionStatus_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfEventConditionStatus_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfEventConditionStatus_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfEventConditionStatus_2, + asn_MBR_ReportEventConditionListStatus_Response__listOfEventConditionStatus_2, 1, /* Single element */ &asn_SPC_listOfEventConditionStatus_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.h index 55d6e617..02322444 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct ReportEventConditionListStatus_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfEventConditionStatus; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_ReportEventConditionListStatus_Response_1[2]; #endif /* Referred external types */ -#include +#include "EventConditionStatus.h" #endif /* _ReportEventConditionListStatus_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.c index b0d455f2..4f5e1416 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.h index 22bb173a..6a1ec6d9 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionListStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.c index c4f0d4b7..34cac9b7 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.h index 466f8e2d..2d52a385 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* ReportEventConditionStatus-Request */ -typedef ObjectName_t ReportEventConditionStatus_Request_t; +typedef ObjectName_t ReportEventConditionStatus_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ReportEventConditionStatus_Request; diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.c index 1d55a541..abb3a3a6 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.h index f37a7f19..1eacda0e 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.c index c18c7133..6b740d8a 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.h index 02cbec46..f070a4d0 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "EC-State.h" +#include "Unsigned32.h" #include #include @@ -24,11 +24,11 @@ struct EventTime; /* ReportEventConditionStatus-Response */ typedef struct ReportEventConditionStatus_Response { - EC_State_t currentState; - Unsigned32_t numberOfEventEnrollments; - BOOLEAN_t *enabled; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ - struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ + EC_State_t currentState; + Unsigned32_t numberOfEventEnrollments; + BOOLEAN_t *enabled; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToActive; /* OPTIONAL */ + struct EventTime *timeOfLastTransitionToIdle; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -44,7 +44,7 @@ extern asn_TYPE_member_t asn_MBR_ReportEventConditionStatus_Response_1[5]; #endif /* Referred external types */ -#include +#include "EventTime.h" #endif /* _ReportEventConditionStatus_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.c index d1af6819..071e1f10 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.h index eb864583..45a9a373 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventConditionStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -15,6 +15,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.c index 0057ba92..49c702ea 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.h index fb0fdde3..109d18c0 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* ReportEventEnrollmentStatus-Request */ -typedef ObjectName_t ReportEventEnrollmentStatus_Request_t; +typedef ObjectName_t ReportEventEnrollmentStatus_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ReportEventEnrollmentStatus_Request; diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.c index a57919b4..68b41a95 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.h index f2d90c4a..5a468552 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.c index d1fb385e..64702e63 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.c @@ -1,9 +1,15 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_eventConditionTransitions_constr_2 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static int asn_DFL_3_cmp_0(const void *sptr) { const BOOLEAN_t *st = sptr; diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.h index 05a89d8a..ab56701c 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,11 +10,11 @@ #include /* Including external dependencies */ -#include +#include "Transitions.h" #include -#include -#include -#include +#include "EE-Duration.h" +#include "AlarmAckRule.h" +#include "EE-State.h" #include #ifdef __cplusplus @@ -23,11 +23,11 @@ extern "C" { /* ReportEventEnrollmentStatus-Response */ typedef struct ReportEventEnrollmentStatus_Response { - Transitions_t eventConditionTransitions; - BOOLEAN_t notificationLost; /* DEFAULT FALSE */ - EE_Duration_t duration; - AlarmAckRule_t *alarmAcknowledgmentRule; /* OPTIONAL */ - EE_State_t currentState; + Transitions_t eventConditionTransitions; + BOOLEAN_t notificationLost; /* DEFAULT FALSE */ + EE_Duration_t duration; + AlarmAckRule_t *alarmAcknowledgmentRule; /* OPTIONAL */ + EE_State_t currentState; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.c index 88cd1a06..66fb8949 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.h index 0bcae26b..0aad3189 100644 --- a/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportEventEnrollmentStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.c index 59cbb635..080e5747 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.h index f7c2eb23..c886fee1 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* ReportJournalStatus-Request */ -typedef ObjectName_t ReportJournalStatus_Request_t; +typedef ObjectName_t ReportJournalStatus_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ReportJournalStatus_Request; diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.c index 60298b19..cf7f9f07 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.h index c3279786..67b0618d 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.c index 269f188c..9d2e3c20 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.h index 10fbe4d9..79b0c361 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,9 @@ #include /* Including external dependencies */ -#include +#include "Unsigned32.h" #include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -21,9 +21,9 @@ extern "C" { /* ReportJournalStatus-Response */ typedef struct ReportJournalStatus_Response { - Unsigned32_t currentEntries; - BOOLEAN_t mmsDeletable; - Identifier_t *accessControlList; /* OPTIONAL */ + Unsigned32_t currentEntries; + BOOLEAN_t mmsDeletable; + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.c index 74f8936e..588bc28a 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.h index 4a8c61da..cc494534 100644 --- a/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportJournalStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.c index 94860d40..bc332869 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_ReportPoolSemaphoreStatus_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Request, semaphoreName), + { ATF_POINTER, 0, offsetof(struct ReportPoolSemaphoreStatus_Request, semaphoreName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.h index 6f6929c5..d763daca 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* ReportPoolSemaphoreStatus-Request */ typedef struct ReportPoolSemaphoreStatus_Request { - ObjectName_t semaphoreName; - Identifier_t *nameToStartAfter; /* OPTIONAL */ + struct ObjectName *semaphoreName; + Identifier_t *nameToStartAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_ReportPoolSemaphoreStatus_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _ReportPoolSemaphoreStatus_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.c index 817d6d79..9c46523d 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(ReportPoolSemaphoreStatus_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ReportPoolSemaphoreStatus_Request, semaphoreName, ObjectName); -PY_IMPL_SEQ_GETATTR(ReportPoolSemaphoreStatus_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportPoolSemaphoreStatus_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportPoolSemaphoreStatus_Request, semaphoreName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ReportPoolSemaphoreStatus_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ReportPoolSemaphoreStatus_Request, semaphoreName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ReportPoolSemaphoreStatus_Request, semaphoreName); PY_IMPL_SEQ_SETATTR(ReportPoolSemaphoreStatus_Request, semaphoreName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportPoolSemaphoreStatus_Request, nameToStartAfter); PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportPoolSemaphoreStatus_Request, nameToStartAfter, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.h index e4bc79be..cbdc8e15 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.c index 5728469c..10dfa2fb 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.c @@ -1,11 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_Member_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, choice.freeNamedToken), +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfNamedTokens __attribute__((weak, alias("asn_DEF_listOfNamedTokens_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfNamedTokens_2; +static asn_TYPE_descriptor_t asn_DEF_listOfNamedTokens; +__attribute__((constructor)) static void asn_DEF_listOfNamedTokens_2_alias_init(void) { + asn_DEF_listOfNamedTokens = asn_DEF_listOfNamedTokens_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, choice.freeNamedToken), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identifier, @@ -25,7 +36,7 @@ static asn_TYPE_member_t asn_MBR_Member_3[] = { 0, 0, /* No default value */ "freeNamedToken" }, - { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, choice.ownedNamedToken), + { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, choice.ownedNamedToken), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identifier, @@ -45,7 +56,7 @@ static asn_TYPE_member_t asn_MBR_Member_3[] = { 0, 0, /* No default value */ "ownedNamedToken" }, - { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, choice.hungNamedToken), + { ATF_NOFLAGS, 0, offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, choice.hungNamedToken), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identifier, @@ -66,23 +77,23 @@ static asn_TYPE_member_t asn_MBR_Member_3[] = { "hungNamedToken" }, }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_3[] = { +static const asn_TYPE_tag2member_t asn_MAP_listOfNamedTokens_Member_tag2el_3[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freeNamedToken */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ownedNamedToken */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* hungNamedToken */ }; -static asn_CHOICE_specifics_t asn_SPC_Member_specs_3 = { - sizeof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member), - offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, _asn_ctx), - offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, present), - sizeof(((struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member *)0)->present), - asn_MAP_Member_tag2el_3, +static asn_CHOICE_specifics_t asn_SPC_listOfNamedTokens_Member_specs_3 = { + sizeof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member), + offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, _asn_ctx), + offsetof(struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, present), + sizeof(((struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member *)0)->present), + asn_MAP_listOfNamedTokens_Member_tag2el_3, 3, /* Count of tags in the map */ 0, 0, -1 /* Extensions start */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_3 = { +asn_TYPE_descriptor_t asn_DEF_listOfNamedTokens_Member_3 = { "CHOICE", "CHOICE", &asn_OP_CHOICE, @@ -102,16 +113,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_Member_3, + asn_MBR_ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_3, 3, /* Elements count */ - &asn_SPC_Member_specs_3 /* Additional specs */ + &asn_SPC_listOfNamedTokens_Member_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfNamedTokens_2[] = { +static asn_TYPE_member_t asn_MBR_ReportPoolSemaphoreStatus_Response__listOfNamedTokens_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_Member_3, + &asn_DEF_listOfNamedTokens_Member_3, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -161,7 +172,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfNamedTokens_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfNamedTokens_2, + asn_MBR_ReportPoolSemaphoreStatus_Response__listOfNamedTokens_2, 1, /* Single element */ &asn_SPC_listOfNamedTokens_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.h index 3d42c610..2f5c1f82 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,7 +12,7 @@ /* Including external dependencies */ #include #include -#include +#include "Identifier.h" #include #include #include @@ -22,35 +22,35 @@ extern "C" { #endif /* Dependencies */ -typedef enum ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR { - ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_NOTHING, /* No components present */ - ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_freeNamedToken, - ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_ownedNamedToken, - ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_hungNamedToken -} ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR; +typedef enum ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR { + ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_NOTHING, /* No components present */ + ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_freeNamedToken, + ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_ownedNamedToken, + ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_hungNamedToken +} ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR; /* Forward definitions */ -typedef struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member { - ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR present; - union ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_u { - Identifier_t freeNamedToken; - Identifier_t ownedNamedToken; - Identifier_t hungNamedToken; +typedef struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member { + ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR present; + union ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_u { + Identifier_t freeNamedToken; + Identifier_t ownedNamedToken; + Identifier_t hungNamedToken; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member; +} ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member; /* ReportPoolSemaphoreStatus-Response */ typedef struct ReportPoolSemaphoreStatus_Response { struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens { - A_SEQUENCE_OF(ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member) list; + A_SEQUENCE_OF(ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfNamedTokens; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.c index 697428d3..72b04b35 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.c @@ -1,55 +1,55 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, freeNamedToken, freeNamedToken,PyAsnIdentifier_FromPython(value, &dst->choice.freeNamedToken)); -PY_IMPL_CHOICE_ATTR_TOPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, freeNamedToken, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.freeNamedToken)); -PY_IMPL_CHOICE_GETATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, freeNamedToken, freeNamedToken); -PY_IMPL_CHOICE_GENERIC_SETATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, freeNamedToken, freeNamedToken, *asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_CHOICE_ATTR_FROMPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, ownedNamedToken, ownedNamedToken,PyAsnIdentifier_FromPython(value, &dst->choice.ownedNamedToken)); -PY_IMPL_CHOICE_ATTR_TOPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ownedNamedToken, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.ownedNamedToken)); -PY_IMPL_CHOICE_GETATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, ownedNamedToken, ownedNamedToken); -PY_IMPL_CHOICE_GENERIC_SETATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, ownedNamedToken, ownedNamedToken, *asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_CHOICE_ATTR_FROMPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, hungNamedToken, hungNamedToken,PyAsnIdentifier_FromPython(value, &dst->choice.hungNamedToken)); -PY_IMPL_CHOICE_ATTR_TOPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, hungNamedToken, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.hungNamedToken)); -PY_IMPL_CHOICE_GETATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, hungNamedToken, hungNamedToken); -PY_IMPL_CHOICE_GENERIC_SETATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, hungNamedToken, hungNamedToken, *asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_CHECK_CONSTRAINTS(ReportPoolSemaphoreStatus_Response_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_ENCODE(ReportPoolSemaphoreStatus_Response_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_DECODE(ReportPoolSemaphoreStatus_Response_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_DEALLOC(ReportPoolSemaphoreStatus_Response_Member_ANON_3, *(asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type)); -PY_IMPL_SEQ_TOPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); -PY_IMPL_GENERIC_REPR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member); -PY_IMPL_DECODE_BER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ber, ATS_BER); -PY_IMPL_DECODE_DER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_Member_ANON_3, der, ATS_DER); -PY_IMPL_DECODE_CER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_Member_ANON_3, cer, ATS_BER); -PY_IMPL_DECODE_XER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_ENCODE_XER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_Member_ANON_3, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_ENCODE_JER(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PyObject *PyAsnEnumReportPoolSemaphoreStatus_Response_Member_ANON_3_PRESENT_Type = NULL; -PY_IMPL_CHOICE_PRESENT_ATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_GENERIC_NEW(ReportPoolSemaphoreStatus_Response_Member_ANON_3, NULL); -PY_IMPL_GENERIC_IS_VALID(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PY_IMPL_CHOICE_FROMPY(ReportPoolSemaphoreStatus_Response_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type, - PY_IMPL_CHOICE_INIT_ATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, freeNamedToken, freeNamedToken, freeNamedToken); - PY_IMPL_CHOICE_INIT_ATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, ownedNamedToken, ownedNamedToken, ownedNamedToken); - PY_IMPL_CHOICE_INIT_ATTR(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member, hungNamedToken, hungNamedToken, hungNamedToken); +PY_IMPL_CHOICE_ATTR_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, freeNamedToken, freeNamedToken,PyAsnIdentifier_FromPython(value, &dst->choice.freeNamedToken)); +PY_IMPL_CHOICE_ATTR_TOPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, freeNamedToken, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.freeNamedToken)); +PY_IMPL_CHOICE_GETATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, freeNamedToken, freeNamedToken); +PY_IMPL_CHOICE_GENERIC_SETATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, freeNamedToken, freeNamedToken, *asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_CHOICE_ATTR_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, ownedNamedToken, ownedNamedToken,PyAsnIdentifier_FromPython(value, &dst->choice.ownedNamedToken)); +PY_IMPL_CHOICE_ATTR_TOPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ownedNamedToken, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.ownedNamedToken)); +PY_IMPL_CHOICE_GETATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, ownedNamedToken, ownedNamedToken); +PY_IMPL_CHOICE_GENERIC_SETATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, ownedNamedToken, ownedNamedToken, *asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_CHOICE_ATTR_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, hungNamedToken, hungNamedToken,PyAsnIdentifier_FromPython(value, &dst->choice.hungNamedToken)); +PY_IMPL_CHOICE_ATTR_TOPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, hungNamedToken, PyCompatAsnType_FromParent(&PyAsnIdentifier_Type, parent, (void *)&src->choice.hungNamedToken)); +PY_IMPL_CHOICE_GETATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, hungNamedToken, hungNamedToken); +PY_IMPL_CHOICE_GENERIC_SETATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, hungNamedToken, hungNamedToken, *asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_CHECK_CONSTRAINTS(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_ENCODE(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_DECODE(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_DEALLOC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, *(asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type)); +PY_IMPL_SEQ_TOPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type); +PY_IMPL_GENERIC_REPR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member); +PY_IMPL_DECODE_BER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ber, ATS_BER); +PY_IMPL_DECODE_DER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, der, ATS_DER); +PY_IMPL_DECODE_CER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, cer, ATS_BER); +PY_IMPL_DECODE_XER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_ENCODE_XER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_ENCODE_JER(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PyObject *PyAsnEnumReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_PRESENT_Type = NULL; +PY_IMPL_CHOICE_PRESENT_ATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_GENERIC_NEW(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, NULL); +PY_IMPL_GENERIC_IS_VALID(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PY_IMPL_CHOICE_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type->elements[0].type, + PY_IMPL_CHOICE_INIT_ATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, freeNamedToken, freeNamedToken, freeNamedToken); + PY_IMPL_CHOICE_INIT_ATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, ownedNamedToken, ownedNamedToken, ownedNamedToken); + PY_IMPL_CHOICE_INIT_ATTR(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member, hungNamedToken, hungNamedToken, hungNamedToken); ); -PY_IMPL_CHOICE_INIT_GENERIC(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member); -PY_IMPL_SEQ_OF_ITEM_TOPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_Member_ANON_3_t, PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_Member_ANON_3_t, PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_Member_ANON_3_t); -PY_IMPL_SEQ_OF_GENERIC_SETITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_Member_ANON_3_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type)); -PY_IMPL_SEQ_OF_ADD(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_Member_ANON_3_t); +PY_IMPL_CHOICE_INIT_GENERIC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member); +PY_IMPL_SEQ_OF_ITEM_TOPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t, PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t, PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t); +PY_IMPL_SEQ_OF_GENERIC_SETITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_ReportPoolSemaphoreStatus_Response.elements[0].type)); +PY_IMPL_SEQ_OF_ADD(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t); PY_IMPL_SEQ_OF_NEW(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2); PY_IMPL_SEQ_OF_DEALLOC(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, asn_set_empty); PY_IMPL_SEQ_OF_INIT(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2); @@ -110,11 +110,11 @@ PY_IMPL_SEQ_FROMPY(ReportPoolSemaphoreStatus_Response, &asn_DEF_ReportPoolSemaph PY_IMPL_SEQ_INIT(ReportPoolSemaphoreStatus_Response); /* class attributes definition */ -static PyGetSetDef PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_getset[] = { - {"present", (getter)PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3__get_present, NULL, NULL, NULL}, - PY_IMPL_GETSET_ITEM_INTERNAL(ReportPoolSemaphoreStatus_Response_Member_ANON_3, freeNamedToken, freeNamedToken), - PY_IMPL_GETSET_ITEM_INTERNAL(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ownedNamedToken, ownedNamedToken), - PY_IMPL_GETSET_ITEM_INTERNAL(ReportPoolSemaphoreStatus_Response_Member_ANON_3, hungNamedToken, hungNamedToken), +static PyGetSetDef PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_getset[] = { + {"present", (getter)PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3__get_present, NULL, NULL, NULL}, + PY_IMPL_GETSET_ITEM_INTERNAL(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, freeNamedToken, freeNamedToken), + PY_IMPL_GETSET_ITEM_INTERNAL(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ownedNamedToken, ownedNamedToken), + PY_IMPL_GETSET_ITEM_INTERNAL(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, hungNamedToken, hungNamedToken), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_getset[] = { @@ -132,20 +132,20 @@ static PyGetSetDef PyAsnReportPoolSemaphoreStatus_Response_getset[] = { }; /* class methods definition */ -static PyMethodDef PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_methods[] = { - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_Member_ANON_3, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_methods[] = { + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_methods[] = { @@ -185,18 +185,18 @@ static PyMethodDef PyAsnReportPoolSemaphoreStatus_Response_methods[] = { }; /* type definition */ -PyTypeObject PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_Type = { +PyTypeObject PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.ReportPoolSemaphoreStatus_Response.listOfNamedTokens_TYPE.Member_TYPE", - .tp_basicsize = sizeof(PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3Object), + .tp_basicsize = sizeof(PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3__new, - .tp_repr = (reprfunc)PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3__repr, - .tp_dealloc = (destructor)PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3__dealloc, - .tp_init = (initproc)PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3__init, - .tp_getset = PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_getset, - .tp_methods = PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_methods, - .tp_doc = "ASN.1 anonymous type ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_TYPE part of listOfNamedTokens", + .tp_new = (newfunc)PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3__new, + .tp_repr = (reprfunc)PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3__repr, + .tp_dealloc = (destructor)PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3__dealloc, + .tp_init = (initproc)PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3__init, + .tp_getset = PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_getset, + .tp_methods = PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_methods, + .tp_doc = "ASN.1 anonymous type ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_TYPE part of listOfNamedTokens", }; PyTypeObject PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -228,26 +228,26 @@ PyTypeObject PyAsnReportPoolSemaphoreStatus_Response_Type = { /* module initializer */ int PyAsnReportPoolSemaphoreStatus_Response_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_Type) < 0) return -1; + if (PyType_Ready(&PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_Type) < 0) return -1; if (PyType_Ready(&PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnReportPoolSemaphoreStatus_Response_Type) < 0) return -1; return 0; } void PyAsnReportPoolSemaphoreStatus_Response_ModClear(PyObject *mod) { - Py_CLEAR(PyAsnEnumReportPoolSemaphoreStatus_Response_Member_ANON_3_PRESENT_Type); + Py_CLEAR(PyAsnEnumReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_PRESENT_Type); } int PyAsnReportPoolSemaphoreStatus_Response_ModInit(PyObject *mod) { - PY_IMPL_NEW_ENUM(ReportPoolSemaphoreStatus_Response.listOfNamedTokens_TYPE.Member_TYPE.PRESENT, PyAsnEnumReportPoolSemaphoreStatus_Response_Member_ANON_3_PRESENT_Type, -1, - PY_IMPL_ENUM_VALUE(PR_NOTHING, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_NOTHING, 0); - PY_IMPL_ENUM_VALUE(PR_freeNamedToken, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_freeNamedToken, 1); - PY_IMPL_ENUM_VALUE(PR_ownedNamedToken, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_ownedNamedToken, 2); - PY_IMPL_ENUM_VALUE(PR_hungNamedToken, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member_PR_hungNamedToken, 3); + PY_IMPL_NEW_ENUM(ReportPoolSemaphoreStatus_Response.listOfNamedTokens_TYPE.Member_TYPE.PRESENT, PyAsnEnumReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_PRESENT_Type, -1, + PY_IMPL_ENUM_VALUE(PR_NOTHING, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_NOTHING, 0); + PY_IMPL_ENUM_VALUE(PR_freeNamedToken, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_freeNamedToken, 1); + PY_IMPL_ENUM_VALUE(PR_ownedNamedToken, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_ownedNamedToken, 2); + PY_IMPL_ENUM_VALUE(PR_hungNamedToken, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member_PR_hungNamedToken, 3); ); - PY_IMPL_ASSIGN_ENUM_DIRECT(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response_Member_ANON_3_PRESENT, PRESENT); - PY_IMPL_MOD_ASSIGN_OBJECT(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, Member_TYPE, &PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_Type); - PY_IMPL_MOD_ADD_OBJECT(mod, ReportPoolSemaphoreStatus_Response_Member_ANON_3); + PY_IMPL_ASSIGN_ENUM_DIRECT(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_PRESENT, PRESENT); + PY_IMPL_MOD_ASSIGN_OBJECT(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2, Member_TYPE, &PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_Type); + PY_IMPL_MOD_ADD_OBJECT(mod, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); PY_IMPL_MOD_ASSIGN_OBJECT(ReportPoolSemaphoreStatus_Response, listOfNamedTokens_TYPE, &PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_Type); PY_IMPL_MOD_ADD_OBJECT(mod, ReportPoolSemaphoreStatus_Response); return 0; diff --git a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.h index 0a80e066..4683df7c 100644 --- a/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportPoolSemaphoreStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,15 +13,21 @@ #include #include #include +#include +#include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { #endif /* ReportPoolSemaphoreStatus-Response */ -PyCompat_DEF_ANON_STRUCT(ReportPoolSemaphoreStatus_Response_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__Member); -PyCompat_DEF_TYPE(ReportPoolSemaphoreStatus_Response_Member_ANON_3); -PyCompat_DEF_ENUM(ReportPoolSemaphoreStatus_Response_Member_ANON_3_PRESENT); +PyCompat_DEF_ANON_STRUCT(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3, ReportPoolSemaphoreStatus_Response__listOfNamedTokens__listOfNamedTokens_Member); +PyCompat_DEF_TYPE(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3); +PyCompat_DEF_ENUM(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_PRESENT); typedef struct ReportPoolSemaphoreStatus_Response__listOfNamedTokens ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_t; PyCompat_DEF_STRUCT(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2); PyCompat_DEF_TYPE(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2); @@ -29,8 +35,8 @@ PyCompat_DEF_STRUCT(ReportPoolSemaphoreStatus_Response); PyCompat_DEF_TYPE(ReportPoolSemaphoreStatus_Response); /* Type Converters */ -int PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_FromPython(PyObject *pObj, ReportPoolSemaphoreStatus_Response_Member_ANON_3_t *pDst); -PyObject *PyAsnReportPoolSemaphoreStatus_Response_Member_ANON_3_ToPython(ReportPoolSemaphoreStatus_Response_Member_ANON_3_t *pSrc, PyObject *parent); +int PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_FromPython(PyObject *pObj, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t *pDst); +PyObject *PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_ToPython(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_Member_ANON_3_t *pSrc, PyObject *parent); int PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_FromPython(PyObject *pObj, ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_t *pDst); PyObject *PyAsnReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_ToPython(ReportPoolSemaphoreStatus_Response_listOfNamedTokens_ANON_2_t *pSrc, PyObject *parent); int PyAsnReportPoolSemaphoreStatus_Response_FromPython(PyObject *pObj, ReportPoolSemaphoreStatus_Response_t *pDst); diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.c index cedaa86e..e03e565d 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ memb_state_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, } asn_TYPE_member_t asn_MBR_ReportSemaphoreEntryStatus_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReportSemaphoreEntryStatus_Request, semaphoreName), + { ATF_POINTER, 0, offsetof(struct ReportSemaphoreEntryStatus_Request, semaphoreName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.h index a3a56255..873ba713 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -26,11 +25,14 @@ typedef enum ReportSemaphoreEntryStatus_Request__state { ReportSemaphoreEntryStatus_Request__state_hung = 2 } e_ReportSemaphoreEntryStatus_Request__state; +/* Forward declarations */ +struct ObjectName; + /* ReportSemaphoreEntryStatus-Request */ typedef struct ReportSemaphoreEntryStatus_Request { - ObjectName_t semaphoreName; - long state; - OCTET_STRING_t *entryIDToStartAfter; /* OPTIONAL */ + struct ObjectName *semaphoreName; + long state; + OCTET_STRING_t *entryIDToStartAfter; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -45,5 +47,8 @@ extern asn_TYPE_member_t asn_MBR_ReportSemaphoreEntryStatus_Request_1[3]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _ReportSemaphoreEntryStatus_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.c index 5b2ed69f..71376ef2 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -7,9 +7,11 @@ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(ReportSemaphoreEntryStatus_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ReportSemaphoreEntryStatus_Request, semaphoreName, ObjectName); -PY_IMPL_SEQ_GETATTR(ReportSemaphoreEntryStatus_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ReportSemaphoreEntryStatus_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ReportSemaphoreEntryStatus_Request, semaphoreName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ReportSemaphoreEntryStatus_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ReportSemaphoreEntryStatus_Request, semaphoreName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ReportSemaphoreEntryStatus_Request, semaphoreName); PY_IMPL_SEQ_SETATTR(ReportSemaphoreEntryStatus_Request, semaphoreName); PyObject *PyAsnEnumReportSemaphoreEntryStatus_Request_state_Type = NULL; PY_IMPL_SEQ_ATTR_FROMPY(ReportSemaphoreEntryStatus_Request, state, PyCompatEnum_FromObject(value, target, 0)); diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.h index 7806eed6..20fd5ccf 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.c index 942786f5..3ed82339 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfSemaphoreEntry_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfSemaphoreEntry __attribute__((weak, alias("asn_DEF_listOfSemaphoreEntry_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfSemaphoreEntry_2; +static asn_TYPE_descriptor_t asn_DEF_listOfSemaphoreEntry; +__attribute__((constructor)) static void asn_DEF_listOfSemaphoreEntry_2_alias_init(void) { + asn_DEF_listOfSemaphoreEntry = asn_DEF_listOfSemaphoreEntry_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ReportSemaphoreEntryStatus_Response__listOfSemaphoreEntry_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfSemaphoreEntry_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfSemaphoreEntry_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfSemaphoreEntry_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfSemaphoreEntry_2, + asn_MBR_ReportSemaphoreEntryStatus_Response__listOfSemaphoreEntry_2, 1, /* Single element */ &asn_SPC_listOfSemaphoreEntry_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.h index 5c8b21e9..85e74683 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct ReportSemaphoreEntryStatus_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfSemaphoreEntry; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_ReportSemaphoreEntryStatus_Response_1[2]; #endif /* Referred external types */ -#include +#include "SemaphoreEntry.h" #endif /* _ReportSemaphoreEntryStatus_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.c index b99114cc..ec2c6585 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.h index 88e956aa..c5f50d1f 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreEntryStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.c index 8a324195..cdab1744 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.h index 64581b60..f8cd76ed 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ObjectName.h" #ifdef __cplusplus extern "C" { #endif /* ReportSemaphoreStatus-Request */ -typedef ObjectName_t ReportSemaphoreStatus_Request_t; +typedef ObjectName_t ReportSemaphoreStatus_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ReportSemaphoreStatus_Request; diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.c index 2d76921f..da2f9b1f 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.h index d83f32b4..faa81059 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.c index 722ecf47..876a59c1 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.h index 39fa9ea8..45241a8c 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,8 +12,8 @@ /* Including external dependencies */ #include #include -#include -#include +#include "Unsigned16.h" +#include "Identifier.h" #include #ifdef __cplusplus @@ -28,12 +28,12 @@ typedef enum ReportSemaphoreStatus_Response__class { /* ReportSemaphoreStatus-Response */ typedef struct ReportSemaphoreStatus_Response { - BOOLEAN_t mmsDeletable; - long Class; - Unsigned16_t numberOfTokens; - Unsigned16_t numberOfOwnedTokens; - Unsigned16_t numberOfHungTokens; - Identifier_t *accessControlList; /* OPTIONAL */ + BOOLEAN_t mmsDeletable; + long Class; + Unsigned16_t numberOfTokens; + Unsigned16_t numberOfOwnedTokens; + Unsigned16_t numberOfHungTokens; + Identifier_t *accessControlList; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.c b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.c index 595b0336..c94177a5 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -54,7 +54,7 @@ PY_IMPL_REPR(ReportSemaphoreStatus_Response); PY_IMPL_GENERIC_IS_VALID(ReportSemaphoreStatus_Response); PY_IMPL_SEQ_FROMPY(ReportSemaphoreStatus_Response, &asn_DEF_ReportSemaphoreStatus_Response, PY_IMPL_SEQ_INIT_ATTR(ReportSemaphoreStatus_Response, mmsDeletable, mmsDeletable); - PY_IMPL_SEQ_INIT_ATTR(ReportSemaphoreStatus_Response, class_, Class); + PY_IMPL_SEQ_INIT_ATTR(ReportSemaphoreStatus_Response, c_l_a_s_s_, Class); PY_IMPL_SEQ_INIT_ATTR(ReportSemaphoreStatus_Response, numberOfTokens, numberOfTokens); PY_IMPL_SEQ_INIT_ATTR(ReportSemaphoreStatus_Response, numberOfOwnedTokens, numberOfOwnedTokens); PY_IMPL_SEQ_INIT_ATTR(ReportSemaphoreStatus_Response, numberOfHungTokens, numberOfHungTokens); @@ -65,7 +65,7 @@ PY_IMPL_SEQ_INIT(ReportSemaphoreStatus_Response); /* class attributes definition */ static PyGetSetDef PyAsnReportSemaphoreStatus_Response_getset[] = { PY_IMPL_GETSET_ITEM_INTERNAL(ReportSemaphoreStatus_Response, mmsDeletable, mmsDeletable), - PY_IMPL_GETSET_ITEM_INTERNAL(ReportSemaphoreStatus_Response, class_, Class), + PY_IMPL_GETSET_ITEM_INTERNAL(ReportSemaphoreStatus_Response, c_l_a_s_s_, Class), PY_IMPL_GETSET_ITEM_INTERNAL(ReportSemaphoreStatus_Response, numberOfTokens, numberOfTokens), PY_IMPL_GETSET_ITEM_INTERNAL(ReportSemaphoreStatus_Response, numberOfOwnedTokens, numberOfOwnedTokens), PY_IMPL_GETSET_ITEM_INTERNAL(ReportSemaphoreStatus_Response, numberOfHungTokens, numberOfHungTokens), @@ -121,7 +121,7 @@ int PyAsnReportSemaphoreStatus_Response_ModInit(PyObject *mod) { PY_IMPL_ENUM_VALUE(V_token, ReportSemaphoreStatus_Response__class_token, 0); PY_IMPL_ENUM_VALUE(V_pool, ReportSemaphoreStatus_Response__class_pool, 1); ); - PY_IMPL_ASSIGN_ENUM_DIRECT(ReportSemaphoreStatus_Response, ReportSemaphoreStatus_Response_Class, class__VALUES); + PY_IMPL_ASSIGN_ENUM_DIRECT(ReportSemaphoreStatus_Response, ReportSemaphoreStatus_Response_Class, c_l_a_s_s__VALUES); PY_IMPL_MOD_ADD_OBJECT(mod, ReportSemaphoreStatus_Response); return 0; } diff --git a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.h b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.h index 56ee4470..642a5f43 100644 --- a/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/ReportSemaphoreStatus-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Request-Detail.c b/src/icspacket/proto/mms/_mms/Request-Detail.c index 1f3b7538..7adc86f0 100644 --- a/src/icspacket/proto/mms/_mms/Request-Detail.c +++ b/src/icspacket/proto/mms/_mms/Request-Detail.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_Request_Detail_1[] = { 0, 0, /* No default value */ "createProgramInvocation" }, - { ATF_NOFLAGS, 0, offsetof(struct Request_Detail, choice.start), + { ATF_POINTER, 0, offsetof(struct Request_Detail, choice.start), (ASN_TAG_CLASS_CONTEXT | (40 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_Start_Request, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_Request_Detail_1[] = { 0, 0, /* No default value */ "start" }, - { ATF_NOFLAGS, 0, offsetof(struct Request_Detail, choice.resume), + { ATF_POINTER, 0, offsetof(struct Request_Detail, choice.resume), (ASN_TAG_CLASS_CONTEXT | (42 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_Resume_Request, @@ -85,7 +85,7 @@ asn_TYPE_member_t asn_MBR_Request_Detail_1[] = { 0, 0, /* No default value */ "resume" }, - { ATF_NOFLAGS, 0, offsetof(struct Request_Detail, choice.defineEventCondition), + { ATF_POINTER, 0, offsetof(struct Request_Detail, choice.defineEventCondition), (ASN_TAG_CLASS_CONTEXT | (47 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_DefineEventCondition_Request, @@ -105,7 +105,7 @@ asn_TYPE_member_t asn_MBR_Request_Detail_1[] = { 0, 0, /* No default value */ "defineEventCondition" }, - { ATF_NOFLAGS, 0, offsetof(struct Request_Detail, choice.alterEventConditionMonitoring), + { ATF_POINTER, 0, offsetof(struct Request_Detail, choice.alterEventConditionMonitoring), (ASN_TAG_CLASS_CONTEXT | (51 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_AlterEventConditionMonitoring_Request, @@ -125,7 +125,7 @@ asn_TYPE_member_t asn_MBR_Request_Detail_1[] = { 0, 0, /* No default value */ "alterEventConditionMonitoring" }, - { ATF_NOFLAGS, 0, offsetof(struct Request_Detail, choice.defineEventEnrollment), + { ATF_POINTER, 0, offsetof(struct Request_Detail, choice.defineEventEnrollment), (ASN_TAG_CLASS_CONTEXT | (57 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_DefineEventEnrollment_Request, @@ -145,7 +145,7 @@ asn_TYPE_member_t asn_MBR_Request_Detail_1[] = { 0, 0, /* No default value */ "defineEventEnrollment" }, - { ATF_NOFLAGS, 0, offsetof(struct Request_Detail, choice.alterEventEnrollment), + { ATF_POINTER, 0, offsetof(struct Request_Detail, choice.alterEventEnrollment), (ASN_TAG_CLASS_CONTEXT | (59 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_AlterEventEnrollment_Request, diff --git a/src/icspacket/proto/mms/_mms/Request-Detail.h b/src/icspacket/proto/mms/_mms/Request-Detail.h index 57c6589f..d89402da 100644 --- a/src/icspacket/proto/mms/_mms/Request-Detail.h +++ b/src/icspacket/proto/mms/_mms/Request-Detail.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,13 +11,7 @@ /* Including external dependencies */ #include -#include -#include -#include -#include -#include -#include -#include +#include "CS-CreateProgramInvocation-Request.h" #include #ifdef __cplusplus @@ -37,18 +31,26 @@ typedef enum Request_Detail_PR { Request_Detail_PR_alterEventEnrollment } Request_Detail_PR; +/* Forward declarations */ +struct CS_Start_Request; +struct CS_Resume_Request; +struct CS_DefineEventCondition_Request; +struct CS_AlterEventConditionMonitoring_Request; +struct CS_DefineEventEnrollment_Request; +struct CS_AlterEventEnrollment_Request; + /* Request-Detail */ typedef struct Request_Detail { Request_Detail_PR present; union Request_Detail_u { - NULL_t otherRequests; - CS_CreateProgramInvocation_Request_t createProgramInvocation; - CS_Start_Request_t start; - CS_Resume_Request_t resume; - CS_DefineEventCondition_Request_t defineEventCondition; - CS_AlterEventConditionMonitoring_Request_t alterEventConditionMonitoring; - CS_DefineEventEnrollment_Request_t defineEventEnrollment; - CS_AlterEventEnrollment_Request_t alterEventEnrollment; + NULL_t otherRequests; + CS_CreateProgramInvocation_Request_t createProgramInvocation; + struct CS_Start_Request *start; + struct CS_Resume_Request *resume; + struct CS_DefineEventCondition_Request *defineEventCondition; + struct CS_AlterEventConditionMonitoring_Request *alterEventConditionMonitoring; + struct CS_DefineEventEnrollment_Request *defineEventEnrollment; + struct CS_AlterEventEnrollment_Request *alterEventEnrollment; } choice; /* Context for parsing across buffer boundaries */ @@ -64,5 +66,13 @@ extern asn_TYPE_member_t asn_MBR_Request_Detail_1[8]; } #endif +/* Referred external types */ +#include "CS-Start-Request.h" +#include "CS-Resume-Request.h" +#include "CS-DefineEventCondition-Request.h" +#include "CS-AlterEventConditionMonitoring-Request.h" +#include "CS-DefineEventEnrollment-Request.h" +#include "CS-AlterEventEnrollment-Request.h" + #endif /* _Request_Detail_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Request-Detail_Py.c b/src/icspacket/proto/mms/_mms/Request-Detail_Py.c index ea2714c4..f1533e8c 100644 --- a/src/icspacket/proto/mms/_mms/Request-Detail_Py.c +++ b/src/icspacket/proto/mms/_mms/Request-Detail_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,28 +14,28 @@ PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, createProgramInvocati PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, createProgramInvocation, PyCompatAsnType_FromParent(&PyAsnCS_CreateProgramInvocation_Request_Type, parent, (void *)&src->choice.createProgramInvocation)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, createProgramInvocation, createProgramInvocation); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, createProgramInvocation, createProgramInvocation); -PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, start, start,PyAsnCS_Start_Request_FromPython(value, &dst->choice.start)); -PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, start, PyCompatAsnType_FromParent(&PyAsnCS_Start_Request_Type, parent, (void *)&src->choice.start)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Request_Detail, Request_Detail, start, start, CS_Start_Request,PyAsnCS_Start_Request_FromPython(value, dst->choice.start)); +PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, start, PyCompatAsnType_FromParent(&PyAsnCS_Start_Request_Type, parent, (void *)src->choice.start)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, start, start); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, start, start); -PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, resume, resume,PyAsnCS_Resume_Request_FromPython(value, &dst->choice.resume)); -PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, resume, PyCompatAsnType_FromParent(&PyAsnCS_Resume_Request_Type, parent, (void *)&src->choice.resume)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Request_Detail, Request_Detail, resume, resume, CS_Resume_Request,PyAsnCS_Resume_Request_FromPython(value, dst->choice.resume)); +PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, resume, PyCompatAsnType_FromParent(&PyAsnCS_Resume_Request_Type, parent, (void *)src->choice.resume)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, resume, resume); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, resume, resume); -PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, defineEventCondition, defineEventCondition,PyAsnCS_DefineEventCondition_Request_FromPython(value, &dst->choice.defineEventCondition)); -PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, defineEventCondition, PyCompatAsnType_FromParent(&PyAsnCS_DefineEventCondition_Request_Type, parent, (void *)&src->choice.defineEventCondition)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Request_Detail, Request_Detail, defineEventCondition, defineEventCondition, CS_DefineEventCondition_Request,PyAsnCS_DefineEventCondition_Request_FromPython(value, dst->choice.defineEventCondition)); +PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, defineEventCondition, PyCompatAsnType_FromParent(&PyAsnCS_DefineEventCondition_Request_Type, parent, (void *)src->choice.defineEventCondition)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, defineEventCondition, defineEventCondition); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, defineEventCondition, defineEventCondition); -PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, alterEventConditionMonitoring, alterEventConditionMonitoring,PyAsnCS_AlterEventConditionMonitoring_Request_FromPython(value, &dst->choice.alterEventConditionMonitoring)); -PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, alterEventConditionMonitoring, PyCompatAsnType_FromParent(&PyAsnCS_AlterEventConditionMonitoring_Request_Type, parent, (void *)&src->choice.alterEventConditionMonitoring)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Request_Detail, Request_Detail, alterEventConditionMonitoring, alterEventConditionMonitoring, CS_AlterEventConditionMonitoring_Request,PyAsnCS_AlterEventConditionMonitoring_Request_FromPython(value, dst->choice.alterEventConditionMonitoring)); +PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, alterEventConditionMonitoring, PyCompatAsnType_FromParent(&PyAsnCS_AlterEventConditionMonitoring_Request_Type, parent, (void *)src->choice.alterEventConditionMonitoring)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, alterEventConditionMonitoring, alterEventConditionMonitoring); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, alterEventConditionMonitoring, alterEventConditionMonitoring); -PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, defineEventEnrollment, defineEventEnrollment,PyAsnCS_DefineEventEnrollment_Request_FromPython(value, &dst->choice.defineEventEnrollment)); -PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, defineEventEnrollment, PyCompatAsnType_FromParent(&PyAsnCS_DefineEventEnrollment_Request_Type, parent, (void *)&src->choice.defineEventEnrollment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Request_Detail, Request_Detail, defineEventEnrollment, defineEventEnrollment, CS_DefineEventEnrollment_Request,PyAsnCS_DefineEventEnrollment_Request_FromPython(value, dst->choice.defineEventEnrollment)); +PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, defineEventEnrollment, PyCompatAsnType_FromParent(&PyAsnCS_DefineEventEnrollment_Request_Type, parent, (void *)src->choice.defineEventEnrollment)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, defineEventEnrollment, defineEventEnrollment); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, defineEventEnrollment, defineEventEnrollment); -PY_IMPL_CHOICE_ATTR_FROMPY(Request_Detail, Request_Detail, alterEventEnrollment, alterEventEnrollment,PyAsnCS_AlterEventEnrollment_Request_FromPython(value, &dst->choice.alterEventEnrollment)); -PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, alterEventEnrollment, PyCompatAsnType_FromParent(&PyAsnCS_AlterEventEnrollment_Request_Type, parent, (void *)&src->choice.alterEventEnrollment)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Request_Detail, Request_Detail, alterEventEnrollment, alterEventEnrollment, CS_AlterEventEnrollment_Request,PyAsnCS_AlterEventEnrollment_Request_FromPython(value, dst->choice.alterEventEnrollment)); +PY_IMPL_CHOICE_ATTR_TOPY(Request_Detail, alterEventEnrollment, PyCompatAsnType_FromParent(&PyAsnCS_AlterEventEnrollment_Request_Type, parent, (void *)src->choice.alterEventEnrollment)); PY_IMPL_CHOICE_GETATTR(Request_Detail, Request_Detail, alterEventEnrollment, alterEventEnrollment); PY_IMPL_CHOICE_SETATTR(Request_Detail, Request_Detail, alterEventEnrollment, alterEventEnrollment); PY_IMPL_GENERIC_DEALLOC(Request_Detail); diff --git a/src/icspacket/proto/mms/_mms/Request-Detail_Py.h b/src/icspacket/proto/mms/_mms/Request-Detail_Py.h index 9b193d24..23f039ea 100644 --- a/src/icspacket/proto/mms/_mms/Request-Detail_Py.h +++ b/src/icspacket/proto/mms/_mms/Request-Detail_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.c b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.c index 13942bd2..0cb6ee32 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfCapabilities __attribute__((weak, alias("asn_DEF_listOfCapabilities_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3; +static asn_TYPE_descriptor_t asn_DEF_listOfCapabilities; +__attribute__((constructor)) static void asn_DEF_listOfCapabilities_3_alias_init(void) { + asn_DEF_listOfCapabilities = asn_DEF_listOfCapabilities_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_RequestDomainDownload_Request__listOfCapabilities_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfCapabilities_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfCapabilities_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfCapabilities_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfCapabilities_3, + asn_MBR_RequestDomainDownload_Request__listOfCapabilities_3, 1, /* Single element */ &asn_SPC_listOfCapabilities_specs_3 /* Additional specs */ }; @@ -124,7 +135,7 @@ asn_TYPE_member_t asn_MBR_RequestDomainDownload_Request_1[] = { 0, 0, /* No default value */ "sharable" }, - { ATF_NOFLAGS, 0, offsetof(struct RequestDomainDownload_Request, fileName), + { ATF_POINTER, 0, offsetof(struct RequestDomainDownload_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.h b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.h index b59d1b1d..3b6b758a 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,9 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include -#include -#include +#include "MMSString.h" #include #include #include @@ -22,17 +21,20 @@ extern "C" { #endif +/* Forward declarations */ +struct FileName; + /* RequestDomainDownload-Request */ typedef struct RequestDomainDownload_Request { - Identifier_t domainName; + Identifier_t domainName; struct RequestDomainDownload_Request__listOfCapabilities { A_SEQUENCE_OF(MMSString_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *listOfCapabilities; - BOOLEAN_t sharable; - FileName_t fileName; + BOOLEAN_t sharable; + struct FileName *fileName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -47,5 +49,8 @@ extern asn_TYPE_member_t asn_MBR_RequestDomainDownload_Request_1[4]; } #endif +/* Referred external types */ +#include "FileName.h" + #endif /* _RequestDomainDownload_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.c b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.c index 61aab0a2..866feba0 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -47,9 +47,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(RequestDomainDownload_Request, sharable, PyCompatBool_Fr PY_IMPL_SEQ_ATTR_TOPY(RequestDomainDownload_Request, sharable, PyCompatBool_FromLong(*(BOOLEAN_t *)target)); PY_IMPL_SEQ_GETATTR(RequestDomainDownload_Request, sharable); PY_IMPL_SEQ_SETATTR(RequestDomainDownload_Request, sharable); -PY_IMPL_SEQ_ATTR_FROMPY(RequestDomainDownload_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(RequestDomainDownload_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(RequestDomainDownload_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(RequestDomainDownload_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(RequestDomainDownload_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(RequestDomainDownload_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(RequestDomainDownload_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(RequestDomainDownload_Request, fileName); PY_IMPL_SEQ_SETATTR(RequestDomainDownload_Request, fileName); PY_IMPL_GENERIC_DEALLOC(RequestDomainDownload_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(RequestDomainDownload_Request); diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.h b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.h index eb0bee27..384d753f 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.c b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.c index 5207d2bf..d778b422 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.h b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.h index 15356a02..787ccadf 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* RequestDomainDownload-Response */ -typedef NULL_t RequestDomainDownload_Response_t; +typedef NULL_t RequestDomainDownload_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_RequestDomainDownload_Response; diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.c b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.c index 132e40a7..c02aecd1 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.h b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.h index 5a01e330..505fb329 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainDownload-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.c b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.c index d8113611..8179b9b0 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_RequestDomainUpload_Request_1[] = { 0, 0, /* No default value */ "domainName" }, - { ATF_NOFLAGS, 0, offsetof(struct RequestDomainUpload_Request, fileName), + { ATF_POINTER, 0, offsetof(struct RequestDomainUpload_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.h b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.h index 53a0f017..7bd57e9c 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct FileName; + /* RequestDomainUpload-Request */ typedef struct RequestDomainUpload_Request { - Identifier_t domainName; - FileName_t fileName; + Identifier_t domainName; + struct FileName *fileName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_RequestDomainUpload_Request_1[2]; } #endif +/* Referred external types */ +#include "FileName.h" + #endif /* _RequestDomainUpload_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.c b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.c index e033ad1f..ed3162e8 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(RequestDomainUpload_Request, domainName, PyAsnIdentifier PY_IMPL_SEQ_REF_ATTR_TOPY(RequestDomainUpload_Request, domainName, Identifier); PY_IMPL_SEQ_GETATTR(RequestDomainUpload_Request, domainName); PY_IMPL_SEQ_SETATTR(RequestDomainUpload_Request, domainName); -PY_IMPL_SEQ_ATTR_FROMPY(RequestDomainUpload_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(RequestDomainUpload_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(RequestDomainUpload_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(RequestDomainUpload_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(RequestDomainUpload_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(RequestDomainUpload_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(RequestDomainUpload_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(RequestDomainUpload_Request, fileName); PY_IMPL_SEQ_SETATTR(RequestDomainUpload_Request, fileName); PY_IMPL_GENERIC_DEALLOC(RequestDomainUpload_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(RequestDomainUpload_Request); diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.h b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.h index 05b3a7a2..24be1d3a 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.c b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.c index 51f19e98..34ced2de 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.h b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.h index 27b1d93c..f84d0db1 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* RequestDomainUpload-Response */ -typedef NULL_t RequestDomainUpload_Response_t; +typedef NULL_t RequestDomainUpload_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_RequestDomainUpload_Response; diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.c b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.c index e4331f7b..d6a65fc5 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.h b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.h index 3cba9344..783a0bc7 100644 --- a/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/RequestDomainUpload-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Error.c b/src/icspacket/proto/mms/_mms/Reset-Error.c index afa77c73..02326daa 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Error.c +++ b/src/icspacket/proto/mms/_mms/Reset-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Error.h b/src/icspacket/proto/mms/_mms/Reset-Error.h index f735e910..18053b98 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Error.h +++ b/src/icspacket/proto/mms/_mms/Reset-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ProgramInvocationState.h" #ifdef __cplusplus extern "C" { #endif /* Reset-Error */ -typedef ProgramInvocationState_t Reset_Error_t; +typedef ProgramInvocationState_t Reset_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Reset_Error; diff --git a/src/icspacket/proto/mms/_mms/Reset-Error_Py.c b/src/icspacket/proto/mms/_mms/Reset-Error_Py.c index 23738cd3..9c5ec06d 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/Reset-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Error_Py.h b/src/icspacket/proto/mms/_mms/Reset-Error_Py.h index 13e987a0..fe19f810 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/Reset-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Request.c b/src/icspacket/proto/mms/_mms/Reset-Request.c index f6719701..942d03fa 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Request.c +++ b/src/icspacket/proto/mms/_mms/Reset-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Request.h b/src/icspacket/proto/mms/_mms/Reset-Request.h index 4234f2a4..59c264b8 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Request.h +++ b/src/icspacket/proto/mms/_mms/Reset-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,7 +19,7 @@ extern "C" { /* Reset-Request */ typedef struct Reset_Request { - Identifier_t programInvocationName; + Identifier_t programInvocationName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Reset-Request_Py.c b/src/icspacket/proto/mms/_mms/Reset-Request_Py.c index f896c5d3..28deb44e 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Reset-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Request_Py.h b/src/icspacket/proto/mms/_mms/Reset-Request_Py.h index 998c80a7..1375db01 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Reset-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Response.c b/src/icspacket/proto/mms/_mms/Reset-Response.c index d6ee4ff3..0444e7fb 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Response.c +++ b/src/icspacket/proto/mms/_mms/Reset-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Response.h b/src/icspacket/proto/mms/_mms/Reset-Response.h index d77bab1e..2820118a 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Response.h +++ b/src/icspacket/proto/mms/_mms/Reset-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Reset-Response */ -typedef NULL_t Reset_Response_t; +typedef NULL_t Reset_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Reset_Response; diff --git a/src/icspacket/proto/mms/_mms/Reset-Response_Py.c b/src/icspacket/proto/mms/_mms/Reset-Response_Py.c index ecc18e94..c45dc263 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Reset-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Reset-Response_Py.h b/src/icspacket/proto/mms/_mms/Reset-Response_Py.h index 5a2f379e..cf749ba5 100644 --- a/src/icspacket/proto/mms/_mms/Reset-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Reset-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Response-Detail.c b/src/icspacket/proto/mms/_mms/Response-Detail.c index f69750f4..7bacbf5e 100644 --- a/src/icspacket/proto/mms/_mms/Response-Detail.c +++ b/src/icspacket/proto/mms/_mms/Response-Detail.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Response_Detail_1[] = { 0, 0, /* No default value */ "otherRequests" }, - { ATF_NOFLAGS, 0, offsetof(struct Response_Detail, choice.status), + { ATF_POINTER, 0, offsetof(struct Response_Detail, choice.status), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_CS_Status_Response, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_Response_Detail_1[] = { 0, 0, /* No default value */ "status" }, - { ATF_NOFLAGS, 0, offsetof(struct Response_Detail, choice.getProgramInvocationAttributes), + { ATF_POINTER, 0, offsetof(struct Response_Detail, choice.getProgramInvocationAttributes), (ASN_TAG_CLASS_CONTEXT | (45 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_GetProgramInvocationAttributes_Response, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_Response_Detail_1[] = { 0, 0, /* No default value */ "getProgramInvocationAttributes" }, - { ATF_NOFLAGS, 0, offsetof(struct Response_Detail, choice.getEventConditionAttributes), + { ATF_POINTER, 0, offsetof(struct Response_Detail, choice.getEventConditionAttributes), (ASN_TAG_CLASS_CONTEXT | (49 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_GetEventConditionAttributes_Response, diff --git a/src/icspacket/proto/mms/_mms/Response-Detail.h b/src/icspacket/proto/mms/_mms/Response-Detail.h index 1bbbebf6..99a5638f 100644 --- a/src/icspacket/proto/mms/_mms/Response-Detail.h +++ b/src/icspacket/proto/mms/_mms/Response-Detail.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,9 +11,6 @@ /* Including external dependencies */ #include -#include -#include -#include #include #ifdef __cplusplus @@ -29,14 +26,19 @@ typedef enum Response_Detail_PR { Response_Detail_PR_getEventConditionAttributes } Response_Detail_PR; +/* Forward declarations */ +struct CS_Status_Response; +struct CS_GetProgramInvocationAttributes_Response; +struct CS_GetEventConditionAttributes_Response; + /* Response-Detail */ typedef struct Response_Detail { Response_Detail_PR present; union Response_Detail_u { - NULL_t otherRequests; - CS_Status_Response_t status; - CS_GetProgramInvocationAttributes_Response_t getProgramInvocationAttributes; - CS_GetEventConditionAttributes_Response_t getEventConditionAttributes; + NULL_t otherRequests; + struct CS_Status_Response *status; + struct CS_GetProgramInvocationAttributes_Response *getProgramInvocationAttributes; + struct CS_GetEventConditionAttributes_Response *getEventConditionAttributes; } choice; /* Context for parsing across buffer boundaries */ @@ -52,5 +54,10 @@ extern asn_TYPE_member_t asn_MBR_Response_Detail_1[4]; } #endif +/* Referred external types */ +#include "CS-Status-Response.h" +#include "CS-GetProgramInvocationAttributes-Response.h" +#include "CS-GetEventConditionAttributes-Response.h" + #endif /* _Response_Detail_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Response-Detail_Py.c b/src/icspacket/proto/mms/_mms/Response-Detail_Py.c index c3be83e4..e3317ca0 100644 --- a/src/icspacket/proto/mms/_mms/Response-Detail_Py.c +++ b/src/icspacket/proto/mms/_mms/Response-Detail_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,16 +10,16 @@ PY_IMPL_CHOICE_ATTR_FROMPY(Response_Detail, Response_Detail, otherRequests, othe PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, otherRequests, Py_None); PY_IMPL_CHOICE_GETATTR(Response_Detail, Response_Detail, otherRequests, otherRequests); PY_IMPL_CHOICE_SETATTR(Response_Detail, Response_Detail, otherRequests, otherRequests); -PY_IMPL_CHOICE_ATTR_FROMPY(Response_Detail, Response_Detail, status, status,PyAsnCS_Status_Response_FromPython(value, &dst->choice.status)); -PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, status, PyCompatAsnType_FromParent(&PyAsnCS_Status_Response_Type, parent, (void *)&src->choice.status)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Response_Detail, Response_Detail, status, status, CS_Status_Response,PyAsnCS_Status_Response_FromPython(value, dst->choice.status)); +PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, status, PyCompatAsnType_FromParent(&PyAsnCS_Status_Response_Type, parent, (void *)src->choice.status)); PY_IMPL_CHOICE_GETATTR(Response_Detail, Response_Detail, status, status); PY_IMPL_CHOICE_SETATTR(Response_Detail, Response_Detail, status, status); -PY_IMPL_CHOICE_ATTR_FROMPY(Response_Detail, Response_Detail, getProgramInvocationAttributes, getProgramInvocationAttributes,PyAsnCS_GetProgramInvocationAttributes_Response_FromPython(value, &dst->choice.getProgramInvocationAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, getProgramInvocationAttributes, PyCompatAsnType_FromParent(&PyAsnCS_GetProgramInvocationAttributes_Response_Type, parent, (void *)&src->choice.getProgramInvocationAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Response_Detail, Response_Detail, getProgramInvocationAttributes, getProgramInvocationAttributes, CS_GetProgramInvocationAttributes_Response,PyAsnCS_GetProgramInvocationAttributes_Response_FromPython(value, dst->choice.getProgramInvocationAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, getProgramInvocationAttributes, PyCompatAsnType_FromParent(&PyAsnCS_GetProgramInvocationAttributes_Response_Type, parent, (void *)src->choice.getProgramInvocationAttributes)); PY_IMPL_CHOICE_GETATTR(Response_Detail, Response_Detail, getProgramInvocationAttributes, getProgramInvocationAttributes); PY_IMPL_CHOICE_SETATTR(Response_Detail, Response_Detail, getProgramInvocationAttributes, getProgramInvocationAttributes); -PY_IMPL_CHOICE_ATTR_FROMPY(Response_Detail, Response_Detail, getEventConditionAttributes, getEventConditionAttributes,PyAsnCS_GetEventConditionAttributes_Response_FromPython(value, &dst->choice.getEventConditionAttributes)); -PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, getEventConditionAttributes, PyCompatAsnType_FromParent(&PyAsnCS_GetEventConditionAttributes_Response_Type, parent, (void *)&src->choice.getEventConditionAttributes)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Response_Detail, Response_Detail, getEventConditionAttributes, getEventConditionAttributes, CS_GetEventConditionAttributes_Response,PyAsnCS_GetEventConditionAttributes_Response_FromPython(value, dst->choice.getEventConditionAttributes)); +PY_IMPL_CHOICE_ATTR_TOPY(Response_Detail, getEventConditionAttributes, PyCompatAsnType_FromParent(&PyAsnCS_GetEventConditionAttributes_Response_Type, parent, (void *)src->choice.getEventConditionAttributes)); PY_IMPL_CHOICE_GETATTR(Response_Detail, Response_Detail, getEventConditionAttributes, getEventConditionAttributes); PY_IMPL_CHOICE_SETATTR(Response_Detail, Response_Detail, getEventConditionAttributes, getEventConditionAttributes); PY_IMPL_GENERIC_DEALLOC(Response_Detail); diff --git a/src/icspacket/proto/mms/_mms/Response-Detail_Py.h b/src/icspacket/proto/mms/_mms/Response-Detail_Py.h index 018dc4fc..0f6836c6 100644 --- a/src/icspacket/proto/mms/_mms/Response-Detail_Py.h +++ b/src/icspacket/proto/mms/_mms/Response-Detail_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Error.c b/src/icspacket/proto/mms/_mms/Resume-Error.c index d5f6425f..bb3d6871 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Error.c +++ b/src/icspacket/proto/mms/_mms/Resume-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Error.h b/src/icspacket/proto/mms/_mms/Resume-Error.h index 88de7c62..f2a9aab9 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Error.h +++ b/src/icspacket/proto/mms/_mms/Resume-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ProgramInvocationState.h" #ifdef __cplusplus extern "C" { #endif /* Resume-Error */ -typedef ProgramInvocationState_t Resume_Error_t; +typedef ProgramInvocationState_t Resume_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Resume_Error; diff --git a/src/icspacket/proto/mms/_mms/Resume-Error_Py.c b/src/icspacket/proto/mms/_mms/Resume-Error_Py.c index 750eab1b..c224acef 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/Resume-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Error_Py.h b/src/icspacket/proto/mms/_mms/Resume-Error_Py.h index ec707b91..4af65ca9 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/Resume-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Request.c b/src/icspacket/proto/mms/_mms/Resume-Request.c index c6797980..c4874c63 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Request.c +++ b/src/icspacket/proto/mms/_mms/Resume-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_executionArgument_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_executionArgument __attribute__((weak, alias("asn_DEF_executionArgument_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_executionArgument_3; +static asn_TYPE_descriptor_t asn_DEF_executionArgument; +__attribute__((constructor)) static void asn_DEF_executionArgument_3_alias_init(void) { + asn_DEF_executionArgument = asn_DEF_executionArgument_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Resume_Request__executionArgument_3[] = { { ATF_NOFLAGS, 0, offsetof(struct Resume_Request__executionArgument, choice.simpleString), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_executionArgument_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_executionArgument_3, + asn_MBR_Resume_Request__executionArgument_3, 3, /* Elements count */ &asn_SPC_executionArgument_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Resume-Request.h b/src/icspacket/proto/mms/_mms/Resume-Request.h index 33361f48..eb7549de 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Request.h +++ b/src/icspacket/proto/mms/_mms/Resume-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,10 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "Identifier.h" +#include "MMSString.h" +#include "EXTERNAL.h" +#include "EMBEDDED-PDV.h" #include #include @@ -31,13 +31,13 @@ typedef enum Resume_Request__executionArgument_PR { /* Resume-Request */ typedef struct Resume_Request { - Identifier_t programInvocationName; + Identifier_t programInvocationName; struct Resume_Request__executionArgument { Resume_Request__executionArgument_PR present; union Resume_Request__executionArgument_u { - MMSString_t simpleString; - EXTERNAL_t encodedString; - EMBEDDED_PDV_t enmbeddedString; + MMSString_t simpleString; + EXTERNAL_t encodedString; + EMBEDDED_PDV_t enmbeddedString; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Request_Py.c b/src/icspacket/proto/mms/_mms/Resume-Request_Py.c index c92cd5a0..4dfaaba5 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Resume-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Request_Py.h b/src/icspacket/proto/mms/_mms/Resume-Request_Py.h index e1885b97..2086d1d6 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Resume-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Resume-Response.c b/src/icspacket/proto/mms/_mms/Resume-Response.c index 58995c41..7fdaa875 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Response.c +++ b/src/icspacket/proto/mms/_mms/Resume-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Response.h b/src/icspacket/proto/mms/_mms/Resume-Response.h index 8c363c04..76ef915b 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Response.h +++ b/src/icspacket/proto/mms/_mms/Resume-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Resume-Response */ -typedef NULL_t Resume_Response_t; +typedef NULL_t Resume_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Resume_Response; diff --git a/src/icspacket/proto/mms/_mms/Resume-Response_Py.c b/src/icspacket/proto/mms/_mms/Resume-Response_Py.c index 6ddb6a28..ec5b1039 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Resume-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Resume-Response_Py.h b/src/icspacket/proto/mms/_mms/Resume-Response_Py.h index e057ef48..39a53696 100644 --- a/src/icspacket/proto/mms/_mms/Resume-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Resume-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.c b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.c index 6f8f2c2e..9e16df77 100644 --- a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.c +++ b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_POINTER, 1, offsetof(struct ScatteredAccessDescription__Member, componentName), +static asn_TYPE_member_t asn_MBR_ScatteredAccessDescription__ScatteredAccessDescription_Member_2[] = { + { ATF_POINTER, 1, offsetof(struct ScatteredAccessDescription__ScatteredAccessDescription_Member, componentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identifier, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "componentName" }, - { ATF_POINTER, 0, offsetof(struct ScatteredAccessDescription__Member, variableSpecification), + { ATF_POINTER, 0, offsetof(struct ScatteredAccessDescription__ScatteredAccessDescription_Member, variableSpecification), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_VariableSpecification, @@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "variableSpecification" }, - { ATF_POINTER, 1, offsetof(struct ScatteredAccessDescription__Member, alternateAccess), + { ATF_POINTER, 1, offsetof(struct ScatteredAccessDescription__ScatteredAccessDescription_Member, alternateAccess), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlternateAccess, @@ -66,35 +66,35 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { "alternateAccess" }, }; -static const int asn_MAP_Member_oms_2[] = { 0, 2 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { +static const int asn_MAP_ScatteredAccessDescription_Member_oms_2[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_ScatteredAccessDescription_Member_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { +static const asn_TYPE_tag2member_t asn_MAP_ScatteredAccessDescription_Member_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* componentName */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* variableSpecification */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* alternateAccess */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct ScatteredAccessDescription__Member), - offsetof(struct ScatteredAccessDescription__Member, _asn_ctx), - asn_MAP_Member_tag2el_2, +static asn_SEQUENCE_specifics_t asn_SPC_ScatteredAccessDescription_Member_specs_2 = { + sizeof(struct ScatteredAccessDescription__ScatteredAccessDescription_Member), + offsetof(struct ScatteredAccessDescription__ScatteredAccessDescription_Member, _asn_ctx), + asn_MAP_ScatteredAccessDescription_Member_tag2el_2, 3, /* Count of tags in the map */ - asn_MAP_Member_oms_2, /* Optional members */ + asn_MAP_ScatteredAccessDescription_Member_oms_2, /* Optional members */ 2, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { +asn_TYPE_descriptor_t asn_DEF_ScatteredAccessDescription_Member_2 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ + asn_DEF_ScatteredAccessDescription_Member_tags_2, + sizeof(asn_DEF_ScatteredAccessDescription_Member_tags_2) + /sizeof(asn_DEF_ScatteredAccessDescription_Member_tags_2[0]), /* 1 */ + asn_DEF_ScatteredAccessDescription_Member_tags_2, /* Same as above */ + sizeof(asn_DEF_ScatteredAccessDescription_Member_tags_2) + /sizeof(asn_DEF_ScatteredAccessDescription_Member_tags_2[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -107,16 +107,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_2, + asn_MBR_ScatteredAccessDescription__ScatteredAccessDescription_Member_2, 3, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ + &asn_SPC_ScatteredAccessDescription_Member_specs_2 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_ScatteredAccessDescription_1[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_2, + &asn_DEF_ScatteredAccessDescription_Member_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) diff --git a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.h b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.h index a097b3fd..edce75e1 100644 --- a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.h +++ b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #include @@ -24,18 +24,18 @@ struct VariableSpecification; struct AlternateAccess; /* Forward definitions */ -typedef struct ScatteredAccessDescription__Member { - Identifier_t *componentName; /* OPTIONAL */ - struct VariableSpecification *variableSpecification; - struct AlternateAccess *alternateAccess; /* OPTIONAL */ +typedef struct ScatteredAccessDescription__ScatteredAccessDescription_Member { + Identifier_t *componentName; /* OPTIONAL */ + struct VariableSpecification *variableSpecification; + struct AlternateAccess *alternateAccess; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} ScatteredAccessDescription__Member; +} ScatteredAccessDescription__ScatteredAccessDescription_Member; /* ScatteredAccessDescription */ typedef struct ScatteredAccessDescription { - A_SEQUENCE_OF(ScatteredAccessDescription__Member) list; + A_SEQUENCE_OF(ScatteredAccessDescription__ScatteredAccessDescription_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -51,8 +51,8 @@ extern asn_TYPE_member_t asn_MBR_ScatteredAccessDescription_1[1]; #endif /* Referred external types */ -#include -#include +#include "VariableSpecification.h" +#include "AlternateAccess.h" #endif /* _ScatteredAccessDescription_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.c b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.c index e387d57b..9e9d0cf6 100644 --- a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.c +++ b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.c @@ -1,59 +1,59 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_GENERIC_FREE(ScatteredAccessDescription_Member_ANON_2, componentName); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(ScatteredAccessDescription_Member_ANON_2, componentName, Identifier_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ScatteredAccessDescription_Member_ANON_2, componentName, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ScatteredAccessDescription_Member_ANON_2, componentName, Identifier); -PY_IMPL_SEQ_OPT_GETATTR(ScatteredAccessDescription_Member_ANON_2, componentName); -PY_IMPL_SEQ_OPT_SETATTR(ScatteredAccessDescription_Member_ANON_2, componentName); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(ScatteredAccessDescription_Member_ANON_2, variableSpecification); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(ScatteredAccessDescription_Member_ANON_2, variableSpecification, VariableSpecification_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ScatteredAccessDescription_Member_ANON_2, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ScatteredAccessDescription_Member_ANON_2, variableSpecification, VariableSpecification); -PY_IMPL_SEQ_GETATTR(ScatteredAccessDescription_Member_ANON_2, variableSpecification); -PY_IMPL_SEQ_SETATTR(ScatteredAccessDescription_Member_ANON_2, variableSpecification); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(ScatteredAccessDescription_Member_ANON_2, alternateAccess); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(ScatteredAccessDescription_Member_ANON_2, alternateAccess, AlternateAccess_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ScatteredAccessDescription_Member_ANON_2, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ScatteredAccessDescription_Member_ANON_2, alternateAccess, AlternateAccess); -PY_IMPL_SEQ_OPT_GETATTR(ScatteredAccessDescription_Member_ANON_2, alternateAccess); -PY_IMPL_SEQ_OPT_SETATTR(ScatteredAccessDescription_Member_ANON_2, alternateAccess); -PY_IMPL_CHECK_CONSTRAINTS(ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); -PY_IMPL_ENCODE(ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); -PY_IMPL_DECODE(ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); -PY_IMPL_DEALLOC(ScatteredAccessDescription_Member_ANON_2, *(asn_DEF_ScatteredAccessDescription.elements[0].type)); -PY_IMPL_SEQ_TOPY(ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); -PY_IMPL_DECODE_BER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_Member_ANON_2, ber, ATS_BER); -PY_IMPL_DECODE_DER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_Member_ANON_2, der, ATS_DER); -PY_IMPL_DECODE_CER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_Member_ANON_2, cer, ATS_BER); -PY_IMPL_DECODE_XER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_ENCODE_XER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_ENCODE_JER(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_GENERIC_NEW(ScatteredAccessDescription_Member_ANON_2, NULL); -PY_IMPL_REPR(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_GENERIC_IS_VALID(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_SEQ_FROMPY(ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(ScatteredAccessDescription_Member_ANON_2, componentName, componentName); - PY_IMPL_SEQ_INIT_ATTR(ScatteredAccessDescription_Member_ANON_2, variableSpecification, variableSpecification); - PY_IMPL_SEQ_INIT_ATTR(ScatteredAccessDescription_Member_ANON_2, alternateAccess, alternateAccess); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName, Identifier_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName, Identifier); +PY_IMPL_SEQ_OPT_GETATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName); +PY_IMPL_SEQ_OPT_SETATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification, VariableSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification, VariableSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification); +PY_IMPL_SEQ_SETATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess, AlternateAccess_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess, AlternateAccess); +PY_IMPL_SEQ_OPT_GETATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess); +PY_IMPL_SEQ_OPT_SETATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess); +PY_IMPL_CHECK_CONSTRAINTS(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); +PY_IMPL_ENCODE(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); +PY_IMPL_DECODE(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); +PY_IMPL_DEALLOC(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, *(asn_DEF_ScatteredAccessDescription.elements[0].type)); +PY_IMPL_SEQ_TOPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type); +PY_IMPL_DECODE_BER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, ber, ATS_BER); +PY_IMPL_DECODE_DER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, der, ATS_DER); +PY_IMPL_DECODE_CER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, cer, ATS_BER); +PY_IMPL_DECODE_XER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_ENCODE_XER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_ENCODE_JER(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_GENERIC_NEW(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, NULL); +PY_IMPL_REPR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_GENERIC_IS_VALID(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_SEQ_FROMPY(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, asn_DEF_ScatteredAccessDescription.elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName, componentName); + PY_IMPL_SEQ_INIT_ATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification, variableSpecification); + PY_IMPL_SEQ_INIT_ATTR(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess, alternateAccess); ); -PY_IMPL_SEQ_INIT(ScatteredAccessDescription_Member_ANON_2); -PY_IMPL_SEQ_OF_ITEM_TOPY(ScatteredAccessDescription, ScatteredAccessDescription_Member_ANON_2_t, PyAsnScatteredAccessDescription_Member_ANON_2_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(ScatteredAccessDescription, ScatteredAccessDescription_Member_ANON_2_t, PyAsnScatteredAccessDescription_Member_ANON_2_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(ScatteredAccessDescription, ScatteredAccessDescription_Member_ANON_2_t); -PY_IMPL_SEQ_OF_SETITEM(ScatteredAccessDescription, ScatteredAccessDescription_Member_ANON_2_t); -PY_IMPL_SEQ_OF_ADD(ScatteredAccessDescription, ScatteredAccessDescription_Member_ANON_2_t); +PY_IMPL_SEQ_INIT(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); +PY_IMPL_SEQ_OF_ITEM_TOPY(ScatteredAccessDescription, ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t, PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(ScatteredAccessDescription, ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t, PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(ScatteredAccessDescription, ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t); +PY_IMPL_SEQ_OF_SETITEM(ScatteredAccessDescription, ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t); +PY_IMPL_SEQ_OF_ADD(ScatteredAccessDescription, ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t); PY_IMPL_SEQ_OF_NEW(ScatteredAccessDescription); PY_IMPL_SEQ_OF_DEALLOC(ScatteredAccessDescription, asn_set_empty); PY_IMPL_SEQ_OF_INIT(ScatteredAccessDescription); @@ -80,10 +80,10 @@ PY_IMPL_SEQ_OF_CLEAR(ScatteredAccessDescription); PY_IMPL_SEQ_OF_EXTEND(ScatteredAccessDescription); /* class attributes definition */ -static PyGetSetDef PyAsnScatteredAccessDescription_Member_ANON_2_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(ScatteredAccessDescription_Member_ANON_2, componentName, componentName), - PY_IMPL_GETSET_ITEM_INTERNAL(ScatteredAccessDescription_Member_ANON_2, variableSpecification, variableSpecification), - PY_IMPL_GETSET_ITEM_INTERNAL(ScatteredAccessDescription_Member_ANON_2, alternateAccess, alternateAccess), +static PyGetSetDef PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, componentName, componentName), + PY_IMPL_GETSET_ITEM_INTERNAL(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, variableSpecification, variableSpecification), + PY_IMPL_GETSET_ITEM_INTERNAL(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, alternateAccess, alternateAccess), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnScatteredAccessDescription_getset[] = { @@ -96,20 +96,20 @@ static PySequenceMethods PyAsnScatteredAccessDescription_seq_methods = { }; /* class methods definition */ -static PyMethodDef PyAsnScatteredAccessDescription_Member_ANON_2_methods[] = { - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnScatteredAccessDescription_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_methods[] = { + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnScatteredAccessDescription_methods[] = { @@ -133,18 +133,18 @@ static PyMethodDef PyAsnScatteredAccessDescription_methods[] = { }; /* type definition */ -PyTypeObject PyAsnScatteredAccessDescription_Member_ANON_2_Type = { +PyTypeObject PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.ScatteredAccessDescription.Member_TYPE", - .tp_basicsize = sizeof(PyAsnScatteredAccessDescription_Member_ANON_2Object), + .tp_basicsize = sizeof(PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnScatteredAccessDescription_Member_ANON_2__new, - .tp_repr = (reprfunc)PyAsnScatteredAccessDescription_Member_ANON_2__repr, - .tp_dealloc = (destructor)PyAsnScatteredAccessDescription_Member_ANON_2__dealloc, - .tp_init = (initproc)PyAsnScatteredAccessDescription_Member_ANON_2__init, - .tp_getset = PyAsnScatteredAccessDescription_Member_ANON_2_getset, - .tp_methods = PyAsnScatteredAccessDescription_Member_ANON_2_methods, - .tp_doc = "ASN.1 anonymous type ScatteredAccessDescription__Member_TYPE part of ScatteredAccessDescription", + .tp_new = (newfunc)PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2__new, + .tp_repr = (reprfunc)PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2__repr, + .tp_dealloc = (destructor)PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2__dealloc, + .tp_init = (initproc)PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2__init, + .tp_getset = PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_getset, + .tp_methods = PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_methods, + .tp_doc = "ASN.1 anonymous type ScatteredAccessDescription__ScatteredAccessDescription_Member_TYPE part of ScatteredAccessDescription", }; PyTypeObject PyAsnScatteredAccessDescription_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -163,7 +163,7 @@ PyTypeObject PyAsnScatteredAccessDescription_Type = { /* module initializer */ int PyAsnScatteredAccessDescription_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnScatteredAccessDescription_Member_ANON_2_Type) < 0) return -1; + if (PyType_Ready(&PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnScatteredAccessDescription_Type) < 0) return -1; return 0; } @@ -172,7 +172,7 @@ void PyAsnScatteredAccessDescription_ModClear(PyObject *mod) { } int PyAsnScatteredAccessDescription_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(ScatteredAccessDescription, Member_TYPE, &PyAsnScatteredAccessDescription_Member_ANON_2_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(ScatteredAccessDescription, Member_TYPE, &PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_Type); PY_IMPL_MOD_ADD_OBJECT(mod, ScatteredAccessDescription); return 0; } diff --git a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.h b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.h index 6d91812d..814776d7 100644 --- a/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.h +++ b/src/icspacket/proto/mms/_mms/ScatteredAccessDescription_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -15,20 +15,22 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { #endif /* ScatteredAccessDescription */ -PyCompat_DEF_ANON_STRUCT(ScatteredAccessDescription_Member_ANON_2, ScatteredAccessDescription__Member); -PyCompat_DEF_TYPE(ScatteredAccessDescription_Member_ANON_2); +PyCompat_DEF_ANON_STRUCT(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2, ScatteredAccessDescription__ScatteredAccessDescription_Member); +PyCompat_DEF_TYPE(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2); PyCompat_DEF_STRUCT(ScatteredAccessDescription); PyCompat_DEF_TYPE(ScatteredAccessDescription); /* Type Converters */ -int PyAsnScatteredAccessDescription_Member_ANON_2_FromPython(PyObject *pObj, ScatteredAccessDescription_Member_ANON_2_t *pDst); -PyObject *PyAsnScatteredAccessDescription_Member_ANON_2_ToPython(ScatteredAccessDescription_Member_ANON_2_t *pSrc, PyObject *parent); +int PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_FromPython(PyObject *pObj, ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t *pDst); +PyObject *PyAsnScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_ToPython(ScatteredAccessDescription_ScatteredAccessDescription_Member_ANON_2_t *pSrc, PyObject *parent); int PyAsnScatteredAccessDescription_FromPython(PyObject *pObj, ScatteredAccessDescription_t *pDst); PyObject *PyAsnScatteredAccessDescription_ToPython(ScatteredAccessDescription_t *pSrc, PyObject *parent); diff --git a/src/icspacket/proto/mms/_mms/Select-Request.c b/src/icspacket/proto/mms/_mms/Select-Request.c index 45919cde..c6939a54 100644 --- a/src/icspacket/proto/mms/_mms/Select-Request.c +++ b/src/icspacket/proto/mms/_mms/Select-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_controlled_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlled __attribute__((weak, alias("asn_DEF_controlled_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlled_3; +static asn_TYPE_descriptor_t asn_DEF_controlled; +__attribute__((constructor)) static void asn_DEF_controlled_3_alias_init(void) { + asn_DEF_controlled = asn_DEF_controlled_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Select_Request__controlled_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_controlled_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_controlled_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_controlled_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_controlled_3, + asn_MBR_Select_Request__controlled_3, 1, /* Single element */ &asn_SPC_controlled_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Select-Request.h b/src/icspacket/proto/mms/_mms/Select-Request.h index da95088b..7dcb4666 100644 --- a/src/icspacket/proto/mms/_mms/Select-Request.h +++ b/src/icspacket/proto/mms/_mms/Select-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include @@ -21,7 +21,7 @@ extern "C" { /* Select-Request */ typedef struct Select_Request { - Identifier_t *controlling; /* OPTIONAL */ + Identifier_t *controlling; /* OPTIONAL */ struct Select_Request__controlled { A_SEQUENCE_OF(Identifier_t) list; diff --git a/src/icspacket/proto/mms/_mms/Select-Request_Py.c b/src/icspacket/proto/mms/_mms/Select-Request_Py.c index 709e4b09..0c0b23fc 100644 --- a/src/icspacket/proto/mms/_mms/Select-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Select-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Select-Request_Py.h b/src/icspacket/proto/mms/_mms/Select-Request_Py.h index 381f87aa..752325ea 100644 --- a/src/icspacket/proto/mms/_mms/Select-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Select-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/Select-Response.c b/src/icspacket/proto/mms/_mms/Select-Response.c index d2f2c270..5a577c63 100644 --- a/src/icspacket/proto/mms/_mms/Select-Response.c +++ b/src/icspacket/proto/mms/_mms/Select-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Select-Response.h b/src/icspacket/proto/mms/_mms/Select-Response.h index b1ec4136..338e101a 100644 --- a/src/icspacket/proto/mms/_mms/Select-Response.h +++ b/src/icspacket/proto/mms/_mms/Select-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Select-Response */ -typedef NULL_t Select_Response_t; +typedef NULL_t Select_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Select_Response; diff --git a/src/icspacket/proto/mms/_mms/Select-Response_Py.c b/src/icspacket/proto/mms/_mms/Select-Response_Py.c index 0e5c6fc9..e02994c0 100644 --- a/src/icspacket/proto/mms/_mms/Select-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Select-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Select-Response_Py.h b/src/icspacket/proto/mms/_mms/Select-Response_Py.h index 9af4d403..6e77f8eb 100644 --- a/src/icspacket/proto/mms/_mms/Select-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Select-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/SemaphoreEntry.c b/src/icspacket/proto/mms/_mms/SemaphoreEntry.c index 24340120..ca0dcad0 100644 --- a/src/icspacket/proto/mms/_mms/SemaphoreEntry.c +++ b/src/icspacket/proto/mms/_mms/SemaphoreEntry.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -114,7 +114,7 @@ asn_TYPE_member_t asn_MBR_SemaphoreEntry_1[] = { 0, 0, /* No default value */ "entryClass" }, - { ATF_NOFLAGS, 0, offsetof(struct SemaphoreEntry, applicationReference), + { ATF_POINTER, 0, offsetof(struct SemaphoreEntry, applicationReference), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ApplicationReference, diff --git a/src/icspacket/proto/mms/_mms/SemaphoreEntry.h b/src/icspacket/proto/mms/_mms/SemaphoreEntry.h index ee506435..1e57b0e4 100644 --- a/src/icspacket/proto/mms/_mms/SemaphoreEntry.h +++ b/src/icspacket/proto/mms/_mms/SemaphoreEntry.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,10 +12,9 @@ /* Including external dependencies */ #include #include -#include -#include -#include -#include +#include "Identifier.h" +#include "Priority.h" +#include "Unsigned32.h" #include #include @@ -29,16 +28,19 @@ typedef enum SemaphoreEntry__entryClass { SemaphoreEntry__entryClass_modifier = 1 } e_SemaphoreEntry__entryClass; +/* Forward declarations */ +struct ApplicationReference; + /* SemaphoreEntry */ typedef struct SemaphoreEntry { - OCTET_STRING_t entryID; - long entryClass; - ApplicationReference_t applicationReference; - Identifier_t *namedToken; /* OPTIONAL */ - Priority_t *priority; /* DEFAULT 64 */ - Unsigned32_t *remainingTimeOut; /* OPTIONAL */ - BOOLEAN_t *abortOnTimeOut; /* OPTIONAL */ - BOOLEAN_t *relinquishIfConnectionLost; /* DEFAULT TRUE */ + OCTET_STRING_t entryID; + long entryClass; + struct ApplicationReference *applicationReference; + Identifier_t *namedToken; /* OPTIONAL */ + Priority_t *priority; /* DEFAULT 64 */ + Unsigned32_t *remainingTimeOut; /* OPTIONAL */ + BOOLEAN_t *abortOnTimeOut; /* OPTIONAL */ + BOOLEAN_t *relinquishIfConnectionLost; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -53,5 +55,8 @@ extern asn_TYPE_member_t asn_MBR_SemaphoreEntry_1[8]; } #endif +/* Referred external types */ +#include "ApplicationReference.h" + #endif /* _SemaphoreEntry_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.c b/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.c index 58e70d3c..191ab771 100644 --- a/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.c +++ b/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -16,9 +16,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(SemaphoreEntry, entryClass, PyCompatEnum_FromObject(valu PY_IMPL_SEQ_ATTR_TOPY(SemaphoreEntry, entryClass, PyCompatEnum_AsObject(PyAsnEnumSemaphoreEntry_entryClass_Type, target, 0)); PY_IMPL_SEQ_GETATTR(SemaphoreEntry, entryClass); PY_IMPL_SEQ_SETATTR(SemaphoreEntry, entryClass); -PY_IMPL_SEQ_ATTR_FROMPY(SemaphoreEntry, applicationReference, PyAsnApplicationReference_FromPython(value, (ApplicationReference_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(SemaphoreEntry, applicationReference, ApplicationReference); -PY_IMPL_SEQ_GETATTR(SemaphoreEntry, applicationReference); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(SemaphoreEntry, applicationReference); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(SemaphoreEntry, applicationReference, ApplicationReference_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(SemaphoreEntry, applicationReference, PyAsnApplicationReference_FromPython(value, (ApplicationReference_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(SemaphoreEntry, applicationReference, ApplicationReference); +PY_IMPL_SEQ_AUTOVIV_GETATTR(SemaphoreEntry, applicationReference); PY_IMPL_SEQ_SETATTR(SemaphoreEntry, applicationReference); PY_IMPL_SEQ_ATTR_GENERIC_FREE(SemaphoreEntry, namedToken); PY_IMPL_SEQ_ATTR_GENERIC_NEW(SemaphoreEntry, namedToken, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.h b/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.h index d141f106..11ab424b 100644 --- a/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.h +++ b/src/icspacket/proto/mms/_mms/SemaphoreEntry_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ServiceError.c b/src/icspacket/proto/mms/_mms/ServiceError.c index 5e069711..0ac26e4b 100644 --- a/src/icspacket/proto/mms/_mms/ServiceError.c +++ b/src/icspacket/proto/mms/_mms/ServiceError.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -304,7 +304,29 @@ memb_file_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, } } -static asn_TYPE_member_t asn_MBR_errorClass_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_errorClass __attribute__((weak, alias("asn_DEF_errorClass_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_errorClass_2; +static asn_TYPE_descriptor_t asn_DEF_errorClass; +__attribute__((constructor)) static void asn_DEF_errorClass_2_alias_init(void) { + asn_DEF_errorClass = asn_DEF_errorClass_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_serviceSpecificInfo __attribute__((weak, alias("asn_DEF_serviceSpecificInfo_79"))); +#else +static asn_TYPE_descriptor_t asn_DEF_serviceSpecificInfo_79; +static asn_TYPE_descriptor_t asn_DEF_serviceSpecificInfo; +__attribute__((constructor)) static void asn_DEF_serviceSpecificInfo_79_alias_init(void) { + asn_DEF_serviceSpecificInfo = asn_DEF_serviceSpecificInfo_79; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ServiceError__errorClass_2[] = { { ATF_NOFLAGS, 0, offsetof(struct ServiceError__errorClass, choice.vmd_state), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -612,12 +634,12 @@ asn_TYPE_descriptor_t asn_DEF_errorClass_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_errorClass_2, + asn_MBR_ServiceError__errorClass_2, 13, /* Elements count */ &asn_SPC_errorClass_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_serviceSpecificInfo_79[] = { +static asn_TYPE_member_t asn_MBR_ServiceError__serviceSpecificInfo_79[] = { { ATF_NOFLAGS, 0, offsetof(struct ServiceError__serviceSpecificInfo, choice.obtainFile), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -818,7 +840,7 @@ static asn_TYPE_member_t asn_MBR_serviceSpecificInfo_79[] = { 0, 0, /* No default value */ "fileRename" }, - { ATF_NOFLAGS, 0, offsetof(struct ServiceError__serviceSpecificInfo, choice.additionalService), + { ATF_POINTER, 0, offsetof(struct ServiceError__serviceSpecificInfo, choice.additionalService), (ASN_TAG_CLASS_CONTEXT | (10 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_AdditionalService_Error, @@ -904,7 +926,7 @@ asn_TYPE_descriptor_t asn_DEF_serviceSpecificInfo_79 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_serviceSpecificInfo_79, + asn_MBR_ServiceError__serviceSpecificInfo_79, 12, /* Elements count */ &asn_SPC_serviceSpecificInfo_specs_79 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/ServiceError.h b/src/icspacket/proto/mms/_mms/ServiceError.h index b784112b..0cca5202 100644 --- a/src/icspacket/proto/mms/_mms/ServiceError.h +++ b/src/icspacket/proto/mms/_mms/ServiceError.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,18 +13,17 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "ObtainFile-Error.h" +#include "Start-Error.h" +#include "Stop-Error.h" +#include "Resume-Error.h" +#include "Reset-Error.h" +#include "DeleteVariableAccess-Error.h" +#include "DeleteNamedVariableList-Error.h" +#include "DeleteNamedType-Error.h" +#include "DefineEventEnrollment-Error.h" +#include "FileRename-Error.h" +#include "ChangeAccessControl-Error.h" #include #ifdef __cplusplus @@ -149,46 +148,49 @@ typedef enum ServiceError__serviceSpecificInfo_PR { ServiceError__serviceSpecificInfo_PR_changeAccessControl } ServiceError__serviceSpecificInfo_PR; +/* Forward declarations */ +struct AdditionalService_Error; + /* ServiceError */ typedef struct ServiceError { struct ServiceError__errorClass { ServiceError__errorClass_PR present; union ServiceError__errorClass_u { - long vmd_state; - long application_reference; - long definition; - long resource; - long service; - long service_preempt; - long time_resolution; - long access; - long initiate; - long conclude; - long cancel; - long file; - long others; + long vmd_state; + long application_reference; + long definition; + long resource; + long service; + long service_preempt; + long time_resolution; + long access; + long initiate; + long conclude; + long cancel; + long file; + long others; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } errorClass; - long *additionalCode; /* OPTIONAL */ - VisibleString_t *additionalDescription; /* OPTIONAL */ + long *additionalCode; /* OPTIONAL */ + VisibleString_t *additionalDescription; /* OPTIONAL */ struct ServiceError__serviceSpecificInfo { ServiceError__serviceSpecificInfo_PR present; union ServiceError__serviceSpecificInfo_u { - ObtainFile_Error_t obtainFile; - Start_Error_t start; - Stop_Error_t stop; - Resume_Error_t resume; - Reset_Error_t reset; - DeleteVariableAccess_Error_t deleteVariableAccess; - DeleteNamedVariableList_Error_t deleteNamedVariableList; - DeleteNamedType_Error_t deleteNamedType; - DefineEventEnrollment_Error_t defineEventEnrollment_Error; - FileRename_Error_t fileRename; - AdditionalService_Error_t additionalService; - ChangeAccessControl_Error_t changeAccessControl; + ObtainFile_Error_t obtainFile; + Start_Error_t start; + Stop_Error_t stop; + Resume_Error_t resume; + Reset_Error_t reset; + DeleteVariableAccess_Error_t deleteVariableAccess; + DeleteNamedVariableList_Error_t deleteNamedVariableList; + DeleteNamedType_Error_t deleteNamedType; + DefineEventEnrollment_Error_t defineEventEnrollment_Error; + FileRename_Error_t fileRename; + struct AdditionalService_Error *additionalService; + ChangeAccessControl_Error_t changeAccessControl; } choice; /* Context for parsing across buffer boundaries */ @@ -208,5 +210,8 @@ extern asn_TYPE_member_t asn_MBR_ServiceError_1[4]; } #endif +/* Referred external types */ +#include "AdditionalService-Error.h" + #endif /* _ServiceError_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/ServiceError_Py.c b/src/icspacket/proto/mms/_mms/ServiceError_Py.c index 5ce423e8..33d104d8 100644 --- a/src/icspacket/proto/mms/_mms/ServiceError_Py.c +++ b/src/icspacket/proto/mms/_mms/ServiceError_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -151,8 +151,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(ServiceError_serviceSpecificInfo_ANON_79, ServiceErro PY_IMPL_CHOICE_ATTR_TOPY(ServiceError_serviceSpecificInfo_ANON_79, fileRename, PyCompatAsnType_FromParent(&PyAsnFileRename_Error_Type, parent, (void *)&src->choice.fileRename)); PY_IMPL_CHOICE_GETATTR(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, fileRename, fileRename); PY_IMPL_CHOICE_GENERIC_SETATTR(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, fileRename, fileRename, *asn_DEF_ServiceError.elements[3].type); -PY_IMPL_CHOICE_ATTR_FROMPY(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, additionalService, additionalService,PyAsnAdditionalService_Error_FromPython(value, &dst->choice.additionalService)); -PY_IMPL_CHOICE_ATTR_TOPY(ServiceError_serviceSpecificInfo_ANON_79, additionalService, PyCompatAsnType_FromParent(&PyAsnAdditionalService_Error_Type, parent, (void *)&src->choice.additionalService)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, additionalService, additionalService, AdditionalService_Error,PyAsnAdditionalService_Error_FromPython(value, dst->choice.additionalService)); +PY_IMPL_CHOICE_ATTR_TOPY(ServiceError_serviceSpecificInfo_ANON_79, additionalService, PyCompatAsnType_FromParent(&PyAsnAdditionalService_Error_Type, parent, (void *)src->choice.additionalService)); PY_IMPL_CHOICE_GETATTR(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, additionalService, additionalService); PY_IMPL_CHOICE_GENERIC_SETATTR(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, additionalService, additionalService, *asn_DEF_ServiceError.elements[3].type); PY_IMPL_CHOICE_ATTR_FROMPY(ServiceError_serviceSpecificInfo_ANON_79, ServiceError__serviceSpecificInfo, changeAccessControl, changeAccessControl,PyAsnChangeAccessControl_Error_FromPython(value, &dst->choice.changeAccessControl)); diff --git a/src/icspacket/proto/mms/_mms/ServiceError_Py.h b/src/icspacket/proto/mms/_mms/ServiceError_Py.h index 01fcb7df..8e31d8be 100644 --- a/src/icspacket/proto/mms/_mms/ServiceError_Py.h +++ b/src/icspacket/proto/mms/_mms/ServiceError_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #include #include #include @@ -24,6 +26,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/ServiceSupportOptions.c b/src/icspacket/proto/mms/_mms/ServiceSupportOptions.c index 0310657c..d89cc6d2 100644 --- a/src/icspacket/proto/mms/_mms/ServiceSupportOptions.c +++ b/src/icspacket/proto/mms/_mms/ServiceSupportOptions.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_ServiceSupportOptions_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_ServiceSupportOptions_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_ServiceSupportOptions_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/ServiceSupportOptions.h b/src/icspacket/proto/mms/_mms/ServiceSupportOptions.h index e25f5fa5..e67d13b5 100644 --- a/src/icspacket/proto/mms/_mms/ServiceSupportOptions.h +++ b/src/icspacket/proto/mms/_mms/ServiceSupportOptions.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -114,9 +114,10 @@ typedef enum ServiceSupportOptions { } e_ServiceSupportOptions; /* ServiceSupportOptions */ -typedef BIT_STRING_t ServiceSupportOptions_t; +typedef BIT_STRING_t ServiceSupportOptions_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_ServiceSupportOptions_constr_1; extern asn_TYPE_descriptor_t asn_DEF_ServiceSupportOptions; asn_struct_free_f ServiceSupportOptions_free; asn_struct_print_f ServiceSupportOptions_print; diff --git a/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.c b/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.c index d824fdb7..2c7aa0d3 100644 --- a/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.c +++ b/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.h b/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.h index 4f5f8c5b..114cded3 100644 --- a/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.h +++ b/src/icspacket/proto/mms/_mms/ServiceSupportOptions_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Severity.c b/src/icspacket/proto/mms/_mms/Severity.c index 9f9f2837..af2d6543 100644 --- a/src/icspacket/proto/mms/_mms/Severity.c +++ b/src/icspacket/proto/mms/_mms/Severity.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Severity.h b/src/icspacket/proto/mms/_mms/Severity.h index 88fa6339..7ab0ffa0 100644 --- a/src/icspacket/proto/mms/_mms/Severity.h +++ b/src/icspacket/proto/mms/_mms/Severity.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Severity */ -typedef long Severity_t; +typedef long Severity_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Severity; diff --git a/src/icspacket/proto/mms/_mms/Severity_Py.c b/src/icspacket/proto/mms/_mms/Severity_Py.c index a3691d96..ee260107 100644 --- a/src/icspacket/proto/mms/_mms/Severity_Py.c +++ b/src/icspacket/proto/mms/_mms/Severity_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Severity_Py.h b/src/icspacket/proto/mms/_mms/Severity_Py.h index d0304c84..3e483fdb 100644 --- a/src/icspacket/proto/mms/_mms/Severity_Py.h +++ b/src/icspacket/proto/mms/_mms/Severity_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Error.c b/src/icspacket/proto/mms/_mms/Start-Error.c index b0b67080..0115f853 100644 --- a/src/icspacket/proto/mms/_mms/Start-Error.c +++ b/src/icspacket/proto/mms/_mms/Start-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Error.h b/src/icspacket/proto/mms/_mms/Start-Error.h index bfc6a159..f7b8c87e 100644 --- a/src/icspacket/proto/mms/_mms/Start-Error.h +++ b/src/icspacket/proto/mms/_mms/Start-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ProgramInvocationState.h" #ifdef __cplusplus extern "C" { #endif /* Start-Error */ -typedef ProgramInvocationState_t Start_Error_t; +typedef ProgramInvocationState_t Start_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Start_Error; diff --git a/src/icspacket/proto/mms/_mms/Start-Error_Py.c b/src/icspacket/proto/mms/_mms/Start-Error_Py.c index 932453da..167b7631 100644 --- a/src/icspacket/proto/mms/_mms/Start-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/Start-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Error_Py.h b/src/icspacket/proto/mms/_mms/Start-Error_Py.h index a982fd9a..15eb77aa 100644 --- a/src/icspacket/proto/mms/_mms/Start-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/Start-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Request.c b/src/icspacket/proto/mms/_mms/Start-Request.c index fe50e42e..f4d03fcb 100644 --- a/src/icspacket/proto/mms/_mms/Start-Request.c +++ b/src/icspacket/proto/mms/_mms/Start-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_executionArgument_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_executionArgument __attribute__((weak, alias("asn_DEF_executionArgument_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_executionArgument_3; +static asn_TYPE_descriptor_t asn_DEF_executionArgument; +__attribute__((constructor)) static void asn_DEF_executionArgument_3_alias_init(void) { + asn_DEF_executionArgument = asn_DEF_executionArgument_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Start_Request__executionArgument_3[] = { { ATF_NOFLAGS, 0, offsetof(struct Start_Request__executionArgument, choice.simpleString), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_executionArgument_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_executionArgument_3, + asn_MBR_Start_Request__executionArgument_3, 3, /* Elements count */ &asn_SPC_executionArgument_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/Start-Request.h b/src/icspacket/proto/mms/_mms/Start-Request.h index f63cb8f4..686a34b2 100644 --- a/src/icspacket/proto/mms/_mms/Start-Request.h +++ b/src/icspacket/proto/mms/_mms/Start-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,10 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "Identifier.h" +#include "MMSString.h" +#include "EXTERNAL.h" +#include "EMBEDDED-PDV.h" #include #include @@ -31,13 +31,13 @@ typedef enum Start_Request__executionArgument_PR { /* Start-Request */ typedef struct Start_Request { - Identifier_t programInvocationName; + Identifier_t programInvocationName; struct Start_Request__executionArgument { Start_Request__executionArgument_PR present; union Start_Request__executionArgument_u { - MMSString_t simpleString; - EXTERNAL_t encodedString; - EMBEDDED_PDV_t embeddedString; + MMSString_t simpleString; + EXTERNAL_t encodedString; + EMBEDDED_PDV_t embeddedString; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/Start-Request_Py.c b/src/icspacket/proto/mms/_mms/Start-Request_Py.c index 083cf228..f2678aba 100644 --- a/src/icspacket/proto/mms/_mms/Start-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Start-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Request_Py.h b/src/icspacket/proto/mms/_mms/Start-Request_Py.h index b5e84ad4..eb71602d 100644 --- a/src/icspacket/proto/mms/_mms/Start-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Start-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Start-Response.c b/src/icspacket/proto/mms/_mms/Start-Response.c index ab2fe0b3..c72d44e5 100644 --- a/src/icspacket/proto/mms/_mms/Start-Response.c +++ b/src/icspacket/proto/mms/_mms/Start-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Response.h b/src/icspacket/proto/mms/_mms/Start-Response.h index 0034cd01..ce20e6ea 100644 --- a/src/icspacket/proto/mms/_mms/Start-Response.h +++ b/src/icspacket/proto/mms/_mms/Start-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Start-Response */ -typedef NULL_t Start_Response_t; +typedef NULL_t Start_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Start_Response; diff --git a/src/icspacket/proto/mms/_mms/Start-Response_Py.c b/src/icspacket/proto/mms/_mms/Start-Response_Py.c index cd463720..224f746d 100644 --- a/src/icspacket/proto/mms/_mms/Start-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Start-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Start-Response_Py.h b/src/icspacket/proto/mms/_mms/Start-Response_Py.h index cbd9decf..211458dc 100644 --- a/src/icspacket/proto/mms/_mms/Start-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Start-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartCount.c b/src/icspacket/proto/mms/_mms/StartCount.c index 5e65f12e..5300e65c 100644 --- a/src/icspacket/proto/mms/_mms/StartCount.c +++ b/src/icspacket/proto/mms/_mms/StartCount.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartCount.h b/src/icspacket/proto/mms/_mms/StartCount.h index 69a19503..879c9d42 100644 --- a/src/icspacket/proto/mms/_mms/StartCount.h +++ b/src/icspacket/proto/mms/_mms/StartCount.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,9 +30,9 @@ typedef enum StartCount_PR { typedef struct StartCount { StartCount_PR present; union StartCount_u { - NULL_t noLimit; - long cycleCount; - long stepCount; + NULL_t noLimit; + long cycleCount; + long stepCount; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/StartCount_Py.c b/src/icspacket/proto/mms/_mms/StartCount_Py.c index 23c5b819..2c9f6712 100644 --- a/src/icspacket/proto/mms/_mms/StartCount_Py.c +++ b/src/icspacket/proto/mms/_mms/StartCount_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartCount_Py.h b/src/icspacket/proto/mms/_mms/StartCount_Py.h index c60e4327..66e9b094 100644 --- a/src/icspacket/proto/mms/_mms/StartCount_Py.h +++ b/src/icspacket/proto/mms/_mms/StartCount_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Error.c b/src/icspacket/proto/mms/_mms/StartUnitControl-Error.c index f2089468..ca9fc171 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Error.c +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Error.h b/src/icspacket/proto/mms/_mms/StartUnitControl-Error.h index 5823c783..b8a0f354 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Error.h +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" +#include "ProgramInvocationState.h" #include #ifdef __cplusplus @@ -20,8 +20,8 @@ extern "C" { /* StartUnitControl-Error */ typedef struct StartUnitControl_Error { - Identifier_t programInvocationName; - ProgramInvocationState_t programInvocationState; + Identifier_t programInvocationName; + ProgramInvocationState_t programInvocationState; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.c b/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.c index d906fd3d..8231e7e0 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.h b/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.h index f28e06b2..c59da1d6 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Request.c b/src/icspacket/proto/mms/_mms/StartUnitControl-Request.c index e777668d..697a08c9 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Request.c +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_executionArgument_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_executionArgument __attribute__((weak, alias("asn_DEF_executionArgument_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_executionArgument_3; +static asn_TYPE_descriptor_t asn_DEF_executionArgument; +__attribute__((constructor)) static void asn_DEF_executionArgument_3_alias_init(void) { + asn_DEF_executionArgument = asn_DEF_executionArgument_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_StartUnitControl_Request__executionArgument_3[] = { { ATF_NOFLAGS, 0, offsetof(struct StartUnitControl_Request__executionArgument, choice.simpleString), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_executionArgument_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_executionArgument_3, + asn_MBR_StartUnitControl_Request__executionArgument_3, 3, /* Elements count */ &asn_SPC_executionArgument_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Request.h b/src/icspacket/proto/mms/_mms/StartUnitControl-Request.h index ed32d33c..1dae147f 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Request.h +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,10 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "Identifier.h" +#include "MMSString.h" +#include "EXTERNAL.h" +#include "EMBEDDED-PDV.h" #include #include @@ -31,13 +31,13 @@ typedef enum StartUnitControl_Request__executionArgument_PR { /* StartUnitControl-Request */ typedef struct StartUnitControl_Request { - Identifier_t unitControlName; + Identifier_t unitControlName; struct StartUnitControl_Request__executionArgument { StartUnitControl_Request__executionArgument_PR present; union StartUnitControl_Request__executionArgument_u { - MMSString_t simpleString; - EXTERNAL_t encodedString; - EMBEDDED_PDV_t enmbeddedString; + MMSString_t simpleString; + EXTERNAL_t encodedString; + EMBEDDED_PDV_t enmbeddedString; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.c b/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.c index e4144779..6bad2333 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.h b/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.h index 1263d2df..20fdb6db 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Response.c b/src/icspacket/proto/mms/_mms/StartUnitControl-Response.c index e5afc3fd..9a62880f 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Response.c +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Response.h b/src/icspacket/proto/mms/_mms/StartUnitControl-Response.h index 1f9a5955..1f817967 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Response.h +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* StartUnitControl-Response */ -typedef NULL_t StartUnitControl_Response_t; +typedef NULL_t StartUnitControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_StartUnitControl_Response; diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.c b/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.c index 03fb0e23..d0ca42bc 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.h b/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.h index afac04de..02128695 100644 --- a/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/StartUnitControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Status-Request.c b/src/icspacket/proto/mms/_mms/Status-Request.c index 4d6dbadd..ca733426 100644 --- a/src/icspacket/proto/mms/_mms/Status-Request.c +++ b/src/icspacket/proto/mms/_mms/Status-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Status-Request.h b/src/icspacket/proto/mms/_mms/Status-Request.h index dd98a2d8..1aae73cb 100644 --- a/src/icspacket/proto/mms/_mms/Status-Request.h +++ b/src/icspacket/proto/mms/_mms/Status-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Status-Request */ -typedef BOOLEAN_t Status_Request_t; +typedef BOOLEAN_t Status_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Status_Request; diff --git a/src/icspacket/proto/mms/_mms/Status-Request_Py.c b/src/icspacket/proto/mms/_mms/Status-Request_Py.c index 4ccda00e..e86f0029 100644 --- a/src/icspacket/proto/mms/_mms/Status-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Status-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Status-Request_Py.h b/src/icspacket/proto/mms/_mms/Status-Request_Py.h index d958dce3..e2e5e65f 100644 --- a/src/icspacket/proto/mms/_mms/Status-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Status-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Status-Response.c b/src/icspacket/proto/mms/_mms/Status-Response.c index 93402e52..dd65c901 100644 --- a/src/icspacket/proto/mms/_mms/Status-Response.c +++ b/src/icspacket/proto/mms/_mms/Status-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Status-Response.h b/src/icspacket/proto/mms/_mms/Status-Response.h index bb074859..99eb394f 100644 --- a/src/icspacket/proto/mms/_mms/Status-Response.h +++ b/src/icspacket/proto/mms/_mms/Status-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "StatusResponse.h" #ifdef __cplusplus extern "C" { #endif /* Status-Response */ -typedef StatusResponse_t Status_Response_t; +typedef StatusResponse_t Status_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Status_Response; diff --git a/src/icspacket/proto/mms/_mms/Status-Response_Py.c b/src/icspacket/proto/mms/_mms/Status-Response_Py.c index 20c6c96b..c8429aa6 100644 --- a/src/icspacket/proto/mms/_mms/Status-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Status-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Status-Response_Py.h b/src/icspacket/proto/mms/_mms/Status-Response_Py.h index 4b70fcff..976af076 100644 --- a/src/icspacket/proto/mms/_mms/Status-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Status-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StatusResponse.c b/src/icspacket/proto/mms/_mms/StatusResponse.c index b128ebde..4a2e9cb0 100644 --- a/src/icspacket/proto/mms/_mms/StatusResponse.c +++ b/src/icspacket/proto/mms/_mms/StatusResponse.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -87,7 +87,9 @@ memb_localDetail_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, #if !defined(ASN_DISABLE_JER_SUPPORT) static asn_jer_constraints_t asn_JER_memb_localDetail_constr_12 CC_NOTUSED = { - -1}; + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_StatusResponse_1[] = { { ATF_NOFLAGS, 0, offsetof(struct StatusResponse, vmdLogicalStatus), diff --git a/src/icspacket/proto/mms/_mms/StatusResponse.h b/src/icspacket/proto/mms/_mms/StatusResponse.h index ebc15d07..8180bba8 100644 --- a/src/icspacket/proto/mms/_mms/StatusResponse.h +++ b/src/icspacket/proto/mms/_mms/StatusResponse.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -34,9 +34,9 @@ typedef enum StatusResponse__vmdPhysicalStatus { /* StatusResponse */ typedef struct StatusResponse { - long vmdLogicalStatus; - long vmdPhysicalStatus; - BIT_STRING_t *localDetail; /* OPTIONAL */ + long vmdLogicalStatus; + long vmdPhysicalStatus; + BIT_STRING_t *localDetail; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/StatusResponse_Py.c b/src/icspacket/proto/mms/_mms/StatusResponse_Py.c index fcf6e1ce..69fd681b 100644 --- a/src/icspacket/proto/mms/_mms/StatusResponse_Py.c +++ b/src/icspacket/proto/mms/_mms/StatusResponse_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StatusResponse_Py.h b/src/icspacket/proto/mms/_mms/StatusResponse_Py.h index 616d2ff2..6e16a38c 100644 --- a/src/icspacket/proto/mms/_mms/StatusResponse_Py.h +++ b/src/icspacket/proto/mms/_mms/StatusResponse_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Error.c b/src/icspacket/proto/mms/_mms/Stop-Error.c index 619c90de..64930f0a 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Error.c +++ b/src/icspacket/proto/mms/_mms/Stop-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Error.h b/src/icspacket/proto/mms/_mms/Stop-Error.h index f4aa9912..0002d8de 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Error.h +++ b/src/icspacket/proto/mms/_mms/Stop-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "ProgramInvocationState.h" #ifdef __cplusplus extern "C" { #endif /* Stop-Error */ -typedef ProgramInvocationState_t Stop_Error_t; +typedef ProgramInvocationState_t Stop_Error_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Stop_Error; diff --git a/src/icspacket/proto/mms/_mms/Stop-Error_Py.c b/src/icspacket/proto/mms/_mms/Stop-Error_Py.c index fd6fd61b..1a033f7a 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/Stop-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Error_Py.h b/src/icspacket/proto/mms/_mms/Stop-Error_Py.h index 6ad32605..1be9a13e 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/Stop-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Request.c b/src/icspacket/proto/mms/_mms/Stop-Request.c index 67a4a9fe..7e6b6047 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Request.c +++ b/src/icspacket/proto/mms/_mms/Stop-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Request.h b/src/icspacket/proto/mms/_mms/Stop-Request.h index 74e3912c..23b7fa6b 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Request.h +++ b/src/icspacket/proto/mms/_mms/Stop-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,7 +19,7 @@ extern "C" { /* Stop-Request */ typedef struct Stop_Request { - Identifier_t programInvocationName; + Identifier_t programInvocationName; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Stop-Request_Py.c b/src/icspacket/proto/mms/_mms/Stop-Request_Py.c index c2b6c520..e8b745fd 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Stop-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Request_Py.h b/src/icspacket/proto/mms/_mms/Stop-Request_Py.h index 1a3c138f..8bf7e7ad 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Stop-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Response.c b/src/icspacket/proto/mms/_mms/Stop-Response.c index 7179f5f1..3942df29 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Response.c +++ b/src/icspacket/proto/mms/_mms/Stop-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Response.h b/src/icspacket/proto/mms/_mms/Stop-Response.h index 62a3292d..8df450d5 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Response.h +++ b/src/icspacket/proto/mms/_mms/Stop-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Stop-Response */ -typedef NULL_t Stop_Response_t; +typedef NULL_t Stop_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Stop_Response; diff --git a/src/icspacket/proto/mms/_mms/Stop-Response_Py.c b/src/icspacket/proto/mms/_mms/Stop-Response_Py.c index e11c87e3..2436a78b 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Stop-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Stop-Response_Py.h b/src/icspacket/proto/mms/_mms/Stop-Response_Py.h index 92f7d718..21c3c73d 100644 --- a/src/icspacket/proto/mms/_mms/Stop-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Stop-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Error.c b/src/icspacket/proto/mms/_mms/StopUnitControl-Error.c index 3a4f8e72..d6da319c 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Error.c +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Error.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Error.h b/src/icspacket/proto/mms/_mms/StopUnitControl-Error.h index 297b3fc0..6ab8581f 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Error.h +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Error.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" +#include "ProgramInvocationState.h" #include #ifdef __cplusplus @@ -20,8 +20,8 @@ extern "C" { /* StopUnitControl-Error */ typedef struct StopUnitControl_Error { - Identifier_t programInvocationName; - ProgramInvocationState_t programInvocationState; + Identifier_t programInvocationName; + ProgramInvocationState_t programInvocationState; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.c b/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.c index 447f9503..8c8f8508 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.c +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.h b/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.h index c1e57bde..612147e8 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.h +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Error_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Request.c b/src/icspacket/proto/mms/_mms/StopUnitControl-Request.c index 7e37d01f..849e4bb2 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Request.c +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Request.h b/src/icspacket/proto/mms/_mms/StopUnitControl-Request.h index 85ef393f..850d6c5e 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Request.h +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* StopUnitControl-Request */ -typedef Identifier_t StopUnitControl_Request_t; +typedef Identifier_t StopUnitControl_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_StopUnitControl_Request; diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.c b/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.c index 8ef73113..2eb5a0b1 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.h b/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.h index daefabda..d1ae3ccb 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Response.c b/src/icspacket/proto/mms/_mms/StopUnitControl-Response.c index 29ac2487..4a1a2874 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Response.c +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Response.h b/src/icspacket/proto/mms/_mms/StopUnitControl-Response.h index eb2e3257..ade26f22 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Response.h +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* StopUnitControl-Response */ -typedef NULL_t StopUnitControl_Response_t; +typedef NULL_t StopUnitControl_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_StopUnitControl_Response; diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.c b/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.c index 22a57caf..5c47304b 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.h b/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.h index 922a6c2a..95364b4f 100644 --- a/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/StopUnitControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.c b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.c index 8b37727e..e6437472 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.c +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_StoreDomainContent_Request_1[] = { 0, 0, /* No default value */ "domainName" }, - { ATF_NOFLAGS, 0, offsetof(struct StoreDomainContent_Request, fileName), + { ATF_POINTER, 0, offsetof(struct StoreDomainContent_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.h b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.h index f645b3a9..a1465b4a 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.h +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,13 +18,14 @@ extern "C" { #endif /* Forward declarations */ +struct FileName; struct ApplicationReference; /* StoreDomainContent-Request */ typedef struct StoreDomainContent_Request { - Identifier_t domainName; - FileName_t fileName; - struct ApplicationReference *thirdParty; /* OPTIONAL */ + Identifier_t domainName; + struct FileName *fileName; + struct ApplicationReference *thirdParty; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,8 @@ extern asn_TYPE_member_t asn_MBR_StoreDomainContent_Request_1[3]; #endif /* Referred external types */ -#include +#include "FileName.h" +#include "ApplicationReference.h" #endif /* _StoreDomainContent_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.c b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.c index ecf54ed2..ff9df1b7 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(StoreDomainContent_Request, domainName, PyAsnIdentifier_ PY_IMPL_SEQ_REF_ATTR_TOPY(StoreDomainContent_Request, domainName, Identifier); PY_IMPL_SEQ_GETATTR(StoreDomainContent_Request, domainName); PY_IMPL_SEQ_SETATTR(StoreDomainContent_Request, domainName); -PY_IMPL_SEQ_ATTR_FROMPY(StoreDomainContent_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(StoreDomainContent_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(StoreDomainContent_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(StoreDomainContent_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(StoreDomainContent_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(StoreDomainContent_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(StoreDomainContent_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(StoreDomainContent_Request, fileName); PY_IMPL_SEQ_SETATTR(StoreDomainContent_Request, fileName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(StoreDomainContent_Request, thirdParty); PY_IMPL_SEQ_ATTR_GENERIC_NEW(StoreDomainContent_Request, thirdParty, ApplicationReference_t); diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.h b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.h index f645cd68..6e19d8d6 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.c b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.c index 6fa27f2a..1bae2c14 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.c +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.h b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.h index f50d94a7..66519020 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.h +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* StoreDomainContent-Response */ -typedef NULL_t StoreDomainContent_Response_t; +typedef NULL_t StoreDomainContent_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_StoreDomainContent_Response; diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.c b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.c index 05e0766b..758da8a5 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.h b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.h index 81e77db7..da4d82b8 100644 --- a/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/StoreDomainContent-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.c b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.c index 31bbaa36..1a92f71d 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.c +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_StoreUnitControlToFile_Request_1[] = { 0, 0, /* No default value */ "unitControlName" }, - { ATF_NOFLAGS, 0, offsetof(struct StoreUnitControlToFile_Request, fileName), + { ATF_POINTER, 0, offsetof(struct StoreUnitControlToFile_Request, fileName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_FileName, diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.h b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.h index f6d77cb5..a2aae0e8 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.h +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -19,13 +18,14 @@ extern "C" { #endif /* Forward declarations */ +struct FileName; struct ApplicationReference; /* StoreUnitControlToFile-Request */ typedef struct StoreUnitControlToFile_Request { - Identifier_t unitControlName; - FileName_t fileName; - struct ApplicationReference *thirdParty; /* OPTIONAL */ + Identifier_t unitControlName; + struct FileName *fileName; + struct ApplicationReference *thirdParty; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,7 +41,8 @@ extern asn_TYPE_member_t asn_MBR_StoreUnitControlToFile_Request_1[3]; #endif /* Referred external types */ -#include +#include "FileName.h" +#include "ApplicationReference.h" #endif /* _StoreUnitControlToFile_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.c b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.c index 86ee458c..b0f423a7 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(StoreUnitControlToFile_Request, unitControlName, PyAsnId PY_IMPL_SEQ_REF_ATTR_TOPY(StoreUnitControlToFile_Request, unitControlName, Identifier); PY_IMPL_SEQ_GETATTR(StoreUnitControlToFile_Request, unitControlName); PY_IMPL_SEQ_SETATTR(StoreUnitControlToFile_Request, unitControlName); -PY_IMPL_SEQ_ATTR_FROMPY(StoreUnitControlToFile_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(StoreUnitControlToFile_Request, fileName, FileName); -PY_IMPL_SEQ_GETATTR(StoreUnitControlToFile_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(StoreUnitControlToFile_Request, fileName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(StoreUnitControlToFile_Request, fileName, FileName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(StoreUnitControlToFile_Request, fileName, PyAsnFileName_FromPython(value, (FileName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(StoreUnitControlToFile_Request, fileName, FileName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(StoreUnitControlToFile_Request, fileName); PY_IMPL_SEQ_SETATTR(StoreUnitControlToFile_Request, fileName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(StoreUnitControlToFile_Request, thirdParty); PY_IMPL_SEQ_ATTR_GENERIC_NEW(StoreUnitControlToFile_Request, thirdParty, ApplicationReference_t); diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.h b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.h index 2a336d80..dedd19ec 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.c b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.c index c8c78f8d..e45c063b 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.c +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.h b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.h index 6bf10388..024fecd2 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.h +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* StoreUnitControlToFile-Response */ -typedef NULL_t StoreUnitControlToFile_Response_t; +typedef NULL_t StoreUnitControlToFile_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_StoreUnitControlToFile_Response; diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.c b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.c index 71c92691..da97f246 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.h b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.h index 6aa71c5f..bd1158a5 100644 --- a/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/StoreUnitControlToFile-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Request.c b/src/icspacket/proto/mms/_mms/TakeControl-Request.c index d26b4cd8..fd767aa0 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Request.c +++ b/src/icspacket/proto/mms/_mms/TakeControl-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -49,7 +49,7 @@ static int asn_DFL_8_set_1(void **sptr) { return 0; } asn_TYPE_member_t asn_MBR_TakeControl_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TakeControl_Request, semaphoreName), + { ATF_POINTER, 0, offsetof(struct TakeControl_Request, semaphoreName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Request.h b/src/icspacket/proto/mms/_mms/TakeControl-Request.h index 3cdcd0f6..8d8c5c8b 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Request.h +++ b/src/icspacket/proto/mms/_mms/TakeControl-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,9 @@ #include /* Including external dependencies */ -#include -#include -#include -#include +#include "Identifier.h" +#include "Priority.h" +#include "Unsigned32.h" #include #include @@ -22,18 +21,19 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct ApplicationReference; /* TakeControl-Request */ typedef struct TakeControl_Request { - ObjectName_t semaphoreName; - Identifier_t *namedToken; /* OPTIONAL */ - Priority_t *priority; /* DEFAULT 64 */ - Unsigned32_t *acceptableDelay; /* OPTIONAL */ - Unsigned32_t *controlTimeOut; /* OPTIONAL */ - BOOLEAN_t *abortOnTimeOut; /* OPTIONAL */ - BOOLEAN_t *relinquishIfConnectionLost; /* DEFAULT TRUE */ - struct ApplicationReference *applicationToPreempt; /* OPTIONAL */ + struct ObjectName *semaphoreName; + Identifier_t *namedToken; /* OPTIONAL */ + Priority_t *priority; /* DEFAULT 64 */ + Unsigned32_t *acceptableDelay; /* OPTIONAL */ + Unsigned32_t *controlTimeOut; /* OPTIONAL */ + BOOLEAN_t *abortOnTimeOut; /* OPTIONAL */ + BOOLEAN_t *relinquishIfConnectionLost; /* DEFAULT TRUE */ + struct ApplicationReference *applicationToPreempt; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -49,7 +49,8 @@ extern asn_TYPE_member_t asn_MBR_TakeControl_Request_1[8]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "ApplicationReference.h" #endif /* _TakeControl_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.c b/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.c index e6765738..dfba4047 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(TakeControl_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(TakeControl_Request, semaphoreName, ObjectName); -PY_IMPL_SEQ_GETATTR(TakeControl_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(TakeControl_Request, semaphoreName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(TakeControl_Request, semaphoreName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TakeControl_Request, semaphoreName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TakeControl_Request, semaphoreName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(TakeControl_Request, semaphoreName); PY_IMPL_SEQ_SETATTR(TakeControl_Request, semaphoreName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(TakeControl_Request, namedToken); PY_IMPL_SEQ_ATTR_GENERIC_NEW(TakeControl_Request, namedToken, Identifier_t); diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.h b/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.h index 0e0ca818..53558ffa 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/TakeControl-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -16,6 +16,7 @@ #include #include #include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Response.c b/src/icspacket/proto/mms/_mms/TakeControl-Response.c index 7f2a0712..90f01a07 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Response.c +++ b/src/icspacket/proto/mms/_mms/TakeControl-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Response.h b/src/icspacket/proto/mms/_mms/TakeControl-Response.h index 8f3bb5ab..a1a3277c 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Response.h +++ b/src/icspacket/proto/mms/_mms/TakeControl-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -29,8 +29,8 @@ typedef enum TakeControl_Response_PR { typedef struct TakeControl_Response { TakeControl_Response_PR present; union TakeControl_Response_u { - NULL_t noResult; - Identifier_t namedToken; + NULL_t noResult; + Identifier_t namedToken; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.c b/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.c index 5fd012d3..d95e33ab 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.h b/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.h index ab746264..67d5a15a 100644 --- a/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/TakeControl-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.c b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.c index aa85c7a2..1466df52 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.c +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.h b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.h index 487d44d4..7715c9ad 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.h +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #ifdef __cplusplus @@ -22,8 +22,8 @@ struct ServiceError; /* TerminateDownloadSequence-Request */ typedef struct TerminateDownloadSequence_Request { - Identifier_t domainName; - struct ServiceError *discard; /* OPTIONAL */ + Identifier_t domainName; + struct ServiceError *discard; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -39,7 +39,7 @@ extern asn_TYPE_member_t asn_MBR_TerminateDownloadSequence_Request_1[2]; #endif /* Referred external types */ -#include +#include "ServiceError.h" #endif /* _TerminateDownloadSequence_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.c b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.c index 73f53ecd..4fe44feb 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.h b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.h index 5f8978b6..33475609 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.c b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.c index 993721a4..b4fadf1b 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.c +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.h b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.h index af423491..6ad19c93 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.h +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* TerminateDownloadSequence-Response */ -typedef NULL_t TerminateDownloadSequence_Response_t; +typedef NULL_t TerminateDownloadSequence_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_TerminateDownloadSequence_Response; diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.c b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.c index 2d190f72..a88f3e75 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.h b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.h index c5f5d193..85452b9d 100644 --- a/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/TerminateDownloadSequence-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.c b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.c index a0de313f..b5b349f5 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.c +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.h b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.h index 3fb5db77..1f9ebb03 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.h +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Integer32.h" #ifdef __cplusplus extern "C" { #endif /* TerminateUploadSequence-Request */ -typedef Integer32_t TerminateUploadSequence_Request_t; +typedef Integer32_t TerminateUploadSequence_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_TerminateUploadSequence_Request; diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.c b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.c index f3d896d4..c122ca76 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.h b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.h index f43143b5..515124ba 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.c b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.c index 000955c8..9acfe1bf 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.c +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.h b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.h index bf50af6b..cb78d065 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.h +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* TerminateUploadSequence-Response */ -typedef NULL_t TerminateUploadSequence_Response_t; +typedef NULL_t TerminateUploadSequence_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_TerminateUploadSequence_Response; diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.c b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.c index a62025d7..ed3128ab 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.h b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.h index c4d62efb..96837773 100644 --- a/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/TerminateUploadSequence-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TimeOfDay.c b/src/icspacket/proto/mms/_mms/TimeOfDay.c index 06349276..0f65734e 100644 --- a/src/icspacket/proto/mms/_mms/TimeOfDay.c +++ b/src/icspacket/proto/mms/_mms/TimeOfDay.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TimeOfDay.h b/src/icspacket/proto/mms/_mms/TimeOfDay.h index d81556c5..6b1c0ee4 100644 --- a/src/icspacket/proto/mms/_mms/TimeOfDay.h +++ b/src/icspacket/proto/mms/_mms/TimeOfDay.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* TimeOfDay */ -typedef OCTET_STRING_t TimeOfDay_t; +typedef OCTET_STRING_t TimeOfDay_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_TimeOfDay; diff --git a/src/icspacket/proto/mms/_mms/TimeOfDay_Py.c b/src/icspacket/proto/mms/_mms/TimeOfDay_Py.c index cb4c5b57..c3e2f865 100644 --- a/src/icspacket/proto/mms/_mms/TimeOfDay_Py.c +++ b/src/icspacket/proto/mms/_mms/TimeOfDay_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TimeOfDay_Py.h b/src/icspacket/proto/mms/_mms/TimeOfDay_Py.h index 4c629113..fbca8a96 100644 --- a/src/icspacket/proto/mms/_mms/TimeOfDay_Py.h +++ b/src/icspacket/proto/mms/_mms/TimeOfDay_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Transitions.c b/src/icspacket/proto/mms/_mms/Transitions.c index 401fcbf8..97e45b93 100644 --- a/src/icspacket/proto/mms/_mms/Transitions.c +++ b/src/icspacket/proto/mms/_mms/Transitions.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_Transitions_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_Transitions_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_Transitions_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/mms/_mms/Transitions.h b/src/icspacket/proto/mms/_mms/Transitions.h index 175622ac..59231ee3 100644 --- a/src/icspacket/proto/mms/_mms/Transitions.h +++ b/src/icspacket/proto/mms/_mms/Transitions.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -28,9 +28,10 @@ typedef enum Transitions { } e_Transitions; /* Transitions */ -typedef BIT_STRING_t Transitions_t; +typedef BIT_STRING_t Transitions_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_Transitions_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Transitions; asn_struct_free_f Transitions_free; asn_struct_print_f Transitions_print; diff --git a/src/icspacket/proto/mms/_mms/Transitions_Py.c b/src/icspacket/proto/mms/_mms/Transitions_Py.c index aad25e60..14f189a2 100644 --- a/src/icspacket/proto/mms/_mms/Transitions_Py.c +++ b/src/icspacket/proto/mms/_mms/Transitions_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Transitions_Py.h b/src/icspacket/proto/mms/_mms/Transitions_Py.h index 2ffb6a5f..d1fbfcdf 100644 --- a/src/icspacket/proto/mms/_mms/Transitions_Py.h +++ b/src/icspacket/proto/mms/_mms/Transitions_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Request.c b/src/icspacket/proto/mms/_mms/TriggerEvent-Request.c index 91770d02..29e4465e 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Request.c +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Request.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_TriggerEvent_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TriggerEvent_Request, eventConditionName), + { ATF_POINTER, 0, offsetof(struct TriggerEvent_Request, eventConditionName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Request.h b/src/icspacket/proto/mms/_mms/TriggerEvent-Request.h index 1bc49970..2ea30c39 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Request.h +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,18 +10,20 @@ #include /* Including external dependencies */ -#include -#include +#include "Priority.h" #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct ObjectName; + /* TriggerEvent-Request */ typedef struct TriggerEvent_Request { - ObjectName_t eventConditionName; - Priority_t *priority; /* OPTIONAL */ + struct ObjectName *eventConditionName; + Priority_t *priority; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_TriggerEvent_Request_1[2]; } #endif +/* Referred external types */ +#include "ObjectName.h" + #endif /* _TriggerEvent_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.c b/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.c index f3675288..eb475071 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(TriggerEvent_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(TriggerEvent_Request, eventConditionName, ObjectName); -PY_IMPL_SEQ_GETATTR(TriggerEvent_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(TriggerEvent_Request, eventConditionName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(TriggerEvent_Request, eventConditionName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TriggerEvent_Request, eventConditionName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TriggerEvent_Request, eventConditionName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(TriggerEvent_Request, eventConditionName); PY_IMPL_SEQ_SETATTR(TriggerEvent_Request, eventConditionName); PY_IMPL_SEQ_ATTR_GENERIC_FREE(TriggerEvent_Request, priority); PY_IMPL_SEQ_ATTR_GENERIC_NEW(TriggerEvent_Request, priority, Priority_t); diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.h b/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.h index 7ad14527..35fac952 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Response.c b/src/icspacket/proto/mms/_mms/TriggerEvent-Response.c index 1bb896a2..ff464ee3 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Response.c +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Response.h b/src/icspacket/proto/mms/_mms/TriggerEvent-Response.h index 45f237c5..272e950b 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Response.h +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* TriggerEvent-Response */ -typedef NULL_t TriggerEvent_Response_t; +typedef NULL_t TriggerEvent_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_TriggerEvent_Response; diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.c b/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.c index b51e66e0..17ef4279 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.h b/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.h index 9aa7135b..e8af24ae 100644 --- a/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/TriggerEvent-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/TypeDescription.c b/src/icspacket/proto/mms/_mms/TypeDescription.c index a91ca4b4..26d611a6 100644 --- a/src/icspacket/proto/mms/_mms/TypeDescription.c +++ b/src/icspacket/proto/mms/_mms/TypeDescription.c @@ -1,9 +1,53 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_array __attribute__((weak, alias("asn_DEF_array_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_array_2; +static asn_TYPE_descriptor_t asn_DEF_array; +__attribute__((constructor)) static void asn_DEF_array_2_alias_init(void) { + asn_DEF_array = asn_DEF_array_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_components __attribute__((weak, alias("asn_DEF_components_8"))); +#else +static asn_TYPE_descriptor_t asn_DEF_components_8; +static asn_TYPE_descriptor_t asn_DEF_components; +__attribute__((constructor)) static void asn_DEF_components_8_alias_init(void) { + asn_DEF_components = asn_DEF_components_8; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_structure __attribute__((weak, alias("asn_DEF_structure_6"))); +#else +static asn_TYPE_descriptor_t asn_DEF_structure_6; +static asn_TYPE_descriptor_t asn_DEF_structure; +__attribute__((constructor)) static void asn_DEF_structure_6_alias_init(void) { + asn_DEF_structure = asn_DEF_structure_6; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_floating_point __attribute__((weak, alias("asn_DEF_floating_point_16"))); +#else +static asn_TYPE_descriptor_t asn_DEF_floating_point_16; +static asn_TYPE_descriptor_t asn_DEF_floating_point; +__attribute__((constructor)) static void asn_DEF_floating_point_16_alias_init(void) { + asn_DEF_floating_point = asn_DEF_floating_point_16; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int asn_DFL_3_cmp_0(const void *sptr) { const BOOLEAN_t *st = sptr; @@ -26,7 +70,7 @@ static int asn_DFL_3_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_array_2[] = { +static asn_TYPE_member_t asn_MBR_TypeDescription__array_2[] = { { ATF_NOFLAGS, 1, offsetof(struct TypeDescription__array, packed), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -131,7 +175,7 @@ asn_TYPE_descriptor_t asn_DEF_array_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_array_2, + asn_MBR_TypeDescription__array_2, 3, /* Elements count */ &asn_SPC_array_specs_2 /* Additional specs */ }; @@ -158,8 +202,8 @@ static int asn_DFL_7_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_Member_9[] = { - { ATF_POINTER, 1, offsetof(struct TypeDescription__structure__components__Member, componentName), +static asn_TYPE_member_t asn_MBR_TypeDescription__structure__components__components_Member_9[] = { + { ATF_POINTER, 1, offsetof(struct TypeDescription__structure__components__components_Member, componentName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Identifier, @@ -179,7 +223,7 @@ static asn_TYPE_member_t asn_MBR_Member_9[] = { 0, 0, /* No default value */ "componentName" }, - { ATF_POINTER, 0, offsetof(struct TypeDescription__structure__components__Member, componentType), + { ATF_POINTER, 0, offsetof(struct TypeDescription__structure__components__components_Member, componentType), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_TypeSpecification, @@ -200,34 +244,34 @@ static asn_TYPE_member_t asn_MBR_Member_9[] = { "componentType" }, }; -static const int asn_MAP_Member_oms_9[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_9[] = { +static const int asn_MAP_components_Member_oms_9[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_components_Member_tags_9[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_9[] = { +static const asn_TYPE_tag2member_t asn_MAP_components_Member_tag2el_9[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* componentName */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* componentType */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_9 = { - sizeof(struct TypeDescription__structure__components__Member), - offsetof(struct TypeDescription__structure__components__Member, _asn_ctx), - asn_MAP_Member_tag2el_9, +static asn_SEQUENCE_specifics_t asn_SPC_components_Member_specs_9 = { + sizeof(struct TypeDescription__structure__components__components_Member), + offsetof(struct TypeDescription__structure__components__components_Member, _asn_ctx), + asn_MAP_components_Member_tag2el_9, 2, /* Count of tags in the map */ - asn_MAP_Member_oms_9, /* Optional members */ + asn_MAP_components_Member_oms_9, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_9 = { +asn_TYPE_descriptor_t asn_DEF_components_Member_9 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_9, - sizeof(asn_DEF_Member_tags_9) - /sizeof(asn_DEF_Member_tags_9[0]), /* 1 */ - asn_DEF_Member_tags_9, /* Same as above */ - sizeof(asn_DEF_Member_tags_9) - /sizeof(asn_DEF_Member_tags_9[0]), /* 1 */ + asn_DEF_components_Member_tags_9, + sizeof(asn_DEF_components_Member_tags_9) + /sizeof(asn_DEF_components_Member_tags_9[0]), /* 1 */ + asn_DEF_components_Member_tags_9, /* Same as above */ + sizeof(asn_DEF_components_Member_tags_9) + /sizeof(asn_DEF_components_Member_tags_9[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -240,16 +284,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_9 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_9, + asn_MBR_TypeDescription__structure__components__components_Member_9, 2, /* Elements count */ - &asn_SPC_Member_specs_9 /* Additional specs */ + &asn_SPC_components_Member_specs_9 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_components_8[] = { +static asn_TYPE_member_t asn_MBR_TypeDescription__structure__components_8[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_9, + &asn_DEF_components_Member_9, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -299,12 +343,12 @@ asn_TYPE_descriptor_t asn_DEF_components_8 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_components_8, + asn_MBR_TypeDescription__structure__components_8, 1, /* Single element */ &asn_SPC_components_specs_8 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_structure_6[] = { +static asn_TYPE_member_t asn_MBR_TypeDescription__structure_6[] = { { ATF_NOFLAGS, 1, offsetof(struct TypeDescription__structure, packed), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -388,12 +432,12 @@ asn_TYPE_descriptor_t asn_DEF_structure_6 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_structure_6, + asn_MBR_TypeDescription__structure_6, 2, /* Elements count */ &asn_SPC_structure_specs_6 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_floating_point_16[] = { +static asn_TYPE_member_t asn_MBR_TypeDescription__floating_point_16[] = { { ATF_NOFLAGS, 0, offsetof(struct TypeDescription__floating_point, format_width), (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, @@ -474,7 +518,7 @@ asn_TYPE_descriptor_t asn_DEF_floating_point_16 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_floating_point_16, + asn_MBR_TypeDescription__floating_point_16, 2, /* Elements count */ &asn_SPC_floating_point_specs_16 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/TypeDescription.h b/src/icspacket/proto/mms/_mms/TypeDescription.h index 052c6645..f3c48658 100644 --- a/src/icspacket/proto/mms/_mms/TypeDescription.h +++ b/src/icspacket/proto/mms/_mms/TypeDescription.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,14 +11,14 @@ /* Including external dependencies */ #include -#include -#include +#include "Integer32.h" +#include "Unsigned8.h" #include -#include -#include +#include "UtcTime.h" +#include "Unsigned32.h" #include #include -#include +#include "Identifier.h" #include #include @@ -50,30 +50,30 @@ typedef enum TypeDescription_PR { struct TypeSpecification; /* Forward definitions */ -typedef struct TypeDescription__structure__components__Member { - Identifier_t *componentName; /* OPTIONAL */ - struct TypeSpecification *componentType; +typedef struct TypeDescription__structure__components__components_Member { + Identifier_t *componentName; /* OPTIONAL */ + struct TypeSpecification *componentType; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} TypeDescription__structure__components__Member; +} TypeDescription__structure__components__components_Member; /* TypeDescription */ typedef struct TypeDescription { TypeDescription_PR present; union TypeDescription_u { struct TypeDescription__array { - BOOLEAN_t packed; /* DEFAULT FALSE */ - Unsigned32_t numberOfElements; - struct TypeSpecification *elementType; + BOOLEAN_t packed; /* DEFAULT FALSE */ + Unsigned32_t numberOfElements; + struct TypeSpecification *elementType; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } array; struct TypeDescription__structure { - BOOLEAN_t packed; /* DEFAULT FALSE */ + BOOLEAN_t packed; /* DEFAULT FALSE */ struct TypeDescription__structure__components { - A_SEQUENCE_OF(TypeDescription__structure__components__Member) list; + A_SEQUENCE_OF(TypeDescription__structure__components__components_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -82,25 +82,25 @@ typedef struct TypeDescription { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } structure; - NULL_t boolean; - Integer32_t bit_string; - Unsigned8_t integer; - Unsigned8_t Unsigned; + NULL_t boolean; + Integer32_t bit_string; + Unsigned8_t integer; + Unsigned8_t Unsigned; struct TypeDescription__floating_point { - Unsigned8_t format_width; - Unsigned8_t exponent_width; + Unsigned8_t format_width; + Unsigned8_t exponent_width; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } floating_point; - Integer32_t octet_string; - Integer32_t visible_string; - NULL_t generalized_time; - BOOLEAN_t binary_time; - Unsigned8_t bcd; - NULL_t objId; - Integer32_t mMSString; - UtcTime_t utc_time; + Integer32_t octet_string; + Integer32_t visible_string; + NULL_t generalized_time; + BOOLEAN_t binary_time; + Unsigned8_t bcd; + NULL_t objId; + Integer32_t mMSString; + UtcTime_t utc_time; } choice; /* Context for parsing across buffer boundaries */ @@ -117,7 +117,7 @@ extern asn_TYPE_member_t asn_MBR_TypeDescription_1[15]; #endif /* Referred external types */ -#include +#include "TypeSpecification.h" #endif /* _TypeDescription_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/TypeDescription_Py.c b/src/icspacket/proto/mms/_mms/TypeDescription_Py.c index 882c4238..8a281a9f 100644 --- a/src/icspacket/proto/mms/_mms/TypeDescription_Py.c +++ b/src/icspacket/proto/mms/_mms/TypeDescription_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -18,7 +18,7 @@ PY_IMPL_SEQ_ATTR_GENERIC_FREE(TypeDescription_array_ANON_2, elementType); PY_IMPL_SEQ_ATTR_GENERIC_NEW(TypeDescription_array_ANON_2, elementType, TypeSpecification_t); PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TypeDescription_array_ANON_2, elementType, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TypeDescription_array_ANON_2, elementType, TypeSpecification); -PY_IMPL_SEQ_GETATTR(TypeDescription_array_ANON_2, elementType); +PY_IMPL_SEQ_AUTOVIV_GETATTR(TypeDescription_array_ANON_2, elementType); PY_IMPL_SEQ_SETATTR(TypeDescription_array_ANON_2, elementType); PY_IMPL_CHECK_CONSTRAINTS(TypeDescription_array_ANON_2, asn_DEF_TypeDescription.elements[0].type); PY_IMPL_ENCODE(TypeDescription_array_ANON_2, asn_DEF_TypeDescription.elements[0].type); @@ -47,49 +47,49 @@ PY_IMPL_SEQ_FROMPY(TypeDescription_array_ANON_2, asn_DEF_TypeDescription.element PY_IMPL_SEQ_INIT(TypeDescription_array_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(TypeDescription, array, &src->choice.array, TypeDescription_array_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(TypeDescription, array, &src->choice.array, TypeDescription_array_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(TypeDescription, TypeDescription, array, array, asn_DEF_TypeDescription); +PY_IMPL_CHOICE_GENERIC_SETATTR(TypeDescription, TypeDescription, array, array, *asn_DEF_TypeDescription.elements[0].type); PY_IMPL_CHOICE_GETATTR(TypeDescription, TypeDescription, array, array); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(TypeDescription_Member_ANON_9, componentName); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(TypeDescription_Member_ANON_9, componentName, Identifier_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TypeDescription_Member_ANON_9, componentName, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TypeDescription_Member_ANON_9, componentName, Identifier); -PY_IMPL_SEQ_OPT_GETATTR(TypeDescription_Member_ANON_9, componentName); -PY_IMPL_SEQ_OPT_SETATTR(TypeDescription_Member_ANON_9, componentName); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(TypeDescription_Member_ANON_9, componentType); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(TypeDescription_Member_ANON_9, componentType, TypeSpecification_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TypeDescription_Member_ANON_9, componentType, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TypeDescription_Member_ANON_9, componentType, TypeSpecification); -PY_IMPL_SEQ_GETATTR(TypeDescription_Member_ANON_9, componentType); -PY_IMPL_SEQ_SETATTR(TypeDescription_Member_ANON_9, componentType); -PY_IMPL_CHECK_CONSTRAINTS(TypeDescription_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); -PY_IMPL_ENCODE(TypeDescription_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); -PY_IMPL_DECODE(TypeDescription_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); -PY_IMPL_DEALLOC(TypeDescription_Member_ANON_9, *(asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type)); -PY_IMPL_SEQ_TOPY(TypeDescription_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); -PY_IMPL_DECODE_BER(TypeDescription_Member_ANON_9); -PY_IMPL_ENCODE_SPECIFIC(TypeDescription_Member_ANON_9, ber, ATS_BER); -PY_IMPL_DECODE_DER(TypeDescription_Member_ANON_9); -PY_IMPL_ENCODE_SPECIFIC(TypeDescription_Member_ANON_9, der, ATS_DER); -PY_IMPL_DECODE_CER(TypeDescription_Member_ANON_9); -PY_IMPL_ENCODE_SPECIFIC(TypeDescription_Member_ANON_9, cer, ATS_BER); -PY_IMPL_DECODE_XER(TypeDescription_Member_ANON_9); -PY_IMPL_ENCODE_XER(TypeDescription_Member_ANON_9); -PY_IMPL_ENCODE_SPECIFIC(TypeDescription_Member_ANON_9, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(TypeDescription_Member_ANON_9); -PY_IMPL_ENCODE_JER(TypeDescription_Member_ANON_9); -PY_IMPL_GENERIC_NEW(TypeDescription_Member_ANON_9, NULL); -PY_IMPL_REPR(TypeDescription_Member_ANON_9); -PY_IMPL_GENERIC_IS_VALID(TypeDescription_Member_ANON_9); -PY_IMPL_SEQ_FROMPY(TypeDescription_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(TypeDescription_Member_ANON_9, componentName, componentName); - PY_IMPL_SEQ_INIT_ATTR(TypeDescription_Member_ANON_9, componentType, componentType); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(TypeDescription_components_Member_ANON_9, componentName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(TypeDescription_components_Member_ANON_9, componentName, Identifier_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TypeDescription_components_Member_ANON_9, componentName, PyAsnIdentifier_FromPython(value, (Identifier_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TypeDescription_components_Member_ANON_9, componentName, Identifier); +PY_IMPL_SEQ_OPT_GETATTR(TypeDescription_components_Member_ANON_9, componentName); +PY_IMPL_SEQ_OPT_SETATTR(TypeDescription_components_Member_ANON_9, componentName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(TypeDescription_components_Member_ANON_9, componentType); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(TypeDescription_components_Member_ANON_9, componentType, TypeSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(TypeDescription_components_Member_ANON_9, componentType, PyAsnTypeSpecification_FromPython(value, (TypeSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(TypeDescription_components_Member_ANON_9, componentType, TypeSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(TypeDescription_components_Member_ANON_9, componentType); +PY_IMPL_SEQ_SETATTR(TypeDescription_components_Member_ANON_9, componentType); +PY_IMPL_CHECK_CONSTRAINTS(TypeDescription_components_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); +PY_IMPL_ENCODE(TypeDescription_components_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); +PY_IMPL_DECODE(TypeDescription_components_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); +PY_IMPL_DEALLOC(TypeDescription_components_Member_ANON_9, *(asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type)); +PY_IMPL_SEQ_TOPY(TypeDescription_components_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type); +PY_IMPL_DECODE_BER(TypeDescription_components_Member_ANON_9); +PY_IMPL_ENCODE_SPECIFIC(TypeDescription_components_Member_ANON_9, ber, ATS_BER); +PY_IMPL_DECODE_DER(TypeDescription_components_Member_ANON_9); +PY_IMPL_ENCODE_SPECIFIC(TypeDescription_components_Member_ANON_9, der, ATS_DER); +PY_IMPL_DECODE_CER(TypeDescription_components_Member_ANON_9); +PY_IMPL_ENCODE_SPECIFIC(TypeDescription_components_Member_ANON_9, cer, ATS_BER); +PY_IMPL_DECODE_XER(TypeDescription_components_Member_ANON_9); +PY_IMPL_ENCODE_XER(TypeDescription_components_Member_ANON_9); +PY_IMPL_ENCODE_SPECIFIC(TypeDescription_components_Member_ANON_9, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(TypeDescription_components_Member_ANON_9); +PY_IMPL_ENCODE_JER(TypeDescription_components_Member_ANON_9); +PY_IMPL_GENERIC_NEW(TypeDescription_components_Member_ANON_9, NULL); +PY_IMPL_REPR(TypeDescription_components_Member_ANON_9); +PY_IMPL_GENERIC_IS_VALID(TypeDescription_components_Member_ANON_9); +PY_IMPL_SEQ_FROMPY(TypeDescription_components_Member_ANON_9, asn_DEF_TypeDescription.elements[1].type->elements[1].type->elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(TypeDescription_components_Member_ANON_9, componentName, componentName); + PY_IMPL_SEQ_INIT_ATTR(TypeDescription_components_Member_ANON_9, componentType, componentType); ); -PY_IMPL_SEQ_INIT(TypeDescription_Member_ANON_9); -PY_IMPL_SEQ_OF_ITEM_TOPY(TypeDescription_components_ANON_8, TypeDescription_Member_ANON_9_t, PyAsnTypeDescription_Member_ANON_9_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(TypeDescription_components_ANON_8, TypeDescription_Member_ANON_9_t, PyAsnTypeDescription_Member_ANON_9_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(TypeDescription_components_ANON_8, TypeDescription_Member_ANON_9_t); -PY_IMPL_SEQ_OF_GENERIC_SETITEM(TypeDescription_components_ANON_8, TypeDescription_Member_ANON_9_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_TypeDescription.elements[1].type->elements[1].type)); -PY_IMPL_SEQ_OF_ADD(TypeDescription_components_ANON_8, TypeDescription_Member_ANON_9_t); +PY_IMPL_SEQ_INIT(TypeDescription_components_Member_ANON_9); +PY_IMPL_SEQ_OF_ITEM_TOPY(TypeDescription_components_ANON_8, TypeDescription_components_Member_ANON_9_t, PyAsnTypeDescription_components_Member_ANON_9_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(TypeDescription_components_ANON_8, TypeDescription_components_Member_ANON_9_t, PyAsnTypeDescription_components_Member_ANON_9_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(TypeDescription_components_ANON_8, TypeDescription_components_Member_ANON_9_t); +PY_IMPL_SEQ_OF_GENERIC_SETITEM(TypeDescription_components_ANON_8, TypeDescription_components_Member_ANON_9_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_TypeDescription.elements[1].type->elements[1].type)); +PY_IMPL_SEQ_OF_ADD(TypeDescription_components_ANON_8, TypeDescription_components_Member_ANON_9_t); PY_IMPL_SEQ_OF_NEW(TypeDescription_components_ANON_8); PY_IMPL_SEQ_OF_DEALLOC(TypeDescription_components_ANON_8, asn_set_empty); PY_IMPL_SEQ_OF_INIT(TypeDescription_components_ANON_8); @@ -148,7 +148,7 @@ PY_IMPL_SEQ_FROMPY(TypeDescription_structure_ANON_6, asn_DEF_TypeDescription.ele PY_IMPL_SEQ_INIT(TypeDescription_structure_ANON_6); PY_IMPL_SEQ_ANON_ATTR_FROMPY(TypeDescription, structure, &src->choice.structure, TypeDescription_structure_ANON_6); PY_IMPL_SEQ_ANON_ATTR_TOPY(TypeDescription, structure, &src->choice.structure, TypeDescription_structure_ANON_6); -PY_IMPL_CHOICE_GENERIC_SETATTR(TypeDescription, TypeDescription, structure, structure, asn_DEF_TypeDescription); +PY_IMPL_CHOICE_GENERIC_SETATTR(TypeDescription, TypeDescription, structure, structure, *asn_DEF_TypeDescription.elements[1].type); PY_IMPL_CHOICE_GETATTR(TypeDescription, TypeDescription, structure, structure); PY_IMPL_SEQ_ATTR_FROMPY(TypeDescription_floating_point_ANON_16, format_width, PyAsnUnsigned8_FromPython(value, (Unsigned8_t *)target)); PY_IMPL_SEQ_REF_ATTR_TOPY(TypeDescription_floating_point_ANON_16, format_width, Unsigned8); @@ -184,7 +184,7 @@ PY_IMPL_SEQ_FROMPY(TypeDescription_floating_point_ANON_16, asn_DEF_TypeDescripti PY_IMPL_SEQ_INIT(TypeDescription_floating_point_ANON_16); PY_IMPL_SEQ_ANON_ATTR_FROMPY(TypeDescription, floating_point, &src->choice.floating_point, TypeDescription_floating_point_ANON_16); PY_IMPL_SEQ_ANON_ATTR_TOPY(TypeDescription, floating_point, &src->choice.floating_point, TypeDescription_floating_point_ANON_16); -PY_IMPL_CHOICE_GENERIC_SETATTR(TypeDescription, TypeDescription, floating_point, floating_point, asn_DEF_TypeDescription); +PY_IMPL_CHOICE_GENERIC_SETATTR(TypeDescription, TypeDescription, floating_point, floating_point, *asn_DEF_TypeDescription.elements[6].type); PY_IMPL_CHOICE_GETATTR(TypeDescription, TypeDescription, floating_point, floating_point); PY_IMPL_CHOICE_ATTR_FROMPY(TypeDescription, TypeDescription, boolean, boolean, PyCompatNull_FromObject(value, &dst->choice.boolean)); PY_IMPL_CHOICE_ATTR_TOPY(TypeDescription, boolean, Py_None); @@ -281,9 +281,9 @@ static PyGetSetDef PyAsnTypeDescription_array_ANON_2_getset[] = { PY_IMPL_GETSET_ITEM_INTERNAL(TypeDescription_array_ANON_2, elementType, elementType), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; -static PyGetSetDef PyAsnTypeDescription_Member_ANON_9_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(TypeDescription_Member_ANON_9, componentName, componentName), - PY_IMPL_GETSET_ITEM_INTERNAL(TypeDescription_Member_ANON_9, componentType, componentType), +static PyGetSetDef PyAsnTypeDescription_components_Member_ANON_9_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(TypeDescription_components_Member_ANON_9, componentName, componentName), + PY_IMPL_GETSET_ITEM_INTERNAL(TypeDescription_components_Member_ANON_9, componentType, componentType), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnTypeDescription_components_ANON_8_getset[] = { @@ -341,20 +341,20 @@ static PyMethodDef PyAsnTypeDescription_array_ANON_2_methods[] = { PY_IMPL_METHODDEF_ITEM(TypeDescription_array_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; -static PyMethodDef PyAsnTypeDescription_Member_ANON_9_methods[] = { - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnTypeDescription_Member_ANON_9__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(TypeDescription_Member_ANON_9, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnTypeDescription_components_Member_ANON_9_methods[] = { + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnTypeDescription_components_Member_ANON_9__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(TypeDescription_components_Member_ANON_9, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnTypeDescription_components_ANON_8_methods[] = { @@ -439,18 +439,18 @@ PyTypeObject PyAsnTypeDescription_array_ANON_2_Type = { .tp_methods = PyAsnTypeDescription_array_ANON_2_methods, .tp_doc = "ASN.1 anonymous type TypeDescription__array_TYPE part of TypeDescription", }; -PyTypeObject PyAsnTypeDescription_Member_ANON_9_Type = { +PyTypeObject PyAsnTypeDescription_components_Member_ANON_9_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.TypeDescription.structure_TYPE.components_TYPE.Member_TYPE", - .tp_basicsize = sizeof(PyAsnTypeDescription_Member_ANON_9Object), + .tp_basicsize = sizeof(PyAsnTypeDescription_components_Member_ANON_9Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnTypeDescription_Member_ANON_9__new, - .tp_repr = (reprfunc)PyAsnTypeDescription_Member_ANON_9__repr, - .tp_dealloc = (destructor)PyAsnTypeDescription_Member_ANON_9__dealloc, - .tp_init = (initproc)PyAsnTypeDescription_Member_ANON_9__init, - .tp_getset = PyAsnTypeDescription_Member_ANON_9_getset, - .tp_methods = PyAsnTypeDescription_Member_ANON_9_methods, - .tp_doc = "ASN.1 anonymous type TypeDescription__structure__components__Member_TYPE part of components", + .tp_new = (newfunc)PyAsnTypeDescription_components_Member_ANON_9__new, + .tp_repr = (reprfunc)PyAsnTypeDescription_components_Member_ANON_9__repr, + .tp_dealloc = (destructor)PyAsnTypeDescription_components_Member_ANON_9__dealloc, + .tp_init = (initproc)PyAsnTypeDescription_components_Member_ANON_9__init, + .tp_getset = PyAsnTypeDescription_components_Member_ANON_9_getset, + .tp_methods = PyAsnTypeDescription_components_Member_ANON_9_methods, + .tp_doc = "ASN.1 anonymous type TypeDescription__structure__components__components_Member_TYPE part of components", }; PyTypeObject PyAsnTypeDescription_components_ANON_8_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -509,7 +509,7 @@ PyTypeObject PyAsnTypeDescription_Type = { /* module initializer */ int PyAsnTypeDescription_ModSetupTypes(void) { if (PyType_Ready(&PyAsnTypeDescription_array_ANON_2_Type) < 0) return -1; - if (PyType_Ready(&PyAsnTypeDescription_Member_ANON_9_Type) < 0) return -1; + if (PyType_Ready(&PyAsnTypeDescription_components_Member_ANON_9_Type) < 0) return -1; if (PyType_Ready(&PyAsnTypeDescription_components_ANON_8_Type) < 0) return -1; if (PyType_Ready(&PyAsnTypeDescription_structure_ANON_6_Type) < 0) return -1; if (PyType_Ready(&PyAsnTypeDescription_floating_point_ANON_16_Type) < 0) return -1; @@ -523,11 +523,11 @@ void PyAsnTypeDescription_ModClear(PyObject *mod) { int PyAsnTypeDescription_ModInit(PyObject *mod) { PY_IMPL_MOD_ASSIGN_OBJECT(TypeDescription, array_TYPE, &PyAsnTypeDescription_array_ANON_2_Type); - PY_IMPL_MOD_ASSIGN_OBJECT(TypeDescription_components_ANON_8, Member_TYPE, &PyAsnTypeDescription_Member_ANON_9_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(TypeDescription_components_ANON_8, Member_TYPE, &PyAsnTypeDescription_components_Member_ANON_9_Type); PY_IMPL_MOD_ASSIGN_OBJECT(TypeDescription_structure_ANON_6, components_TYPE, &PyAsnTypeDescription_components_ANON_8_Type); PY_IMPL_MOD_ASSIGN_OBJECT(TypeDescription, structure_TYPE, &PyAsnTypeDescription_structure_ANON_6_Type); PY_IMPL_MOD_ASSIGN_OBJECT(TypeDescription, floating_point_TYPE, &PyAsnTypeDescription_floating_point_ANON_16_Type); - PY_IMPL_NEW_ENUM(TypeDescription.PRESENT, PyAsnEnumTypeDescription_PRESENT_Type, -1, + PY_IMPL_NEW_ENUM(TypeDescription.PRESENT, PyAsnEnumTypeDescription_PRESENT_Type, -1, PY_IMPL_ENUM_VALUE(PR_NOTHING, TypeDescription_PR_NOTHING, 0); PY_IMPL_ENUM_VALUE(PR_array, TypeDescription_PR_array, 1); PY_IMPL_ENUM_VALUE(PR_structure, TypeDescription_PR_structure, 2); diff --git a/src/icspacket/proto/mms/_mms/TypeDescription_Py.h b/src/icspacket/proto/mms/_mms/TypeDescription_Py.h index 4e7cd286..a2676478 100644 --- a/src/icspacket/proto/mms/_mms/TypeDescription_Py.h +++ b/src/icspacket/proto/mms/_mms/TypeDescription_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,7 +14,25 @@ #include #include #include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -26,8 +44,8 @@ extern "C" { /* TypeDescription */ PyCompat_DEF_ANON_STRUCT(TypeDescription_array_ANON_2, TypeDescription__array); PyCompat_DEF_TYPE(TypeDescription_array_ANON_2); -PyCompat_DEF_ANON_STRUCT(TypeDescription_Member_ANON_9, TypeDescription__structure__components__Member); -PyCompat_DEF_TYPE(TypeDescription_Member_ANON_9); +PyCompat_DEF_ANON_STRUCT(TypeDescription_components_Member_ANON_9, TypeDescription__structure__components__components_Member); +PyCompat_DEF_TYPE(TypeDescription_components_Member_ANON_9); typedef struct TypeDescription__structure__components TypeDescription_components_ANON_8_t; PyCompat_DEF_STRUCT(TypeDescription_components_ANON_8); PyCompat_DEF_TYPE(TypeDescription_components_ANON_8); @@ -42,8 +60,8 @@ PyCompat_DEF_ENUM(TypeDescription_PRESENT); /* Type Converters */ int PyAsnTypeDescription_array_ANON_2_FromPython(PyObject *pObj, TypeDescription_array_ANON_2_t *pDst); PyObject *PyAsnTypeDescription_array_ANON_2_ToPython(TypeDescription_array_ANON_2_t *pSrc, PyObject *parent); -int PyAsnTypeDescription_Member_ANON_9_FromPython(PyObject *pObj, TypeDescription_Member_ANON_9_t *pDst); -PyObject *PyAsnTypeDescription_Member_ANON_9_ToPython(TypeDescription_Member_ANON_9_t *pSrc, PyObject *parent); +int PyAsnTypeDescription_components_Member_ANON_9_FromPython(PyObject *pObj, TypeDescription_components_Member_ANON_9_t *pDst); +PyObject *PyAsnTypeDescription_components_Member_ANON_9_ToPython(TypeDescription_components_Member_ANON_9_t *pSrc, PyObject *parent); int PyAsnTypeDescription_components_ANON_8_FromPython(PyObject *pObj, TypeDescription_components_ANON_8_t *pDst); PyObject *PyAsnTypeDescription_components_ANON_8_ToPython(TypeDescription_components_ANON_8_t *pSrc, PyObject *parent); int PyAsnTypeDescription_structure_ANON_6_FromPython(PyObject *pObj, TypeDescription_structure_ANON_6_t *pDst); diff --git a/src/icspacket/proto/mms/_mms/TypeSpecification.c b/src/icspacket/proto/mms/_mms/TypeSpecification.c index 4a172e5a..5259f191 100644 --- a/src/icspacket/proto/mms/_mms/TypeSpecification.c +++ b/src/icspacket/proto/mms/_mms/TypeSpecification.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_TypeSpecification_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TypeSpecification, choice.typeName), + { ATF_POINTER, 0, offsetof(struct TypeSpecification, choice.typeName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/TypeSpecification.h b/src/icspacket/proto/mms/_mms/TypeSpecification.h index fa2ba5cf..1d24a8ab 100644 --- a/src/icspacket/proto/mms/_mms/TypeSpecification.h +++ b/src/icspacket/proto/mms/_mms/TypeSpecification.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -25,14 +24,15 @@ typedef enum TypeSpecification_PR { } TypeSpecification_PR; /* Forward declarations */ +struct ObjectName; struct TypeDescription; /* TypeSpecification */ typedef struct TypeSpecification { TypeSpecification_PR present; union TypeSpecification_u { - ObjectName_t typeName; - struct TypeDescription *typeDescription; + struct ObjectName *typeName; + struct TypeDescription *typeDescription; } choice; /* Context for parsing across buffer boundaries */ @@ -49,7 +49,8 @@ extern asn_TYPE_member_t asn_MBR_TypeSpecification_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "TypeDescription.h" #endif /* _TypeSpecification_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/TypeSpecification_Py.c b/src/icspacket/proto/mms/_mms/TypeSpecification_Py.c index 2c8e2cbb..0941eaed 100644 --- a/src/icspacket/proto/mms/_mms/TypeSpecification_Py.c +++ b/src/icspacket/proto/mms/_mms/TypeSpecification_Py.c @@ -1,16 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(TypeSpecification, TypeSpecification, typeName, typeName,PyAsnObjectName_FromPython(value, &dst->choice.typeName)); -PY_IMPL_CHOICE_ATTR_TOPY(TypeSpecification, typeName, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.typeName)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(TypeSpecification, TypeSpecification, typeName, typeName, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.typeName)); +PY_IMPL_CHOICE_ATTR_TOPY(TypeSpecification, typeName, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.typeName)); PY_IMPL_CHOICE_GETATTR(TypeSpecification, TypeSpecification, typeName, typeName); PY_IMPL_CHOICE_SETATTR(TypeSpecification, TypeSpecification, typeName, typeName); -PY_IMPL_CHOICE_ATTR_FROMPY(TypeSpecification, TypeSpecification, typeDescription, typeDescription,PyAsnTypeDescription_FromPython(value, dst->choice.typeDescription)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(TypeSpecification, TypeSpecification, typeDescription, typeDescription, TypeDescription,PyAsnTypeDescription_FromPython(value, dst->choice.typeDescription)); PY_IMPL_CHOICE_ATTR_TOPY(TypeSpecification, typeDescription, PyCompatAsnType_FromParent(&PyAsnTypeDescription_Type, parent, (void *)src->choice.typeDescription)); PY_IMPL_CHOICE_GETATTR(TypeSpecification, TypeSpecification, typeDescription, typeDescription); PY_IMPL_CHOICE_SETATTR(TypeSpecification, TypeSpecification, typeDescription, typeDescription); diff --git a/src/icspacket/proto/mms/_mms/TypeSpecification_Py.h b/src/icspacket/proto/mms/_mms/TypeSpecification_Py.h index 0b7b08f9..68bff992 100644 --- a/src/icspacket/proto/mms/_mms/TypeSpecification_Py.h +++ b/src/icspacket/proto/mms/_mms/TypeSpecification_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.c b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.c index c06173c4..5d3cbef7 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.c +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_Unconfirmed_Detail_1[] = { 0, 0, /* No default value */ "otherRequests" }, - { ATF_NOFLAGS, 0, offsetof(struct Unconfirmed_Detail, choice.eventNotification), + { ATF_POINTER, 0, offsetof(struct Unconfirmed_Detail, choice.eventNotification), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_CS_EventNotification, diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.h b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.h index ebbff8a4..e6dd5c60 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.h +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,6 @@ /* Including external dependencies */ #include -#include #include #ifdef __cplusplus @@ -25,12 +24,15 @@ typedef enum Unconfirmed_Detail_PR { Unconfirmed_Detail_PR_eventNotification } Unconfirmed_Detail_PR; +/* Forward declarations */ +struct CS_EventNotification; + /* Unconfirmed-Detail */ typedef struct Unconfirmed_Detail { Unconfirmed_Detail_PR present; union Unconfirmed_Detail_u { - NULL_t otherRequests; - CS_EventNotification_t eventNotification; + NULL_t otherRequests; + struct CS_EventNotification *eventNotification; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +48,8 @@ extern asn_TYPE_member_t asn_MBR_Unconfirmed_Detail_1[2]; } #endif +/* Referred external types */ +#include "CS-EventNotification.h" + #endif /* _Unconfirmed_Detail_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.c b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.c index f0befd08..b00ad5cf 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.c +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,8 +10,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(Unconfirmed_Detail, Unconfirmed_Detail, otherRequests PY_IMPL_CHOICE_ATTR_TOPY(Unconfirmed_Detail, otherRequests, Py_None); PY_IMPL_CHOICE_GETATTR(Unconfirmed_Detail, Unconfirmed_Detail, otherRequests, otherRequests); PY_IMPL_CHOICE_SETATTR(Unconfirmed_Detail, Unconfirmed_Detail, otherRequests, otherRequests); -PY_IMPL_CHOICE_ATTR_FROMPY(Unconfirmed_Detail, Unconfirmed_Detail, eventNotification, eventNotification,PyAsnCS_EventNotification_FromPython(value, &dst->choice.eventNotification)); -PY_IMPL_CHOICE_ATTR_TOPY(Unconfirmed_Detail, eventNotification, PyCompatAsnType_FromParent(&PyAsnCS_EventNotification_Type, parent, (void *)&src->choice.eventNotification)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Unconfirmed_Detail, Unconfirmed_Detail, eventNotification, eventNotification, CS_EventNotification,PyAsnCS_EventNotification_FromPython(value, dst->choice.eventNotification)); +PY_IMPL_CHOICE_ATTR_TOPY(Unconfirmed_Detail, eventNotification, PyCompatAsnType_FromParent(&PyAsnCS_EventNotification_Type, parent, (void *)src->choice.eventNotification)); PY_IMPL_CHOICE_GETATTR(Unconfirmed_Detail, Unconfirmed_Detail, eventNotification, eventNotification); PY_IMPL_CHOICE_SETATTR(Unconfirmed_Detail, Unconfirmed_Detail, eventNotification, eventNotification); PY_IMPL_GENERIC_DEALLOC(Unconfirmed_Detail); diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.h b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.h index 74f9ea48..5151eb5a 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.h +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-Detail_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.c b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.c index f466d16b..1a489d4d 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.c +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_Unconfirmed_PDU_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Unconfirmed_PDU, service), + { ATF_POINTER, 0, offsetof(struct Unconfirmed_PDU, service), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_UnconfirmedService, diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.h b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.h index db60950d..d748c04f 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.h +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -18,12 +17,13 @@ extern "C" { #endif /* Forward declarations */ +struct UnconfirmedService; struct Unconfirmed_Detail; /* Unconfirmed-PDU */ typedef struct Unconfirmed_PDU { - UnconfirmedService_t service; - struct Unconfirmed_Detail *service_ext; /* OPTIONAL */ + struct UnconfirmedService *service; + struct Unconfirmed_Detail *service_ext; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -39,7 +39,8 @@ extern asn_TYPE_member_t asn_MBR_Unconfirmed_PDU_1[2]; #endif /* Referred external types */ -#include +#include "UnconfirmedService.h" +#include "Unconfirmed-Detail.h" #endif /* _Unconfirmed_PDU_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.c b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.c index e18fc121..a9229ae8 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.c +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(Unconfirmed_PDU, service, PyAsnUnconfirmedService_FromPython(value, (UnconfirmedService_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Unconfirmed_PDU, service, UnconfirmedService); -PY_IMPL_SEQ_GETATTR(Unconfirmed_PDU, service); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Unconfirmed_PDU, service); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Unconfirmed_PDU, service, UnconfirmedService_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Unconfirmed_PDU, service, PyAsnUnconfirmedService_FromPython(value, (UnconfirmedService_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Unconfirmed_PDU, service, UnconfirmedService); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Unconfirmed_PDU, service); PY_IMPL_SEQ_SETATTR(Unconfirmed_PDU, service); PY_IMPL_SEQ_ATTR_GENERIC_FREE(Unconfirmed_PDU, service_ext); PY_IMPL_SEQ_ATTR_GENERIC_NEW(Unconfirmed_PDU, service_ext, Unconfirmed_Detail_t); diff --git a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.h b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.h index 59812579..cd91bdd1 100644 --- a/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.h +++ b/src/icspacket/proto/mms/_mms/Unconfirmed-PDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnconfirmedService.c b/src/icspacket/proto/mms/_mms/UnconfirmedService.c index ff4f038d..eabab5ed 100644 --- a/src/icspacket/proto/mms/_mms/UnconfirmedService.c +++ b/src/icspacket/proto/mms/_mms/UnconfirmedService.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include asn_TYPE_member_t asn_MBR_UnconfirmedService_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UnconfirmedService, choice.informationReport), + { ATF_POINTER, 0, offsetof(struct UnconfirmedService, choice.informationReport), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_InformationReport, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_UnconfirmedService_1[] = { 0, 0, /* No default value */ "informationReport" }, - { ATF_NOFLAGS, 0, offsetof(struct UnconfirmedService, choice.unsolicitedStatus), + { ATF_POINTER, 0, offsetof(struct UnconfirmedService, choice.unsolicitedStatus), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_UnsolicitedStatus, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_UnconfirmedService_1[] = { 0, 0, /* No default value */ "unsolicitedStatus" }, - { ATF_NOFLAGS, 0, offsetof(struct UnconfirmedService, choice.eventNotification), + { ATF_POINTER, 0, offsetof(struct UnconfirmedService, choice.eventNotification), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_EventNotification, diff --git a/src/icspacket/proto/mms/_mms/UnconfirmedService.h b/src/icspacket/proto/mms/_mms/UnconfirmedService.h index 3c1a2c1e..c2110f09 100644 --- a/src/icspacket/proto/mms/_mms/UnconfirmedService.h +++ b/src/icspacket/proto/mms/_mms/UnconfirmedService.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,6 @@ #include /* Including external dependencies */ -#include -#include -#include #include #ifdef __cplusplus @@ -27,13 +24,19 @@ typedef enum UnconfirmedService_PR { UnconfirmedService_PR_eventNotification } UnconfirmedService_PR; +/* Forward declarations */ +struct InformationReport; +struct UnsolicitedStatus; +struct EventNotification; +struct StatusResponse; + /* UnconfirmedService */ typedef struct UnconfirmedService { UnconfirmedService_PR present; union UnconfirmedService_u { - InformationReport_t informationReport; - UnsolicitedStatus_t unsolicitedStatus; - EventNotification_t eventNotification; + struct InformationReport *informationReport; + struct StatusResponse *unsolicitedStatus; + struct EventNotification *eventNotification; } choice; /* Context for parsing across buffer boundaries */ @@ -49,5 +52,10 @@ extern asn_TYPE_member_t asn_MBR_UnconfirmedService_1[3]; } #endif +/* Referred external types */ +#include "InformationReport.h" +#include "UnsolicitedStatus.h" +#include "EventNotification.h" + #endif /* _UnconfirmedService_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.c b/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.c index e67ee4bb..8c284dc4 100644 --- a/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.c +++ b/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.c @@ -1,21 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(UnconfirmedService, UnconfirmedService, informationReport, informationReport,PyAsnInformationReport_FromPython(value, &dst->choice.informationReport)); -PY_IMPL_CHOICE_ATTR_TOPY(UnconfirmedService, informationReport, PyCompatAsnType_FromParent(&PyAsnInformationReport_Type, parent, (void *)&src->choice.informationReport)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(UnconfirmedService, UnconfirmedService, informationReport, informationReport, InformationReport,PyAsnInformationReport_FromPython(value, dst->choice.informationReport)); +PY_IMPL_CHOICE_ATTR_TOPY(UnconfirmedService, informationReport, PyCompatAsnType_FromParent(&PyAsnInformationReport_Type, parent, (void *)src->choice.informationReport)); PY_IMPL_CHOICE_GETATTR(UnconfirmedService, UnconfirmedService, informationReport, informationReport); PY_IMPL_CHOICE_SETATTR(UnconfirmedService, UnconfirmedService, informationReport, informationReport); -PY_IMPL_CHOICE_ATTR_FROMPY(UnconfirmedService, UnconfirmedService, unsolicitedStatus, unsolicitedStatus,PyAsnUnsolicitedStatus_FromPython(value, &dst->choice.unsolicitedStatus)); -PY_IMPL_CHOICE_ATTR_TOPY(UnconfirmedService, unsolicitedStatus, PyCompatAsnType_FromParent(&PyAsnUnsolicitedStatus_Type, parent, (void *)&src->choice.unsolicitedStatus)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(UnconfirmedService, UnconfirmedService, unsolicitedStatus, unsolicitedStatus, UnsolicitedStatus,PyAsnUnsolicitedStatus_FromPython(value, dst->choice.unsolicitedStatus)); +PY_IMPL_CHOICE_ATTR_TOPY(UnconfirmedService, unsolicitedStatus, PyCompatAsnType_FromParent(&PyAsnUnsolicitedStatus_Type, parent, (void *)src->choice.unsolicitedStatus)); PY_IMPL_CHOICE_GETATTR(UnconfirmedService, UnconfirmedService, unsolicitedStatus, unsolicitedStatus); PY_IMPL_CHOICE_SETATTR(UnconfirmedService, UnconfirmedService, unsolicitedStatus, unsolicitedStatus); -PY_IMPL_CHOICE_ATTR_FROMPY(UnconfirmedService, UnconfirmedService, eventNotification, eventNotification,PyAsnEventNotification_FromPython(value, &dst->choice.eventNotification)); -PY_IMPL_CHOICE_ATTR_TOPY(UnconfirmedService, eventNotification, PyCompatAsnType_FromParent(&PyAsnEventNotification_Type, parent, (void *)&src->choice.eventNotification)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(UnconfirmedService, UnconfirmedService, eventNotification, eventNotification, EventNotification,PyAsnEventNotification_FromPython(value, dst->choice.eventNotification)); +PY_IMPL_CHOICE_ATTR_TOPY(UnconfirmedService, eventNotification, PyCompatAsnType_FromParent(&PyAsnEventNotification_Type, parent, (void *)src->choice.eventNotification)); PY_IMPL_CHOICE_GETATTR(UnconfirmedService, UnconfirmedService, eventNotification, eventNotification); PY_IMPL_CHOICE_SETATTR(UnconfirmedService, UnconfirmedService, eventNotification, eventNotification); PY_IMPL_GENERIC_DEALLOC(UnconfirmedService); diff --git a/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.h b/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.h index 85ecbe03..1ea6111c 100644 --- a/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.h +++ b/src/icspacket/proto/mms/_mms/UnconfirmedService_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.c b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.c index bd10efaa..c2637c11 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.c +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.h b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.h index 2a79f74c..8ec34530 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.h +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #ifdef __cplusplus extern "C" { #endif /* UnitControlLoadSegment-Request */ -typedef Identifier_t UnitControlLoadSegment_Request_t; +typedef Identifier_t UnitControlLoadSegment_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_UnitControlLoadSegment_Request; diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.c b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.c index 7728fb74..81b8de9b 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.h b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.h index ba31557d..0f19ef58 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.c b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.c index 45e5f456..08e6c52c 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.c +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_controlElements_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlElements __attribute__((weak, alias("asn_DEF_controlElements_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlElements_2; +static asn_TYPE_descriptor_t asn_DEF_controlElements; +__attribute__((constructor)) static void asn_DEF_controlElements_2_alias_init(void) { + asn_DEF_controlElements = asn_DEF_controlElements_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_UnitControlLoadSegment_Response__controlElements_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_controlElements_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_controlElements_tags_2[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_controlElements_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_controlElements_2, + asn_MBR_UnitControlLoadSegment_Response__controlElements_2, 1, /* Single element */ &asn_SPC_controlElements_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.h b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.h index 571142c9..f05ed5d4 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.h +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -30,7 +30,7 @@ typedef struct UnitControlLoadSegment_Response { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } controlElements; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -46,7 +46,7 @@ extern asn_TYPE_member_t asn_MBR_UnitControlLoadSegment_Response_1[2]; #endif /* Referred external types */ -#include +#include "ControlElement.h" #endif /* _UnitControlLoadSegment_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.c b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.c index 31831c3d..85c6025c 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.h b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.h index 7a0bdf88..5e59353b 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/UnitControlLoadSegment-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.c b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.c index 3ec5de74..11914520 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.c +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_continueAfter_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_continueAfter __attribute__((weak, alias("asn_DEF_continueAfter_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_continueAfter_3; +static asn_TYPE_descriptor_t asn_DEF_continueAfter; +__attribute__((constructor)) static void asn_DEF_continueAfter_3_alias_init(void) { + asn_DEF_continueAfter = asn_DEF_continueAfter_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_UnitControlUpload_Request__continueAfter_3[] = { { ATF_NOFLAGS, 0, offsetof(struct UnitControlUpload_Request__continueAfter, choice.domain), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_continueAfter_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_continueAfter_3, + asn_MBR_UnitControlUpload_Request__continueAfter_3, 3, /* Elements count */ &asn_SPC_continueAfter_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.h b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.h index e916db01..bfacd448 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.h +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Identifier.h" #include #include #include @@ -29,13 +29,13 @@ typedef enum UnitControlUpload_Request__continueAfter_PR { /* UnitControlUpload-Request */ typedef struct UnitControlUpload_Request { - Identifier_t unitControlName; + Identifier_t unitControlName; struct UnitControlUpload_Request__continueAfter { UnitControlUpload_Request__continueAfter_PR present; union UnitControlUpload_Request__continueAfter_u { - Identifier_t domain; - long ulsmID; - Identifier_t programInvocation; + Identifier_t domain; + long ulsmID; + Identifier_t programInvocation; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.c b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.c index a0ba0d9d..d234fed3 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.h b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.h index e780b695..26975628 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,10 @@ #include #include #include +#include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.c b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.c index 2bd5e11d..543d5261 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.c +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.c @@ -1,10 +1,32 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_controlElements_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_controlElements __attribute__((weak, alias("asn_DEF_controlElements_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_controlElements_2; +static asn_TYPE_descriptor_t asn_DEF_controlElements; +__attribute__((constructor)) static void asn_DEF_controlElements_2_alias_init(void) { + asn_DEF_controlElements = asn_DEF_controlElements_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_nextElement __attribute__((weak, alias("asn_DEF_nextElement_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_nextElement_4; +static asn_TYPE_descriptor_t asn_DEF_nextElement; +__attribute__((constructor)) static void asn_DEF_nextElement_4_alias_init(void) { + asn_DEF_nextElement = asn_DEF_nextElement_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_UnitControlUpload_Response__controlElements_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_controlElements_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_controlElements_tags_2[] = { @@ -58,12 +80,12 @@ asn_TYPE_descriptor_t asn_DEF_controlElements_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_controlElements_2, + asn_MBR_UnitControlUpload_Response__controlElements_2, 1, /* Single element */ &asn_SPC_controlElements_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_nextElement_4[] = { +static asn_TYPE_member_t asn_MBR_UnitControlUpload_Response__nextElement_4[] = { { ATF_NOFLAGS, 0, offsetof(struct UnitControlUpload_Response__nextElement, choice.domain), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ @@ -161,7 +183,7 @@ asn_TYPE_descriptor_t asn_DEF_nextElement_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_nextElement_4, + asn_MBR_UnitControlUpload_Response__nextElement_4, 3, /* Elements count */ &asn_SPC_nextElement_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.h b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.h index cb10ddea..08be9ad7 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.h +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -12,7 +12,7 @@ /* Including external dependencies */ #include #include -#include +#include "Identifier.h" #include #include #include @@ -43,9 +43,9 @@ typedef struct UnitControlUpload_Response { struct UnitControlUpload_Response__nextElement { UnitControlUpload_Response__nextElement_PR present; union UnitControlUpload_Response__nextElement_u { - Identifier_t domain; - long ulsmID; - Identifier_t programInvocation; + Identifier_t domain; + long ulsmID; + Identifier_t programInvocation; } choice; /* Context for parsing across buffer boundaries */ @@ -66,7 +66,7 @@ extern asn_TYPE_member_t asn_MBR_UnitControlUpload_Response_1[2]; #endif /* Referred external types */ -#include +#include "ControlElement.h" #endif /* _UnitControlUpload_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.c b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.c index 01817cb5..7ae06b8e 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.h b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.h index 97dd1ee4..16a93b86 100644 --- a/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/UnitControlUpload-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,7 +13,12 @@ #include #include #include +#include +#include +#include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/mms/_mms/Unsigned16.c b/src/icspacket/proto/mms/_mms/Unsigned16.c index 1ce69034..2c89ae64 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned16.c +++ b/src/icspacket/proto/mms/_mms/Unsigned16.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned16.h b/src/icspacket/proto/mms/_mms/Unsigned16.h index db898d07..c9bd77f6 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned16.h +++ b/src/icspacket/proto/mms/_mms/Unsigned16.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Unsigned16 */ -typedef long Unsigned16_t; +typedef long Unsigned16_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Unsigned16; diff --git a/src/icspacket/proto/mms/_mms/Unsigned16_Py.c b/src/icspacket/proto/mms/_mms/Unsigned16_Py.c index 06fd93e8..4a87b7d1 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned16_Py.c +++ b/src/icspacket/proto/mms/_mms/Unsigned16_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned16_Py.h b/src/icspacket/proto/mms/_mms/Unsigned16_Py.h index 8e8c7a23..8645b23b 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned16_Py.h +++ b/src/icspacket/proto/mms/_mms/Unsigned16_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned32.c b/src/icspacket/proto/mms/_mms/Unsigned32.c index 633036ba..5ff22947 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned32.c +++ b/src/icspacket/proto/mms/_mms/Unsigned32.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned32.h b/src/icspacket/proto/mms/_mms/Unsigned32.h index 65b83f46..68253895 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned32.h +++ b/src/icspacket/proto/mms/_mms/Unsigned32.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Unsigned32 */ -typedef long Unsigned32_t; +typedef long Unsigned32_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Unsigned32; diff --git a/src/icspacket/proto/mms/_mms/Unsigned32_Py.c b/src/icspacket/proto/mms/_mms/Unsigned32_Py.c index 8a22868d..b898fccb 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned32_Py.c +++ b/src/icspacket/proto/mms/_mms/Unsigned32_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned32_Py.h b/src/icspacket/proto/mms/_mms/Unsigned32_Py.h index 5cf0f8c0..9ddddf6d 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned32_Py.h +++ b/src/icspacket/proto/mms/_mms/Unsigned32_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned8.c b/src/icspacket/proto/mms/_mms/Unsigned8.c index 6f74d69d..c867ea80 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned8.c +++ b/src/icspacket/proto/mms/_mms/Unsigned8.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned8.h b/src/icspacket/proto/mms/_mms/Unsigned8.h index 107c6acb..f479cab3 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned8.h +++ b/src/icspacket/proto/mms/_mms/Unsigned8.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Unsigned8 */ -typedef long Unsigned8_t; +typedef long Unsigned8_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Unsigned8; diff --git a/src/icspacket/proto/mms/_mms/Unsigned8_Py.c b/src/icspacket/proto/mms/_mms/Unsigned8_Py.c index 8fec7a49..1b69fb31 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned8_Py.c +++ b/src/icspacket/proto/mms/_mms/Unsigned8_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/Unsigned8_Py.h b/src/icspacket/proto/mms/_mms/Unsigned8_Py.h index 6f5de125..e241b4fc 100644 --- a/src/icspacket/proto/mms/_mms/Unsigned8_Py.h +++ b/src/icspacket/proto/mms/_mms/Unsigned8_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnsolicitedStatus.c b/src/icspacket/proto/mms/_mms/UnsolicitedStatus.c index b24e2084..d0c9ba64 100644 --- a/src/icspacket/proto/mms/_mms/UnsolicitedStatus.c +++ b/src/icspacket/proto/mms/_mms/UnsolicitedStatus.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnsolicitedStatus.h b/src/icspacket/proto/mms/_mms/UnsolicitedStatus.h index 5c8458ab..fe0af7a0 100644 --- a/src/icspacket/proto/mms/_mms/UnsolicitedStatus.h +++ b/src/icspacket/proto/mms/_mms/UnsolicitedStatus.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "StatusResponse.h" #ifdef __cplusplus extern "C" { #endif /* UnsolicitedStatus */ -typedef StatusResponse_t UnsolicitedStatus_t; +typedef StatusResponse_t UnsolicitedStatus_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_UnsolicitedStatus; diff --git a/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.c b/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.c index 3c32bef1..1dca807b 100644 --- a/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.c +++ b/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.h b/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.h index 8ecff203..4b24d39f 100644 --- a/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.h +++ b/src/icspacket/proto/mms/_mms/UnsolicitedStatus_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Request.c b/src/icspacket/proto/mms/_mms/UploadSegment-Request.c index 24c5810f..58bdf99c 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Request.c +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Request.h b/src/icspacket/proto/mms/_mms/UploadSegment-Request.h index 245800af..260e62c0 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Request.h +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Integer32.h" #ifdef __cplusplus extern "C" { #endif /* UploadSegment-Request */ -typedef Integer32_t UploadSegment_Request_t; +typedef Integer32_t UploadSegment_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_UploadSegment_Request; diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.c b/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.c index dabc27fd..3a55b5cd 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.h b/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.h index 9cb9c13e..064c3733 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Response.c b/src/icspacket/proto/mms/_mms/UploadSegment-Response.c index 3bca7678..80e67769 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Response.c +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -27,7 +27,7 @@ static int asn_DFL_3_set_1(void **sptr) { return 0; } asn_TYPE_member_t asn_MBR_UploadSegment_Response_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UploadSegment_Response, loadData), + { ATF_POINTER, 0, offsetof(struct UploadSegment_Response, loadData), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_LoadData, diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Response.h b/src/icspacket/proto/mms/_mms/UploadSegment-Response.h index 9c14618c..1eebf997 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Response.h +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include @@ -18,10 +17,13 @@ extern "C" { #endif +/* Forward declarations */ +struct LoadData; + /* UploadSegment-Response */ typedef struct UploadSegment_Response { - LoadData_t loadData; - BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ + struct LoadData *loadData; + BOOLEAN_t *moreFollows; /* DEFAULT TRUE */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_UploadSegment_Response_1[2]; } #endif +/* Referred external types */ +#include "LoadData.h" + #endif /* _UploadSegment_Response_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.c b/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.c index 041318a9..bb5e8d3e 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.c @@ -1,14 +1,16 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(UploadSegment_Response, loadData, PyAsnLoadData_FromPython(value, (LoadData_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(UploadSegment_Response, loadData, LoadData); -PY_IMPL_SEQ_GETATTR(UploadSegment_Response, loadData); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(UploadSegment_Response, loadData); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(UploadSegment_Response, loadData, LoadData_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(UploadSegment_Response, loadData, PyAsnLoadData_FromPython(value, (LoadData_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(UploadSegment_Response, loadData, LoadData); +PY_IMPL_SEQ_AUTOVIV_GETATTR(UploadSegment_Response, loadData); PY_IMPL_SEQ_SETATTR(UploadSegment_Response, loadData); PY_IMPL_SEQ_ATTR_GENERIC_FREE(UploadSegment_Response, moreFollows); PY_IMPL_SEQ_ATTR_GENERIC_NEW(UploadSegment_Response, moreFollows, BOOLEAN_t); diff --git a/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.h b/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.h index 89801355..6e7b515f 100644 --- a/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/UploadSegment-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UtcTime.c b/src/icspacket/proto/mms/_mms/UtcTime.c index 154a163c..594ab057 100644 --- a/src/icspacket/proto/mms/_mms/UtcTime.c +++ b/src/icspacket/proto/mms/_mms/UtcTime.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UtcTime.h b/src/icspacket/proto/mms/_mms/UtcTime.h index 414c2f93..19deb498 100644 --- a/src/icspacket/proto/mms/_mms/UtcTime.h +++ b/src/icspacket/proto/mms/_mms/UtcTime.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* UtcTime */ -typedef OCTET_STRING_t UtcTime_t; +typedef OCTET_STRING_t UtcTime_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_UtcTime; diff --git a/src/icspacket/proto/mms/_mms/UtcTime_Py.c b/src/icspacket/proto/mms/_mms/UtcTime_Py.c index 8c1f2d22..c6c5aee2 100644 --- a/src/icspacket/proto/mms/_mms/UtcTime_Py.c +++ b/src/icspacket/proto/mms/_mms/UtcTime_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/UtcTime_Py.h b/src/icspacket/proto/mms/_mms/UtcTime_Py.h index cd6986d5..f93963d4 100644 --- a/src/icspacket/proto/mms/_mms/UtcTime_Py.h +++ b/src/icspacket/proto/mms/_mms/UtcTime_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Request.c b/src/icspacket/proto/mms/_mms/VMDReset-Request.c index c2c45ed5..1d12e6a9 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Request.c +++ b/src/icspacket/proto/mms/_mms/VMDReset-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Request.h b/src/icspacket/proto/mms/_mms/VMDReset-Request.h index 614f8faa..1f3c41bf 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Request.h +++ b/src/icspacket/proto/mms/_mms/VMDReset-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* VMDReset-Request */ -typedef BOOLEAN_t VMDReset_Request_t; +typedef BOOLEAN_t VMDReset_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_VMDReset_Request; diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.c b/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.c index 4aa940e5..b2a74cfc 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.h b/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.h index 7f64c9cd..6405e2ad 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/VMDReset-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Response.c b/src/icspacket/proto/mms/_mms/VMDReset-Response.c index 5b7c8de9..a0dafab2 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Response.c +++ b/src/icspacket/proto/mms/_mms/VMDReset-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Response.h b/src/icspacket/proto/mms/_mms/VMDReset-Response.h index 7686ae8f..3464aef2 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Response.h +++ b/src/icspacket/proto/mms/_mms/VMDReset-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "StatusResponse.h" #ifdef __cplusplus extern "C" { #endif /* VMDReset-Response */ -typedef StatusResponse_t VMDReset_Response_t; +typedef StatusResponse_t VMDReset_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_VMDReset_Response; diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.c b/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.c index 88894242..6892a847 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.h b/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.h index cbba29d6..9f2ca4b1 100644 --- a/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/VMDReset-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Request.c b/src/icspacket/proto/mms/_mms/VMDStop-Request.c index 26d82f59..fbbeda80 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Request.c +++ b/src/icspacket/proto/mms/_mms/VMDStop-Request.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Request.h b/src/icspacket/proto/mms/_mms/VMDStop-Request.h index 8ad193fb..bbec38bb 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Request.h +++ b/src/icspacket/proto/mms/_mms/VMDStop-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* VMDStop-Request */ -typedef NULL_t VMDStop_Request_t; +typedef NULL_t VMDStop_Request_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_VMDStop_Request; diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.c b/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.c index 17f7108d..582228c2 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.h b/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.h index e70e1dd1..c8958d73 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/VMDStop-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Response.c b/src/icspacket/proto/mms/_mms/VMDStop-Response.c index ce5fd012..98592bb6 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Response.c +++ b/src/icspacket/proto/mms/_mms/VMDStop-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Response.h b/src/icspacket/proto/mms/_mms/VMDStop-Response.h index 007f810e..df6c70e9 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Response.h +++ b/src/icspacket/proto/mms/_mms/VMDStop-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* VMDStop-Response */ -typedef NULL_t VMDStop_Response_t; +typedef NULL_t VMDStop_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_VMDStop_Response; diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.c b/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.c index e191f2fb..15ed9ae7 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.h b/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.h index baccb8d4..df4981c6 100644 --- a/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/VMDStop-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/VariableAccessSpecification.c b/src/icspacket/proto/mms/_mms/VariableAccessSpecification.c index d3001515..c7c39856 100644 --- a/src/icspacket/proto/mms/_mms/VariableAccessSpecification.c +++ b/src/icspacket/proto/mms/_mms/VariableAccessSpecification.c @@ -1,11 +1,22 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_Member_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct VariableAccessSpecification__listOfVariable__Member, variableSpecification), +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfVariable __attribute__((weak, alias("asn_DEF_listOfVariable_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfVariable_2; +static asn_TYPE_descriptor_t asn_DEF_listOfVariable; +__attribute__((constructor)) static void asn_DEF_listOfVariable_2_alias_init(void) { + asn_DEF_listOfVariable = asn_DEF_listOfVariable_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_VariableAccessSpecification__listOfVariable__listOfVariable_Member_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct VariableAccessSpecification__listOfVariable__listOfVariable_Member, variableSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_VariableSpecification, @@ -25,7 +36,7 @@ static asn_TYPE_member_t asn_MBR_Member_3[] = { 0, 0, /* No default value */ "variableSpecification" }, - { ATF_POINTER, 1, offsetof(struct VariableAccessSpecification__listOfVariable__Member, alternateAccess), + { ATF_POINTER, 1, offsetof(struct VariableAccessSpecification__listOfVariable__listOfVariable_Member, alternateAccess), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AlternateAccess, @@ -46,11 +57,11 @@ static asn_TYPE_member_t asn_MBR_Member_3[] = { "alternateAccess" }, }; -static const int asn_MAP_Member_oms_3[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_3[] = { +static const int asn_MAP_listOfVariable_Member_oms_3[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_listOfVariable_Member_tags_3[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_3[] = { +static const asn_TYPE_tag2member_t asn_MAP_listOfVariable_Member_tag2el_3[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* name */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* address */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* variableDescription */ @@ -58,26 +69,26 @@ static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_3[] = { { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, 0, 0 }, /* invalidated */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 1, 0, 0 } /* alternateAccess */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_3 = { - sizeof(struct VariableAccessSpecification__listOfVariable__Member), - offsetof(struct VariableAccessSpecification__listOfVariable__Member, _asn_ctx), - asn_MAP_Member_tag2el_3, +static asn_SEQUENCE_specifics_t asn_SPC_listOfVariable_Member_specs_3 = { + sizeof(struct VariableAccessSpecification__listOfVariable__listOfVariable_Member), + offsetof(struct VariableAccessSpecification__listOfVariable__listOfVariable_Member, _asn_ctx), + asn_MAP_listOfVariable_Member_tag2el_3, 6, /* Count of tags in the map */ - asn_MAP_Member_oms_3, /* Optional members */ + asn_MAP_listOfVariable_Member_oms_3, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_3 = { +asn_TYPE_descriptor_t asn_DEF_listOfVariable_Member_3 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_3, - sizeof(asn_DEF_Member_tags_3) - /sizeof(asn_DEF_Member_tags_3[0]), /* 1 */ - asn_DEF_Member_tags_3, /* Same as above */ - sizeof(asn_DEF_Member_tags_3) - /sizeof(asn_DEF_Member_tags_3[0]), /* 1 */ + asn_DEF_listOfVariable_Member_tags_3, + sizeof(asn_DEF_listOfVariable_Member_tags_3) + /sizeof(asn_DEF_listOfVariable_Member_tags_3[0]), /* 1 */ + asn_DEF_listOfVariable_Member_tags_3, /* Same as above */ + sizeof(asn_DEF_listOfVariable_Member_tags_3) + /sizeof(asn_DEF_listOfVariable_Member_tags_3[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -90,16 +101,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_3, + asn_MBR_VariableAccessSpecification__listOfVariable__listOfVariable_Member_3, 2, /* Elements count */ - &asn_SPC_Member_specs_3 /* Additional specs */ + &asn_SPC_listOfVariable_Member_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_listOfVariable_2[] = { +static asn_TYPE_member_t asn_MBR_VariableAccessSpecification__listOfVariable_2[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_3, + &asn_DEF_listOfVariable_Member_3, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -149,7 +160,7 @@ asn_TYPE_descriptor_t asn_DEF_listOfVariable_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfVariable_2, + asn_MBR_VariableAccessSpecification__listOfVariable_2, 1, /* Single element */ &asn_SPC_listOfVariable_specs_2 /* Additional specs */ }; @@ -175,7 +186,7 @@ asn_TYPE_member_t asn_MBR_VariableAccessSpecification_1[] = { 0, 0, /* No default value */ "listOfVariable" }, - { ATF_NOFLAGS, 0, offsetof(struct VariableAccessSpecification, choice.variableListName), + { ATF_POINTER, 0, offsetof(struct VariableAccessSpecification, choice.variableListName), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/VariableAccessSpecification.h b/src/icspacket/proto/mms/_mms/VariableAccessSpecification.h index 85b42a7c..d0c188fb 100644 --- a/src/icspacket/proto/mms/_mms/VariableAccessSpecification.h +++ b/src/icspacket/proto/mms/_mms/VariableAccessSpecification.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,9 +10,8 @@ #include /* Including external dependencies */ -#include #include -#include +#include "VariableSpecification.h" #include #include #include @@ -29,28 +28,29 @@ typedef enum VariableAccessSpecification_PR { } VariableAccessSpecification_PR; /* Forward declarations */ +struct ObjectName; struct AlternateAccess; /* Forward definitions */ -typedef struct VariableAccessSpecification__listOfVariable__Member { - VariableSpecification_t variableSpecification; - struct AlternateAccess *alternateAccess; /* OPTIONAL */ +typedef struct VariableAccessSpecification__listOfVariable__listOfVariable_Member { + VariableSpecification_t variableSpecification; + struct AlternateAccess *alternateAccess; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} VariableAccessSpecification__listOfVariable__Member; +} VariableAccessSpecification__listOfVariable__listOfVariable_Member; /* VariableAccessSpecification */ typedef struct VariableAccessSpecification { VariableAccessSpecification_PR present; union VariableAccessSpecification_u { struct VariableAccessSpecification__listOfVariable { - A_SEQUENCE_OF(VariableAccessSpecification__listOfVariable__Member) list; + A_SEQUENCE_OF(VariableAccessSpecification__listOfVariable__listOfVariable_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } listOfVariable; - ObjectName_t variableListName; + struct ObjectName *variableListName; } choice; /* Context for parsing across buffer boundaries */ @@ -67,7 +67,8 @@ extern asn_TYPE_member_t asn_MBR_VariableAccessSpecification_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "AlternateAccess.h" #endif /* _VariableAccessSpecification_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.c b/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.c index 80781e35..a95c5b20 100644 --- a/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.c +++ b/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.c @@ -1,50 +1,50 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(VariableAccessSpecification_Member_ANON_3, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(VariableAccessSpecification_Member_ANON_3, variableSpecification, VariableSpecification); -PY_IMPL_SEQ_GETATTR(VariableAccessSpecification_Member_ANON_3, variableSpecification); -PY_IMPL_SEQ_SETATTR(VariableAccessSpecification_Member_ANON_3, variableSpecification); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(VariableAccessSpecification_Member_ANON_3, alternateAccess); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(VariableAccessSpecification_Member_ANON_3, alternateAccess, AlternateAccess_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(VariableAccessSpecification_Member_ANON_3, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(VariableAccessSpecification_Member_ANON_3, alternateAccess, AlternateAccess); -PY_IMPL_SEQ_OPT_GETATTR(VariableAccessSpecification_Member_ANON_3, alternateAccess); -PY_IMPL_SEQ_OPT_SETATTR(VariableAccessSpecification_Member_ANON_3, alternateAccess); -PY_IMPL_CHECK_CONSTRAINTS(VariableAccessSpecification_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); -PY_IMPL_ENCODE(VariableAccessSpecification_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); -PY_IMPL_DECODE(VariableAccessSpecification_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); -PY_IMPL_DEALLOC(VariableAccessSpecification_Member_ANON_3, *(asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type)); -PY_IMPL_SEQ_TOPY(VariableAccessSpecification_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); -PY_IMPL_DECODE_BER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_Member_ANON_3, ber, ATS_BER); -PY_IMPL_DECODE_DER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_Member_ANON_3, der, ATS_DER); -PY_IMPL_DECODE_CER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_Member_ANON_3, cer, ATS_BER); -PY_IMPL_DECODE_XER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_ENCODE_XER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_Member_ANON_3, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_ENCODE_JER(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_GENERIC_NEW(VariableAccessSpecification_Member_ANON_3, NULL); -PY_IMPL_REPR(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_GENERIC_IS_VALID(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_SEQ_FROMPY(VariableAccessSpecification_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(VariableAccessSpecification_Member_ANON_3, variableSpecification, variableSpecification); - PY_IMPL_SEQ_INIT_ATTR(VariableAccessSpecification_Member_ANON_3, alternateAccess, alternateAccess); +PY_IMPL_SEQ_ATTR_FROMPY(VariableAccessSpecification_listOfVariable_Member_ANON_3, variableSpecification, PyAsnVariableSpecification_FromPython(value, (VariableSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(VariableAccessSpecification_listOfVariable_Member_ANON_3, variableSpecification, VariableSpecification); +PY_IMPL_SEQ_GETATTR(VariableAccessSpecification_listOfVariable_Member_ANON_3, variableSpecification); +PY_IMPL_SEQ_SETATTR(VariableAccessSpecification_listOfVariable_Member_ANON_3, variableSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess, AlternateAccess_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess, PyAsnAlternateAccess_FromPython(value, (AlternateAccess_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess, AlternateAccess); +PY_IMPL_SEQ_OPT_GETATTR(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess); +PY_IMPL_SEQ_OPT_SETATTR(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess); +PY_IMPL_CHECK_CONSTRAINTS(VariableAccessSpecification_listOfVariable_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); +PY_IMPL_ENCODE(VariableAccessSpecification_listOfVariable_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); +PY_IMPL_DECODE(VariableAccessSpecification_listOfVariable_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); +PY_IMPL_DEALLOC(VariableAccessSpecification_listOfVariable_Member_ANON_3, *(asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type)); +PY_IMPL_SEQ_TOPY(VariableAccessSpecification_listOfVariable_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type); +PY_IMPL_DECODE_BER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_listOfVariable_Member_ANON_3, ber, ATS_BER); +PY_IMPL_DECODE_DER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_listOfVariable_Member_ANON_3, der, ATS_DER); +PY_IMPL_DECODE_CER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_listOfVariable_Member_ANON_3, cer, ATS_BER); +PY_IMPL_DECODE_XER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_ENCODE_XER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_ENCODE_SPECIFIC(VariableAccessSpecification_listOfVariable_Member_ANON_3, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_ENCODE_JER(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_GENERIC_NEW(VariableAccessSpecification_listOfVariable_Member_ANON_3, NULL); +PY_IMPL_REPR(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_GENERIC_IS_VALID(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_SEQ_FROMPY(VariableAccessSpecification_listOfVariable_Member_ANON_3, asn_DEF_VariableAccessSpecification.elements[0].type->elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(VariableAccessSpecification_listOfVariable_Member_ANON_3, variableSpecification, variableSpecification); + PY_IMPL_SEQ_INIT_ATTR(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess, alternateAccess); ); -PY_IMPL_SEQ_INIT(VariableAccessSpecification_Member_ANON_3); -PY_IMPL_SEQ_OF_ITEM_TOPY(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_Member_ANON_3_t, PyAsnVariableAccessSpecification_Member_ANON_3_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_Member_ANON_3_t, PyAsnVariableAccessSpecification_Member_ANON_3_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_Member_ANON_3_t); -PY_IMPL_SEQ_OF_GENERIC_SETITEM(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_Member_ANON_3_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_VariableAccessSpecification.elements[0].type)); -PY_IMPL_SEQ_OF_ADD(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_Member_ANON_3_t); +PY_IMPL_SEQ_INIT(VariableAccessSpecification_listOfVariable_Member_ANON_3); +PY_IMPL_SEQ_OF_ITEM_TOPY(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_listOfVariable_Member_ANON_3_t, PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_listOfVariable_Member_ANON_3_t, PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_listOfVariable_Member_ANON_3_t); +PY_IMPL_SEQ_OF_GENERIC_SETITEM(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_listOfVariable_Member_ANON_3_t, *PY_IMPL_SEQ_OF_COMPONENT_TYPE(asn_DEF_VariableAccessSpecification.elements[0].type)); +PY_IMPL_SEQ_OF_ADD(VariableAccessSpecification_listOfVariable_ANON_2, VariableAccessSpecification_listOfVariable_Member_ANON_3_t); PY_IMPL_SEQ_OF_NEW(VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_SEQ_OF_DEALLOC(VariableAccessSpecification_listOfVariable_ANON_2, asn_set_empty); PY_IMPL_SEQ_OF_INIT(VariableAccessSpecification_listOfVariable_ANON_2); @@ -67,14 +67,14 @@ PY_IMPL_ENCODE_JER(VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_GENERIC_IS_VALID(VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(VariableAccessSpecification, listOfVariable, &src->choice.listOfVariable, VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(VariableAccessSpecification, listOfVariable, &src->choice.listOfVariable, VariableAccessSpecification_listOfVariable_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(VariableAccessSpecification, VariableAccessSpecification, listOfVariable, listOfVariable, asn_DEF_VariableAccessSpecification); +PY_IMPL_CHOICE_GENERIC_SETATTR(VariableAccessSpecification, VariableAccessSpecification, listOfVariable, listOfVariable, *asn_DEF_VariableAccessSpecification.elements[0].type); PY_IMPL_CHOICE_GETATTR(VariableAccessSpecification, VariableAccessSpecification, listOfVariable, listOfVariable); PY_IMPL_SEQ_OF_LEN(VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_SEQ_OF_GETITEM(VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_SEQ_OF_CLEAR(VariableAccessSpecification_listOfVariable_ANON_2); PY_IMPL_SEQ_OF_EXTEND(VariableAccessSpecification_listOfVariable_ANON_2); -PY_IMPL_CHOICE_ATTR_FROMPY(VariableAccessSpecification, VariableAccessSpecification, variableListName, variableListName,PyAsnObjectName_FromPython(value, &dst->choice.variableListName)); -PY_IMPL_CHOICE_ATTR_TOPY(VariableAccessSpecification, variableListName, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.variableListName)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(VariableAccessSpecification, VariableAccessSpecification, variableListName, variableListName, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.variableListName)); +PY_IMPL_CHOICE_ATTR_TOPY(VariableAccessSpecification, variableListName, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.variableListName)); PY_IMPL_CHOICE_GETATTR(VariableAccessSpecification, VariableAccessSpecification, variableListName, variableListName); PY_IMPL_CHOICE_SETATTR(VariableAccessSpecification, VariableAccessSpecification, variableListName, variableListName); PY_IMPL_GENERIC_DEALLOC(VariableAccessSpecification); @@ -105,9 +105,9 @@ PY_IMPL_CHOICE_FROMPY(VariableAccessSpecification, &asn_DEF_VariableAccessSpecif PY_IMPL_CHOICE_INIT(VariableAccessSpecification); /* class attributes definition */ -static PyGetSetDef PyAsnVariableAccessSpecification_Member_ANON_3_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(VariableAccessSpecification_Member_ANON_3, variableSpecification, variableSpecification), - PY_IMPL_GETSET_ITEM_INTERNAL(VariableAccessSpecification_Member_ANON_3, alternateAccess, alternateAccess), +static PyGetSetDef PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(VariableAccessSpecification_listOfVariable_Member_ANON_3, variableSpecification, variableSpecification), + PY_IMPL_GETSET_ITEM_INTERNAL(VariableAccessSpecification_listOfVariable_Member_ANON_3, alternateAccess, alternateAccess), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnVariableAccessSpecification_listOfVariable_ANON_2_getset[] = { @@ -126,20 +126,20 @@ static PyGetSetDef PyAsnVariableAccessSpecification_getset[] = { }; /* class methods definition */ -static PyMethodDef PyAsnVariableAccessSpecification_Member_ANON_3_methods[] = { - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnVariableAccessSpecification_Member_ANON_3__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_Member_ANON_3, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_methods[] = { + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(VariableAccessSpecification_listOfVariable_Member_ANON_3, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnVariableAccessSpecification_listOfVariable_ANON_2_methods[] = { @@ -179,18 +179,18 @@ static PyMethodDef PyAsnVariableAccessSpecification_methods[] = { }; /* type definition */ -PyTypeObject PyAsnVariableAccessSpecification_Member_ANON_3_Type = { +PyTypeObject PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.VariableAccessSpecification.listOfVariable_TYPE.Member_TYPE", - .tp_basicsize = sizeof(PyAsnVariableAccessSpecification_Member_ANON_3Object), + .tp_basicsize = sizeof(PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnVariableAccessSpecification_Member_ANON_3__new, - .tp_repr = (reprfunc)PyAsnVariableAccessSpecification_Member_ANON_3__repr, - .tp_dealloc = (destructor)PyAsnVariableAccessSpecification_Member_ANON_3__dealloc, - .tp_init = (initproc)PyAsnVariableAccessSpecification_Member_ANON_3__init, - .tp_getset = PyAsnVariableAccessSpecification_Member_ANON_3_getset, - .tp_methods = PyAsnVariableAccessSpecification_Member_ANON_3_methods, - .tp_doc = "ASN.1 anonymous type VariableAccessSpecification__listOfVariable__Member_TYPE part of listOfVariable", + .tp_new = (newfunc)PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3__new, + .tp_repr = (reprfunc)PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3__repr, + .tp_dealloc = (destructor)PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3__dealloc, + .tp_init = (initproc)PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3__init, + .tp_getset = PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_getset, + .tp_methods = PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_methods, + .tp_doc = "ASN.1 anonymous type VariableAccessSpecification__listOfVariable__listOfVariable_Member_TYPE part of listOfVariable", }; PyTypeObject PyAsnVariableAccessSpecification_listOfVariable_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -222,7 +222,7 @@ PyTypeObject PyAsnVariableAccessSpecification_Type = { /* module initializer */ int PyAsnVariableAccessSpecification_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnVariableAccessSpecification_Member_ANON_3_Type) < 0) return -1; + if (PyType_Ready(&PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_Type) < 0) return -1; if (PyType_Ready(&PyAsnVariableAccessSpecification_listOfVariable_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnVariableAccessSpecification_Type) < 0) return -1; return 0; @@ -233,7 +233,7 @@ void PyAsnVariableAccessSpecification_ModClear(PyObject *mod) { } int PyAsnVariableAccessSpecification_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(VariableAccessSpecification_listOfVariable_ANON_2, Member_TYPE, &PyAsnVariableAccessSpecification_Member_ANON_3_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(VariableAccessSpecification_listOfVariable_ANON_2, Member_TYPE, &PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_Type); PY_IMPL_MOD_ASSIGN_OBJECT(VariableAccessSpecification, listOfVariable_TYPE, &PyAsnVariableAccessSpecification_listOfVariable_ANON_2_Type); PY_IMPL_NEW_ENUM(VariableAccessSpecification.PRESENT, PyAsnEnumVariableAccessSpecification_PRESENT_Type, -1, PY_IMPL_ENUM_VALUE(PR_NOTHING, VariableAccessSpecification_PR_NOTHING, 0); diff --git a/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.h b/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.h index 78568b7c..ba339bed 100644 --- a/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.h +++ b/src/icspacket/proto/mms/_mms/VariableAccessSpecification_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,6 +14,10 @@ #include #include #include +#include +#include +#include +#include #include #ifdef __cplusplus @@ -21,8 +25,8 @@ extern "C" { #endif /* VariableAccessSpecification */ -PyCompat_DEF_ANON_STRUCT(VariableAccessSpecification_Member_ANON_3, VariableAccessSpecification__listOfVariable__Member); -PyCompat_DEF_TYPE(VariableAccessSpecification_Member_ANON_3); +PyCompat_DEF_ANON_STRUCT(VariableAccessSpecification_listOfVariable_Member_ANON_3, VariableAccessSpecification__listOfVariable__listOfVariable_Member); +PyCompat_DEF_TYPE(VariableAccessSpecification_listOfVariable_Member_ANON_3); typedef struct VariableAccessSpecification__listOfVariable VariableAccessSpecification_listOfVariable_ANON_2_t; PyCompat_DEF_STRUCT(VariableAccessSpecification_listOfVariable_ANON_2); PyCompat_DEF_TYPE(VariableAccessSpecification_listOfVariable_ANON_2); @@ -31,8 +35,8 @@ PyCompat_DEF_TYPE(VariableAccessSpecification); PyCompat_DEF_ENUM(VariableAccessSpecification_PRESENT); /* Type Converters */ -int PyAsnVariableAccessSpecification_Member_ANON_3_FromPython(PyObject *pObj, VariableAccessSpecification_Member_ANON_3_t *pDst); -PyObject *PyAsnVariableAccessSpecification_Member_ANON_3_ToPython(VariableAccessSpecification_Member_ANON_3_t *pSrc, PyObject *parent); +int PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_FromPython(PyObject *pObj, VariableAccessSpecification_listOfVariable_Member_ANON_3_t *pDst); +PyObject *PyAsnVariableAccessSpecification_listOfVariable_Member_ANON_3_ToPython(VariableAccessSpecification_listOfVariable_Member_ANON_3_t *pSrc, PyObject *parent); int PyAsnVariableAccessSpecification_listOfVariable_ANON_2_FromPython(PyObject *pObj, VariableAccessSpecification_listOfVariable_ANON_2_t *pDst); PyObject *PyAsnVariableAccessSpecification_listOfVariable_ANON_2_ToPython(VariableAccessSpecification_listOfVariable_ANON_2_t *pSrc, PyObject *parent); int PyAsnVariableAccessSpecification_FromPython(PyObject *pObj, VariableAccessSpecification_t *pDst); diff --git a/src/icspacket/proto/mms/_mms/VariableSpecification.c b/src/icspacket/proto/mms/_mms/VariableSpecification.c index e749530c..bc63d12e 100644 --- a/src/icspacket/proto/mms/_mms/VariableSpecification.c +++ b/src/icspacket/proto/mms/_mms/VariableSpecification.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_variableDescription_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_variableDescription __attribute__((weak, alias("asn_DEF_variableDescription_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_variableDescription_4; +static asn_TYPE_descriptor_t asn_DEF_variableDescription; +__attribute__((constructor)) static void asn_DEF_variableDescription_4_alias_init(void) { + asn_DEF_variableDescription = asn_DEF_variableDescription_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_VariableSpecification__variableDescription_4[] = { { ATF_NOFLAGS, 0, offsetof(struct VariableSpecification__variableDescription, address), -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -102,13 +113,13 @@ asn_TYPE_descriptor_t asn_DEF_variableDescription_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_variableDescription_4, + asn_MBR_VariableSpecification__variableDescription_4, 2, /* Elements count */ &asn_SPC_variableDescription_specs_4 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_VariableSpecification_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VariableSpecification, choice.name), + { ATF_POINTER, 0, offsetof(struct VariableSpecification, choice.name), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, @@ -128,7 +139,7 @@ asn_TYPE_member_t asn_MBR_VariableSpecification_1[] = { 0, 0, /* No default value */ "name" }, - { ATF_NOFLAGS, 0, offsetof(struct VariableSpecification, choice.address), + { ATF_POINTER, 0, offsetof(struct VariableSpecification, choice.address), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_Address, diff --git a/src/icspacket/proto/mms/_mms/VariableSpecification.h b/src/icspacket/proto/mms/_mms/VariableSpecification.h index 33b98740..07272241 100644 --- a/src/icspacket/proto/mms/_mms/VariableSpecification.h +++ b/src/icspacket/proto/mms/_mms/VariableSpecification.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,10 +10,9 @@ #include /* Including external dependencies */ -#include -#include #include -#include +#include "Address.h" +#include "TypeSpecification.h" #include #include @@ -32,23 +31,25 @@ typedef enum VariableSpecification_PR { } VariableSpecification_PR; /* Forward declarations */ +struct ObjectName; +struct Address; struct ScatteredAccessDescription; /* VariableSpecification */ typedef struct VariableSpecification { VariableSpecification_PR present; union VariableSpecification_u { - ObjectName_t name; - Address_t address; + struct ObjectName *name; + struct Address *address; struct VariableSpecification__variableDescription { - Address_t address; - TypeSpecification_t typeSpecification; + Address_t address; + TypeSpecification_t typeSpecification; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } variableDescription; - struct ScatteredAccessDescription *scatteredAccessDescription; - NULL_t invalidated; + struct ScatteredAccessDescription *scatteredAccessDescription; + NULL_t invalidated; } choice; /* Context for parsing across buffer boundaries */ @@ -65,7 +66,9 @@ extern asn_TYPE_member_t asn_MBR_VariableSpecification_1[5]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "Address.h" +#include "ScatteredAccessDescription.h" #endif /* _VariableSpecification_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/VariableSpecification_Py.c b/src/icspacket/proto/mms/_mms/VariableSpecification_Py.c index 22e1c1cd..7bb2cee5 100644 --- a/src/icspacket/proto/mms/_mms/VariableSpecification_Py.c +++ b/src/icspacket/proto/mms/_mms/VariableSpecification_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -40,17 +40,17 @@ PY_IMPL_SEQ_FROMPY(VariableSpecification_variableDescription_ANON_4, asn_DEF_Var PY_IMPL_SEQ_INIT(VariableSpecification_variableDescription_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(VariableSpecification, variableDescription, &src->choice.variableDescription, VariableSpecification_variableDescription_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(VariableSpecification, variableDescription, &src->choice.variableDescription, VariableSpecification_variableDescription_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(VariableSpecification, VariableSpecification, variableDescription, variableDescription, asn_DEF_VariableSpecification); +PY_IMPL_CHOICE_GENERIC_SETATTR(VariableSpecification, VariableSpecification, variableDescription, variableDescription, *asn_DEF_VariableSpecification.elements[2].type); PY_IMPL_CHOICE_GETATTR(VariableSpecification, VariableSpecification, variableDescription, variableDescription); -PY_IMPL_CHOICE_ATTR_FROMPY(VariableSpecification, VariableSpecification, name, name,PyAsnObjectName_FromPython(value, &dst->choice.name)); -PY_IMPL_CHOICE_ATTR_TOPY(VariableSpecification, name, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)&src->choice.name)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(VariableSpecification, VariableSpecification, name, name, ObjectName,PyAsnObjectName_FromPython(value, dst->choice.name)); +PY_IMPL_CHOICE_ATTR_TOPY(VariableSpecification, name, PyCompatAsnType_FromParent(&PyAsnObjectName_Type, parent, (void *)src->choice.name)); PY_IMPL_CHOICE_GETATTR(VariableSpecification, VariableSpecification, name, name); PY_IMPL_CHOICE_SETATTR(VariableSpecification, VariableSpecification, name, name); -PY_IMPL_CHOICE_ATTR_FROMPY(VariableSpecification, VariableSpecification, address, address,PyAsnAddress_FromPython(value, &dst->choice.address)); -PY_IMPL_CHOICE_ATTR_TOPY(VariableSpecification, address, PyCompatAsnType_FromParent(&PyAsnAddress_Type, parent, (void *)&src->choice.address)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(VariableSpecification, VariableSpecification, address, address, Address,PyAsnAddress_FromPython(value, dst->choice.address)); +PY_IMPL_CHOICE_ATTR_TOPY(VariableSpecification, address, PyCompatAsnType_FromParent(&PyAsnAddress_Type, parent, (void *)src->choice.address)); PY_IMPL_CHOICE_GETATTR(VariableSpecification, VariableSpecification, address, address); PY_IMPL_CHOICE_SETATTR(VariableSpecification, VariableSpecification, address, address); -PY_IMPL_CHOICE_ATTR_FROMPY(VariableSpecification, VariableSpecification, scatteredAccessDescription, scatteredAccessDescription,PyAsnScatteredAccessDescription_FromPython(value, dst->choice.scatteredAccessDescription)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(VariableSpecification, VariableSpecification, scatteredAccessDescription, scatteredAccessDescription, ScatteredAccessDescription,PyAsnScatteredAccessDescription_FromPython(value, dst->choice.scatteredAccessDescription)); PY_IMPL_CHOICE_ATTR_TOPY(VariableSpecification, scatteredAccessDescription, PyCompatAsnType_FromParent(&PyAsnScatteredAccessDescription_Type, parent, (void *)src->choice.scatteredAccessDescription)); PY_IMPL_CHOICE_GETATTR(VariableSpecification, VariableSpecification, scatteredAccessDescription, scatteredAccessDescription); PY_IMPL_CHOICE_SETATTR(VariableSpecification, VariableSpecification, scatteredAccessDescription, scatteredAccessDescription); diff --git a/src/icspacket/proto/mms/_mms/VariableSpecification_Py.h b/src/icspacket/proto/mms/_mms/VariableSpecification_Py.h index 0e45908d..f33e4963 100644 --- a/src/icspacket/proto/mms/_mms/VariableSpecification_Py.h +++ b/src/icspacket/proto/mms/_mms/VariableSpecification_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -14,7 +14,10 @@ #include #include #include +#include +#include #include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Write-Request.c b/src/icspacket/proto/mms/_mms/Write-Request.c index 4be304c4..36772cf9 100644 --- a/src/icspacket/proto/mms/_mms/Write-Request.c +++ b/src/icspacket/proto/mms/_mms/Write-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfData_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfData __attribute__((weak, alias("asn_DEF_listOfData_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfData_3; +static asn_TYPE_descriptor_t asn_DEF_listOfData; +__attribute__((constructor)) static void asn_DEF_listOfData_3_alias_init(void) { + asn_DEF_listOfData = asn_DEF_listOfData_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Write_Request__listOfData_3[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfData_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfData_tags_3[] = { @@ -58,13 +69,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfData_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfData_3, + asn_MBR_Write_Request__listOfData_3, 1, /* Single element */ &asn_SPC_listOfData_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_Write_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Write_Request, variableAccessSpecification), + { ATF_POINTER, 0, offsetof(struct Write_Request, variableAccessSpecification), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_VariableAccessSpecification, diff --git a/src/icspacket/proto/mms/_mms/Write-Request.h b/src/icspacket/proto/mms/_mms/Write-Request.h index 02286583..8d1816a9 100644 --- a/src/icspacket/proto/mms/_mms/Write-Request.h +++ b/src/icspacket/proto/mms/_mms/Write-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -20,11 +19,12 @@ extern "C" { #endif /* Forward declarations */ +struct VariableAccessSpecification; struct Data; /* Write-Request */ typedef struct Write_Request { - VariableAccessSpecification_t variableAccessSpecification; + struct VariableAccessSpecification *variableAccessSpecification; struct Write_Request__listOfData { A_SEQUENCE_OF(struct Data) list; @@ -46,7 +46,8 @@ extern asn_TYPE_member_t asn_MBR_Write_Request_1[2]; #endif /* Referred external types */ -#include +#include "VariableAccessSpecification.h" +#include "Data.h" #endif /* _Write_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/Write-Request_Py.c b/src/icspacket/proto/mms/_mms/Write-Request_Py.c index 2d8b061d..de42bf64 100644 --- a/src/icspacket/proto/mms/_mms/Write-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/Write-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -39,9 +39,11 @@ PY_IMPL_SEQ_OF_LEN(Write_Request_listOfData_ANON_3); PY_IMPL_SEQ_OF_GETITEM(Write_Request_listOfData_ANON_3); PY_IMPL_SEQ_OF_CLEAR(Write_Request_listOfData_ANON_3); PY_IMPL_SEQ_OF_EXTEND(Write_Request_listOfData_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(Write_Request, variableAccessSpecification, PyAsnVariableAccessSpecification_FromPython(value, (VariableAccessSpecification_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Write_Request, variableAccessSpecification, VariableAccessSpecification); -PY_IMPL_SEQ_GETATTR(Write_Request, variableAccessSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Write_Request, variableAccessSpecification); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Write_Request, variableAccessSpecification, VariableAccessSpecification_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Write_Request, variableAccessSpecification, PyAsnVariableAccessSpecification_FromPython(value, (VariableAccessSpecification_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Write_Request, variableAccessSpecification, VariableAccessSpecification); +PY_IMPL_SEQ_AUTOVIV_GETATTR(Write_Request, variableAccessSpecification); PY_IMPL_SEQ_SETATTR(Write_Request, variableAccessSpecification); PY_IMPL_GENERIC_DEALLOC(Write_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(Write_Request); diff --git a/src/icspacket/proto/mms/_mms/Write-Request_Py.h b/src/icspacket/proto/mms/_mms/Write-Request_Py.h index 2c7f5610..a1fd8870 100644 --- a/src/icspacket/proto/mms/_mms/Write-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/Write-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/Write-Response.c b/src/icspacket/proto/mms/_mms/Write-Response.c index 79c375c1..cffaa792 100644 --- a/src/icspacket/proto/mms/_mms/Write-Response.c +++ b/src/icspacket/proto/mms/_mms/Write-Response.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Write_Response__Member, choice.failure), +static asn_TYPE_member_t asn_MBR_Write_Response__Write_Response_Member_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct Write_Response__Write_Response_Member, choice.failure), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_DataAccessError, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "failure" }, - { ATF_NOFLAGS, 0, offsetof(struct Write_Response__Member, choice.success), + { ATF_NOFLAGS, 0, offsetof(struct Write_Response__Write_Response_Member, choice.success), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NULL, @@ -46,22 +46,22 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { "success" }, }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { +static const asn_TYPE_tag2member_t asn_MAP_Write_Response_Member_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* failure */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* success */ }; -static asn_CHOICE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Write_Response__Member), - offsetof(struct Write_Response__Member, _asn_ctx), - offsetof(struct Write_Response__Member, present), - sizeof(((struct Write_Response__Member *)0)->present), - asn_MAP_Member_tag2el_2, +static asn_CHOICE_specifics_t asn_SPC_Write_Response_Member_specs_2 = { + sizeof(struct Write_Response__Write_Response_Member), + offsetof(struct Write_Response__Write_Response_Member, _asn_ctx), + offsetof(struct Write_Response__Write_Response_Member, present), + sizeof(((struct Write_Response__Write_Response_Member *)0)->present), + asn_MAP_Write_Response_Member_tag2el_2, 2, /* Count of tags in the map */ 0, 0, -1 /* Extensions start */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { +asn_TYPE_descriptor_t asn_DEF_Write_Response_Member_2 = { "CHOICE", "CHOICE", &asn_OP_CHOICE, @@ -81,16 +81,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_Member_2, + asn_MBR_Write_Response__Write_Response_Member_2, 2, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ + &asn_SPC_Write_Response_Member_specs_2 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_Write_Response_1[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_Member_2, + &asn_DEF_Write_Response_Member_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) diff --git a/src/icspacket/proto/mms/_mms/Write-Response.h b/src/icspacket/proto/mms/_mms/Write-Response.h index a6b982c6..bf420769 100644 --- a/src/icspacket/proto/mms/_mms/Write-Response.h +++ b/src/icspacket/proto/mms/_mms/Write-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -11,7 +11,7 @@ /* Including external dependencies */ #include -#include +#include "DataAccessError.h" #include #include #include @@ -21,27 +21,27 @@ extern "C" { #endif /* Dependencies */ -typedef enum Write_Response__Member_PR { - Write_Response__Member_PR_NOTHING, /* No components present */ - Write_Response__Member_PR_failure, - Write_Response__Member_PR_success -} Write_Response__Member_PR; +typedef enum Write_Response__Write_Response_Member_PR { + Write_Response__Write_Response_Member_PR_NOTHING, /* No components present */ + Write_Response__Write_Response_Member_PR_failure, + Write_Response__Write_Response_Member_PR_success +} Write_Response__Write_Response_Member_PR; /* Forward definitions */ -typedef struct Write_Response__Member { - Write_Response__Member_PR present; - union Write_Response__Member_u { - DataAccessError_t failure; - NULL_t success; +typedef struct Write_Response__Write_Response_Member { + Write_Response__Write_Response_Member_PR present; + union Write_Response__Write_Response_Member_u { + DataAccessError_t failure; + NULL_t success; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} Write_Response__Member; +} Write_Response__Write_Response_Member; /* Write-Response */ typedef struct Write_Response { - A_SEQUENCE_OF(Write_Response__Member) list; + A_SEQUENCE_OF(Write_Response__Write_Response_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/mms/_mms/Write-Response_Py.c b/src/icspacket/proto/mms/_mms/Write-Response_Py.c index 8d252adc..68141aec 100644 --- a/src/icspacket/proto/mms/_mms/Write-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/Write-Response_Py.c @@ -1,50 +1,50 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(Write_Response_Member_ANON_2, Write_Response__Member, failure, failure,PyAsnDataAccessError_FromPython(value, &dst->choice.failure)); -PY_IMPL_CHOICE_ATTR_TOPY(Write_Response_Member_ANON_2, failure, PyCompatAsnType_FromParent(&PyAsnDataAccessError_Type, parent, (void *)&src->choice.failure)); -PY_IMPL_CHOICE_GETATTR(Write_Response_Member_ANON_2, Write_Response__Member, failure, failure); -PY_IMPL_CHOICE_GENERIC_SETATTR(Write_Response_Member_ANON_2, Write_Response__Member, failure, failure, *asn_DEF_Write_Response.elements[0].type); -PY_IMPL_CHOICE_ATTR_FROMPY(Write_Response_Member_ANON_2, Write_Response__Member, success, success, PyCompatNull_FromObject(value, &dst->choice.success)); -PY_IMPL_CHOICE_ATTR_TOPY(Write_Response_Member_ANON_2, success, Py_None); -PY_IMPL_CHOICE_GETATTR(Write_Response_Member_ANON_2, Write_Response__Member, success, success); -PY_IMPL_CHOICE_GENERIC_SETATTR(Write_Response_Member_ANON_2, Write_Response__Member, success, success, *asn_DEF_Write_Response.elements[0].type); -PY_IMPL_CHECK_CONSTRAINTS(Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); -PY_IMPL_ENCODE(Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); -PY_IMPL_DECODE(Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); -PY_IMPL_DEALLOC(Write_Response_Member_ANON_2, *(asn_DEF_Write_Response.elements[0].type)); -PY_IMPL_SEQ_TOPY(Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); -PY_IMPL_GENERIC_REPR(Write_Response_Member_ANON_2, Write_Response__Member); -PY_IMPL_DECODE_BER(Write_Response_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Write_Response_Member_ANON_2, ber, ATS_BER); -PY_IMPL_DECODE_DER(Write_Response_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Write_Response_Member_ANON_2, der, ATS_DER); -PY_IMPL_DECODE_CER(Write_Response_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Write_Response_Member_ANON_2, cer, ATS_BER); -PY_IMPL_DECODE_XER(Write_Response_Member_ANON_2); -PY_IMPL_ENCODE_XER(Write_Response_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Write_Response_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(Write_Response_Member_ANON_2); -PY_IMPL_ENCODE_JER(Write_Response_Member_ANON_2); -PyObject *PyAsnEnumWrite_Response_Member_ANON_2_PRESENT_Type = NULL; -PY_IMPL_CHOICE_PRESENT_ATTR(Write_Response_Member_ANON_2); -PY_IMPL_GENERIC_NEW(Write_Response_Member_ANON_2, NULL); -PY_IMPL_GENERIC_IS_VALID(Write_Response_Member_ANON_2); -PY_IMPL_CHOICE_FROMPY(Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type, - PY_IMPL_CHOICE_INIT_ATTR(Write_Response_Member_ANON_2, Write_Response__Member, failure, failure, failure); - PY_IMPL_CHOICE_INIT_ATTR(Write_Response_Member_ANON_2, Write_Response__Member, success, success, success); +PY_IMPL_CHOICE_ATTR_FROMPY(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, failure, failure,PyAsnDataAccessError_FromPython(value, &dst->choice.failure)); +PY_IMPL_CHOICE_ATTR_TOPY(Write_Response_Write_Response_Member_ANON_2, failure, PyCompatAsnType_FromParent(&PyAsnDataAccessError_Type, parent, (void *)&src->choice.failure)); +PY_IMPL_CHOICE_GETATTR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, failure, failure); +PY_IMPL_CHOICE_GENERIC_SETATTR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, failure, failure, *asn_DEF_Write_Response.elements[0].type); +PY_IMPL_CHOICE_ATTR_FROMPY(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, success, success, PyCompatNull_FromObject(value, &dst->choice.success)); +PY_IMPL_CHOICE_ATTR_TOPY(Write_Response_Write_Response_Member_ANON_2, success, Py_None); +PY_IMPL_CHOICE_GETATTR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, success, success); +PY_IMPL_CHOICE_GENERIC_SETATTR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, success, success, *asn_DEF_Write_Response.elements[0].type); +PY_IMPL_CHECK_CONSTRAINTS(Write_Response_Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); +PY_IMPL_ENCODE(Write_Response_Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); +PY_IMPL_DECODE(Write_Response_Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); +PY_IMPL_DEALLOC(Write_Response_Write_Response_Member_ANON_2, *(asn_DEF_Write_Response.elements[0].type)); +PY_IMPL_SEQ_TOPY(Write_Response_Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type); +PY_IMPL_GENERIC_REPR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member); +PY_IMPL_DECODE_BER(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Write_Response_Write_Response_Member_ANON_2, ber, ATS_BER); +PY_IMPL_DECODE_DER(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Write_Response_Write_Response_Member_ANON_2, der, ATS_DER); +PY_IMPL_DECODE_CER(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Write_Response_Write_Response_Member_ANON_2, cer, ATS_BER); +PY_IMPL_DECODE_XER(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_ENCODE_XER(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Write_Response_Write_Response_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_ENCODE_JER(Write_Response_Write_Response_Member_ANON_2); +PyObject *PyAsnEnumWrite_Response_Write_Response_Member_ANON_2_PRESENT_Type = NULL; +PY_IMPL_CHOICE_PRESENT_ATTR(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_GENERIC_NEW(Write_Response_Write_Response_Member_ANON_2, NULL); +PY_IMPL_GENERIC_IS_VALID(Write_Response_Write_Response_Member_ANON_2); +PY_IMPL_CHOICE_FROMPY(Write_Response_Write_Response_Member_ANON_2, asn_DEF_Write_Response.elements[0].type, + PY_IMPL_CHOICE_INIT_ATTR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, failure, failure, failure); + PY_IMPL_CHOICE_INIT_ATTR(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member, success, success, success); ); -PY_IMPL_CHOICE_INIT_GENERIC(Write_Response_Member_ANON_2, Write_Response__Member); -PY_IMPL_SEQ_OF_ITEM_TOPY(Write_Response, Write_Response_Member_ANON_2_t, PyAsnWrite_Response_Member_ANON_2_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(Write_Response, Write_Response_Member_ANON_2_t, PyAsnWrite_Response_Member_ANON_2_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(Write_Response, Write_Response_Member_ANON_2_t); -PY_IMPL_SEQ_OF_SETITEM(Write_Response, Write_Response_Member_ANON_2_t); -PY_IMPL_SEQ_OF_ADD(Write_Response, Write_Response_Member_ANON_2_t); +PY_IMPL_CHOICE_INIT_GENERIC(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member); +PY_IMPL_SEQ_OF_ITEM_TOPY(Write_Response, Write_Response_Write_Response_Member_ANON_2_t, PyAsnWrite_Response_Write_Response_Member_ANON_2_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(Write_Response, Write_Response_Write_Response_Member_ANON_2_t, PyAsnWrite_Response_Write_Response_Member_ANON_2_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(Write_Response, Write_Response_Write_Response_Member_ANON_2_t); +PY_IMPL_SEQ_OF_SETITEM(Write_Response, Write_Response_Write_Response_Member_ANON_2_t); +PY_IMPL_SEQ_OF_ADD(Write_Response, Write_Response_Write_Response_Member_ANON_2_t); PY_IMPL_SEQ_OF_NEW(Write_Response); PY_IMPL_SEQ_OF_DEALLOC(Write_Response, asn_set_empty); PY_IMPL_SEQ_OF_INIT(Write_Response); @@ -71,10 +71,10 @@ PY_IMPL_SEQ_OF_CLEAR(Write_Response); PY_IMPL_SEQ_OF_EXTEND(Write_Response); /* class attributes definition */ -static PyGetSetDef PyAsnWrite_Response_Member_ANON_2_getset[] = { - {"present", (getter)PyAsnWrite_Response_Member_ANON_2__get_present, NULL, NULL, NULL}, - PY_IMPL_GETSET_ITEM_INTERNAL(Write_Response_Member_ANON_2, failure, failure), - PY_IMPL_GETSET_ITEM_INTERNAL(Write_Response_Member_ANON_2, success, success), +static PyGetSetDef PyAsnWrite_Response_Write_Response_Member_ANON_2_getset[] = { + {"present", (getter)PyAsnWrite_Response_Write_Response_Member_ANON_2__get_present, NULL, NULL, NULL}, + PY_IMPL_GETSET_ITEM_INTERNAL(Write_Response_Write_Response_Member_ANON_2, failure, failure), + PY_IMPL_GETSET_ITEM_INTERNAL(Write_Response_Write_Response_Member_ANON_2, success, success), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnWrite_Response_getset[] = { @@ -87,20 +87,20 @@ static PySequenceMethods PyAsnWrite_Response_seq_methods = { }; /* class methods definition */ -static PyMethodDef PyAsnWrite_Response_Member_ANON_2_methods[] = { - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnWrite_Response_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Write_Response_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnWrite_Response_Write_Response_Member_ANON_2_methods[] = { + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnWrite_Response_Write_Response_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Write_Response_Write_Response_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnWrite_Response_methods[] = { @@ -124,18 +124,18 @@ static PyMethodDef PyAsnWrite_Response_methods[] = { }; /* type definition */ -PyTypeObject PyAsnWrite_Response_Member_ANON_2_Type = { +PyTypeObject PyAsnWrite_Response_Write_Response_Member_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_mms.Write_Response.Member_TYPE", - .tp_basicsize = sizeof(PyAsnWrite_Response_Member_ANON_2Object), + .tp_basicsize = sizeof(PyAsnWrite_Response_Write_Response_Member_ANON_2Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnWrite_Response_Member_ANON_2__new, - .tp_repr = (reprfunc)PyAsnWrite_Response_Member_ANON_2__repr, - .tp_dealloc = (destructor)PyAsnWrite_Response_Member_ANON_2__dealloc, - .tp_init = (initproc)PyAsnWrite_Response_Member_ANON_2__init, - .tp_getset = PyAsnWrite_Response_Member_ANON_2_getset, - .tp_methods = PyAsnWrite_Response_Member_ANON_2_methods, - .tp_doc = "ASN.1 anonymous type Write_Response__Member_TYPE part of Write_Response", + .tp_new = (newfunc)PyAsnWrite_Response_Write_Response_Member_ANON_2__new, + .tp_repr = (reprfunc)PyAsnWrite_Response_Write_Response_Member_ANON_2__repr, + .tp_dealloc = (destructor)PyAsnWrite_Response_Write_Response_Member_ANON_2__dealloc, + .tp_init = (initproc)PyAsnWrite_Response_Write_Response_Member_ANON_2__init, + .tp_getset = PyAsnWrite_Response_Write_Response_Member_ANON_2_getset, + .tp_methods = PyAsnWrite_Response_Write_Response_Member_ANON_2_methods, + .tp_doc = "ASN.1 anonymous type Write_Response__Write_Response_Member_TYPE part of Write_Response", }; PyTypeObject PyAsnWrite_Response_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -154,24 +154,24 @@ PyTypeObject PyAsnWrite_Response_Type = { /* module initializer */ int PyAsnWrite_Response_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnWrite_Response_Member_ANON_2_Type) < 0) return -1; + if (PyType_Ready(&PyAsnWrite_Response_Write_Response_Member_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnWrite_Response_Type) < 0) return -1; return 0; } void PyAsnWrite_Response_ModClear(PyObject *mod) { - Py_CLEAR(PyAsnEnumWrite_Response_Member_ANON_2_PRESENT_Type); + Py_CLEAR(PyAsnEnumWrite_Response_Write_Response_Member_ANON_2_PRESENT_Type); } int PyAsnWrite_Response_ModInit(PyObject *mod) { - PY_IMPL_NEW_ENUM(Write_Response.Member_TYPE.PRESENT, PyAsnEnumWrite_Response_Member_ANON_2_PRESENT_Type, -1, - PY_IMPL_ENUM_VALUE(PR_NOTHING, Write_Response__Member_PR_NOTHING, 0); - PY_IMPL_ENUM_VALUE(PR_failure, Write_Response__Member_PR_failure, 1); - PY_IMPL_ENUM_VALUE(PR_success, Write_Response__Member_PR_success, 2); + PY_IMPL_NEW_ENUM(Write_Response.Member_TYPE.PRESENT, PyAsnEnumWrite_Response_Write_Response_Member_ANON_2_PRESENT_Type, -1, + PY_IMPL_ENUM_VALUE(PR_NOTHING, Write_Response__Write_Response_Member_PR_NOTHING, 0); + PY_IMPL_ENUM_VALUE(PR_failure, Write_Response__Write_Response_Member_PR_failure, 1); + PY_IMPL_ENUM_VALUE(PR_success, Write_Response__Write_Response_Member_PR_success, 2); ); - PY_IMPL_ASSIGN_ENUM_DIRECT(Write_Response_Member_ANON_2, Write_Response_Member_ANON_2_PRESENT, PRESENT); - PY_IMPL_MOD_ASSIGN_OBJECT(Write_Response, Member_TYPE, &PyAsnWrite_Response_Member_ANON_2_Type); - PY_IMPL_MOD_ADD_OBJECT(mod, Write_Response_Member_ANON_2); + PY_IMPL_ASSIGN_ENUM_DIRECT(Write_Response_Write_Response_Member_ANON_2, Write_Response_Write_Response_Member_ANON_2_PRESENT, PRESENT); + PY_IMPL_MOD_ASSIGN_OBJECT(Write_Response, Member_TYPE, &PyAsnWrite_Response_Write_Response_Member_ANON_2_Type); + PY_IMPL_MOD_ADD_OBJECT(mod, Write_Response_Write_Response_Member_ANON_2); PY_IMPL_MOD_ADD_OBJECT(mod, Write_Response); return 0; } diff --git a/src/icspacket/proto/mms/_mms/Write-Response_Py.h b/src/icspacket/proto/mms/_mms/Write-Response_Py.h index 4ac2f395..61deb20c 100644 --- a/src/icspacket/proto/mms/_mms/Write-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/Write-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,21 +13,23 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { #endif /* Write-Response */ -PyCompat_DEF_ANON_STRUCT(Write_Response_Member_ANON_2, Write_Response__Member); -PyCompat_DEF_TYPE(Write_Response_Member_ANON_2); -PyCompat_DEF_ENUM(Write_Response_Member_ANON_2_PRESENT); +PyCompat_DEF_ANON_STRUCT(Write_Response_Write_Response_Member_ANON_2, Write_Response__Write_Response_Member); +PyCompat_DEF_TYPE(Write_Response_Write_Response_Member_ANON_2); +PyCompat_DEF_ENUM(Write_Response_Write_Response_Member_ANON_2_PRESENT); PyCompat_DEF_STRUCT(Write_Response); PyCompat_DEF_TYPE(Write_Response); /* Type Converters */ -int PyAsnWrite_Response_Member_ANON_2_FromPython(PyObject *pObj, Write_Response_Member_ANON_2_t *pDst); -PyObject *PyAsnWrite_Response_Member_ANON_2_ToPython(Write_Response_Member_ANON_2_t *pSrc, PyObject *parent); +int PyAsnWrite_Response_Write_Response_Member_ANON_2_FromPython(PyObject *pObj, Write_Response_Write_Response_Member_ANON_2_t *pDst); +PyObject *PyAsnWrite_Response_Write_Response_Member_ANON_2_ToPython(Write_Response_Write_Response_Member_ANON_2_t *pSrc, PyObject *parent); int PyAsnWrite_Response_FromPython(PyObject *pObj, Write_Response_t *pDst); PyObject *PyAsnWrite_Response_ToPython(Write_Response_t *pSrc, PyObject *parent); diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Request.c b/src/icspacket/proto/mms/_mms/WriteJournal-Request.c index 3783fd08..71d2a8f7 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Request.c +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Request.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ #include -static asn_TYPE_member_t asn_MBR_listOfJournalEntry_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry __attribute__((weak, alias("asn_DEF_listOfJournalEntry_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry_3; +static asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry; +__attribute__((constructor)) static void asn_DEF_listOfJournalEntry_3_alias_init(void) { + asn_DEF_listOfJournalEntry = asn_DEF_listOfJournalEntry_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_WriteJournal_Request__listOfJournalEntry_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_listOfJournalEntry_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_listOfJournalEntry_tags_3[] = { @@ -58,13 +69,13 @@ asn_TYPE_descriptor_t asn_DEF_listOfJournalEntry_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_listOfJournalEntry_3, + asn_MBR_WriteJournal_Request__listOfJournalEntry_3, 1, /* Single element */ &asn_SPC_listOfJournalEntry_specs_3 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_WriteJournal_Request_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct WriteJournal_Request, journalName), + { ATF_POINTER, 0, offsetof(struct WriteJournal_Request, journalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ObjectName, diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Request.h b/src/icspacket/proto/mms/_mms/WriteJournal-Request.h index fdbe35eb..cf4a9083 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Request.h +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Request.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #include #include @@ -20,11 +19,12 @@ extern "C" { #endif /* Forward declarations */ +struct ObjectName; struct EntryContent; /* WriteJournal-Request */ typedef struct WriteJournal_Request { - ObjectName_t journalName; + struct ObjectName *journalName; struct WriteJournal_Request__listOfJournalEntry { A_SEQUENCE_OF(struct EntryContent) list; @@ -46,7 +46,8 @@ extern asn_TYPE_member_t asn_MBR_WriteJournal_Request_1[2]; #endif /* Referred external types */ -#include +#include "ObjectName.h" +#include "EntryContent.h" #endif /* _WriteJournal_Request_H_ */ #include diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.c b/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.c index 7681d706..5a47a8ea 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.c +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -39,9 +39,11 @@ PY_IMPL_SEQ_OF_LEN(WriteJournal_Request_listOfJournalEntry_ANON_3); PY_IMPL_SEQ_OF_GETITEM(WriteJournal_Request_listOfJournalEntry_ANON_3); PY_IMPL_SEQ_OF_CLEAR(WriteJournal_Request_listOfJournalEntry_ANON_3); PY_IMPL_SEQ_OF_EXTEND(WriteJournal_Request_listOfJournalEntry_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(WriteJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(WriteJournal_Request, journalName, ObjectName); -PY_IMPL_SEQ_GETATTR(WriteJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(WriteJournal_Request, journalName); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(WriteJournal_Request, journalName, ObjectName_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(WriteJournal_Request, journalName, PyAsnObjectName_FromPython(value, (ObjectName_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(WriteJournal_Request, journalName, ObjectName); +PY_IMPL_SEQ_AUTOVIV_GETATTR(WriteJournal_Request, journalName); PY_IMPL_SEQ_SETATTR(WriteJournal_Request, journalName); PY_IMPL_GENERIC_DEALLOC(WriteJournal_Request); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(WriteJournal_Request); diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.h b/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.h index d6586439..3c531fe1 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.h +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Request_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Response.c b/src/icspacket/proto/mms/_mms/WriteJournal-Response.c index 2cebccf5..451a8492 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Response.c +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Response.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Response.h b/src/icspacket/proto/mms/_mms/WriteJournal-Response.h index c33bd0d7..62905dc1 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Response.h +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Response.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* WriteJournal-Response */ -typedef NULL_t WriteJournal_Response_t; +typedef NULL_t WriteJournal_Response_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_WriteJournal_Response; diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.c b/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.c index f977e0bb..fb7df15a 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.c +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.h b/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.h index b9c83fef..b0d1aa02 100644 --- a/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.h +++ b/src/icspacket/proto/mms/_mms/WriteJournal-Response_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO-9506-MMS-1" */ diff --git a/src/icspacket/proto/mms/_mms/asn_config.h b/src/icspacket/proto/mms/_mms/asn_config.h index dd5305dd..86c45e9b 100644 --- a/src/icspacket/proto/mms/_mms/asn_config.h +++ b/src/icspacket/proto/mms/_mms/asn_config.h @@ -3,3 +3,5 @@ #define ASN_DISABLE_OER_SUPPORT 1 #define ASN_DISABLE_UPER_SUPPORT 1 #define ASN_DISABLE_APER_SUPPORT 1 +#define ASN_DISABLE_RFILL_SUPPORT 1 +#define ASN_DISABLE_CBOR_SUPPORT 1 diff --git a/src/icspacket/proto/mms/_mms/asn_constant.h b/src/icspacket/proto/mms/_mms/asn_constant.h index 508883f3..413114b6 100644 --- a/src/icspacket/proto/mms/_mms/asn_constant.h +++ b/src/icspacket/proto/mms/_mms/asn_constant.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty (http://lionet.info/asn1c) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) */ #ifndef _ASN_CONSTANT_H @@ -9,6 +9,8 @@ extern "C" { #endif +#define min_val_ABRT_source (0) +#define max_val_ABRT_source (1) #define maxIdentifier (32) #define min_val_Integer8 (-128) #define max_val_Integer8 (127) @@ -50,8 +52,6 @@ extern "C" { #define max_val_EE_Class (1) #define min_val_EE_Duration (0) #define max_val_EE_Duration (1) -#define min_val_ABRT_source (0) -#define max_val_ABRT_source (1) #ifdef __cplusplus diff --git a/src/icspacket/proto/mms/_mms/py_module.c b/src/icspacket/proto/mms/_mms/py_module.c index f004696b..32d90e5a 100644 --- a/src/icspacket/proto/mms/_mms/py_module.c +++ b/src/icspacket/proto/mms/_mms/py_module.c @@ -2,6 +2,41 @@ /* Module Cleanup */ PY_IMPL_MODULE_CLEAR(_mms, + PyAsnName_ModClear(m); + PyAsnDomainName_ModClear(m); + PyAsnRDNSequence_ModClear(m); + PyAsnRelativeDistinguishedName_ModClear(m); + PyAsnAttributeTypeAndValue_ModClear(m); + PyAsnACSE_apdu_ModClear(m); + PyAsnAARQ_apdu_ModClear(m); + PyAsnAARE_apdu_ModClear(m); + PyAsnRLRQ_apdu_ModClear(m); + PyAsnRLRE_apdu_ModClear(m); + PyAsnABRT_apdu_ModClear(m); + PyAsnABRT_diagnostic_ModClear(m); + PyAsnABRT_source_ModClear(m); + PyAsnACSE_requirements_ModClear(m); + PyAsnApplication_context_name_list_ModClear(m); + PyAsnApplication_context_name_ModClear(m); + PyAsnAP_title_ModClear(m); + PyAsnAE_qualifier_ModClear(m); + PyAsnAP_title_form1_ModClear(m); + PyAsnAE_qualifier_form1_ModClear(m); + PyAsnAP_title_form2_ModClear(m); + PyAsnAE_qualifier_form2_ModClear(m); + PyAsnAE_title_ModClear(m); + PyAsnAE_title_form1_ModClear(m); + PyAsnAE_title_form2_ModClear(m); + PyAsnAE_invocation_identifier_ModClear(m); + PyAsnAP_invocation_identifier_ModClear(m); + PyAsnAssociate_result_ModClear(m); + PyAsnAssociate_source_diagnostic_ModClear(m); + PyAsnAssociation_information_ModClear(m); + PyAsnAuthentication_value_ModClear(m); + PyAsnImplementation_data_ModClear(m); + PyAsnMechanism_name_ModClear(m); + PyAsnRelease_request_reason_ModClear(m); + PyAsnRelease_response_reason_ModClear(m); PyAsnEMBEDDED_PDV_ModClear(m); PyAsnTimeOfDay_ModClear(m); PyAsnIdentifier_ModClear(m); @@ -342,41 +377,6 @@ PY_IMPL_MODULE_CLEAR(_mms, PyAsnEE_Class_ModClear(m); PyAsnEE_Duration_ModClear(m); PyAsnJournal_Variable_ModClear(m); - PyAsnName_ModClear(m); - PyAsnDomainName_ModClear(m); - PyAsnRDNSequence_ModClear(m); - PyAsnRelativeDistinguishedName_ModClear(m); - PyAsnAttributeTypeAndValue_ModClear(m); - PyAsnACSE_apdu_ModClear(m); - PyAsnAARQ_apdu_ModClear(m); - PyAsnAARE_apdu_ModClear(m); - PyAsnRLRQ_apdu_ModClear(m); - PyAsnRLRE_apdu_ModClear(m); - PyAsnABRT_apdu_ModClear(m); - PyAsnABRT_diagnostic_ModClear(m); - PyAsnABRT_source_ModClear(m); - PyAsnACSE_requirements_ModClear(m); - PyAsnApplication_context_name_list_ModClear(m); - PyAsnApplication_context_name_ModClear(m); - PyAsnAP_title_ModClear(m); - PyAsnAE_qualifier_ModClear(m); - PyAsnAP_title_form1_ModClear(m); - PyAsnAE_qualifier_form1_ModClear(m); - PyAsnAP_title_form2_ModClear(m); - PyAsnAE_qualifier_form2_ModClear(m); - PyAsnAE_title_ModClear(m); - PyAsnAE_title_form1_ModClear(m); - PyAsnAE_title_form2_ModClear(m); - PyAsnAE_invocation_identifier_ModClear(m); - PyAsnAP_invocation_identifier_ModClear(m); - PyAsnAssociate_result_ModClear(m); - PyAsnAssociate_source_diagnostic_ModClear(m); - PyAsnAssociation_information_ModClear(m); - PyAsnAuthentication_value_ModClear(m); - PyAsnImplementation_data_ModClear(m); - PyAsnMechanism_name_ModClear(m); - PyAsnRelease_request_reason_ModClear(m); - PyAsnRelease_response_reason_ModClear(m); PyAsnEXTERNAL_ModClear(m); PyCompat_Clear(); ); @@ -386,6 +386,41 @@ PY_IMPL_MODULE_DEF(_mms); /* Module Init */ PY_IMPL_MODULE_INIT_BEGIN(_mms) + if (PyAsnName_ModSetupTypes() < 0) return NULL; + if (PyAsnDomainName_ModSetupTypes() < 0) return NULL; + if (PyAsnRDNSequence_ModSetupTypes() < 0) return NULL; + if (PyAsnRelativeDistinguishedName_ModSetupTypes() < 0) return NULL; + if (PyAsnAttributeTypeAndValue_ModSetupTypes() < 0) return NULL; + if (PyAsnACSE_apdu_ModSetupTypes() < 0) return NULL; + if (PyAsnAARQ_apdu_ModSetupTypes() < 0) return NULL; + if (PyAsnAARE_apdu_ModSetupTypes() < 0) return NULL; + if (PyAsnRLRQ_apdu_ModSetupTypes() < 0) return NULL; + if (PyAsnRLRE_apdu_ModSetupTypes() < 0) return NULL; + if (PyAsnABRT_apdu_ModSetupTypes() < 0) return NULL; + if (PyAsnABRT_diagnostic_ModSetupTypes() < 0) return NULL; + if (PyAsnABRT_source_ModSetupTypes() < 0) return NULL; + if (PyAsnACSE_requirements_ModSetupTypes() < 0) return NULL; + if (PyAsnApplication_context_name_list_ModSetupTypes() < 0) return NULL; + if (PyAsnApplication_context_name_ModSetupTypes() < 0) return NULL; + if (PyAsnAP_title_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_qualifier_ModSetupTypes() < 0) return NULL; + if (PyAsnAP_title_form1_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_qualifier_form1_ModSetupTypes() < 0) return NULL; + if (PyAsnAP_title_form2_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_qualifier_form2_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_title_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_title_form1_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_title_form2_ModSetupTypes() < 0) return NULL; + if (PyAsnAE_invocation_identifier_ModSetupTypes() < 0) return NULL; + if (PyAsnAP_invocation_identifier_ModSetupTypes() < 0) return NULL; + if (PyAsnAssociate_result_ModSetupTypes() < 0) return NULL; + if (PyAsnAssociate_source_diagnostic_ModSetupTypes() < 0) return NULL; + if (PyAsnAssociation_information_ModSetupTypes() < 0) return NULL; + if (PyAsnAuthentication_value_ModSetupTypes() < 0) return NULL; + if (PyAsnImplementation_data_ModSetupTypes() < 0) return NULL; + if (PyAsnMechanism_name_ModSetupTypes() < 0) return NULL; + if (PyAsnRelease_request_reason_ModSetupTypes() < 0) return NULL; + if (PyAsnRelease_response_reason_ModSetupTypes() < 0) return NULL; if (PyAsnEMBEDDED_PDV_ModSetupTypes() < 0) return NULL; if (PyAsnTimeOfDay_ModSetupTypes() < 0) return NULL; if (PyAsnIdentifier_ModSetupTypes() < 0) return NULL; @@ -726,46 +761,46 @@ PY_IMPL_MODULE_INIT_BEGIN(_mms) if (PyAsnEE_Class_ModSetupTypes() < 0) return NULL; if (PyAsnEE_Duration_ModSetupTypes() < 0) return NULL; if (PyAsnJournal_Variable_ModSetupTypes() < 0) return NULL; - if (PyAsnName_ModSetupTypes() < 0) return NULL; - if (PyAsnDomainName_ModSetupTypes() < 0) return NULL; - if (PyAsnRDNSequence_ModSetupTypes() < 0) return NULL; - if (PyAsnRelativeDistinguishedName_ModSetupTypes() < 0) return NULL; - if (PyAsnAttributeTypeAndValue_ModSetupTypes() < 0) return NULL; - if (PyAsnACSE_apdu_ModSetupTypes() < 0) return NULL; - if (PyAsnAARQ_apdu_ModSetupTypes() < 0) return NULL; - if (PyAsnAARE_apdu_ModSetupTypes() < 0) return NULL; - if (PyAsnRLRQ_apdu_ModSetupTypes() < 0) return NULL; - if (PyAsnRLRE_apdu_ModSetupTypes() < 0) return NULL; - if (PyAsnABRT_apdu_ModSetupTypes() < 0) return NULL; - if (PyAsnABRT_diagnostic_ModSetupTypes() < 0) return NULL; - if (PyAsnABRT_source_ModSetupTypes() < 0) return NULL; - if (PyAsnACSE_requirements_ModSetupTypes() < 0) return NULL; - if (PyAsnApplication_context_name_list_ModSetupTypes() < 0) return NULL; - if (PyAsnApplication_context_name_ModSetupTypes() < 0) return NULL; - if (PyAsnAP_title_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_qualifier_ModSetupTypes() < 0) return NULL; - if (PyAsnAP_title_form1_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_qualifier_form1_ModSetupTypes() < 0) return NULL; - if (PyAsnAP_title_form2_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_qualifier_form2_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_title_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_title_form1_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_title_form2_ModSetupTypes() < 0) return NULL; - if (PyAsnAE_invocation_identifier_ModSetupTypes() < 0) return NULL; - if (PyAsnAP_invocation_identifier_ModSetupTypes() < 0) return NULL; - if (PyAsnAssociate_result_ModSetupTypes() < 0) return NULL; - if (PyAsnAssociate_source_diagnostic_ModSetupTypes() < 0) return NULL; - if (PyAsnAssociation_information_ModSetupTypes() < 0) return NULL; - if (PyAsnAuthentication_value_ModSetupTypes() < 0) return NULL; - if (PyAsnImplementation_data_ModSetupTypes() < 0) return NULL; - if (PyAsnMechanism_name_ModSetupTypes() < 0) return NULL; - if (PyAsnRelease_request_reason_ModSetupTypes() < 0) return NULL; - if (PyAsnRelease_response_reason_ModSetupTypes() < 0) return NULL; if (PyAsnEXTERNAL_ModSetupTypes() < 0) return NULL; if((nModule = PyModule_Create(&PyAsnModule__mms)) == NULL) { return NULL; } if (PyCompat_Init() < 0) return NULL; + if (PyAsnName_ModInit(nModule) < 0) return NULL; + if (PyAsnDomainName_ModInit(nModule) < 0) return NULL; + if (PyAsnRDNSequence_ModInit(nModule) < 0) return NULL; + if (PyAsnRelativeDistinguishedName_ModInit(nModule) < 0) return NULL; + if (PyAsnAttributeTypeAndValue_ModInit(nModule) < 0) return NULL; + if (PyAsnACSE_apdu_ModInit(nModule) < 0) return NULL; + if (PyAsnAARQ_apdu_ModInit(nModule) < 0) return NULL; + if (PyAsnAARE_apdu_ModInit(nModule) < 0) return NULL; + if (PyAsnRLRQ_apdu_ModInit(nModule) < 0) return NULL; + if (PyAsnRLRE_apdu_ModInit(nModule) < 0) return NULL; + if (PyAsnABRT_apdu_ModInit(nModule) < 0) return NULL; + if (PyAsnABRT_diagnostic_ModInit(nModule) < 0) return NULL; + if (PyAsnABRT_source_ModInit(nModule) < 0) return NULL; + if (PyAsnACSE_requirements_ModInit(nModule) < 0) return NULL; + if (PyAsnApplication_context_name_list_ModInit(nModule) < 0) return NULL; + if (PyAsnApplication_context_name_ModInit(nModule) < 0) return NULL; + if (PyAsnAP_title_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_qualifier_ModInit(nModule) < 0) return NULL; + if (PyAsnAP_title_form1_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_qualifier_form1_ModInit(nModule) < 0) return NULL; + if (PyAsnAP_title_form2_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_qualifier_form2_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_title_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_title_form1_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_title_form2_ModInit(nModule) < 0) return NULL; + if (PyAsnAE_invocation_identifier_ModInit(nModule) < 0) return NULL; + if (PyAsnAP_invocation_identifier_ModInit(nModule) < 0) return NULL; + if (PyAsnAssociate_result_ModInit(nModule) < 0) return NULL; + if (PyAsnAssociate_source_diagnostic_ModInit(nModule) < 0) return NULL; + if (PyAsnAssociation_information_ModInit(nModule) < 0) return NULL; + if (PyAsnAuthentication_value_ModInit(nModule) < 0) return NULL; + if (PyAsnImplementation_data_ModInit(nModule) < 0) return NULL; + if (PyAsnMechanism_name_ModInit(nModule) < 0) return NULL; + if (PyAsnRelease_request_reason_ModInit(nModule) < 0) return NULL; + if (PyAsnRelease_response_reason_ModInit(nModule) < 0) return NULL; if (PyAsnEMBEDDED_PDV_ModInit(nModule) < 0) return NULL; if (PyAsnTimeOfDay_ModInit(nModule) < 0) return NULL; if (PyAsnIdentifier_ModInit(nModule) < 0) return NULL; @@ -1106,40 +1141,5 @@ PY_IMPL_MODULE_INIT_BEGIN(_mms) if (PyAsnEE_Class_ModInit(nModule) < 0) return NULL; if (PyAsnEE_Duration_ModInit(nModule) < 0) return NULL; if (PyAsnJournal_Variable_ModInit(nModule) < 0) return NULL; - if (PyAsnName_ModInit(nModule) < 0) return NULL; - if (PyAsnDomainName_ModInit(nModule) < 0) return NULL; - if (PyAsnRDNSequence_ModInit(nModule) < 0) return NULL; - if (PyAsnRelativeDistinguishedName_ModInit(nModule) < 0) return NULL; - if (PyAsnAttributeTypeAndValue_ModInit(nModule) < 0) return NULL; - if (PyAsnACSE_apdu_ModInit(nModule) < 0) return NULL; - if (PyAsnAARQ_apdu_ModInit(nModule) < 0) return NULL; - if (PyAsnAARE_apdu_ModInit(nModule) < 0) return NULL; - if (PyAsnRLRQ_apdu_ModInit(nModule) < 0) return NULL; - if (PyAsnRLRE_apdu_ModInit(nModule) < 0) return NULL; - if (PyAsnABRT_apdu_ModInit(nModule) < 0) return NULL; - if (PyAsnABRT_diagnostic_ModInit(nModule) < 0) return NULL; - if (PyAsnABRT_source_ModInit(nModule) < 0) return NULL; - if (PyAsnACSE_requirements_ModInit(nModule) < 0) return NULL; - if (PyAsnApplication_context_name_list_ModInit(nModule) < 0) return NULL; - if (PyAsnApplication_context_name_ModInit(nModule) < 0) return NULL; - if (PyAsnAP_title_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_qualifier_ModInit(nModule) < 0) return NULL; - if (PyAsnAP_title_form1_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_qualifier_form1_ModInit(nModule) < 0) return NULL; - if (PyAsnAP_title_form2_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_qualifier_form2_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_title_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_title_form1_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_title_form2_ModInit(nModule) < 0) return NULL; - if (PyAsnAE_invocation_identifier_ModInit(nModule) < 0) return NULL; - if (PyAsnAP_invocation_identifier_ModInit(nModule) < 0) return NULL; - if (PyAsnAssociate_result_ModInit(nModule) < 0) return NULL; - if (PyAsnAssociate_source_diagnostic_ModInit(nModule) < 0) return NULL; - if (PyAsnAssociation_information_ModInit(nModule) < 0) return NULL; - if (PyAsnAuthentication_value_ModInit(nModule) < 0) return NULL; - if (PyAsnImplementation_data_ModInit(nModule) < 0) return NULL; - if (PyAsnMechanism_name_ModInit(nModule) < 0) return NULL; - if (PyAsnRelease_request_reason_ModInit(nModule) < 0) return NULL; - if (PyAsnRelease_response_reason_ModInit(nModule) < 0) return NULL; if (PyAsnEXTERNAL_ModInit(nModule) < 0) return NULL; PY_IMPL_MODULE_INIT_END; diff --git a/src/icspacket/proto/mms/_mms/py_module.h b/src/icspacket/proto/mms/_mms/py_module.h index 8277da55..049420a2 100644 --- a/src/icspacket/proto/mms/_mms/py_module.h +++ b/src/icspacket/proto/mms/_mms/py_module.h @@ -5,6 +5,41 @@ #include /* Includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -345,41 +380,6 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #ifdef __cplusplus From 305161bad5742de4a748bfe4655f6d38635c696b Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:26:05 +0200 Subject: [PATCH 5/9] refactor: sync ISO8823 ASN1 types --- .../proto/iso_pres/_iso8823/AC-PPDU.c | 2 +- .../proto/iso_pres/_iso8823/AC-PPDU.h | 16 +- .../proto/iso_pres/_iso8823/AC-PPDU_Py.c | 2 +- .../proto/iso_pres/_iso8823/AC-PPDU_Py.h | 2 +- .../proto/iso_pres/_iso8823/ACA-PPDU.c | 2 +- .../proto/iso_pres/_iso8823/ACA-PPDU.h | 16 +- .../proto/iso_pres/_iso8823/ACA-PPDU_Py.c | 2 +- .../proto/iso_pres/_iso8823/ACA-PPDU_Py.h | 2 +- .../proto/iso_pres/_iso8823/ARP-PPDU.c | 2 +- .../proto/iso_pres/_iso8823/ARP-PPDU.h | 10 +- .../proto/iso_pres/_iso8823/ARP-PPDU_Py.c | 2 +- .../proto/iso_pres/_iso8823/ARP-PPDU_Py.h | 2 +- .../proto/iso_pres/_iso8823/ARU-PPDU.c | 17 +- .../proto/iso_pres/_iso8823/ARU-PPDU.h | 10 +- .../proto/iso_pres/_iso8823/ARU-PPDU_Py.c | 4 +- .../proto/iso_pres/_iso8823/ARU-PPDU_Py.h | 4 +- .../proto/iso_pres/_iso8823/Abort-reason.c | 2 +- .../proto/iso_pres/_iso8823/Abort-reason.h | 4 +- .../proto/iso_pres/_iso8823/Abort-reason_Py.c | 2 +- .../proto/iso_pres/_iso8823/Abort-reason_Py.h | 2 +- .../proto/iso_pres/_iso8823/Abort-type.c | 6 +- .../proto/iso_pres/_iso8823/Abort-type.h | 16 +- .../proto/iso_pres/_iso8823/Abort-type_Py.c | 10 +- .../proto/iso_pres/_iso8823/Abort-type_Py.h | 2 +- .../iso_pres/_iso8823/Abstract-syntax-name.c | 2 +- .../iso_pres/_iso8823/Abstract-syntax-name.h | 4 +- .../_iso8823/Abstract-syntax-name_Py.c | 2 +- .../_iso8823/Abstract-syntax-name_Py.h | 2 +- .../proto/iso_pres/_iso8823/CP-type.c | 43 ++++- .../proto/iso_pres/_iso8823/CP-type.h | 49 +++--- .../proto/iso_pres/_iso8823/CP-type_Py.c | 12 +- .../proto/iso_pres/_iso8823/CP-type_Py.h | 4 +- .../proto/iso_pres/_iso8823/CPA-PPDU.c | 43 ++++- .../proto/iso_pres/_iso8823/CPA-PPDU.h | 41 +++-- .../proto/iso_pres/_iso8823/CPA-PPDU_Py.c | 12 +- .../proto/iso_pres/_iso8823/CPA-PPDU_Py.h | 4 +- .../proto/iso_pres/_iso8823/CPC-type.c | 2 +- .../proto/iso_pres/_iso8823/CPC-type.h | 6 +- .../proto/iso_pres/_iso8823/CPC-type_Py.c | 2 +- .../proto/iso_pres/_iso8823/CPC-type_Py.h | 2 +- .../proto/iso_pres/_iso8823/CPR-PPDU.c | 23 ++- .../proto/iso_pres/_iso8823/CPR-PPDU.h | 28 +-- .../proto/iso_pres/_iso8823/CPR-PPDU_Py.c | 4 +- .../proto/iso_pres/_iso8823/CPR-PPDU_Py.h | 4 +- .../_iso8823/Called-presentation-selector.c | 2 +- .../_iso8823/Called-presentation-selector.h | 6 +- .../Called-presentation-selector_Py.c | 2 +- .../Called-presentation-selector_Py.h | 2 +- .../_iso8823/Calling-presentation-selector.c | 2 +- .../_iso8823/Calling-presentation-selector.h | 6 +- .../Calling-presentation-selector_Py.c | 2 +- .../Calling-presentation-selector_Py.h | 2 +- .../proto/iso_pres/_iso8823/Context-list.c | 63 ++++--- .../proto/iso_pres/_iso8823/Context-list.h | 20 +-- .../proto/iso_pres/_iso8823/Context-list_Py.c | 146 +++++++-------- .../proto/iso_pres/_iso8823/Context-list_Py.h | 16 +- .../iso_pres/_iso8823/Default-context-name.c | 2 +- .../iso_pres/_iso8823/Default-context-name.h | 10 +- .../_iso8823/Default-context-name_Py.c | 2 +- .../_iso8823/Default-context-name_Py.h | 2 +- .../_iso8823/Default-context-result.c | 2 +- .../_iso8823/Default-context-result.h | 6 +- .../_iso8823/Default-context-result_Py.c | 2 +- .../_iso8823/Default-context-result_Py.h | 2 +- .../iso_pres/_iso8823/Event-identifier.c | 2 +- .../iso_pres/_iso8823/Event-identifier.h | 4 +- .../iso_pres/_iso8823/Event-identifier_Py.c | 2 +- .../iso_pres/_iso8823/Event-identifier_Py.h | 2 +- .../iso_pres/_iso8823/Fully-encoded-data.c | 4 +- .../iso_pres/_iso8823/Fully-encoded-data.h | 4 +- .../iso_pres/_iso8823/Fully-encoded-data_Py.c | 2 +- .../iso_pres/_iso8823/Fully-encoded-data_Py.h | 2 +- .../proto/iso_pres/_iso8823/Mode-selector.c | 2 +- .../proto/iso_pres/_iso8823/Mode-selector.h | 4 +- .../iso_pres/_iso8823/Mode-selector_Py.c | 2 +- .../iso_pres/_iso8823/Mode-selector_Py.h | 2 +- .../proto/iso_pres/_iso8823/PDV-list.c | 23 ++- .../proto/iso_pres/_iso8823/PDV-list.h | 16 +- .../proto/iso_pres/_iso8823/PDV-list_Py.c | 3 +- .../proto/iso_pres/_iso8823/PDV-list_Py.h | 4 +- .../Presentation-context-addition-list.c | 2 +- .../Presentation-context-addition-list.h | 6 +- .../Presentation-context-addition-list_Py.c | 2 +- .../Presentation-context-addition-list_Py.h | 2 +- ...resentation-context-addition-result-list.c | 2 +- ...resentation-context-addition-result-list.h | 6 +- ...entation-context-addition-result-list_Py.c | 2 +- ...entation-context-addition-result-list_Py.h | 2 +- .../Presentation-context-definition-list.c | 2 +- .../Presentation-context-definition-list.h | 6 +- .../Presentation-context-definition-list_Py.c | 2 +- .../Presentation-context-definition-list_Py.h | 2 +- ...sentation-context-definition-result-list.c | 2 +- ...sentation-context-definition-result-list.h | 6 +- ...tation-context-definition-result-list_Py.c | 2 +- ...tation-context-definition-result-list_Py.h | 2 +- .../Presentation-context-deletion-list.c | 4 +- .../Presentation-context-deletion-list.h | 4 +- .../Presentation-context-deletion-list_Py.c | 2 +- .../Presentation-context-deletion-list_Py.h | 2 +- ...resentation-context-deletion-result-list.c | 4 +- ...resentation-context-deletion-result-list.h | 2 +- ...entation-context-deletion-result-list_Py.c | 2 +- ...entation-context-deletion-result-list_Py.h | 2 +- .../Presentation-context-identifier-list.c | 40 ++--- .../Presentation-context-identifier-list.h | 16 +- .../Presentation-context-identifier-list_Py.c | 130 +++++++------- .../Presentation-context-identifier-list_Py.h | 12 +- .../Presentation-context-identifier.c | 2 +- .../Presentation-context-identifier.h | 4 +- .../Presentation-context-identifier_Py.c | 2 +- .../Presentation-context-identifier_Py.h | 2 +- .../_iso8823/Presentation-requirements.c | 8 +- .../_iso8823/Presentation-requirements.h | 5 +- .../_iso8823/Presentation-requirements_Py.c | 2 +- .../_iso8823/Presentation-requirements_Py.h | 2 +- .../iso_pres/_iso8823/Presentation-selector.c | 2 +- .../iso_pres/_iso8823/Presentation-selector.h | 4 +- .../_iso8823/Presentation-selector_Py.c | 2 +- .../_iso8823/Presentation-selector_Py.h | 2 +- .../iso_pres/_iso8823/Protocol-options.c | 8 +- .../iso_pres/_iso8823/Protocol-options.h | 5 +- .../iso_pres/_iso8823/Protocol-options_Py.c | 2 +- .../iso_pres/_iso8823/Protocol-options_Py.h | 2 +- .../iso_pres/_iso8823/Protocol-version.c | 8 +- .../iso_pres/_iso8823/Protocol-version.h | 5 +- .../iso_pres/_iso8823/Protocol-version_Py.c | 2 +- .../iso_pres/_iso8823/Protocol-version_Py.h | 2 +- .../proto/iso_pres/_iso8823/Provider-reason.c | 2 +- .../proto/iso_pres/_iso8823/Provider-reason.h | 4 +- .../iso_pres/_iso8823/Provider-reason_Py.c | 2 +- .../iso_pres/_iso8823/Provider-reason_Py.h | 2 +- .../proto/iso_pres/_iso8823/RS-PPDU.c | 2 +- .../proto/iso_pres/_iso8823/RS-PPDU.h | 10 +- .../proto/iso_pres/_iso8823/RS-PPDU_Py.c | 2 +- .../proto/iso_pres/_iso8823/RS-PPDU_Py.h | 2 +- .../proto/iso_pres/_iso8823/RSA-PPDU.c | 2 +- .../proto/iso_pres/_iso8823/RSA-PPDU.h | 10 +- .../proto/iso_pres/_iso8823/RSA-PPDU_Py.c | 2 +- .../proto/iso_pres/_iso8823/RSA-PPDU_Py.h | 2 +- .../Responding-presentation-selector.c | 2 +- .../Responding-presentation-selector.h | 6 +- .../Responding-presentation-selector_Py.c | 2 +- .../Responding-presentation-selector_Py.h | 2 +- .../proto/iso_pres/_iso8823/Result-list.c | 46 ++--- .../proto/iso_pres/_iso8823/Result-list.h | 30 ++-- .../proto/iso_pres/_iso8823/Result-list_Py.c | 166 +++++++++--------- .../proto/iso_pres/_iso8823/Result-list_Py.h | 14 +- .../proto/iso_pres/_iso8823/Result.c | 2 +- .../proto/iso_pres/_iso8823/Result.h | 4 +- .../proto/iso_pres/_iso8823/Result_Py.c | 2 +- .../proto/iso_pres/_iso8823/Result_Py.h | 2 +- .../iso_pres/_iso8823/Simply-encoded-data.c | 2 +- .../iso_pres/_iso8823/Simply-encoded-data.h | 4 +- .../_iso8823/Simply-encoded-data_Py.c | 2 +- .../_iso8823/Simply-encoded-data_Py.h | 2 +- .../iso_pres/_iso8823/Transfer-syntax-name.c | 2 +- .../iso_pres/_iso8823/Transfer-syntax-name.h | 4 +- .../_iso8823/Transfer-syntax-name_Py.c | 2 +- .../_iso8823/Transfer-syntax-name_Py.h | 2 +- .../proto/iso_pres/_iso8823/Typed-data-type.c | 8 +- .../proto/iso_pres/_iso8823/Typed-data-type.h | 21 ++- .../iso_pres/_iso8823/Typed-data-type_Py.c | 14 +- .../iso_pres/_iso8823/Typed-data-type_Py.h | 2 +- .../proto/iso_pres/_iso8823/User-data.c | 4 +- .../proto/iso_pres/_iso8823/User-data.h | 15 +- .../proto/iso_pres/_iso8823/User-data_Py.c | 6 +- .../proto/iso_pres/_iso8823/User-data_Py.h | 2 +- .../_iso8823/User-session-requirements.c | 8 +- .../_iso8823/User-session-requirements.h | 5 +- .../_iso8823/User-session-requirements_Py.c | 2 +- .../_iso8823/User-session-requirements_Py.h | 2 +- .../proto/iso_pres/_iso8823/asn_config.h | 2 + 173 files changed, 883 insertions(+), 690 deletions(-) diff --git a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.c index 31649865..968d0ffc 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.h index c7569a2a..aeb36efd 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -18,14 +17,16 @@ extern "C" { #endif /* Forward declarations */ +struct Presentation_context_addition_list; struct Presentation_context_deletion_list; struct User_data; +struct Context_list; /* AC-PPDU */ typedef struct AC_PPDU { - Presentation_context_addition_list_t *presentation_context_addition_list; /* OPTIONAL */ - struct Presentation_context_deletion_list *presentation_context_deletion_list; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + struct Context_list *presentation_context_addition_list; /* OPTIONAL */ + struct Presentation_context_deletion_list *presentation_context_deletion_list; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,8 +42,9 @@ extern asn_TYPE_member_t asn_MBR_AC_PPDU_1[3]; #endif /* Referred external types */ -#include -#include +#include "Presentation-context-addition-list.h" +#include "Presentation-context-deletion-list.h" +#include "User-data.h" #endif /* _AC_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.c index 6278214f..15d2f805 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.h index 70f6f7ab..1391adc6 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/AC-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.c index 23084fb5..85b2d69b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.h index c77d3226..04d3ccff 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -18,14 +17,16 @@ extern "C" { #endif /* Forward declarations */ +struct Presentation_context_addition_result_list; struct Presentation_context_deletion_result_list; struct User_data; +struct Result_list; /* ACA-PPDU */ typedef struct ACA_PPDU { - Presentation_context_addition_result_list_t *presentation_context_addition_result_list; /* OPTIONAL */ - struct Presentation_context_deletion_result_list *presentation_context_deletion_result_list; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + struct Result_list *presentation_context_addition_result_list; /* OPTIONAL */ + struct Presentation_context_deletion_result_list *presentation_context_deletion_result_list; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -41,8 +42,9 @@ extern asn_TYPE_member_t asn_MBR_ACA_PPDU_1[3]; #endif /* Referred external types */ -#include -#include +#include "Presentation-context-addition-result-list.h" +#include "Presentation-context-deletion-result-list.h" +#include "User-data.h" #endif /* _ACA_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.c index 138c1242..a57641ec 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.h index dc6fd0b7..3d11b4da 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/ACA-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.c index 227cfc47..87c932f4 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.h index 6759b4a6..cdacda64 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Abort-reason.h" +#include "Event-identifier.h" #include #ifdef __cplusplus @@ -20,8 +20,8 @@ extern "C" { /* ARP-PPDU */ typedef struct ARP_PPDU { - Abort_reason_t *provider_reason; /* OPTIONAL */ - Event_identifier_t *event_identifier; /* OPTIONAL */ + Abort_reason_t *provider_reason; /* OPTIONAL */ + Event_identifier_t *event_identifier; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.c index 1e90df31..23fbcec1 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.h index 273328c4..0613e514 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/ARP-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.c index 2ae6aa53..07e84324 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_normal_mode_parameters_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters __attribute__((weak, alias("asn_DEF_normal_mode_parameters_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_2; +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters; +__attribute__((constructor)) static void asn_DEF_normal_mode_parameters_2_alias_init(void) { + asn_DEF_normal_mode_parameters = asn_DEF_normal_mode_parameters_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_ARU_PPDU__normal_mode_parameters_2[] = { { ATF_POINTER, 2, offsetof(struct ARU_PPDU__normal_mode_parameters, presentation_context_identifier_list), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -88,7 +99,7 @@ asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_normal_mode_parameters_2, + asn_MBR_ARU_PPDU__normal_mode_parameters_2, 2, /* Elements count */ &asn_SPC_normal_mode_parameters_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.h index 149ca741..00036e9f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -32,8 +32,8 @@ typedef struct ARU_PPDU { ARU_PPDU_PR present; union ARU_PPDU_u { struct ARU_PPDU__normal_mode_parameters { - struct Presentation_context_identifier_list *presentation_context_identifier_list; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + struct Presentation_context_identifier_list *presentation_context_identifier_list; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -54,8 +54,8 @@ extern asn_TYPE_member_t asn_MBR_ARU_PPDU_1[1]; #endif /* Referred external types */ -#include -#include +#include "Presentation-context-identifier-list.h" +#include "User-data.h" #endif /* _ARU_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.c index fb4b2a1b..28b8df1b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -44,7 +44,7 @@ PY_IMPL_SEQ_FROMPY(ARU_PPDU_normal_mode_parameters_ANON_2, asn_DEF_ARU_PPDU.elem PY_IMPL_SEQ_INIT(ARU_PPDU_normal_mode_parameters_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(ARU_PPDU, normal_mode_parameters, &src->choice.normal_mode_parameters, ARU_PPDU_normal_mode_parameters_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(ARU_PPDU, normal_mode_parameters, &src->choice.normal_mode_parameters, ARU_PPDU_normal_mode_parameters_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(ARU_PPDU, ARU_PPDU, normal_mode_parameters, normal_mode_parameters, asn_DEF_ARU_PPDU); +PY_IMPL_CHOICE_GENERIC_SETATTR(ARU_PPDU, ARU_PPDU, normal_mode_parameters, normal_mode_parameters, *asn_DEF_ARU_PPDU.elements[0].type); PY_IMPL_CHOICE_GETATTR(ARU_PPDU, ARU_PPDU, normal_mode_parameters, normal_mode_parameters); PY_IMPL_GENERIC_DEALLOC(ARU_PPDU); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(ARU_PPDU); diff --git a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.h index 9dff3ee5..d518f3b5 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/ARU-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -14,6 +14,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.c b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.c index ba7831cf..ddd764d3 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.h b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.h index c92b8565..979105a8 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -28,7 +28,7 @@ typedef enum Abort_reason { } e_Abort_reason; /* Abort-reason */ -typedef long Abort_reason_t; +typedef long Abort_reason_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Abort_reason; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.c index e5e0f46a..77901ca5 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.h index d0f251e1..c8fe587b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-reason_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-type.c b/src/icspacket/proto/iso_pres/_iso8823/Abort-type.c index 6e2af84e..88c119cf 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-type.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-type.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include static asn_TYPE_member_t asn_MBR_Abort_type_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Abort_type, choice.aru_ppdu), + { ATF_POINTER, 0, offsetof(struct Abort_type, choice.aru_ppdu), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_ARU_PPDU, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_Abort_type_1[] = { 0, 0, /* No default value */ "aru-ppdu" }, - { ATF_NOFLAGS, 0, offsetof(struct Abort_type, choice.arp_ppdu), + { ATF_POINTER, 0, offsetof(struct Abort_type, choice.arp_ppdu), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, &asn_DEF_ARP_PPDU, diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-type.h b/src/icspacket/proto/iso_pres/_iso8823/Abort-type.h index 0b435f8e..69aa5aa4 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-type.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-type.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -25,12 +23,16 @@ typedef enum Abort_type_PR { Abort_type_PR_arp_ppdu } Abort_type_PR; +/* Forward declarations */ +struct ARU_PPDU; +struct ARP_PPDU; + /* Abort-type */ typedef struct Abort_type { Abort_type_PR present; union Abort_type_u { - ARU_PPDU_t aru_ppdu; - ARP_PPDU_t arp_ppdu; + struct ARU_PPDU *aru_ppdu; + struct ARP_PPDU *arp_ppdu; } choice; /* Context for parsing across buffer boundaries */ @@ -44,5 +46,9 @@ extern asn_TYPE_descriptor_t asn_DEF_Abort_type; } #endif +/* Referred external types */ +#include "ARU-PPDU.h" +#include "ARP-PPDU.h" + #endif /* _Abort_type_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.c index 85f7a2fa..6b069a27 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.c @@ -1,17 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(Abort_type, Abort_type, aru_ppdu, aru_ppdu,PyAsnARU_PPDU_FromPython(value, &dst->choice.aru_ppdu)); -PY_IMPL_CHOICE_ATTR_TOPY(Abort_type, aru_ppdu, PyCompatAsnType_FromParent(&PyAsnARU_PPDU_Type, parent, (void *)&src->choice.aru_ppdu)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Abort_type, Abort_type, aru_ppdu, aru_ppdu, ARU_PPDU,PyAsnARU_PPDU_FromPython(value, dst->choice.aru_ppdu)); +PY_IMPL_CHOICE_ATTR_TOPY(Abort_type, aru_ppdu, PyCompatAsnType_FromParent(&PyAsnARU_PPDU_Type, parent, (void *)src->choice.aru_ppdu)); PY_IMPL_CHOICE_GETATTR(Abort_type, Abort_type, aru_ppdu, aru_ppdu); PY_IMPL_CHOICE_SETATTR(Abort_type, Abort_type, aru_ppdu, aru_ppdu); -PY_IMPL_CHOICE_ATTR_FROMPY(Abort_type, Abort_type, arp_ppdu, arp_ppdu,PyAsnARP_PPDU_FromPython(value, &dst->choice.arp_ppdu)); -PY_IMPL_CHOICE_ATTR_TOPY(Abort_type, arp_ppdu, PyCompatAsnType_FromParent(&PyAsnARP_PPDU_Type, parent, (void *)&src->choice.arp_ppdu)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Abort_type, Abort_type, arp_ppdu, arp_ppdu, ARP_PPDU,PyAsnARP_PPDU_FromPython(value, dst->choice.arp_ppdu)); +PY_IMPL_CHOICE_ATTR_TOPY(Abort_type, arp_ppdu, PyCompatAsnType_FromParent(&PyAsnARP_PPDU_Type, parent, (void *)src->choice.arp_ppdu)); PY_IMPL_CHOICE_GETATTR(Abort_type, Abort_type, arp_ppdu, arp_ppdu); PY_IMPL_CHOICE_SETATTR(Abort_type, Abort_type, arp_ppdu, arp_ppdu); PY_IMPL_GENERIC_DEALLOC(Abort_type); diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.h index c0a1f3df..e980556d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Abort-type_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.c b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.c index 327e01bf..3351f7ce 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.h b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.h index 2db6e698..0386ed6c 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Abstract-syntax-name */ -typedef OBJECT_IDENTIFIER_t Abstract_syntax_name_t; +typedef OBJECT_IDENTIFIER_t Abstract_syntax_name_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Abstract_syntax_name; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.c index eb08f8f1..3ca3380d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.h index 681a2b6c..0667622a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Abstract-syntax-name_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/CP-type.c b/src/icspacket/proto/iso_pres/_iso8823/CP-type.c index 77b4a4e8..360c88c8 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CP-type.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CP-type.c @@ -1,10 +1,45 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_normal_mode_parameters_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters __attribute__((weak, alias("asn_DEF_normal_mode_parameters_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_3; +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters; +__attribute__((constructor)) static void asn_DEF_normal_mode_parameters_3_alias_init(void) { + asn_DEF_normal_mode_parameters = asn_DEF_normal_mode_parameters_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_version_constr_4 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_presentation_requirements_constr_9 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_user_session_requirements_constr_10 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_options_constr_11 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_CP_type__normal_mode_parameters_3[] = { { ATF_POINTER, 10, offsetof(struct CP_type__normal_mode_parameters, protocol_version), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -256,13 +291,13 @@ asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_normal_mode_parameters_3, + asn_MBR_CP_type__normal_mode_parameters_3, 10, /* Elements count */ &asn_SPC_normal_mode_parameters_specs_3 /* Additional specs */ }; static asn_TYPE_member_t asn_MBR_CP_type_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CP_type, mode_selector), + { ATF_POINTER, 0, offsetof(struct CP_type, mode_selector), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Mode_selector, diff --git a/src/icspacket/proto/iso_pres/_iso8823/CP-type.h b/src/icspacket/proto/iso_pres/_iso8823/CP-type.h index a0651864..6fea3135 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CP-type.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CP-type.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,15 +10,13 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "Protocol-version.h" +#include "Calling-presentation-selector.h" +#include "Called-presentation-selector.h" +#include "Presentation-requirements.h" +#include "User-session-requirements.h" +#include "Protocol-options.h" +#include "Presentation-context-identifier.h" #include #include @@ -37,23 +35,26 @@ typedef enum CP_type_PR { } CP_type_PR; /* Forward declarations */ +struct Mode_selector; +struct Presentation_context_definition_list; struct Default_context_name; struct User_data; +struct Context_list; /* CP-type */ typedef struct CP_type { - Mode_selector_t mode_selector; + struct Mode_selector *mode_selector; struct CP_type__normal_mode_parameters { - Protocol_version_t *protocol_version; /* DEFAULT {version-1} */ - Calling_presentation_selector_t *calling_presentation_selector; /* OPTIONAL */ - Called_presentation_selector_t *called_presentation_selector; /* OPTIONAL */ - Presentation_context_definition_list_t *presentation_context_definition_list; /* OPTIONAL */ - struct Default_context_name *default_context_name; /* OPTIONAL */ - Presentation_requirements_t *presentation_requirements; /* OPTIONAL */ - User_session_requirements_t *user_session_requirements; /* OPTIONAL */ - Protocol_options_t *protocol_options; /* DEFAULT {} */ - Presentation_context_identifier_t *initiators_nominated_context; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + Protocol_version_t *protocol_version; /* DEFAULT {version-1} */ + Calling_presentation_selector_t *calling_presentation_selector; /* OPTIONAL */ + Called_presentation_selector_t *called_presentation_selector; /* OPTIONAL */ + struct Context_list *presentation_context_definition_list; /* OPTIONAL */ + struct Default_context_name *default_context_name; /* OPTIONAL */ + Presentation_requirements_t *presentation_requirements; /* OPTIONAL */ + User_session_requirements_t *user_session_requirements; /* OPTIONAL */ + Protocol_options_t *protocol_options; /* DEFAULT {} */ + Presentation_context_identifier_t *initiators_nominated_context; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -75,8 +76,10 @@ extern asn_TYPE_descriptor_t asn_DEF_CP_type; #endif /* Referred external types */ -#include -#include +#include "Mode-selector.h" +#include "Presentation-context-definition-list.h" +#include "Default-context-name.h" +#include "User-data.h" #endif /* _CP_type_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.c b/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.c index 2b7e39d5..8c618d11 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -101,10 +101,12 @@ PY_IMPL_SEQ_INIT(CP_type_normal_mode_parameters_ANON_3); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CP_type, normal_mode_parameters, src->normal_mode_parameters, CP_type_normal_mode_parameters_ANON_3); PY_IMPL_SEQ_ANON_ATTR_TOPY(CP_type, normal_mode_parameters, src->normal_mode_parameters, CP_type_normal_mode_parameters_ANON_3); PY_IMPL_SET_INNER_OPT_SETATTR(CP_type, CP_type, normal_mode_parameters, normal_mode_parameters, CP_type_normal_mode_parameters_ANON_3, *asn_DEF_CP_type.elements[1].type); -PY_IMPL_SET_INNER_GETATTR(CP_type, CP_type, normal_mode_parameters, self->ob_value->normal_mode_parameters, CP_type_normal_mode_parameters_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(CP_type, mode_selector, PyAsnMode_selector_FromPython(value, (Mode_selector_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(CP_type, mode_selector, Mode_selector); -PY_IMPL_SET_GETATTR(CP_type, CP_type, mode_selector); +PY_IMPL_SET_INNER_OPT_GETATTR(CP_type, CP_type, normal_mode_parameters, CP_type_normal_mode_parameters_ANON_3); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(CP_type, mode_selector); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(CP_type, mode_selector, Mode_selector_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(CP_type, mode_selector, PyAsnMode_selector_FromPython(value, (Mode_selector_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(CP_type, mode_selector, Mode_selector); +PY_IMPL_SET_AUTOVIV_GETATTR(CP_type, CP_type, mode_selector); PY_IMPL_SET_SETATTR(CP_type, CP_type, mode_selector); PY_IMPL_GENERIC_DEALLOC(CP_type); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(CP_type); diff --git a/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.h b/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.h index d263b6bc..9dec444d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CP-type_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -22,6 +22,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.c index f9721ab2..22a7b5d2 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.c @@ -1,10 +1,45 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_normal_mode_parameters_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters __attribute__((weak, alias("asn_DEF_normal_mode_parameters_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_3; +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters; +__attribute__((constructor)) static void asn_DEF_normal_mode_parameters_3_alias_init(void) { + asn_DEF_normal_mode_parameters = asn_DEF_normal_mode_parameters_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_version_constr_4 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_presentation_requirements_constr_7 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_user_session_requirements_constr_8 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_options_constr_9 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_CPA_PPDU__normal_mode_parameters_3[] = { { ATF_POINTER, 8, offsetof(struct CPA_PPDU__normal_mode_parameters, protocol_version), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -214,13 +249,13 @@ asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_normal_mode_parameters_3, + asn_MBR_CPA_PPDU__normal_mode_parameters_3, 8, /* Elements count */ &asn_SPC_normal_mode_parameters_specs_3 /* Additional specs */ }; static asn_TYPE_member_t asn_MBR_CPA_PPDU_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CPA_PPDU, mode_selector), + { ATF_POINTER, 0, offsetof(struct CPA_PPDU, mode_selector), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Mode_selector, diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.h index d6eeb9c4..9353653b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,12 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include -#include -#include -#include +#include "Protocol-version.h" +#include "Responding-presentation-selector.h" +#include "Presentation-requirements.h" +#include "User-session-requirements.h" +#include "Protocol-options.h" +#include "Presentation-context-identifier.h" #include #include @@ -36,20 +34,23 @@ typedef enum CPA_PPDU_PR { } CPA_PPDU_PR; /* Forward declarations */ +struct Mode_selector; +struct Presentation_context_definition_result_list; struct User_data; +struct Result_list; /* CPA-PPDU */ typedef struct CPA_PPDU { - Mode_selector_t mode_selector; + struct Mode_selector *mode_selector; struct CPA_PPDU__normal_mode_parameters { - Protocol_version_t *protocol_version; /* DEFAULT {version-1} */ - Responding_presentation_selector_t *responding_presentation_selector; /* OPTIONAL */ - Presentation_context_definition_result_list_t *presentation_context_definition_result_list; /* OPTIONAL */ - Presentation_requirements_t *presentation_requirements; /* OPTIONAL */ - User_session_requirements_t *user_session_requirements; /* OPTIONAL */ - Protocol_options_t *protocol_options; /* DEFAULT {} */ - Presentation_context_identifier_t *responders_nominated_context; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + Protocol_version_t *protocol_version; /* DEFAULT {version-1} */ + Responding_presentation_selector_t *responding_presentation_selector; /* OPTIONAL */ + struct Result_list *presentation_context_definition_result_list; /* OPTIONAL */ + Presentation_requirements_t *presentation_requirements; /* OPTIONAL */ + User_session_requirements_t *user_session_requirements; /* OPTIONAL */ + Protocol_options_t *protocol_options; /* DEFAULT {} */ + Presentation_context_identifier_t *responders_nominated_context; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -71,7 +72,9 @@ extern asn_TYPE_descriptor_t asn_DEF_CPA_PPDU; #endif /* Referred external types */ -#include +#include "Mode-selector.h" +#include "Presentation-context-definition-result-list.h" +#include "User-data.h" #endif /* _CPA_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.c index 5630df5c..d4a398ca 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -87,10 +87,12 @@ PY_IMPL_SEQ_INIT(CPA_PPDU_normal_mode_parameters_ANON_3); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CPA_PPDU, normal_mode_parameters, src->normal_mode_parameters, CPA_PPDU_normal_mode_parameters_ANON_3); PY_IMPL_SEQ_ANON_ATTR_TOPY(CPA_PPDU, normal_mode_parameters, src->normal_mode_parameters, CPA_PPDU_normal_mode_parameters_ANON_3); PY_IMPL_SET_INNER_OPT_SETATTR(CPA_PPDU, CPA_PPDU, normal_mode_parameters, normal_mode_parameters, CPA_PPDU_normal_mode_parameters_ANON_3, *asn_DEF_CPA_PPDU.elements[1].type); -PY_IMPL_SET_INNER_GETATTR(CPA_PPDU, CPA_PPDU, normal_mode_parameters, self->ob_value->normal_mode_parameters, CPA_PPDU_normal_mode_parameters_ANON_3); -PY_IMPL_SEQ_ATTR_FROMPY(CPA_PPDU, mode_selector, PyAsnMode_selector_FromPython(value, (Mode_selector_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(CPA_PPDU, mode_selector, Mode_selector); -PY_IMPL_SET_GETATTR(CPA_PPDU, CPA_PPDU, mode_selector); +PY_IMPL_SET_INNER_OPT_GETATTR(CPA_PPDU, CPA_PPDU, normal_mode_parameters, CPA_PPDU_normal_mode_parameters_ANON_3); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(CPA_PPDU, mode_selector); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(CPA_PPDU, mode_selector, Mode_selector_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(CPA_PPDU, mode_selector, PyAsnMode_selector_FromPython(value, (Mode_selector_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(CPA_PPDU, mode_selector, Mode_selector); +PY_IMPL_SET_AUTOVIV_GETATTR(CPA_PPDU, CPA_PPDU, mode_selector); PY_IMPL_SET_SETATTR(CPA_PPDU, CPA_PPDU, mode_selector); PY_IMPL_GENERIC_DEALLOC(CPA_PPDU); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(CPA_PPDU); diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.h index b52817cd..a23d17ef 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CPA-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #ifdef __cplusplus diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPC-type.c b/src/icspacket/proto/iso_pres/_iso8823/CPC-type.c index 2ba83c40..35e44e2c 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPC-type.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CPC-type.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPC-type.h b/src/icspacket/proto/iso_pres/_iso8823/CPC-type.h index d5062445..b4acfa09 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPC-type.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CPC-type.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "User-data.h" #ifdef __cplusplus extern "C" { #endif /* CPC-type */ -typedef User_data_t CPC_type_t; +typedef User_data_t CPC_type_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_CPC_type; diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.c b/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.c index fced242a..ef10e319 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.h b/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.h index 9c11d898..a98b8c5f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CPC-type_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.c index e76e958f..eb7ce036 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.c @@ -1,10 +1,27 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_normal_mode_parameters_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters __attribute__((weak, alias("asn_DEF_normal_mode_parameters_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_2; +static asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters; +__attribute__((constructor)) static void asn_DEF_normal_mode_parameters_2_alias_init(void) { + asn_DEF_normal_mode_parameters = asn_DEF_normal_mode_parameters_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_protocol_version_constr_3 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_CPR_PPDU__normal_mode_parameters_2[] = { { ATF_POINTER, 6, offsetof(struct CPR_PPDU__normal_mode_parameters, protocol_version), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -171,7 +188,7 @@ asn_TYPE_descriptor_t asn_DEF_normal_mode_parameters_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_normal_mode_parameters_2, + asn_MBR_CPR_PPDU__normal_mode_parameters_2, 6, /* Elements count */ &asn_SPC_normal_mode_parameters_specs_2 /* Additional specs */ }; diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.h index 6e9c55a4..26b00513 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,11 +10,10 @@ #include /* Including external dependencies */ -#include -#include -#include -#include -#include +#include "Protocol-version.h" +#include "Responding-presentation-selector.h" +#include "Default-context-result.h" +#include "Provider-reason.h" #include #include @@ -29,19 +28,21 @@ typedef enum CPR_PPDU_PR { } CPR_PPDU_PR; /* Forward declarations */ +struct Presentation_context_definition_result_list; struct User_data; +struct Result_list; /* CPR-PPDU */ typedef struct CPR_PPDU { CPR_PPDU_PR present; union CPR_PPDU_u { struct CPR_PPDU__normal_mode_parameters { - Protocol_version_t *protocol_version; /* DEFAULT {version-1} */ - Responding_presentation_selector_t *responding_presentation_selector; /* OPTIONAL */ - Presentation_context_definition_result_list_t *presentation_context_definition_result_list; /* OPTIONAL */ - Default_context_result_t *default_context_result; /* OPTIONAL */ - Provider_reason_t *provider_reason; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + Protocol_version_t *protocol_version; /* DEFAULT {version-1} */ + Responding_presentation_selector_t *responding_presentation_selector; /* OPTIONAL */ + struct Result_list *presentation_context_definition_result_list; /* OPTIONAL */ + Default_context_result_t *default_context_result; /* OPTIONAL */ + Provider_reason_t *provider_reason; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -60,7 +61,8 @@ extern asn_TYPE_descriptor_t asn_DEF_CPR_PPDU; #endif /* Referred external types */ -#include +#include "Presentation-context-definition-result-list.h" +#include "User-data.h" #endif /* _CPR_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.c index 93c1f120..3aea28f7 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -72,7 +72,7 @@ PY_IMPL_SEQ_FROMPY(CPR_PPDU_normal_mode_parameters_ANON_2, asn_DEF_CPR_PPDU.elem PY_IMPL_SEQ_INIT(CPR_PPDU_normal_mode_parameters_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(CPR_PPDU, normal_mode_parameters, &src->choice.normal_mode_parameters, CPR_PPDU_normal_mode_parameters_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(CPR_PPDU, normal_mode_parameters, &src->choice.normal_mode_parameters, CPR_PPDU_normal_mode_parameters_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(CPR_PPDU, CPR_PPDU, normal_mode_parameters, normal_mode_parameters, asn_DEF_CPR_PPDU); +PY_IMPL_CHOICE_GENERIC_SETATTR(CPR_PPDU, CPR_PPDU, normal_mode_parameters, normal_mode_parameters, *asn_DEF_CPR_PPDU.elements[0].type); PY_IMPL_CHOICE_GETATTR(CPR_PPDU, CPR_PPDU, normal_mode_parameters, normal_mode_parameters); PY_IMPL_GENERIC_DEALLOC(CPR_PPDU); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(CPR_PPDU); diff --git a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.h index 0d61d01a..9246e592 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/CPR-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -18,6 +18,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.c b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.c index 94caa966..1e1bf190 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.h b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.h index a1bd6c0d..30188e5b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Presentation-selector.h" #ifdef __cplusplus extern "C" { #endif /* Called-presentation-selector */ -typedef Presentation_selector_t Called_presentation_selector_t; +typedef Presentation_selector_t Called_presentation_selector_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Called_presentation_selector; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.c index 856ebd1c..bfa45b86 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.h index 8fce8649..d1ecc7df 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Called-presentation-selector_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.c b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.c index 8f1eaad6..514a815c 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.h b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.h index 3206fdcd..ba4020cd 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Presentation-selector.h" #ifdef __cplusplus extern "C" { #endif /* Calling-presentation-selector */ -typedef Presentation_selector_t Calling_presentation_selector_t; +typedef Presentation_selector_t Calling_presentation_selector_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Calling_presentation_selector; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.c index bb6f9ea6..4372f3d0 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.h index 6555e35a..3e661abc 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Calling-presentation-selector_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Context-list.c b/src/icspacket/proto/iso_pres/_iso8823/Context-list.c index e943de09..5a8ce32a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Context-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Context-list.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_transfer_syntax_name_list_5[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_transfer_syntax_name_list __attribute__((weak, alias("asn_DEF_transfer_syntax_name_list_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_transfer_syntax_name_list_5; +static asn_TYPE_descriptor_t asn_DEF_transfer_syntax_name_list; +__attribute__((constructor)) static void asn_DEF_transfer_syntax_name_list_5_alias_init(void) { + asn_DEF_transfer_syntax_name_list = asn_DEF_transfer_syntax_name_list_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_Context_list__Context_list_Member__transfer_syntax_name_list_5[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, @@ -23,15 +34,15 @@ static asn_TYPE_member_t asn_MBR_transfer_syntax_name_list_5[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_transfer_syntax_name_list_tags_5[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_transfer_syntax_name_list_specs_5 = { - sizeof(struct Context_list__Member__transfer_syntax_name_list), - offsetof(struct Context_list__Member__transfer_syntax_name_list, _asn_ctx), + sizeof(struct Context_list__Context_list_Member__transfer_syntax_name_list), + offsetof(struct Context_list__Context_list_Member__transfer_syntax_name_list, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -57,13 +68,13 @@ asn_TYPE_descriptor_t asn_DEF_transfer_syntax_name_list_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_transfer_syntax_name_list_5, + asn_MBR_Context_list__Context_list_Member__transfer_syntax_name_list_5, 1, /* Single element */ &asn_SPC_transfer_syntax_name_list_specs_5 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Context_list__Member, presentation_context_identifier), +static asn_TYPE_member_t asn_MBR_Context_list__Context_list_Member_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct Context_list__Context_list_Member, presentation_context_identifier), (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, &asn_DEF_Presentation_context_identifier, @@ -83,7 +94,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "presentation-context-identifier" }, - { ATF_NOFLAGS, 0, offsetof(struct Context_list__Member, abstract_syntax_name), + { ATF_NOFLAGS, 0, offsetof(struct Context_list__Context_list_Member, abstract_syntax_name), (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, &asn_DEF_Abstract_syntax_name, @@ -103,7 +114,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "abstract-syntax-name" }, - { ATF_NOFLAGS, 0, offsetof(struct Context_list__Member, transfer_syntax_name_list), + { ATF_NOFLAGS, 0, offsetof(struct Context_list__Context_list_Member, transfer_syntax_name_list), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, &asn_DEF_transfer_syntax_name_list_5, @@ -124,33 +135,33 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { "transfer-syntax-name-list" }, }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { +static const ber_tlv_tag_t asn_DEF_Context_list_Member_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { +static const asn_TYPE_tag2member_t asn_MAP_Context_list_Member_tag2el_2[] = { { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* presentation-context-identifier */ { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* abstract-syntax-name */ { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 } /* transfer-syntax-name-list */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Context_list__Member), - offsetof(struct Context_list__Member, _asn_ctx), - asn_MAP_Member_tag2el_2, +static asn_SEQUENCE_specifics_t asn_SPC_Context_list_Member_specs_2 = { + sizeof(struct Context_list__Context_list_Member), + offsetof(struct Context_list__Context_list_Member, _asn_ctx), + asn_MAP_Context_list_Member_tag2el_2, 3, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { +asn_TYPE_descriptor_t asn_DEF_Context_list_Member_2 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ + asn_DEF_Context_list_Member_tags_2, + sizeof(asn_DEF_Context_list_Member_tags_2) + /sizeof(asn_DEF_Context_list_Member_tags_2[0]), /* 1 */ + asn_DEF_Context_list_Member_tags_2, /* Same as above */ + sizeof(asn_DEF_Context_list_Member_tags_2) + /sizeof(asn_DEF_Context_list_Member_tags_2[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -163,16 +174,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_2, + asn_MBR_Context_list__Context_list_Member_2, 3, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ + &asn_SPC_Context_list_Member_specs_2 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_Context_list_1[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_2, + &asn_DEF_Context_list_Member_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) diff --git a/src/icspacket/proto/iso_pres/_iso8823/Context-list.h b/src/icspacket/proto/iso_pres/_iso8823/Context-list.h index 099d9ee4..17054aee 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Context-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Context-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -11,9 +11,9 @@ /* Including external dependencies */ #include -#include -#include -#include +#include "Presentation-context-identifier.h" +#include "Abstract-syntax-name.h" +#include "Transfer-syntax-name.h" #include #include @@ -22,10 +22,10 @@ extern "C" { #endif /* Forward definitions */ -typedef struct Context_list__Member { - Presentation_context_identifier_t presentation_context_identifier; - Abstract_syntax_name_t abstract_syntax_name; - struct Context_list__Member__transfer_syntax_name_list { +typedef struct Context_list__Context_list_Member { + Presentation_context_identifier_t presentation_context_identifier; + Abstract_syntax_name_t abstract_syntax_name; + struct Context_list__Context_list_Member__transfer_syntax_name_list { A_SEQUENCE_OF(Transfer_syntax_name_t) list; /* Context for parsing across buffer boundaries */ @@ -34,11 +34,11 @@ typedef struct Context_list__Member { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} Context_list__Member; +} Context_list__Context_list_Member; /* Context-list */ typedef struct Context_list { - A_SEQUENCE_OF(Context_list__Member) list; + A_SEQUENCE_OF(Context_list__Context_list_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.c index 04acfeff..c7a2c433 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -31,52 +31,52 @@ PY_IMPL_ENCODE_SPECIFIC(Context_list_transfer_syntax_name_list_ANON_5, plain, AT PY_IMPL_DECODE_JER(Context_list_transfer_syntax_name_list_ANON_5); PY_IMPL_ENCODE_JER(Context_list_transfer_syntax_name_list_ANON_5); PY_IMPL_GENERIC_IS_VALID(Context_list_transfer_syntax_name_list_ANON_5); -PY_IMPL_SEQ_ANON_ATTR_FROMPY(Context_list_Member_ANON_2, transfer_syntax_name_list, &src->transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); -PY_IMPL_SEQ_ANON_ATTR_TOPY(Context_list_Member_ANON_2, transfer_syntax_name_list, &src->transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); -PY_IMPL_SEQ_INNER_SETATTR(Context_list_Member_ANON_2, transfer_syntax_name_list, transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); -PY_IMPL_SEQ_INNER_GETATTR(Context_list_Member_ANON_2, transfer_syntax_name_list, &self->ob_value->transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); +PY_IMPL_SEQ_ANON_ATTR_FROMPY(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list, &src->transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); +PY_IMPL_SEQ_ANON_ATTR_TOPY(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list, &src->transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); +PY_IMPL_SEQ_INNER_SETATTR(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list, transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); +PY_IMPL_SEQ_INNER_GETATTR(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list, &self->ob_value->transfer_syntax_name_list, Context_list_transfer_syntax_name_list_ANON_5); PY_IMPL_SEQ_OF_LEN(Context_list_transfer_syntax_name_list_ANON_5); PY_IMPL_SEQ_OF_GETITEM(Context_list_transfer_syntax_name_list_ANON_5); PY_IMPL_SEQ_OF_CLEAR(Context_list_transfer_syntax_name_list_ANON_5); PY_IMPL_SEQ_OF_EXTEND(Context_list_transfer_syntax_name_list_ANON_5); -PY_IMPL_SEQ_ATTR_FROMPY(Context_list_Member_ANON_2, presentation_context_identifier, PyAsnPresentation_context_identifier_FromPython(value, (Presentation_context_identifier_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Context_list_Member_ANON_2, presentation_context_identifier, Presentation_context_identifier); -PY_IMPL_SEQ_GETATTR(Context_list_Member_ANON_2, presentation_context_identifier); -PY_IMPL_SEQ_SETATTR(Context_list_Member_ANON_2, presentation_context_identifier); -PY_IMPL_SEQ_ATTR_FROMPY(Context_list_Member_ANON_2, abstract_syntax_name, PyAsnAbstract_syntax_name_FromPython(value, (Abstract_syntax_name_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Context_list_Member_ANON_2, abstract_syntax_name, Abstract_syntax_name); -PY_IMPL_SEQ_GETATTR(Context_list_Member_ANON_2, abstract_syntax_name); -PY_IMPL_SEQ_SETATTR(Context_list_Member_ANON_2, abstract_syntax_name); -PY_IMPL_CHECK_CONSTRAINTS(Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); -PY_IMPL_ENCODE(Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); -PY_IMPL_DECODE(Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); -PY_IMPL_DEALLOC(Context_list_Member_ANON_2, *(asn_DEF_Context_list.elements[0].type)); -PY_IMPL_SEQ_TOPY(Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); -PY_IMPL_DECODE_BER(Context_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Context_list_Member_ANON_2, ber, ATS_BER); -PY_IMPL_DECODE_DER(Context_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Context_list_Member_ANON_2, der, ATS_DER); -PY_IMPL_DECODE_CER(Context_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Context_list_Member_ANON_2, cer, ATS_BER); -PY_IMPL_DECODE_XER(Context_list_Member_ANON_2); -PY_IMPL_ENCODE_XER(Context_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Context_list_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(Context_list_Member_ANON_2); -PY_IMPL_ENCODE_JER(Context_list_Member_ANON_2); -PY_IMPL_GENERIC_NEW(Context_list_Member_ANON_2, NULL); -PY_IMPL_REPR(Context_list_Member_ANON_2); -PY_IMPL_GENERIC_IS_VALID(Context_list_Member_ANON_2); -PY_IMPL_SEQ_FROMPY(Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(Context_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier); - PY_IMPL_SEQ_INIT_ATTR(Context_list_Member_ANON_2, abstract_syntax_name, abstract_syntax_name); - PY_IMPL_SEQ_INIT_ATTR(Context_list_Member_ANON_2, transfer_syntax_name_list, transfer_syntax_name_list); +PY_IMPL_SEQ_ATTR_FROMPY(Context_list_Context_list_Member_ANON_2, presentation_context_identifier, PyAsnPresentation_context_identifier_FromPython(value, (Presentation_context_identifier_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(Context_list_Context_list_Member_ANON_2, presentation_context_identifier, Presentation_context_identifier); +PY_IMPL_SEQ_GETATTR(Context_list_Context_list_Member_ANON_2, presentation_context_identifier); +PY_IMPL_SEQ_SETATTR(Context_list_Context_list_Member_ANON_2, presentation_context_identifier); +PY_IMPL_SEQ_ATTR_FROMPY(Context_list_Context_list_Member_ANON_2, abstract_syntax_name, PyAsnAbstract_syntax_name_FromPython(value, (Abstract_syntax_name_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(Context_list_Context_list_Member_ANON_2, abstract_syntax_name, Abstract_syntax_name); +PY_IMPL_SEQ_GETATTR(Context_list_Context_list_Member_ANON_2, abstract_syntax_name); +PY_IMPL_SEQ_SETATTR(Context_list_Context_list_Member_ANON_2, abstract_syntax_name); +PY_IMPL_CHECK_CONSTRAINTS(Context_list_Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); +PY_IMPL_ENCODE(Context_list_Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); +PY_IMPL_DECODE(Context_list_Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); +PY_IMPL_DEALLOC(Context_list_Context_list_Member_ANON_2, *(asn_DEF_Context_list.elements[0].type)); +PY_IMPL_SEQ_TOPY(Context_list_Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type); +PY_IMPL_DECODE_BER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Context_list_Context_list_Member_ANON_2, ber, ATS_BER); +PY_IMPL_DECODE_DER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Context_list_Context_list_Member_ANON_2, der, ATS_DER); +PY_IMPL_DECODE_CER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Context_list_Context_list_Member_ANON_2, cer, ATS_BER); +PY_IMPL_DECODE_XER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_ENCODE_XER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Context_list_Context_list_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_ENCODE_JER(Context_list_Context_list_Member_ANON_2); +PY_IMPL_GENERIC_NEW(Context_list_Context_list_Member_ANON_2, NULL); +PY_IMPL_REPR(Context_list_Context_list_Member_ANON_2); +PY_IMPL_GENERIC_IS_VALID(Context_list_Context_list_Member_ANON_2); +PY_IMPL_SEQ_FROMPY(Context_list_Context_list_Member_ANON_2, asn_DEF_Context_list.elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(Context_list_Context_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier); + PY_IMPL_SEQ_INIT_ATTR(Context_list_Context_list_Member_ANON_2, abstract_syntax_name, abstract_syntax_name); + PY_IMPL_SEQ_INIT_ATTR(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list, transfer_syntax_name_list); ); -PY_IMPL_SEQ_INIT(Context_list_Member_ANON_2); -PY_IMPL_SEQ_OF_ITEM_TOPY(Context_list, Context_list_Member_ANON_2_t, PyAsnContext_list_Member_ANON_2_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(Context_list, Context_list_Member_ANON_2_t, PyAsnContext_list_Member_ANON_2_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(Context_list, Context_list_Member_ANON_2_t); -PY_IMPL_SEQ_OF_SETITEM(Context_list, Context_list_Member_ANON_2_t); -PY_IMPL_SEQ_OF_ADD(Context_list, Context_list_Member_ANON_2_t); +PY_IMPL_SEQ_INIT(Context_list_Context_list_Member_ANON_2); +PY_IMPL_SEQ_OF_ITEM_TOPY(Context_list, Context_list_Context_list_Member_ANON_2_t, PyAsnContext_list_Context_list_Member_ANON_2_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(Context_list, Context_list_Context_list_Member_ANON_2_t, PyAsnContext_list_Context_list_Member_ANON_2_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(Context_list, Context_list_Context_list_Member_ANON_2_t); +PY_IMPL_SEQ_OF_SETITEM(Context_list, Context_list_Context_list_Member_ANON_2_t); +PY_IMPL_SEQ_OF_ADD(Context_list, Context_list_Context_list_Member_ANON_2_t); PY_IMPL_SEQ_OF_NEW(Context_list); PY_IMPL_SEQ_OF_DEALLOC(Context_list, asn_set_empty); PY_IMPL_SEQ_OF_INIT(Context_list); @@ -111,10 +111,10 @@ static PySequenceMethods PyAsnContext_list_transfer_syntax_name_list_ANON_5_seq_ .sq_length = (lenfunc)PyAsnContext_list_transfer_syntax_name_list_ANON_5__len, .sq_ass_item = (ssizeobjargproc)PyAsnContext_list_transfer_syntax_name_list_ANON_5__setitem, }; -static PyGetSetDef PyAsnContext_list_Member_ANON_2_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(Context_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier), - PY_IMPL_GETSET_ITEM_INTERNAL(Context_list_Member_ANON_2, abstract_syntax_name, abstract_syntax_name), - PY_IMPL_GETSET_ITEM_INTERNAL(Context_list_Member_ANON_2, transfer_syntax_name_list, transfer_syntax_name_list), +static PyGetSetDef PyAsnContext_list_Context_list_Member_ANON_2_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(Context_list_Context_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier), + PY_IMPL_GETSET_ITEM_INTERNAL(Context_list_Context_list_Member_ANON_2, abstract_syntax_name, abstract_syntax_name), + PY_IMPL_GETSET_ITEM_INTERNAL(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list, transfer_syntax_name_list), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnContext_list_getset[] = { @@ -146,20 +146,20 @@ static PyMethodDef PyAsnContext_list_transfer_syntax_name_list_ANON_5_methods[] PY_IMPL_METHODDEF_ITEM(Context_list_transfer_syntax_name_list_ANON_5, add, METH_VARARGS | METH_KEYWORDS), {NULL, NULL, 0, NULL} /* sentinel */ }; -static PyMethodDef PyAsnContext_list_Member_ANON_2_methods[] = { - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnContext_list_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Context_list_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnContext_list_Context_list_Member_ANON_2_methods[] = { + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnContext_list_Context_list_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Context_list_Context_list_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnContext_list_methods[] = { @@ -194,21 +194,21 @@ PyTypeObject PyAsnContext_list_transfer_syntax_name_list_ANON_5_Type = { .tp_init = (initproc)PyAsnContext_list_transfer_syntax_name_list_ANON_5__init, .tp_getset = PyAsnContext_list_transfer_syntax_name_list_ANON_5_getset, .tp_methods = PyAsnContext_list_transfer_syntax_name_list_ANON_5_methods, - .tp_doc = "ASN.1 anonymous sequence transfer_syntax_name_list_TYPE part of Context_list_Member_ANON_2", + .tp_doc = "ASN.1 anonymous sequence transfer_syntax_name_list_TYPE part of Context_list_Context_list_Member_ANON_2", .tp_as_sequence = &PyAsnContext_list_transfer_syntax_name_list_ANON_5_seq_methods, }; -PyTypeObject PyAsnContext_list_Member_ANON_2_Type = { +PyTypeObject PyAsnContext_list_Context_list_Member_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_iso8823.Context_list.Member_TYPE", - .tp_basicsize = sizeof(PyAsnContext_list_Member_ANON_2Object), + .tp_basicsize = sizeof(PyAsnContext_list_Context_list_Member_ANON_2Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnContext_list_Member_ANON_2__new, - .tp_repr = (reprfunc)PyAsnContext_list_Member_ANON_2__repr, - .tp_dealloc = (destructor)PyAsnContext_list_Member_ANON_2__dealloc, - .tp_init = (initproc)PyAsnContext_list_Member_ANON_2__init, - .tp_getset = PyAsnContext_list_Member_ANON_2_getset, - .tp_methods = PyAsnContext_list_Member_ANON_2_methods, - .tp_doc = "ASN.1 anonymous type Context_list__Member_TYPE part of Context_list", + .tp_new = (newfunc)PyAsnContext_list_Context_list_Member_ANON_2__new, + .tp_repr = (reprfunc)PyAsnContext_list_Context_list_Member_ANON_2__repr, + .tp_dealloc = (destructor)PyAsnContext_list_Context_list_Member_ANON_2__dealloc, + .tp_init = (initproc)PyAsnContext_list_Context_list_Member_ANON_2__init, + .tp_getset = PyAsnContext_list_Context_list_Member_ANON_2_getset, + .tp_methods = PyAsnContext_list_Context_list_Member_ANON_2_methods, + .tp_doc = "ASN.1 anonymous type Context_list__Context_list_Member_TYPE part of Context_list", }; PyTypeObject PyAsnContext_list_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -228,7 +228,7 @@ PyTypeObject PyAsnContext_list_Type = { /* module initializer */ int PyAsnContext_list_ModSetupTypes(void) { if (PyType_Ready(&PyAsnContext_list_transfer_syntax_name_list_ANON_5_Type) < 0) return -1; - if (PyType_Ready(&PyAsnContext_list_Member_ANON_2_Type) < 0) return -1; + if (PyType_Ready(&PyAsnContext_list_Context_list_Member_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnContext_list_Type) < 0) return -1; return 0; } @@ -237,8 +237,8 @@ void PyAsnContext_list_ModClear(PyObject *mod) { } int PyAsnContext_list_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(Context_list_Member_ANON_2, transfer_syntax_name_list_TYPE, &PyAsnContext_list_transfer_syntax_name_list_ANON_5_Type); - PY_IMPL_MOD_ASSIGN_OBJECT(Context_list, Member_TYPE, &PyAsnContext_list_Member_ANON_2_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(Context_list_Context_list_Member_ANON_2, transfer_syntax_name_list_TYPE, &PyAsnContext_list_transfer_syntax_name_list_ANON_5_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(Context_list, Member_TYPE, &PyAsnContext_list_Context_list_Member_ANON_2_Type); PY_IMPL_MOD_ADD_OBJECT(mod, Context_list); return 0; } diff --git a/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.h index a0b7473e..6d3be06d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Context-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -13,27 +13,31 @@ #include #include #include +#include +#include #include #include +#include +#include #ifdef __cplusplus extern "C" { #endif /* Context-list */ -typedef struct Context_list__Member__transfer_syntax_name_list Context_list_transfer_syntax_name_list_ANON_5_t; +typedef struct Context_list__Context_list_Member__transfer_syntax_name_list Context_list_transfer_syntax_name_list_ANON_5_t; PyCompat_DEF_STRUCT(Context_list_transfer_syntax_name_list_ANON_5); PyCompat_DEF_TYPE(Context_list_transfer_syntax_name_list_ANON_5); -PyCompat_DEF_ANON_STRUCT(Context_list_Member_ANON_2, Context_list__Member); -PyCompat_DEF_TYPE(Context_list_Member_ANON_2); +PyCompat_DEF_ANON_STRUCT(Context_list_Context_list_Member_ANON_2, Context_list__Context_list_Member); +PyCompat_DEF_TYPE(Context_list_Context_list_Member_ANON_2); PyCompat_DEF_STRUCT(Context_list); PyCompat_DEF_TYPE(Context_list); /* Type Converters */ int PyAsnContext_list_transfer_syntax_name_list_ANON_5_FromPython(PyObject *pObj, Context_list_transfer_syntax_name_list_ANON_5_t *pDst); PyObject *PyAsnContext_list_transfer_syntax_name_list_ANON_5_ToPython(Context_list_transfer_syntax_name_list_ANON_5_t *pSrc, PyObject *parent); -int PyAsnContext_list_Member_ANON_2_FromPython(PyObject *pObj, Context_list_Member_ANON_2_t *pDst); -PyObject *PyAsnContext_list_Member_ANON_2_ToPython(Context_list_Member_ANON_2_t *pSrc, PyObject *parent); +int PyAsnContext_list_Context_list_Member_ANON_2_FromPython(PyObject *pObj, Context_list_Context_list_Member_ANON_2_t *pDst); +PyObject *PyAsnContext_list_Context_list_Member_ANON_2_ToPython(Context_list_Context_list_Member_ANON_2_t *pSrc, PyObject *parent); int PyAsnContext_list_FromPython(PyObject *pObj, Context_list_t *pDst); PyObject *PyAsnContext_list_ToPython(Context_list_t *pSrc, PyObject *parent); diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.c b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.c index 182b0b05..2f87ebab 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.h b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.h index 97906557..49e31f66 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Abstract-syntax-name.h" +#include "Transfer-syntax-name.h" #include #ifdef __cplusplus @@ -20,8 +20,8 @@ extern "C" { /* Default-context-name */ typedef struct Default_context_name { - Abstract_syntax_name_t abstract_syntax_name; - Transfer_syntax_name_t transfer_syntax_name; + Abstract_syntax_name_t abstract_syntax_name; + Transfer_syntax_name_t transfer_syntax_name; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.c index 6b4e8218..3cfd9802 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.h index f50b5cbd..ae128f79 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-name_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.c b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.c index 3b00c2e1..2843fa04 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.h b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.h index 3f9e6fbe..ed93d85b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Result.h" #ifdef __cplusplus extern "C" { #endif /* Default-context-result */ -typedef Result_t Default_context_result_t; +typedef Result_t Default_context_result_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Default_context_result; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.c index c48088d9..e7852c79 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.h index 1d188cab..77f6609a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Default-context-result_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.c b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.c index 540c7c32..449de814 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.h b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.h index 997da23c..77054776 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -54,7 +54,7 @@ typedef enum Event_identifier { } e_Event_identifier; /* Event-identifier */ -typedef long Event_identifier_t; +typedef long Event_identifier_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Event_identifier; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.c index fcb1fb33..437dadb7 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.h index a40742f9..e781d814 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Event-identifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.c b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.c index 33239a49..1e786dc8 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_Fully_encoded_data_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_Fully_encoded_data_tags_1[] = { diff --git a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.h b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.h index 0f83529e..9d7a9b2b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -38,7 +38,7 @@ extern asn_TYPE_member_t asn_MBR_Fully_encoded_data_1[1]; #endif /* Referred external types */ -#include +#include "PDV-list.h" #endif /* _Fully_encoded_data_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.c index d217e366..70bc6c53 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.h index 05bfb034..04cfd241 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Fully-encoded-data_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.c b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.c index 2f34737b..a8b28556 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.h b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.h index adbd6ae9..e9d9fe1d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -32,7 +32,7 @@ typedef enum Mode_selector__mode_value { /* Mode-selector */ typedef struct Mode_selector { - long mode_value; + long mode_value; /* Presence bitmask: ASN_SET_ISPRESENT(pMode_selector, Mode_selector_PR_x) */ unsigned int _presence_map diff --git a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.c index 29534483..46556e7d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.h index 50602540..bfd0df43 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Mode-selector_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/PDV-list.c b/src/icspacket/proto/iso_pres/_iso8823/PDV-list.c index 6abf6de7..0e20db49 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/PDV-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/PDV-list.c @@ -1,10 +1,27 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_presentation_data_values_4[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_presentation_data_values __attribute__((weak, alias("asn_DEF_presentation_data_values_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_presentation_data_values_4; +static asn_TYPE_descriptor_t asn_DEF_presentation_data_values; +__attribute__((constructor)) static void asn_DEF_presentation_data_values_4_alias_init(void) { + asn_DEF_presentation_data_values = asn_DEF_presentation_data_values_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_arbitrary_constr_7 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_PDV_list__presentation_data_values_4[] = { { ATF_NOFLAGS, 0, offsetof(struct PDV_list__presentation_data_values, choice.single_ASN1_type), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ @@ -102,7 +119,7 @@ asn_TYPE_descriptor_t asn_DEF_presentation_data_values_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_presentation_data_values_4, + asn_MBR_PDV_list__presentation_data_values_4, 3, /* Elements count */ &asn_SPC_presentation_data_values_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/iso_pres/_iso8823/PDV-list.h b/src/icspacket/proto/iso_pres/_iso8823/PDV-list.h index 48050f13..c3e9e543 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/PDV-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/PDV-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,8 +10,8 @@ #include /* Including external dependencies */ -#include -#include +#include "Transfer-syntax-name.h" +#include "Presentation-context-identifier.h" #include #include #include @@ -32,14 +32,14 @@ typedef enum PDV_list__presentation_data_values_PR { /* PDV-list */ typedef struct PDV_list { - Transfer_syntax_name_t *transfer_syntax_name; /* OPTIONAL */ - Presentation_context_identifier_t presentation_context_identifier; + Transfer_syntax_name_t *transfer_syntax_name; /* OPTIONAL */ + Presentation_context_identifier_t presentation_context_identifier; struct PDV_list__presentation_data_values { PDV_list__presentation_data_values_PR present; union PDV_list__presentation_data_values_u { - ANY_t single_ASN1_type; - OCTET_STRING_t octet_aligned; - BIT_STRING_t arbitrary; + ANY_t single_ASN1_type; + OCTET_STRING_t octet_aligned; + BIT_STRING_t arbitrary; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.c index 4303effc..a39ca996 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.c @@ -1,10 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include #include +#include /* class implementation */ PY_IMPL_CHOICE_ATTR_FROMPY(PDV_list_presentation_data_values_ANON_4, PDV_list__presentation_data_values, single_ASN1_type, single_ASN1_type, PyCompatBytes_ToStringAndSize(value, &dst->choice.single_ASN1_type.buf, &dst->choice.single_ASN1_type.size)); diff --git a/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.h index c3a822c9..db09644a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/PDV-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.c index fe809b23..2d1174c4 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.h index 5eac81c1..1eb25a19 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Context-list.h" #ifdef __cplusplus extern "C" { #endif /* Presentation-context-addition-list */ -typedef Context_list_t Presentation_context_addition_list_t; +typedef Context_list_t Presentation_context_addition_list_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Presentation_context_addition_list; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.c index 1cb1b0c9..d16a466f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.h index e4db09b0..0d593eb1 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.c index 966d1e84..3f45f1dd 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.h index 5d1d6c2f..17664886 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Result-list.h" #ifdef __cplusplus extern "C" { #endif /* Presentation-context-addition-result-list */ -typedef Result_list_t Presentation_context_addition_result_list_t; +typedef Result_list_t Presentation_context_addition_result_list_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Presentation_context_addition_result_list; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.c index 0067473b..eff89f87 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.h index fb5537ad..4d7055e5 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-addition-result-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.c index 952799dd..76f40bb1 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.h index 3c0359e8..23ae59cd 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Context-list.h" #ifdef __cplusplus extern "C" { #endif /* Presentation-context-definition-list */ -typedef Context_list_t Presentation_context_definition_list_t; +typedef Context_list_t Presentation_context_definition_list_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Presentation_context_definition_list; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.c index f7749fdc..b1c0ed11 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.h index 71dc3e7f..c718a8b6 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.c index 856b0a97..7df02375 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.h index 55d69668..3710ed66 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Result-list.h" #ifdef __cplusplus extern "C" { #endif /* Presentation-context-definition-result-list */ -typedef Result_list_t Presentation_context_definition_result_list_t; +typedef Result_list_t Presentation_context_definition_result_list_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Presentation_context_definition_result_list; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.c index 0a3602cb..03126490 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.h index 75b01588..5b3d26dd 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-definition-result-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.c index 065b3760..2000d3c0 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_Presentation_context_deletion_list_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_Presentation_context_deletion_list_tags_1[] = { diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.h index 1116464b..23541795 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,7 +10,7 @@ #include /* Including external dependencies */ -#include +#include "Presentation-context-identifier.h" #include #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.c index 10f1b865..c1484a27 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.h index e067d71c..8a9bddfc 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.c index 6c486be0..1c316771 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -23,7 +23,7 @@ asn_TYPE_member_t asn_MBR_Presentation_context_deletion_result_list_1[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_Presentation_context_deletion_result_list_tags_1[] = { diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.h index 76b1fe84..bcb745fc 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.c index 183a06ce..86487ef6 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.h index 8a8f1886..0b35ad11 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-deletion-result-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.c index d557bde3..e16ee790 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Presentation_context_identifier_list__Member, presentation_context_identifier), +static asn_TYPE_member_t asn_MBR_Presentation_context_identifier_list__Presentation_context_identifier_list_Member_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct Presentation_context_identifier_list__Presentation_context_identifier_list_Member, presentation_context_identifier), (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, &asn_DEF_Presentation_context_identifier, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "presentation-context-identifier" }, - { ATF_NOFLAGS, 0, offsetof(struct Presentation_context_identifier_list__Member, transfer_syntax_name), + { ATF_NOFLAGS, 0, offsetof(struct Presentation_context_identifier_list__Presentation_context_identifier_list_Member, transfer_syntax_name), (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, &asn_DEF_Transfer_syntax_name, @@ -46,32 +46,32 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { "transfer-syntax-name" }, }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { +static const ber_tlv_tag_t asn_DEF_Presentation_context_identifier_list_Member_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { +static const asn_TYPE_tag2member_t asn_MAP_Presentation_context_identifier_list_Member_tag2el_2[] = { { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* presentation-context-identifier */ { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 } /* transfer-syntax-name */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Presentation_context_identifier_list__Member), - offsetof(struct Presentation_context_identifier_list__Member, _asn_ctx), - asn_MAP_Member_tag2el_2, +static asn_SEQUENCE_specifics_t asn_SPC_Presentation_context_identifier_list_Member_specs_2 = { + sizeof(struct Presentation_context_identifier_list__Presentation_context_identifier_list_Member), + offsetof(struct Presentation_context_identifier_list__Presentation_context_identifier_list_Member, _asn_ctx), + asn_MAP_Presentation_context_identifier_list_Member_tag2el_2, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { +asn_TYPE_descriptor_t asn_DEF_Presentation_context_identifier_list_Member_2 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ + asn_DEF_Presentation_context_identifier_list_Member_tags_2, + sizeof(asn_DEF_Presentation_context_identifier_list_Member_tags_2) + /sizeof(asn_DEF_Presentation_context_identifier_list_Member_tags_2[0]), /* 1 */ + asn_DEF_Presentation_context_identifier_list_Member_tags_2, /* Same as above */ + sizeof(asn_DEF_Presentation_context_identifier_list_Member_tags_2) + /sizeof(asn_DEF_Presentation_context_identifier_list_Member_tags_2[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -84,16 +84,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_2, + asn_MBR_Presentation_context_identifier_list__Presentation_context_identifier_list_Member_2, 2, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ + &asn_SPC_Presentation_context_identifier_list_Member_specs_2 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_Presentation_context_identifier_list_1[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_2, + &asn_DEF_Presentation_context_identifier_list_Member_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.h index 8023e85c..dff0da01 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -11,8 +11,8 @@ /* Including external dependencies */ #include -#include -#include +#include "Presentation-context-identifier.h" +#include "Transfer-syntax-name.h" #include #include @@ -21,17 +21,17 @@ extern "C" { #endif /* Forward definitions */ -typedef struct Presentation_context_identifier_list__Member { - Presentation_context_identifier_t presentation_context_identifier; - Transfer_syntax_name_t transfer_syntax_name; +typedef struct Presentation_context_identifier_list__Presentation_context_identifier_list_Member { + Presentation_context_identifier_t presentation_context_identifier; + Transfer_syntax_name_t transfer_syntax_name; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} Presentation_context_identifier_list__Member; +} Presentation_context_identifier_list__Presentation_context_identifier_list_Member; /* Presentation-context-identifier-list */ typedef struct Presentation_context_identifier_list { - A_SEQUENCE_OF(Presentation_context_identifier_list__Member) list; + A_SEQUENCE_OF(Presentation_context_identifier_list__Presentation_context_identifier_list_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.c index 2837b2b9..4abdebca 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.c @@ -1,48 +1,48 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, PyAsnPresentation_context_identifier_FromPython(value, (Presentation_context_identifier_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, Presentation_context_identifier); -PY_IMPL_SEQ_GETATTR(Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier); -PY_IMPL_SEQ_SETATTR(Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier); -PY_IMPL_SEQ_ATTR_FROMPY(Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, PyAsnTransfer_syntax_name_FromPython(value, (Transfer_syntax_name_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, Transfer_syntax_name); -PY_IMPL_SEQ_GETATTR(Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name); -PY_IMPL_SEQ_SETATTR(Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name); -PY_IMPL_CHECK_CONSTRAINTS(Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); -PY_IMPL_ENCODE(Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); -PY_IMPL_DECODE(Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); -PY_IMPL_DEALLOC(Presentation_context_identifier_list_Member_ANON_2, *(asn_DEF_Presentation_context_identifier_list.elements[0].type)); -PY_IMPL_SEQ_TOPY(Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); -PY_IMPL_DECODE_BER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Member_ANON_2, ber, ATS_BER); -PY_IMPL_DECODE_DER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Member_ANON_2, der, ATS_DER); -PY_IMPL_DECODE_CER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Member_ANON_2, cer, ATS_BER); -PY_IMPL_DECODE_XER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_ENCODE_XER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_ENCODE_JER(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_GENERIC_NEW(Presentation_context_identifier_list_Member_ANON_2, NULL); -PY_IMPL_REPR(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_GENERIC_IS_VALID(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_SEQ_FROMPY(Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier); - PY_IMPL_SEQ_INIT_ATTR(Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name); +PY_IMPL_SEQ_ATTR_FROMPY(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, PyAsnPresentation_context_identifier_FromPython(value, (Presentation_context_identifier_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, Presentation_context_identifier); +PY_IMPL_SEQ_GETATTR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier); +PY_IMPL_SEQ_SETATTR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier); +PY_IMPL_SEQ_ATTR_FROMPY(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, PyAsnTransfer_syntax_name_FromPython(value, (Transfer_syntax_name_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, Transfer_syntax_name); +PY_IMPL_SEQ_GETATTR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name); +PY_IMPL_SEQ_SETATTR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name); +PY_IMPL_CHECK_CONSTRAINTS(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); +PY_IMPL_ENCODE(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); +PY_IMPL_DECODE(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); +PY_IMPL_DEALLOC(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, *(asn_DEF_Presentation_context_identifier_list.elements[0].type)); +PY_IMPL_SEQ_TOPY(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type); +PY_IMPL_DECODE_BER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, ber, ATS_BER); +PY_IMPL_DECODE_DER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, der, ATS_DER); +PY_IMPL_DECODE_CER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, cer, ATS_BER); +PY_IMPL_DECODE_XER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_ENCODE_XER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_ENCODE_JER(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_GENERIC_NEW(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, NULL); +PY_IMPL_REPR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_GENERIC_IS_VALID(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_SEQ_FROMPY(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, asn_DEF_Presentation_context_identifier_list.elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier); + PY_IMPL_SEQ_INIT_ATTR(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name); ); -PY_IMPL_SEQ_INIT(Presentation_context_identifier_list_Member_ANON_2); -PY_IMPL_SEQ_OF_ITEM_TOPY(Presentation_context_identifier_list, Presentation_context_identifier_list_Member_ANON_2_t, PyAsnPresentation_context_identifier_list_Member_ANON_2_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(Presentation_context_identifier_list, Presentation_context_identifier_list_Member_ANON_2_t, PyAsnPresentation_context_identifier_list_Member_ANON_2_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(Presentation_context_identifier_list, Presentation_context_identifier_list_Member_ANON_2_t); -PY_IMPL_SEQ_OF_SETITEM(Presentation_context_identifier_list, Presentation_context_identifier_list_Member_ANON_2_t); -PY_IMPL_SEQ_OF_ADD(Presentation_context_identifier_list, Presentation_context_identifier_list_Member_ANON_2_t); +PY_IMPL_SEQ_INIT(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); +PY_IMPL_SEQ_OF_ITEM_TOPY(Presentation_context_identifier_list, Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t, PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(Presentation_context_identifier_list, Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t, PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(Presentation_context_identifier_list, Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t); +PY_IMPL_SEQ_OF_SETITEM(Presentation_context_identifier_list, Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t); +PY_IMPL_SEQ_OF_ADD(Presentation_context_identifier_list, Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t); PY_IMPL_SEQ_OF_NEW(Presentation_context_identifier_list); PY_IMPL_SEQ_OF_DEALLOC(Presentation_context_identifier_list, asn_set_empty); PY_IMPL_SEQ_OF_INIT(Presentation_context_identifier_list); @@ -69,9 +69,9 @@ PY_IMPL_SEQ_OF_CLEAR(Presentation_context_identifier_list); PY_IMPL_SEQ_OF_EXTEND(Presentation_context_identifier_list); /* class attributes definition */ -static PyGetSetDef PyAsnPresentation_context_identifier_list_Member_ANON_2_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier), - PY_IMPL_GETSET_ITEM_INTERNAL(Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name), +static PyGetSetDef PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, presentation_context_identifier, presentation_context_identifier), + PY_IMPL_GETSET_ITEM_INTERNAL(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnPresentation_context_identifier_list_getset[] = { @@ -84,20 +84,20 @@ static PySequenceMethods PyAsnPresentation_context_identifier_list_seq_methods = }; /* class methods definition */ -static PyMethodDef PyAsnPresentation_context_identifier_list_Member_ANON_2_methods[] = { - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnPresentation_context_identifier_list_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_methods[] = { + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnPresentation_context_identifier_list_methods[] = { @@ -121,18 +121,18 @@ static PyMethodDef PyAsnPresentation_context_identifier_list_methods[] = { }; /* type definition */ -PyTypeObject PyAsnPresentation_context_identifier_list_Member_ANON_2_Type = { +PyTypeObject PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_iso8823.Presentation_context_identifier_list.Member_TYPE", - .tp_basicsize = sizeof(PyAsnPresentation_context_identifier_list_Member_ANON_2Object), + .tp_basicsize = sizeof(PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnPresentation_context_identifier_list_Member_ANON_2__new, - .tp_repr = (reprfunc)PyAsnPresentation_context_identifier_list_Member_ANON_2__repr, - .tp_dealloc = (destructor)PyAsnPresentation_context_identifier_list_Member_ANON_2__dealloc, - .tp_init = (initproc)PyAsnPresentation_context_identifier_list_Member_ANON_2__init, - .tp_getset = PyAsnPresentation_context_identifier_list_Member_ANON_2_getset, - .tp_methods = PyAsnPresentation_context_identifier_list_Member_ANON_2_methods, - .tp_doc = "ASN.1 anonymous type Presentation_context_identifier_list__Member_TYPE part of Presentation_context_identifier_list", + .tp_new = (newfunc)PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2__new, + .tp_repr = (reprfunc)PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2__repr, + .tp_dealloc = (destructor)PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2__dealloc, + .tp_init = (initproc)PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2__init, + .tp_getset = PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_getset, + .tp_methods = PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_methods, + .tp_doc = "ASN.1 anonymous type Presentation_context_identifier_list__Presentation_context_identifier_list_Member_TYPE part of Presentation_context_identifier_list", }; PyTypeObject PyAsnPresentation_context_identifier_list_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -151,7 +151,7 @@ PyTypeObject PyAsnPresentation_context_identifier_list_Type = { /* module initializer */ int PyAsnPresentation_context_identifier_list_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnPresentation_context_identifier_list_Member_ANON_2_Type) < 0) return -1; + if (PyType_Ready(&PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnPresentation_context_identifier_list_Type) < 0) return -1; return 0; } @@ -160,7 +160,7 @@ void PyAsnPresentation_context_identifier_list_ModClear(PyObject *mod) { } int PyAsnPresentation_context_identifier_list_ModInit(PyObject *mod) { - PY_IMPL_MOD_ASSIGN_OBJECT(Presentation_context_identifier_list, Member_TYPE, &PyAsnPresentation_context_identifier_list_Member_ANON_2_Type); + PY_IMPL_MOD_ASSIGN_OBJECT(Presentation_context_identifier_list, Member_TYPE, &PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_Type); PY_IMPL_MOD_ADD_OBJECT(mod, Presentation_context_identifier_list); return 0; } diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.h index ef67e878..b996ad14 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -14,20 +14,22 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { #endif /* Presentation-context-identifier-list */ -PyCompat_DEF_ANON_STRUCT(Presentation_context_identifier_list_Member_ANON_2, Presentation_context_identifier_list__Member); -PyCompat_DEF_TYPE(Presentation_context_identifier_list_Member_ANON_2); +PyCompat_DEF_ANON_STRUCT(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2, Presentation_context_identifier_list__Presentation_context_identifier_list_Member); +PyCompat_DEF_TYPE(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2); PyCompat_DEF_STRUCT(Presentation_context_identifier_list); PyCompat_DEF_TYPE(Presentation_context_identifier_list); /* Type Converters */ -int PyAsnPresentation_context_identifier_list_Member_ANON_2_FromPython(PyObject *pObj, Presentation_context_identifier_list_Member_ANON_2_t *pDst); -PyObject *PyAsnPresentation_context_identifier_list_Member_ANON_2_ToPython(Presentation_context_identifier_list_Member_ANON_2_t *pSrc, PyObject *parent); +int PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_FromPython(PyObject *pObj, Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t *pDst); +PyObject *PyAsnPresentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_ToPython(Presentation_context_identifier_list_Presentation_context_identifier_list_Member_ANON_2_t *pSrc, PyObject *parent); int PyAsnPresentation_context_identifier_list_FromPython(PyObject *pObj, Presentation_context_identifier_list_t *pDst); PyObject *PyAsnPresentation_context_identifier_list_ToPython(Presentation_context_identifier_list_t *pSrc, PyObject *parent); diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.c index b287d7c2..a1d377fa 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.h index dea0cc57..8bb5f8e9 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Presentation-context-identifier */ -typedef long Presentation_context_identifier_t; +typedef long Presentation_context_identifier_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Presentation_context_identifier; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.c index 534bdfd5..7f527b67 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.h index 739777d7..18c2933b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-context-identifier_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.c index 450e03e1..59cead18 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_Presentation_requirements_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_Presentation_requirements_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_Presentation_requirements_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.h index 8a8341f7..61261049 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -23,9 +23,10 @@ typedef enum Presentation_requirements { } e_Presentation_requirements; /* Presentation-requirements */ -typedef BIT_STRING_t Presentation_requirements_t; +typedef BIT_STRING_t Presentation_requirements_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_Presentation_requirements_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Presentation_requirements; asn_struct_free_f Presentation_requirements_free; asn_struct_print_f Presentation_requirements_print; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.c index 850d09d6..b301d40a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.h index 29622f95..05a45385 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-requirements_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.c index 12736016..c41081a9 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.h index e184405c..0a8d9e54 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Presentation-selector */ -typedef OCTET_STRING_t Presentation_selector_t; +typedef OCTET_STRING_t Presentation_selector_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Presentation_selector; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.c index 70af46a8..11e4e1bf 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.h index fc7a3409..93fdfe09 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Presentation-selector_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.c b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.c index 5405bdda..b114224a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_Protocol_options_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_Protocol_options_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_Protocol_options_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.h b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.h index 4edb8be9..cf84d98a 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -24,9 +24,10 @@ typedef enum Protocol_options { } e_Protocol_options; /* Protocol-options */ -typedef BIT_STRING_t Protocol_options_t; +typedef BIT_STRING_t Protocol_options_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_Protocol_options_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Protocol_options; asn_struct_free_f Protocol_options_free; asn_struct_print_f Protocol_options_print; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.c index 9150e227..57d91bf8 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.h index a1651526..7ea7b465 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-options_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.c b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.c index bdfc5634..de351806 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_Protocol_version_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_Protocol_version_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_Protocol_version_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.h b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.h index 5a9bcf4e..4e8f4120 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -22,9 +22,10 @@ typedef enum Protocol_version { } e_Protocol_version; /* Protocol-version */ -typedef BIT_STRING_t Protocol_version_t; +typedef BIT_STRING_t Protocol_version_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_Protocol_version_constr_1; extern asn_TYPE_descriptor_t asn_DEF_Protocol_version; asn_struct_free_f Protocol_version_free; asn_struct_print_f Protocol_version_print; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.c index 63b3dce9..5f5b9470 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.h index 26d70ae7..e510e056 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Protocol-version_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.c b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.c index 6168c260..aa290234 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.h b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.h index 3d090472..0a72554b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -29,7 +29,7 @@ typedef enum Provider_reason { } e_Provider_reason; /* Provider-reason */ -typedef long Provider_reason_t; +typedef long Provider_reason_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Provider_reason; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.c index 55ef62d7..14b07729 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.h index a4935f1a..6d3ada23 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Provider-reason_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.c index 058da52a..ab9adafe 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.h index 958460f2..b8bf2511 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -22,8 +22,8 @@ struct User_data; /* RS-PPDU */ typedef struct RS_PPDU { - struct Presentation_context_identifier_list *presentation_context_identifier_list; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + struct Presentation_context_identifier_list *presentation_context_identifier_list; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -37,8 +37,8 @@ extern asn_TYPE_descriptor_t asn_DEF_RS_PPDU; #endif /* Referred external types */ -#include -#include +#include "Presentation-context-identifier-list.h" +#include "User-data.h" #endif /* _RS_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.c index 495b9a41..885e0bf4 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.h index 9279ba50..894c69ae 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/RS-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.c b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.c index 14eabab4..5af7cabb 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.c +++ b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.h b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.h index 8d8f96fd..36b4b41e 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.h +++ b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -22,8 +22,8 @@ struct User_data; /* RSA-PPDU */ typedef struct RSA_PPDU { - struct Presentation_context_identifier_list *presentation_context_identifier_list; /* OPTIONAL */ - struct User_data *user_data; /* OPTIONAL */ + struct Presentation_context_identifier_list *presentation_context_identifier_list; /* OPTIONAL */ + struct User_data *user_data; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -37,8 +37,8 @@ extern asn_TYPE_descriptor_t asn_DEF_RSA_PPDU; #endif /* Referred external types */ -#include -#include +#include "Presentation-context-identifier-list.h" +#include "User-data.h" #endif /* _RSA_PPDU_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.c b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.c index d6cb7e7b..b93198ec 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.h b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.h index 96b55d2a..5fe0364c 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/RSA-PPDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.c b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.c index 761d5217..406c5ed6 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.h b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.h index 30934e14..1362dc9e 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,14 +10,14 @@ #include /* Including external dependencies */ -#include +#include "Presentation-selector.h" #ifdef __cplusplus extern "C" { #endif /* Responding-presentation-selector */ -typedef Presentation_selector_t Responding_presentation_selector_t; +typedef Presentation_selector_t Responding_presentation_selector_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Responding_presentation_selector; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.c index 9248ce73..187b148d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.h index ee1ee05b..8def5a55 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Responding-presentation-selector_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result-list.c b/src/icspacket/proto/iso_pres/_iso8823/Result-list.c index 09bebe84..aaddd4f6 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result-list.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Result-list.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Result_list__Member, result), +static asn_TYPE_member_t asn_MBR_Result_list__Result_list_Member_2[] = { + { ATF_NOFLAGS, 0, offsetof(struct Result_list__Result_list_Member, result), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Result, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "result" }, - { ATF_POINTER, 2, offsetof(struct Result_list__Member, transfer_syntax_name), + { ATF_POINTER, 2, offsetof(struct Result_list__Result_list_Member, transfer_syntax_name), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Transfer_syntax_name, @@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { 0, 0, /* No default value */ "transfer-syntax-name" }, - { ATF_POINTER, 1, offsetof(struct Result_list__Member, provider_reason), + { ATF_POINTER, 1, offsetof(struct Result_list__Result_list_Member, provider_reason), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, @@ -66,35 +66,35 @@ static asn_TYPE_member_t asn_MBR_Member_2[] = { "provider-reason" }, }; -static const int asn_MAP_Member_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { +static const int asn_MAP_Result_list_Member_oms_2[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_Result_list_Member_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { +static const asn_TYPE_tag2member_t asn_MAP_Result_list_Member_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* result */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transfer-syntax-name */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* provider-reason */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Result_list__Member), - offsetof(struct Result_list__Member, _asn_ctx), - asn_MAP_Member_tag2el_2, +static asn_SEQUENCE_specifics_t asn_SPC_Result_list_Member_specs_2 = { + sizeof(struct Result_list__Result_list_Member), + offsetof(struct Result_list__Result_list_Member, _asn_ctx), + asn_MAP_Result_list_Member_tag2el_2, 3, /* Count of tags in the map */ - asn_MAP_Member_oms_2, /* Optional members */ + asn_MAP_Result_list_Member_oms_2, /* Optional members */ 2, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { +asn_TYPE_descriptor_t asn_DEF_Result_list_Member_2 = { "SEQUENCE", "SEQUENCE", &asn_OP_SEQUENCE, - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ + asn_DEF_Result_list_Member_tags_2, + sizeof(asn_DEF_Result_list_Member_tags_2) + /sizeof(asn_DEF_Result_list_Member_tags_2[0]), /* 1 */ + asn_DEF_Result_list_Member_tags_2, /* Same as above */ + sizeof(asn_DEF_Result_list_Member_tags_2) + /sizeof(asn_DEF_Result_list_Member_tags_2[0]), /* 1 */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, @@ -107,16 +107,16 @@ asn_TYPE_descriptor_t asn_DEF_Member_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_Member_2, + asn_MBR_Result_list__Result_list_Member_2, 3, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ + &asn_SPC_Result_list_Member_specs_2 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_Result_list_1[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, - &asn_DEF_Member_2, + &asn_DEF_Result_list_Member_2, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result-list.h b/src/icspacket/proto/iso_pres/_iso8823/Result-list.h index c174a188..a7960746 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result-list.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Result-list.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -11,8 +11,8 @@ /* Including external dependencies */ #include -#include -#include +#include "Result.h" +#include "Transfer-syntax-name.h" #include #include #include @@ -22,26 +22,26 @@ extern "C" { #endif /* Dependencies */ -typedef enum Result_list__Member__provider_reason { - Result_list__Member__provider_reason_reason_not_specified = 0, - Result_list__Member__provider_reason_abstract_syntax_not_supported = 1, - Result_list__Member__provider_reason_proposed_transfer_syntaxes_not_supported = 2, - Result_list__Member__provider_reason_local_limit_on_DCS_exceeded = 3 -} e_Result_list__Member__provider_reason; +typedef enum Result_list__Result_list_Member__provider_reason { + Result_list__Result_list_Member__provider_reason_reason_not_specified = 0, + Result_list__Result_list_Member__provider_reason_abstract_syntax_not_supported = 1, + Result_list__Result_list_Member__provider_reason_proposed_transfer_syntaxes_not_supported = 2, + Result_list__Result_list_Member__provider_reason_local_limit_on_DCS_exceeded = 3 +} e_Result_list__Result_list_Member__provider_reason; /* Forward definitions */ -typedef struct Result_list__Member { - Result_t result; - Transfer_syntax_name_t *transfer_syntax_name; /* OPTIONAL */ - long *provider_reason; /* OPTIONAL */ +typedef struct Result_list__Result_list_Member { + Result_t result; + Transfer_syntax_name_t *transfer_syntax_name; /* OPTIONAL */ + long *provider_reason; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} Result_list__Member; +} Result_list__Result_list_Member; /* Result-list */ typedef struct Result_list { - A_SEQUENCE_OF(Result_list__Member) list; + A_SEQUENCE_OF(Result_list__Result_list_Member) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.c index d2b26375..c152ace8 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.c @@ -1,58 +1,58 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include /* class implementation */ -PY_IMPL_SEQ_ATTR_FROMPY(Result_list_Member_ANON_2, result, PyAsnResult_FromPython(value, (Result_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(Result_list_Member_ANON_2, result, Result); -PY_IMPL_SEQ_GETATTR(Result_list_Member_ANON_2, result); -PY_IMPL_SEQ_SETATTR(Result_list_Member_ANON_2, result); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(Result_list_Member_ANON_2, transfer_syntax_name); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(Result_list_Member_ANON_2, transfer_syntax_name, Transfer_syntax_name_t); -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Result_list_Member_ANON_2, transfer_syntax_name, PyAsnTransfer_syntax_name_FromPython(value, (Transfer_syntax_name_t *)target)); -PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Result_list_Member_ANON_2, transfer_syntax_name, Transfer_syntax_name); -PY_IMPL_SEQ_OPT_GETATTR(Result_list_Member_ANON_2, transfer_syntax_name); -PY_IMPL_SEQ_OPT_SETATTR(Result_list_Member_ANON_2, transfer_syntax_name); -PY_IMPL_SEQ_ATTR_GENERIC_FREE(Result_list_Member_ANON_2, provider_reason); -PY_IMPL_SEQ_ATTR_GENERIC_NEW(Result_list_Member_ANON_2, provider_reason, long); -PyObject *PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type = NULL; -PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Result_list_Member_ANON_2, provider_reason, PyCompatEnum_FromObject(value, target, 0)); -PY_IMPL_SEQ_ATTR_INDIRECT_TOPY(Result_list_Member_ANON_2, provider_reason, PyCompatEnum_AsObject(PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type, target, 0)); -PY_IMPL_SEQ_OPT_GETATTR(Result_list_Member_ANON_2, provider_reason); -PY_IMPL_SEQ_OPT_SETATTR(Result_list_Member_ANON_2, provider_reason); -PY_IMPL_CHECK_CONSTRAINTS(Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); -PY_IMPL_ENCODE(Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); -PY_IMPL_DECODE(Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); -PY_IMPL_DEALLOC(Result_list_Member_ANON_2, *(asn_DEF_Result_list.elements[0].type)); -PY_IMPL_SEQ_TOPY(Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); -PY_IMPL_DECODE_BER(Result_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Result_list_Member_ANON_2, ber, ATS_BER); -PY_IMPL_DECODE_DER(Result_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Result_list_Member_ANON_2, der, ATS_DER); -PY_IMPL_DECODE_CER(Result_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Result_list_Member_ANON_2, cer, ATS_BER); -PY_IMPL_DECODE_XER(Result_list_Member_ANON_2); -PY_IMPL_ENCODE_XER(Result_list_Member_ANON_2); -PY_IMPL_ENCODE_SPECIFIC(Result_list_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); -PY_IMPL_DECODE_JER(Result_list_Member_ANON_2); -PY_IMPL_ENCODE_JER(Result_list_Member_ANON_2); -PY_IMPL_GENERIC_NEW(Result_list_Member_ANON_2, NULL); -PY_IMPL_REPR(Result_list_Member_ANON_2); -PY_IMPL_GENERIC_IS_VALID(Result_list_Member_ANON_2); -PY_IMPL_SEQ_FROMPY(Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type, - PY_IMPL_SEQ_INIT_ATTR(Result_list_Member_ANON_2, result, result); - PY_IMPL_SEQ_INIT_ATTR(Result_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name); - PY_IMPL_SEQ_INIT_ATTR(Result_list_Member_ANON_2, provider_reason, provider_reason); +PY_IMPL_SEQ_ATTR_FROMPY(Result_list_Result_list_Member_ANON_2, result, PyAsnResult_FromPython(value, (Result_t *)target)); +PY_IMPL_SEQ_REF_ATTR_TOPY(Result_list_Result_list_Member_ANON_2, result, Result); +PY_IMPL_SEQ_GETATTR(Result_list_Result_list_Member_ANON_2, result); +PY_IMPL_SEQ_SETATTR(Result_list_Result_list_Member_ANON_2, result); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Result_list_Result_list_Member_ANON_2, transfer_syntax_name); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Result_list_Result_list_Member_ANON_2, transfer_syntax_name, Transfer_syntax_name_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Result_list_Result_list_Member_ANON_2, transfer_syntax_name, PyAsnTransfer_syntax_name_FromPython(value, (Transfer_syntax_name_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(Result_list_Result_list_Member_ANON_2, transfer_syntax_name, Transfer_syntax_name); +PY_IMPL_SEQ_OPT_GETATTR(Result_list_Result_list_Member_ANON_2, transfer_syntax_name); +PY_IMPL_SEQ_OPT_SETATTR(Result_list_Result_list_Member_ANON_2, transfer_syntax_name); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(Result_list_Result_list_Member_ANON_2, provider_reason); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(Result_list_Result_list_Member_ANON_2, provider_reason, long); +PyObject *PyAsnEnumResult_list_Result_list_Member_ANON_2_provider_reason_Type = NULL; +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(Result_list_Result_list_Member_ANON_2, provider_reason, PyCompatEnum_FromObject(value, target, 0)); +PY_IMPL_SEQ_ATTR_INDIRECT_TOPY(Result_list_Result_list_Member_ANON_2, provider_reason, PyCompatEnum_AsObject(PyAsnEnumResult_list_Result_list_Member_ANON_2_provider_reason_Type, target, 0)); +PY_IMPL_SEQ_OPT_GETATTR(Result_list_Result_list_Member_ANON_2, provider_reason); +PY_IMPL_SEQ_OPT_SETATTR(Result_list_Result_list_Member_ANON_2, provider_reason); +PY_IMPL_CHECK_CONSTRAINTS(Result_list_Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); +PY_IMPL_ENCODE(Result_list_Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); +PY_IMPL_DECODE(Result_list_Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); +PY_IMPL_DEALLOC(Result_list_Result_list_Member_ANON_2, *(asn_DEF_Result_list.elements[0].type)); +PY_IMPL_SEQ_TOPY(Result_list_Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type); +PY_IMPL_DECODE_BER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Result_list_Result_list_Member_ANON_2, ber, ATS_BER); +PY_IMPL_DECODE_DER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Result_list_Result_list_Member_ANON_2, der, ATS_DER); +PY_IMPL_DECODE_CER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Result_list_Result_list_Member_ANON_2, cer, ATS_BER); +PY_IMPL_DECODE_XER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_ENCODE_XER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_ENCODE_SPECIFIC(Result_list_Result_list_Member_ANON_2, plain, ATS_NONSTANDARD_PLAINTEXT); +PY_IMPL_DECODE_JER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_ENCODE_JER(Result_list_Result_list_Member_ANON_2); +PY_IMPL_GENERIC_NEW(Result_list_Result_list_Member_ANON_2, NULL); +PY_IMPL_REPR(Result_list_Result_list_Member_ANON_2); +PY_IMPL_GENERIC_IS_VALID(Result_list_Result_list_Member_ANON_2); +PY_IMPL_SEQ_FROMPY(Result_list_Result_list_Member_ANON_2, asn_DEF_Result_list.elements[0].type, + PY_IMPL_SEQ_INIT_ATTR(Result_list_Result_list_Member_ANON_2, result, result); + PY_IMPL_SEQ_INIT_ATTR(Result_list_Result_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name); + PY_IMPL_SEQ_INIT_ATTR(Result_list_Result_list_Member_ANON_2, provider_reason, provider_reason); ); -PY_IMPL_SEQ_INIT(Result_list_Member_ANON_2); -PY_IMPL_SEQ_OF_ITEM_TOPY(Result_list, Result_list_Member_ANON_2_t, PyAsnResult_list_Member_ANON_2_ToPython(src, parent)); -PY_IMPL_SEQ_OF_ITEM_FROMPY(Result_list, Result_list_Member_ANON_2_t, PyAsnResult_list_Member_ANON_2_FromPython(value, target)); -PY_IMPL_SEQ_OF_FROMPY(Result_list, Result_list_Member_ANON_2_t); -PY_IMPL_SEQ_OF_SETITEM(Result_list, Result_list_Member_ANON_2_t); -PY_IMPL_SEQ_OF_ADD(Result_list, Result_list_Member_ANON_2_t); +PY_IMPL_SEQ_INIT(Result_list_Result_list_Member_ANON_2); +PY_IMPL_SEQ_OF_ITEM_TOPY(Result_list, Result_list_Result_list_Member_ANON_2_t, PyAsnResult_list_Result_list_Member_ANON_2_ToPython(src, parent)); +PY_IMPL_SEQ_OF_ITEM_FROMPY(Result_list, Result_list_Result_list_Member_ANON_2_t, PyAsnResult_list_Result_list_Member_ANON_2_FromPython(value, target)); +PY_IMPL_SEQ_OF_FROMPY(Result_list, Result_list_Result_list_Member_ANON_2_t); +PY_IMPL_SEQ_OF_SETITEM(Result_list, Result_list_Result_list_Member_ANON_2_t); +PY_IMPL_SEQ_OF_ADD(Result_list, Result_list_Result_list_Member_ANON_2_t); PY_IMPL_SEQ_OF_NEW(Result_list); PY_IMPL_SEQ_OF_DEALLOC(Result_list, asn_set_empty); PY_IMPL_SEQ_OF_INIT(Result_list); @@ -79,10 +79,10 @@ PY_IMPL_SEQ_OF_CLEAR(Result_list); PY_IMPL_SEQ_OF_EXTEND(Result_list); /* class attributes definition */ -static PyGetSetDef PyAsnResult_list_Member_ANON_2_getset[] = { - PY_IMPL_GETSET_ITEM_INTERNAL(Result_list_Member_ANON_2, result, result), - PY_IMPL_GETSET_ITEM_INTERNAL(Result_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name), - PY_IMPL_GETSET_ITEM_INTERNAL(Result_list_Member_ANON_2, provider_reason, provider_reason), +static PyGetSetDef PyAsnResult_list_Result_list_Member_ANON_2_getset[] = { + PY_IMPL_GETSET_ITEM_INTERNAL(Result_list_Result_list_Member_ANON_2, result, result), + PY_IMPL_GETSET_ITEM_INTERNAL(Result_list_Result_list_Member_ANON_2, transfer_syntax_name, transfer_syntax_name), + PY_IMPL_GETSET_ITEM_INTERNAL(Result_list_Result_list_Member_ANON_2, provider_reason, provider_reason), {NULL, NULL, NULL, NULL, NULL} /* sentinel */ }; static PyGetSetDef PyAsnResult_list_getset[] = { @@ -95,20 +95,20 @@ static PySequenceMethods PyAsnResult_list_seq_methods = { }; /* class methods definition */ -static PyMethodDef PyAsnResult_list_Member_ANON_2_methods[] = { - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, is_valid, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, check_constraints, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, ber_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, der_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, cer_encode, METH_NOARGS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), - {"to_text", (PyCFunction)PyAsnResult_list_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), - PY_IMPL_METHODDEF_ITEM(Result_list_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), +static PyMethodDef PyAsnResult_list_Result_list_Member_ANON_2_methods[] = { + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, is_valid, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, check_constraints, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, ber_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, ber_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, der_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, der_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, cer_encode, METH_NOARGS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, cer_decode, METH_VARARGS | METH_STATIC), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, xer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, xer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), + {"to_text", (PyCFunction)PyAsnResult_list_Result_list_Member_ANON_2__plain_encode, (METH_NOARGS), NULL}, + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, jer_encode, METH_VARARGS | METH_KEYWORDS), + PY_IMPL_METHODDEF_ITEM(Result_list_Result_list_Member_ANON_2, jer_decode, METH_VARARGS | METH_KEYWORDS | METH_STATIC), {NULL, NULL, 0, NULL} /* sentinel */ }; static PyMethodDef PyAsnResult_list_methods[] = { @@ -132,18 +132,18 @@ static PyMethodDef PyAsnResult_list_methods[] = { }; /* type definition */ -PyTypeObject PyAsnResult_list_Member_ANON_2_Type = { +PyTypeObject PyAsnResult_list_Result_list_Member_ANON_2_Type = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "_iso8823.Result_list.Member_TYPE", - .tp_basicsize = sizeof(PyAsnResult_list_Member_ANON_2Object), + .tp_basicsize = sizeof(PyAsnResult_list_Result_list_Member_ANON_2Object), .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, - .tp_new = (newfunc)PyAsnResult_list_Member_ANON_2__new, - .tp_repr = (reprfunc)PyAsnResult_list_Member_ANON_2__repr, - .tp_dealloc = (destructor)PyAsnResult_list_Member_ANON_2__dealloc, - .tp_init = (initproc)PyAsnResult_list_Member_ANON_2__init, - .tp_getset = PyAsnResult_list_Member_ANON_2_getset, - .tp_methods = PyAsnResult_list_Member_ANON_2_methods, - .tp_doc = "ASN.1 anonymous type Result_list__Member_TYPE part of Result_list", + .tp_new = (newfunc)PyAsnResult_list_Result_list_Member_ANON_2__new, + .tp_repr = (reprfunc)PyAsnResult_list_Result_list_Member_ANON_2__repr, + .tp_dealloc = (destructor)PyAsnResult_list_Result_list_Member_ANON_2__dealloc, + .tp_init = (initproc)PyAsnResult_list_Result_list_Member_ANON_2__init, + .tp_getset = PyAsnResult_list_Result_list_Member_ANON_2_getset, + .tp_methods = PyAsnResult_list_Result_list_Member_ANON_2_methods, + .tp_doc = "ASN.1 anonymous type Result_list__Result_list_Member_TYPE part of Result_list", }; PyTypeObject PyAsnResult_list_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -162,24 +162,24 @@ PyTypeObject PyAsnResult_list_Type = { /* module initializer */ int PyAsnResult_list_ModSetupTypes(void) { - if (PyType_Ready(&PyAsnResult_list_Member_ANON_2_Type) < 0) return -1; + if (PyType_Ready(&PyAsnResult_list_Result_list_Member_ANON_2_Type) < 0) return -1; if (PyType_Ready(&PyAsnResult_list_Type) < 0) return -1; return 0; } void PyAsnResult_list_ModClear(PyObject *mod) { - Py_CLEAR(PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type); + Py_CLEAR(PyAsnEnumResult_list_Result_list_Member_ANON_2_provider_reason_Type); } int PyAsnResult_list_ModInit(PyObject *mod) { - PY_IMPL_NEW_ENUM(Result_list_Member_ANON_2.provider_reason_VALUES, PyAsnEnumResult_list_Member_ANON_2_provider_reason_Type, -1, - PY_IMPL_ENUM_VALUE(V_reason_not_specified, Result_list__Member__provider_reason_reason_not_specified, 0); - PY_IMPL_ENUM_VALUE(V_abstract_syntax_not_supported, Result_list__Member__provider_reason_abstract_syntax_not_supported, 1); - PY_IMPL_ENUM_VALUE(V_proposed_transfer_syntaxes_not_supported, Result_list__Member__provider_reason_proposed_transfer_syntaxes_not_supported, 2); - PY_IMPL_ENUM_VALUE(V_local_limit_on_DCS_exceeded, Result_list__Member__provider_reason_local_limit_on_DCS_exceeded, 3); + PY_IMPL_NEW_ENUM(Result_list_Result_list_Member_ANON_2.provider_reason_VALUES, PyAsnEnumResult_list_Result_list_Member_ANON_2_provider_reason_Type, -1, + PY_IMPL_ENUM_VALUE(V_reason_not_specified, Result_list__Result_list_Member__provider_reason_reason_not_specified, 0); + PY_IMPL_ENUM_VALUE(V_abstract_syntax_not_supported, Result_list__Result_list_Member__provider_reason_abstract_syntax_not_supported, 1); + PY_IMPL_ENUM_VALUE(V_proposed_transfer_syntaxes_not_supported, Result_list__Result_list_Member__provider_reason_proposed_transfer_syntaxes_not_supported, 2); + PY_IMPL_ENUM_VALUE(V_local_limit_on_DCS_exceeded, Result_list__Result_list_Member__provider_reason_local_limit_on_DCS_exceeded, 3); ); - PY_IMPL_ASSIGN_ENUM_DIRECT(Result_list_Member_ANON_2, Result_list_Member_ANON_2_provider_reason, provider_reason_VALUES); - PY_IMPL_MOD_ASSIGN_OBJECT(Result_list, Member_TYPE, &PyAsnResult_list_Member_ANON_2_Type); + PY_IMPL_ASSIGN_ENUM_DIRECT(Result_list_Result_list_Member_ANON_2, Result_list_Result_list_Member_ANON_2_provider_reason, provider_reason_VALUES); + PY_IMPL_MOD_ASSIGN_OBJECT(Result_list, Member_TYPE, &PyAsnResult_list_Result_list_Member_ANON_2_Type); PY_IMPL_MOD_ADD_OBJECT(mod, Result_list); return 0; } diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.h index aeff586a..3cc95ed9 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Result-list_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -14,21 +14,23 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { #endif /* Result-list */ -PyCompat_DEF_ANON_STRUCT(Result_list_Member_ANON_2, Result_list__Member); -PyCompat_DEF_TYPE(Result_list_Member_ANON_2); -PyCompat_DEF_ENUM(Result_list_Member_ANON_2_provider_reason); +PyCompat_DEF_ANON_STRUCT(Result_list_Result_list_Member_ANON_2, Result_list__Result_list_Member); +PyCompat_DEF_TYPE(Result_list_Result_list_Member_ANON_2); +PyCompat_DEF_ENUM(Result_list_Result_list_Member_ANON_2_provider_reason); PyCompat_DEF_STRUCT(Result_list); PyCompat_DEF_TYPE(Result_list); /* Type Converters */ -int PyAsnResult_list_Member_ANON_2_FromPython(PyObject *pObj, Result_list_Member_ANON_2_t *pDst); -PyObject *PyAsnResult_list_Member_ANON_2_ToPython(Result_list_Member_ANON_2_t *pSrc, PyObject *parent); +int PyAsnResult_list_Result_list_Member_ANON_2_FromPython(PyObject *pObj, Result_list_Result_list_Member_ANON_2_t *pDst); +PyObject *PyAsnResult_list_Result_list_Member_ANON_2_ToPython(Result_list_Result_list_Member_ANON_2_t *pSrc, PyObject *parent); int PyAsnResult_list_FromPython(PyObject *pObj, Result_list_t *pDst); PyObject *PyAsnResult_list_ToPython(Result_list_t *pSrc, PyObject *parent); diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result.c b/src/icspacket/proto/iso_pres/_iso8823/Result.c index d056a26f..82ab4d13 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Result.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result.h b/src/icspacket/proto/iso_pres/_iso8823/Result.h index 8a38dc73..f21dd79d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Result.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -24,7 +24,7 @@ typedef enum Result { } e_Result; /* Result */ -typedef long Result_t; +typedef long Result_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Result; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Result_Py.c index 3d9b054d..15ebdbf1 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Result_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Result_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Result_Py.h index cf0d00aa..381057d6 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Result_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Result_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.c b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.c index 6c700512..cd08cdc0 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.h b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.h index 0da3d38a..47e3c208 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Simply-encoded-data */ -typedef OCTET_STRING_t Simply_encoded_data_t; +typedef OCTET_STRING_t Simply_encoded_data_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Simply_encoded_data; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.c index d969c771..0eeb2f3e 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.h index 19d8fc75..c414c7c2 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Simply-encoded-data_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.c b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.c index d22effda..04b639ab 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.h b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.h index d140b933..025bd1e7 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* Transfer-syntax-name */ -typedef OBJECT_IDENTIFIER_t Transfer_syntax_name_t; +typedef OBJECT_IDENTIFIER_t Transfer_syntax_name_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_Transfer_syntax_name; diff --git a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.c index 4718bf07..e9963303 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.h index 67179f5e..97f17110 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Transfer-syntax-name_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.c b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.c index 7bb1df78..a0e76c6f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include static asn_TYPE_member_t asn_MBR_Typed_data_type_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Typed_data_type, choice.acPPDU), + { ATF_POINTER, 0, offsetof(struct Typed_data_type, choice.acPPDU), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_AC_PPDU, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_Typed_data_type_1[] = { 0, 0, /* No default value */ "acPPDU" }, - { ATF_NOFLAGS, 0, offsetof(struct Typed_data_type, choice.acaPPDU), + { ATF_POINTER, 0, offsetof(struct Typed_data_type, choice.acaPPDU), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ACA_PPDU, @@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_Typed_data_type_1[] = { 0, 0, /* No default value */ "acaPPDU" }, - { ATF_NOFLAGS, 0, offsetof(struct Typed_data_type, choice.ttdPPDU), + { ATF_POINTER, 0, offsetof(struct Typed_data_type, choice.ttdPPDU), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_User_data, diff --git a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.h b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.h index 85ee4e5f..d986615e 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,9 +10,6 @@ #include /* Including external dependencies */ -#include -#include -#include #include #ifdef __cplusplus @@ -27,13 +24,18 @@ typedef enum Typed_data_type_PR { Typed_data_type_PR_ttdPPDU } Typed_data_type_PR; +/* Forward declarations */ +struct AC_PPDU; +struct ACA_PPDU; +struct User_data; + /* Typed-data-type */ typedef struct Typed_data_type { Typed_data_type_PR present; union Typed_data_type_u { - AC_PPDU_t acPPDU; - ACA_PPDU_t acaPPDU; - User_data_t ttdPPDU; + struct AC_PPDU *acPPDU; + struct ACA_PPDU *acaPPDU; + struct User_data *ttdPPDU; } choice; /* Context for parsing across buffer boundaries */ @@ -47,5 +49,10 @@ extern asn_TYPE_descriptor_t asn_DEF_Typed_data_type; } #endif +/* Referred external types */ +#include "AC-PPDU.h" +#include "ACA-PPDU.h" +#include "User-data.h" + #endif /* _Typed_data_type_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.c b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.c index 39b91f1d..0c5f7b7f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.c @@ -1,21 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(Typed_data_type, Typed_data_type, acPPDU, acPPDU,PyAsnAC_PPDU_FromPython(value, &dst->choice.acPPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(Typed_data_type, acPPDU, PyCompatAsnType_FromParent(&PyAsnAC_PPDU_Type, parent, (void *)&src->choice.acPPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Typed_data_type, Typed_data_type, acPPDU, acPPDU, AC_PPDU,PyAsnAC_PPDU_FromPython(value, dst->choice.acPPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(Typed_data_type, acPPDU, PyCompatAsnType_FromParent(&PyAsnAC_PPDU_Type, parent, (void *)src->choice.acPPDU)); PY_IMPL_CHOICE_GETATTR(Typed_data_type, Typed_data_type, acPPDU, acPPDU); PY_IMPL_CHOICE_SETATTR(Typed_data_type, Typed_data_type, acPPDU, acPPDU); -PY_IMPL_CHOICE_ATTR_FROMPY(Typed_data_type, Typed_data_type, acaPPDU, acaPPDU,PyAsnACA_PPDU_FromPython(value, &dst->choice.acaPPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(Typed_data_type, acaPPDU, PyCompatAsnType_FromParent(&PyAsnACA_PPDU_Type, parent, (void *)&src->choice.acaPPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Typed_data_type, Typed_data_type, acaPPDU, acaPPDU, ACA_PPDU,PyAsnACA_PPDU_FromPython(value, dst->choice.acaPPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(Typed_data_type, acaPPDU, PyCompatAsnType_FromParent(&PyAsnACA_PPDU_Type, parent, (void *)src->choice.acaPPDU)); PY_IMPL_CHOICE_GETATTR(Typed_data_type, Typed_data_type, acaPPDU, acaPPDU); PY_IMPL_CHOICE_SETATTR(Typed_data_type, Typed_data_type, acaPPDU, acaPPDU); -PY_IMPL_CHOICE_ATTR_FROMPY(Typed_data_type, Typed_data_type, ttdPPDU, ttdPPDU,PyAsnUser_data_FromPython(value, &dst->choice.ttdPPDU)); -PY_IMPL_CHOICE_ATTR_TOPY(Typed_data_type, ttdPPDU, PyCompatAsnType_FromParent(&PyAsnUser_data_Type, parent, (void *)&src->choice.ttdPPDU)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(Typed_data_type, Typed_data_type, ttdPPDU, ttdPPDU, User_data,PyAsnUser_data_FromPython(value, dst->choice.ttdPPDU)); +PY_IMPL_CHOICE_ATTR_TOPY(Typed_data_type, ttdPPDU, PyCompatAsnType_FromParent(&PyAsnUser_data_Type, parent, (void *)src->choice.ttdPPDU)); PY_IMPL_CHOICE_GETATTR(Typed_data_type, Typed_data_type, ttdPPDU, ttdPPDU); PY_IMPL_CHOICE_SETATTR(Typed_data_type, Typed_data_type, ttdPPDU, ttdPPDU); PY_IMPL_GENERIC_DEALLOC(Typed_data_type); diff --git a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.h b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.h index 555266d6..c1a0f764 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/Typed-data-type_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-data.c b/src/icspacket/proto/iso_pres/_iso8823/User-data.c index 73b46a00..e1cac011 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-data.c +++ b/src/icspacket/proto/iso_pres/_iso8823/User-data.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_User_data_1[] = { 0, 0, /* No default value */ "simply-encoded-data" }, - { ATF_NOFLAGS, 0, offsetof(struct User_data, choice.fully_encoded_data), + { ATF_POINTER, 0, offsetof(struct User_data, choice.fully_encoded_data), (ASN_TAG_CLASS_APPLICATION | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Fully_encoded_data, diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-data.h b/src/icspacket/proto/iso_pres/_iso8823/User-data.h index d7aa60c5..3668374f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-data.h +++ b/src/icspacket/proto/iso_pres/_iso8823/User-data.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,8 +10,7 @@ #include /* Including external dependencies */ -#include -#include +#include "Simply-encoded-data.h" #include #ifdef __cplusplus @@ -25,12 +24,15 @@ typedef enum User_data_PR { User_data_PR_fully_encoded_data } User_data_PR; +/* Forward declarations */ +struct Fully_encoded_data; + /* User-data */ typedef struct User_data { User_data_PR present; union User_data_u { - Simply_encoded_data_t simply_encoded_data; - Fully_encoded_data_t fully_encoded_data; + Simply_encoded_data_t simply_encoded_data; + struct Fully_encoded_data *fully_encoded_data; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +48,8 @@ extern asn_TYPE_member_t asn_MBR_User_data_1[2]; } #endif +/* Referred external types */ +#include "Fully-encoded-data.h" + #endif /* _User_data_H_ */ #include diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.c b/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.c index e7867ba8..f0bf749e 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -10,8 +10,8 @@ PY_IMPL_CHOICE_ATTR_FROMPY(User_data, User_data, simply_encoded_data, simply_enc PY_IMPL_CHOICE_ATTR_TOPY(User_data, simply_encoded_data, PyCompatAsnType_FromParent(&PyAsnSimply_encoded_data_Type, parent, (void *)&src->choice.simply_encoded_data)); PY_IMPL_CHOICE_GETATTR(User_data, User_data, simply_encoded_data, simply_encoded_data); PY_IMPL_CHOICE_SETATTR(User_data, User_data, simply_encoded_data, simply_encoded_data); -PY_IMPL_CHOICE_ATTR_FROMPY(User_data, User_data, fully_encoded_data, fully_encoded_data,PyAsnFully_encoded_data_FromPython(value, &dst->choice.fully_encoded_data)); -PY_IMPL_CHOICE_ATTR_TOPY(User_data, fully_encoded_data, PyCompatAsnType_FromParent(&PyAsnFully_encoded_data_Type, parent, (void *)&src->choice.fully_encoded_data)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(User_data, User_data, fully_encoded_data, fully_encoded_data, Fully_encoded_data,PyAsnFully_encoded_data_FromPython(value, dst->choice.fully_encoded_data)); +PY_IMPL_CHOICE_ATTR_TOPY(User_data, fully_encoded_data, PyCompatAsnType_FromParent(&PyAsnFully_encoded_data_Type, parent, (void *)src->choice.fully_encoded_data)); PY_IMPL_CHOICE_GETATTR(User_data, User_data, fully_encoded_data, fully_encoded_data); PY_IMPL_CHOICE_SETATTR(User_data, User_data, fully_encoded_data, fully_encoded_data); PY_IMPL_GENERIC_DEALLOC(User_data); diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.h b/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.h index a39d3564..4e0fbfc8 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/User-data_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.c b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.c index a5752c5d..8bc8bb3d 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.c +++ b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -9,8 +9,10 @@ * so here we adjust the DEF accordingly. */ #if !defined(ASN_DISABLE_JER_SUPPORT) -static asn_jer_constraints_t asn_JER_type_User_session_requirements_constr_1 CC_NOTUSED = { - -1}; +asn_jer_constraints_t asn_JER_type_User_session_requirements_constr_1 CC_NOTUSED = { + -1, + 0, + 0}; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_User_session_requirements_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.h b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.h index 64f209ee..d78a1e4e 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.h +++ b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ @@ -34,9 +34,10 @@ typedef enum User_session_requirements { } e_User_session_requirements; /* User-session-requirements */ -typedef BIT_STRING_t User_session_requirements_t; +typedef BIT_STRING_t User_session_requirements_t; /* Implementation */ +extern asn_jer_constraints_t asn_JER_type_User_session_requirements_constr_1; extern asn_TYPE_descriptor_t asn_DEF_User_session_requirements; asn_struct_free_f User_session_requirements_free; asn_struct_print_f User_session_requirements_print; diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.c b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.c index 43692f9d..cc6653a0 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.c +++ b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.h b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.h index 2158d2cb..6e7f32bb 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.h +++ b/src/icspacket/proto/iso_pres/_iso8823/User-session-requirements_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "ISO8823-PRESENTATION" */ diff --git a/src/icspacket/proto/iso_pres/_iso8823/asn_config.h b/src/icspacket/proto/iso_pres/_iso8823/asn_config.h index dd5305dd..86c45e9b 100644 --- a/src/icspacket/proto/iso_pres/_iso8823/asn_config.h +++ b/src/icspacket/proto/iso_pres/_iso8823/asn_config.h @@ -3,3 +3,5 @@ #define ASN_DISABLE_OER_SUPPORT 1 #define ASN_DISABLE_UPER_SUPPORT 1 #define ASN_DISABLE_APER_SUPPORT 1 +#define ASN_DISABLE_RFILL_SUPPORT 1 +#define ASN_DISABLE_CBOR_SUPPORT 1 From 0bf4cd580cf0d3cb2f79925796612ce1acea62f6 Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:27:35 +0200 Subject: [PATCH 6/9] refactor: sync GOOSE and IEC61850 structs --- src/icspacket/proto/iec61850/_iec61850/ASDU.c | 45 ++++++++++++++--- src/icspacket/proto/iec61850/_iec61850/ASDU.h | 29 ++++++----- .../proto/iec61850/_iec61850/ASDU_Py.c | 10 ++-- .../proto/iec61850/_iec61850/ASDU_Py.h | 2 +- src/icspacket/proto/iec61850/_iec61850/Data.c | 48 +++++++++++++++--- src/icspacket/proto/iec61850/_iec61850/Data.h | 40 +++++++-------- .../proto/iec61850/_iec61850/Data_Py.c | 8 +-- .../proto/iec61850/_iec61850/Data_Py.h | 8 ++- .../proto/iec61850/_iec61850/ErrorReason.c | 2 +- .../proto/iec61850/_iec61850/ErrorReason.h | 4 +- .../proto/iec61850/_iec61850/ErrorReason_Py.c | 2 +- .../proto/iec61850/_iec61850/ErrorReason_Py.h | 2 +- .../proto/iec61850/_iec61850/FloatingPoint.c | 2 +- .../proto/iec61850/_iec61850/FloatingPoint.h | 4 +- .../iec61850/_iec61850/FloatingPoint_Py.c | 2 +- .../iec61850/_iec61850/FloatingPoint_Py.h | 2 +- .../proto/iec61850/_iec61850/GSEMngtPdu.c | 4 +- .../proto/iec61850/_iec61850/GSEMngtPdu.h | 13 +++-- .../proto/iec61850/_iec61850/GSEMngtPdu_Py.c | 10 ++-- .../proto/iec61850/_iec61850/GSEMngtPdu_Py.h | 2 +- .../iec61850/_iec61850/GSEMngtRequests.c | 10 ++-- .../iec61850/_iec61850/GSEMngtRequests.h | 20 +++++--- .../iec61850/_iec61850/GSEMngtRequests_Py.c | 18 +++---- .../iec61850/_iec61850/GSEMngtRequests_Py.h | 4 +- .../iec61850/_iec61850/GSEMngtResponsePdu.c | 49 ++++++++++++++++--- .../iec61850/_iec61850/GSEMngtResponsePdu.h | 14 +++--- .../_iec61850/GSEMngtResponsePdu_Py.c | 4 +- .../_iec61850/GSEMngtResponsePdu_Py.h | 8 ++- .../iec61850/_iec61850/GSEMngtResponses.c | 10 ++-- .../iec61850/_iec61850/GSEMngtResponses.h | 19 ++++--- .../iec61850/_iec61850/GSEMngtResponses_Py.c | 18 +++---- .../iec61850/_iec61850/GSEMngtResponses_Py.h | 5 +- .../iec61850/_iec61850/GSERequestResponse.c | 6 +-- .../iec61850/_iec61850/GSERequestResponse.h | 16 ++++-- .../_iec61850/GSERequestResponse_Py.c | 10 ++-- .../_iec61850/GSERequestResponse_Py.h | 2 +- .../iec61850/_iec61850/GetElementRequestPdu.c | 19 +++++-- .../iec61850/_iec61850/GetElementRequestPdu.h | 4 +- .../_iec61850/GetElementRequestPdu_Py.c | 2 +- .../_iec61850/GetElementRequestPdu_Py.h | 4 +- .../_iec61850/GetReferenceRequestPdu.c | 19 +++++-- .../_iec61850/GetReferenceRequestPdu.h | 4 +- .../_iec61850/GetReferenceRequestPdu_Py.c | 2 +- .../_iec61850/GetReferenceRequestPdu_Py.h | 4 +- .../proto/iec61850/_iec61850/GlbErrors.c | 2 +- .../proto/iec61850/_iec61850/GlbErrors.h | 4 +- .../proto/iec61850/_iec61850/GlbErrors_Py.c | 2 +- .../proto/iec61850/_iec61850/GlbErrors_Py.h | 2 +- .../IEC61850-9-2-Specific-Protocol.c | 4 +- .../IEC61850-9-2-Specific-Protocol.h | 11 +++-- .../IEC61850-9-2-Specific-Protocol_Py.c | 6 +-- .../IEC61850-9-2-Specific-Protocol_Py.h | 2 +- .../_iec61850/IEC61850-Specific-Protocol.c | 6 +-- .../_iec61850/IEC61850-Specific-Protocol.h | 16 ++++-- .../_iec61850/IEC61850-Specific-Protocol_Py.c | 10 ++-- .../_iec61850/IEC61850-Specific-Protocol_Py.h | 2 +- .../proto/iec61850/_iec61850/IECGoosePdu.c | 19 +++++-- .../proto/iec61850/_iec61850/IECGoosePdu.h | 26 +++++----- .../proto/iec61850/_iec61850/IECGoosePdu_Py.c | 2 +- .../proto/iec61850/_iec61850/IECGoosePdu_Py.h | 4 +- .../proto/iec61850/_iec61850/MMSString.c | 2 +- .../proto/iec61850/_iec61850/MMSString.h | 4 +- .../proto/iec61850/_iec61850/MMSString_Py.c | 2 +- .../proto/iec61850/_iec61850/MMSString_Py.h | 2 +- .../proto/iec61850/_iec61850/RequestResults.c | 2 +- .../proto/iec61850/_iec61850/RequestResults.h | 10 ++-- .../iec61850/_iec61850/RequestResults_Py.c | 2 +- .../iec61850/_iec61850/RequestResults_Py.h | 2 +- .../proto/iec61850/_iec61850/SavPdu.c | 19 +++++-- .../proto/iec61850/_iec61850/SavPdu.h | 8 +-- .../proto/iec61850/_iec61850/SavPdu_Py.c | 2 +- .../proto/iec61850/_iec61850/SavPdu_Py.h | 4 +- .../proto/iec61850/_iec61850/TimeOfDay.c | 2 +- .../proto/iec61850/_iec61850/TimeOfDay.h | 4 +- .../proto/iec61850/_iec61850/TimeOfDay_Py.c | 2 +- .../proto/iec61850/_iec61850/TimeOfDay_Py.h | 2 +- .../proto/iec61850/_iec61850/UtcTime.c | 2 +- .../proto/iec61850/_iec61850/UtcTime.h | 4 +- .../proto/iec61850/_iec61850/UtcTime_Py.c | 2 +- .../proto/iec61850/_iec61850/UtcTime_Py.h | 2 +- .../proto/iec61850/_iec61850/asn_config.h | 2 + 81 files changed, 459 insertions(+), 250 deletions(-) diff --git a/src/icspacket/proto/iec61850/_iec61850/ASDU.c b/src/icspacket/proto/iec61850/_iec61850/ASDU.c index 261e7f5b..7caae9cf 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ASDU.c +++ b/src/icspacket/proto/iec61850/_iec61850/ASDU.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -7,6 +7,7 @@ static int confRev_5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { + unsigned long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, @@ -15,11 +16,30 @@ confRev_5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, return -1; } + value = *(const unsigned long *)sptr; - /* Constraint check succeeded */ - return 0; + if((value <= 4294967295UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } } +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_confRev __attribute__((weak, alias("asn_DEF_confRev_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_confRev_5; +static asn_TYPE_descriptor_t asn_DEF_confRev; +__attribute__((constructor)) static void asn_DEF_confRev_5_alias_init(void) { + asn_DEF_confRev = asn_DEF_confRev_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ /* * This type is implemented using NativeInteger, * so here we adjust the DEF accordingly. @@ -52,6 +72,7 @@ memb_smpCnt_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, static int memb_confRev_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { + unsigned long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, @@ -60,9 +81,17 @@ memb_confRev_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, return -1; } + value = *(const unsigned long *)sptr; - /* Constraint check succeeded */ - return 0; + if((value <= 4294967295UL)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } } static int @@ -92,7 +121,7 @@ memb_smpRate_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, static const asn_INTEGER_specifics_t asn_SPC_confRev_specs_5 = { 0, 0, 0, 0, 0, - 0, /* Native long size */ + 0, /* Native integer width in octets */ 1 /* Unsigned representation */ }; static const ber_tlv_tag_t asn_DEF_confRev_tags_5[] = { @@ -190,7 +219,7 @@ asn_TYPE_member_t asn_MBR_ASDU_1[] = { { ATF_NOFLAGS, 0, offsetof(struct ASDU, confRev), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_confRev_5, + &asn_DEF_confRev, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) @@ -267,7 +296,7 @@ asn_TYPE_member_t asn_MBR_ASDU_1[] = { 0, 0, /* No default value */ "smpRate" }, - { ATF_NOFLAGS, 0, offsetof(struct ASDU, seqData), + { ATF_POINTER, 0, offsetof(struct ASDU, seqData), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_Data, diff --git a/src/icspacket/proto/iec61850/_iec61850/ASDU.h b/src/icspacket/proto/iec61850/_iec61850/ASDU.h index 859b09de..69b47742 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ASDU.h +++ b/src/icspacket/proto/iec61850/_iec61850/ASDU.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -12,8 +12,7 @@ /* Including external dependencies */ #include #include -#include -#include +#include "UtcTime.h" #include #ifdef __cplusplus @@ -32,17 +31,20 @@ typedef enum ASDU__smpMod { ASDU__smpMod_secondsPerSample = 2 } e_ASDU__smpMod; +/* Forward declarations */ +struct Data; + /* ASDU */ typedef struct ASDU { - VisibleString_t svID; - VisibleString_t *datSet; /* OPTIONAL */ - long smpCnt; - unsigned long confRev; - UtcTime_t *refrTm; /* OPTIONAL */ - long *smpSynch; /* OPTIONAL */ - long *smpRate; /* OPTIONAL */ - Data_t seqData; - long *smpMod; /* OPTIONAL */ + VisibleString_t svID; + VisibleString_t *datSet; /* OPTIONAL */ + long smpCnt; + unsigned long confRev; + UtcTime_t *refrTm; /* OPTIONAL */ + long *smpSynch; /* OPTIONAL */ + long *smpRate; /* OPTIONAL */ + struct Data *seqData; + long *smpMod; /* OPTIONAL */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -58,5 +60,8 @@ extern asn_TYPE_member_t asn_MBR_ASDU_1[9]; } #endif +/* Referred external types */ +#include "Data.h" + #endif /* _ASDU_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.c b/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.c index d6af5b97..270651d9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -43,9 +43,11 @@ PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ASDU, smpRate, PyCompatLong_FromObject(value, t PY_IMPL_SEQ_ATTR_INDIRECT_TOPY(ASDU, smpRate, PyCompatLong_AsObject(target, 1)); PY_IMPL_SEQ_OPT_GETATTR(ASDU, smpRate); PY_IMPL_SEQ_OPT_SETATTR(ASDU, smpRate); -PY_IMPL_SEQ_ATTR_FROMPY(ASDU, seqData, PyAsnData_FromPython(value, (Data_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(ASDU, seqData, Data); -PY_IMPL_SEQ_GETATTR(ASDU, seqData); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(ASDU, seqData); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(ASDU, seqData, Data_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(ASDU, seqData, PyAsnData_FromPython(value, (Data_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(ASDU, seqData, Data); +PY_IMPL_SEQ_AUTOVIV_GETATTR(ASDU, seqData); PY_IMPL_SEQ_SETATTR(ASDU, seqData); PY_IMPL_SEQ_ATTR_GENERIC_FREE(ASDU, smpMod); PY_IMPL_SEQ_ATTR_GENERIC_NEW(ASDU, smpMod, long); diff --git a/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.h b/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.h index 54275663..bdf1a9a9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/ASDU_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/Data.c b/src/icspacket/proto/iec61850/_iec61850/Data.c index ac54cd0d..1686c614 100644 --- a/src/icspacket/proto/iec61850/_iec61850/Data.c +++ b/src/icspacket/proto/iec61850/_iec61850/Data.c @@ -1,10 +1,44 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include -static asn_TYPE_member_t asn_MBR_array_2[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_array __attribute__((weak, alias("asn_DEF_array_2"))); +#else +static asn_TYPE_descriptor_t asn_DEF_array_2; +static asn_TYPE_descriptor_t asn_DEF_array; +__attribute__((constructor)) static void asn_DEF_array_2_alias_init(void) { + asn_DEF_array = asn_DEF_array_2; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_structure __attribute__((weak, alias("asn_DEF_structure_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_structure_4; +static asn_TYPE_descriptor_t asn_DEF_structure; +__attribute__((constructor)) static void asn_DEF_structure_4_alias_init(void) { + asn_DEF_structure = asn_DEF_structure_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_bit_string_constr_7 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_booleanArray_constr_16 CC_NOTUSED = { + -1, + 0, + 0}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static asn_TYPE_member_t asn_MBR_Data__array_2[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +57,7 @@ static asn_TYPE_member_t asn_MBR_array_2[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_array_tags_2[] = { @@ -58,12 +92,12 @@ asn_TYPE_descriptor_t asn_DEF_array_2 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_array_2, + asn_MBR_Data__array_2, 1, /* Single element */ &asn_SPC_array_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_structure_4[] = { +static asn_TYPE_member_t asn_MBR_Data__structure_4[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -82,7 +116,7 @@ static asn_TYPE_member_t asn_MBR_structure_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_structure_tags_4[] = { @@ -117,7 +151,7 @@ asn_TYPE_descriptor_t asn_DEF_structure_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_structure_4, + asn_MBR_Data__structure_4, 1, /* Single element */ &asn_SPC_structure_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/iec61850/_iec61850/Data.h b/src/icspacket/proto/iec61850/_iec61850/Data.h index 64a519a3..49ef736a 100644 --- a/src/icspacket/proto/iec61850/_iec61850/Data.h +++ b/src/icspacket/proto/iec61850/_iec61850/Data.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -13,14 +13,14 @@ #include #include #include -#include +#include "FloatingPoint.h" #include #include #include -#include +#include "TimeOfDay.h" #include -#include -#include +#include "MMSString.h" +#include "UtcTime.h" #include #include #include @@ -69,20 +69,20 @@ typedef struct Data { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } structure; - BOOLEAN_t boolean; - BIT_STRING_t bit_string; - long integer; - long Unsigned; - FloatingPoint_t floating_point; - OCTET_STRING_t octet_string; - VisibleString_t visible_string; - GeneralizedTime_t generalized_time; - TimeOfDay_t binary_time; - long bcd; - BIT_STRING_t booleanArray; - OBJECT_IDENTIFIER_t objId; - MMSString_t mMSString; - UtcTime_t utc_time; + BOOLEAN_t boolean; + BIT_STRING_t bit_string; + long integer; + long Unsigned; + FloatingPoint_t floating_point; + OCTET_STRING_t octet_string; + VisibleString_t visible_string; + GeneralizedTime_t generalized_time; + TimeOfDay_t binary_time; + long bcd; + BIT_STRING_t booleanArray; + OBJECT_IDENTIFIER_t objId; + MMSString_t mMSString; + UtcTime_t utc_time; } choice; /* Context for parsing across buffer boundaries */ @@ -99,7 +99,7 @@ extern asn_TYPE_member_t asn_MBR_Data_1[16]; #endif /* Referred external types */ -#include +#include "Data.h" #endif /* _Data_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/Data_Py.c b/src/icspacket/proto/iec61850/_iec61850/Data_Py.c index a946a751..81bc3bb5 100644 --- a/src/icspacket/proto/iec61850/_iec61850/Data_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/Data_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -34,7 +34,7 @@ PY_IMPL_ENCODE_JER(Data_array_ANON_2); PY_IMPL_GENERIC_IS_VALID(Data_array_ANON_2); PY_IMPL_SEQ_ANON_ATTR_FROMPY(Data, array, &src->choice.array, Data_array_ANON_2); PY_IMPL_SEQ_ANON_ATTR_TOPY(Data, array, &src->choice.array, Data_array_ANON_2); -PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, array, array, asn_DEF_Data); +PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, array, array, *asn_DEF_Data.elements[0].type); PY_IMPL_CHOICE_GETATTR(Data, Data, array, array); PY_IMPL_SEQ_OF_LEN(Data_array_ANON_2); PY_IMPL_SEQ_OF_GETITEM(Data_array_ANON_2); @@ -67,7 +67,7 @@ PY_IMPL_ENCODE_JER(Data_structure_ANON_4); PY_IMPL_GENERIC_IS_VALID(Data_structure_ANON_4); PY_IMPL_SEQ_ANON_ATTR_FROMPY(Data, structure, &src->choice.structure, Data_structure_ANON_4); PY_IMPL_SEQ_ANON_ATTR_TOPY(Data, structure, &src->choice.structure, Data_structure_ANON_4); -PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, structure, structure, asn_DEF_Data); +PY_IMPL_CHOICE_GENERIC_SETATTR(Data, Data, structure, structure, *asn_DEF_Data.elements[1].type); PY_IMPL_CHOICE_GETATTR(Data, Data, structure, structure); PY_IMPL_SEQ_OF_LEN(Data_structure_ANON_4); PY_IMPL_SEQ_OF_GETITEM(Data_structure_ANON_4); @@ -454,7 +454,7 @@ int PyAsnData_ModInit(PyObject *mod) { PY_IMPL_MOD_ASSIGN_OBJECT(Data, structure_TYPE, &PyAsnData_structure_ANON_4_Type); PY_IMPL_MOD_ASSIGN_OBJECT(Data, bit_string_TYPE, &PyAsnData_bit_string_Type); PY_IMPL_MOD_ASSIGN_OBJECT(Data, booleanArray_TYPE, &PyAsnData_booleanArray_Type); - PY_IMPL_NEW_ENUM(Data.PRESENT, PyAsnEnumData_PRESENT_Type, -1, + PY_IMPL_NEW_ENUM(Data.PRESENT, PyAsnEnumData_PRESENT_Type, -1, PY_IMPL_ENUM_VALUE(PR_NOTHING, Data_PR_NOTHING, 0); PY_IMPL_ENUM_VALUE(PR_array, Data_PR_array, 1); PY_IMPL_ENUM_VALUE(PR_structure, Data_PR_structure, 2); diff --git a/src/icspacket/proto/iec61850/_iec61850/Data_Py.h b/src/icspacket/proto/iec61850/_iec61850/Data_Py.h index f5991ff2..ccb707ae 100644 --- a/src/icspacket/proto/iec61850/_iec61850/Data_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/Data_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -13,9 +13,15 @@ #include #include #include +#include +#include +#include +#include +#include #include #include #include +#include #include #include #include diff --git a/src/icspacket/proto/iec61850/_iec61850/ErrorReason.c b/src/icspacket/proto/iec61850/_iec61850/ErrorReason.c index 7850fa8a..c8d0dedc 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ErrorReason.c +++ b/src/icspacket/proto/iec61850/_iec61850/ErrorReason.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/ErrorReason.h b/src/icspacket/proto/iec61850/_iec61850/ErrorReason.h index 0b8fde3c..3cdc6c5d 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ErrorReason.h +++ b/src/icspacket/proto/iec61850/_iec61850/ErrorReason.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -23,7 +23,7 @@ typedef enum ErrorReason { } e_ErrorReason; /* ErrorReason */ -typedef long ErrorReason_t; +typedef long ErrorReason_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_ErrorReason; diff --git a/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.c b/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.c index 7013a155..e7e2fe17 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.h b/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.h index 9890f4de..7b1c7a44 100644 --- a/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/ErrorReason_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.c b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.c index 00229275..46863390 100644 --- a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.c +++ b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.h b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.h index d930057c..b85e5e54 100644 --- a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.h +++ b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* FloatingPoint */ -typedef OCTET_STRING_t FloatingPoint_t; +typedef OCTET_STRING_t FloatingPoint_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_FloatingPoint; diff --git a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.c b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.c index d034b930..0053682b 100644 --- a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.h b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.h index c565327c..3b862c5c 100644 --- a/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/FloatingPoint_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.c index c73de6c3..54d32fe8 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtPdu_1[] = { 0, 0, /* No default value */ "stateID" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtPdu, requestResp), + { ATF_POINTER, 0, offsetof(struct GSEMngtPdu, requestResp), -1 /* Ambiguous tag (CHOICE?) */, 0, &asn_DEF_GSERequestResponse, diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.h index 790d4bca..62b3f816 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -11,17 +11,19 @@ /* Including external dependencies */ #include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations */ +struct GSERequestResponse; + /* GSEMngtPdu */ typedef struct GSEMngtPdu { - long stateID; - GSERequestResponse_t requestResp; + long stateID; + struct GSERequestResponse *requestResp; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -36,5 +38,8 @@ extern asn_TYPE_member_t asn_MBR_GSEMngtPdu_1[2]; } #endif +/* Referred external types */ +#include "GSERequestResponse.h" + #endif /* _GSEMngtPdu_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.c index 98ac15f7..2e27d007 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -10,9 +10,11 @@ PY_IMPL_SEQ_ATTR_FROMPY(GSEMngtPdu, stateID, PyCompatLong_FromObject(value, targ PY_IMPL_SEQ_ATTR_TOPY(GSEMngtPdu, stateID, PyCompatLong_AsObject(target, 1)); PY_IMPL_SEQ_GETATTR(GSEMngtPdu, stateID); PY_IMPL_SEQ_SETATTR(GSEMngtPdu, stateID); -PY_IMPL_SEQ_ATTR_FROMPY(GSEMngtPdu, requestResp, PyAsnGSERequestResponse_FromPython(value, (GSERequestResponse_t *)target)); -PY_IMPL_SEQ_REF_ATTR_TOPY(GSEMngtPdu, requestResp, GSERequestResponse); -PY_IMPL_SEQ_GETATTR(GSEMngtPdu, requestResp); +PY_IMPL_SEQ_ATTR_GENERIC_FREE(GSEMngtPdu, requestResp); +PY_IMPL_SEQ_ATTR_GENERIC_NEW(GSEMngtPdu, requestResp, GSERequestResponse_t); +PY_IMPL_SEQ_ATTR_INDIRECT_FROMPY(GSEMngtPdu, requestResp, PyAsnGSERequestResponse_FromPython(value, (GSERequestResponse_t *)target)); +PY_IMPL_SEQ_REF_ATTR_INDIRECT_TOPY(GSEMngtPdu, requestResp, GSERequestResponse); +PY_IMPL_SEQ_AUTOVIV_GETATTR(GSEMngtPdu, requestResp); PY_IMPL_SEQ_SETATTR(GSEMngtPdu, requestResp); PY_IMPL_GENERIC_DEALLOC(GSEMngtPdu); PY_IMPL_GENERIC_CHECK_CONSTRAINTS(GSEMngtPdu); diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.h index ff33e1aa..8a66694e 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtPdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.c index 04cf813d..212e3043 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include asn_TYPE_member_t asn_MBR_GSEMngtRequests_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtRequests, choice.getGoReference), + { ATF_POINTER, 0, offsetof(struct GSEMngtRequests, choice.getGoReference), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetReferenceRequestPdu, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtRequests_1[] = { 0, 0, /* No default value */ "getGoReference" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtRequests, choice.getGOOSEElementNumber), + { ATF_POINTER, 0, offsetof(struct GSEMngtRequests, choice.getGOOSEElementNumber), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetElementRequestPdu, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtRequests_1[] = { 0, 0, /* No default value */ "getGOOSEElementNumber" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtRequests, choice.getGsReference), + { ATF_POINTER, 0, offsetof(struct GSEMngtRequests, choice.getGsReference), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetReferenceRequestPdu, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtRequests_1[] = { 0, 0, /* No default value */ "getGsReference" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtRequests, choice.getGSSEDataOffset), + { ATF_POINTER, 0, offsetof(struct GSEMngtRequests, choice.getGSSEDataOffset), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GetElementRequestPdu, diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.h index 772e96e6..66d4773e 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -27,14 +25,18 @@ typedef enum GSEMngtRequests_PR { GSEMngtRequests_PR_getGSSEDataOffset } GSEMngtRequests_PR; +/* Forward declarations */ +struct GetReferenceRequestPdu; +struct GetElementRequestPdu; + /* GSEMngtRequests */ typedef struct GSEMngtRequests { GSEMngtRequests_PR present; union GSEMngtRequests_u { - GetReferenceRequestPdu_t getGoReference; - GetElementRequestPdu_t getGOOSEElementNumber; - GetReferenceRequestPdu_t getGsReference; - GetElementRequestPdu_t getGSSEDataOffset; + struct GetReferenceRequestPdu *getGoReference; + struct GetElementRequestPdu *getGOOSEElementNumber; + struct GetReferenceRequestPdu *getGsReference; + struct GetElementRequestPdu *getGSSEDataOffset; } choice; /* Context for parsing across buffer boundaries */ @@ -50,5 +52,9 @@ extern asn_TYPE_member_t asn_MBR_GSEMngtRequests_1[4]; } #endif +/* Referred external types */ +#include "GetReferenceRequestPdu.h" +#include "GetElementRequestPdu.h" + #endif /* _GSEMngtRequests_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.c index 96ba6d75..fed3c448 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.c @@ -1,25 +1,25 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGoReference, getGoReference,PyAsnGetReferenceRequestPdu_FromPython(value, &dst->choice.getGoReference)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGoReference, PyCompatAsnType_FromParent(&PyAsnGetReferenceRequestPdu_Type, parent, (void *)&src->choice.getGoReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGoReference, getGoReference, GetReferenceRequestPdu,PyAsnGetReferenceRequestPdu_FromPython(value, dst->choice.getGoReference)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGoReference, PyCompatAsnType_FromParent(&PyAsnGetReferenceRequestPdu_Type, parent, (void *)src->choice.getGoReference)); PY_IMPL_CHOICE_GETATTR(GSEMngtRequests, GSEMngtRequests, getGoReference, getGoReference); PY_IMPL_CHOICE_SETATTR(GSEMngtRequests, GSEMngtRequests, getGoReference, getGoReference); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGOOSEElementNumber, getGOOSEElementNumber,PyAsnGetElementRequestPdu_FromPython(value, &dst->choice.getGOOSEElementNumber)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGOOSEElementNumber, PyCompatAsnType_FromParent(&PyAsnGetElementRequestPdu_Type, parent, (void *)&src->choice.getGOOSEElementNumber)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGOOSEElementNumber, getGOOSEElementNumber, GetElementRequestPdu,PyAsnGetElementRequestPdu_FromPython(value, dst->choice.getGOOSEElementNumber)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGOOSEElementNumber, PyCompatAsnType_FromParent(&PyAsnGetElementRequestPdu_Type, parent, (void *)src->choice.getGOOSEElementNumber)); PY_IMPL_CHOICE_GETATTR(GSEMngtRequests, GSEMngtRequests, getGOOSEElementNumber, getGOOSEElementNumber); PY_IMPL_CHOICE_SETATTR(GSEMngtRequests, GSEMngtRequests, getGOOSEElementNumber, getGOOSEElementNumber); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGsReference, getGsReference,PyAsnGetReferenceRequestPdu_FromPython(value, &dst->choice.getGsReference)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGsReference, PyCompatAsnType_FromParent(&PyAsnGetReferenceRequestPdu_Type, parent, (void *)&src->choice.getGsReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGsReference, getGsReference, GetReferenceRequestPdu,PyAsnGetReferenceRequestPdu_FromPython(value, dst->choice.getGsReference)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGsReference, PyCompatAsnType_FromParent(&PyAsnGetReferenceRequestPdu_Type, parent, (void *)src->choice.getGsReference)); PY_IMPL_CHOICE_GETATTR(GSEMngtRequests, GSEMngtRequests, getGsReference, getGsReference); PY_IMPL_CHOICE_SETATTR(GSEMngtRequests, GSEMngtRequests, getGsReference, getGsReference); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGSSEDataOffset, getGSSEDataOffset,PyAsnGetElementRequestPdu_FromPython(value, &dst->choice.getGSSEDataOffset)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGSSEDataOffset, PyCompatAsnType_FromParent(&PyAsnGetElementRequestPdu_Type, parent, (void *)&src->choice.getGSSEDataOffset)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtRequests, GSEMngtRequests, getGSSEDataOffset, getGSSEDataOffset, GetElementRequestPdu,PyAsnGetElementRequestPdu_FromPython(value, dst->choice.getGSSEDataOffset)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtRequests, getGSSEDataOffset, PyCompatAsnType_FromParent(&PyAsnGetElementRequestPdu_Type, parent, (void *)src->choice.getGSSEDataOffset)); PY_IMPL_CHOICE_GETATTR(GSEMngtRequests, GSEMngtRequests, getGSSEDataOffset, getGSSEDataOffset); PY_IMPL_CHOICE_SETATTR(GSEMngtRequests, GSEMngtRequests, getGSSEDataOffset, getGSSEDataOffset); PY_IMPL_GENERIC_DEALLOC(GSEMngtRequests); diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.h index eece6735..a9c496c9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtRequests_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -14,6 +14,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.c index 97a87448..f3ded342 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.c @@ -1,10 +1,43 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include -static asn_TYPE_member_t asn_MBR_result_7[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_result __attribute__((weak, alias("asn_DEF_result_7"))); +#else +static asn_TYPE_descriptor_t asn_DEF_result_7; +static asn_TYPE_descriptor_t asn_DEF_result; +__attribute__((constructor)) static void asn_DEF_result_7_alias_init(void) { + asn_DEF_result = asn_DEF_result_7; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_responsePositive __attribute__((weak, alias("asn_DEF_responsePositive_5"))); +#else +static asn_TYPE_descriptor_t asn_DEF_responsePositive_5; +static asn_TYPE_descriptor_t asn_DEF_responsePositive; +__attribute__((constructor)) static void asn_DEF_responsePositive_5_alias_init(void) { + asn_DEF_responsePositive = asn_DEF_responsePositive_5; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_positiveNegative __attribute__((weak, alias("asn_DEF_positiveNegative_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_positiveNegative_4; +static asn_TYPE_descriptor_t asn_DEF_positiveNegative; +__attribute__((constructor)) static void asn_DEF_positiveNegative_4_alias_init(void) { + asn_DEF_positiveNegative = asn_DEF_positiveNegative_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GSEMngtResponsePdu__positiveNegative__responsePositive__result_7[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -23,7 +56,7 @@ static asn_TYPE_member_t asn_MBR_result_7[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_result_tags_7[] = { @@ -58,12 +91,12 @@ asn_TYPE_descriptor_t asn_DEF_result_7 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_result_7, + asn_MBR_GSEMngtResponsePdu__positiveNegative__responsePositive__result_7, 1, /* Single element */ &asn_SPC_result_specs_7 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_responsePositive_5[] = { +static asn_TYPE_member_t asn_MBR_GSEMngtResponsePdu__positiveNegative__responsePositive_5[] = { { ATF_POINTER, 1, offsetof(struct GSEMngtResponsePdu__positiveNegative__responsePositive, datSet), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ @@ -146,12 +179,12 @@ asn_TYPE_descriptor_t asn_DEF_responsePositive_5 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, - asn_MBR_responsePositive_5, + asn_MBR_GSEMngtResponsePdu__positiveNegative__responsePositive_5, 2, /* Elements count */ &asn_SPC_responsePositive_specs_5 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_positiveNegative_4[] = { +static asn_TYPE_member_t asn_MBR_GSEMngtResponsePdu__positiveNegative_4[] = { { ATF_NOFLAGS, 0, offsetof(struct GSEMngtResponsePdu__positiveNegative, choice.responsePositive), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, @@ -228,7 +261,7 @@ asn_TYPE_descriptor_t asn_DEF_positiveNegative_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, - asn_MBR_positiveNegative_4, + asn_MBR_GSEMngtResponsePdu__positiveNegative_4, 2, /* Elements count */ &asn_SPC_positiveNegative_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.h index fab558fc..5ff72da6 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -12,7 +12,7 @@ /* Including external dependencies */ #include #include -#include +#include "GlbErrors.h" #include #include #include @@ -34,13 +34,13 @@ struct RequestResults; /* GSEMngtResponsePdu */ typedef struct GSEMngtResponsePdu { - VisibleString_t ident; - long *confRev; /* OPTIONAL */ + VisibleString_t ident; + long *confRev; /* OPTIONAL */ struct GSEMngtResponsePdu__positiveNegative { GSEMngtResponsePdu__positiveNegative_PR present; union GSEMngtResponsePdu__positiveNegative_u { struct GSEMngtResponsePdu__positiveNegative__responsePositive { - VisibleString_t *datSet; /* OPTIONAL */ + VisibleString_t *datSet; /* OPTIONAL */ struct GSEMngtResponsePdu__positiveNegative__responsePositive__result { A_SEQUENCE_OF(struct RequestResults) list; @@ -51,7 +51,7 @@ typedef struct GSEMngtResponsePdu { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } responsePositive; - GlbErrors_t responseNegative; + GlbErrors_t responseNegative; } choice; /* Context for parsing across buffer boundaries */ @@ -72,7 +72,7 @@ extern asn_TYPE_member_t asn_MBR_GSEMngtResponsePdu_1[3]; #endif /* Referred external types */ -#include +#include "RequestResults.h" #endif /* _GSEMngtResponsePdu_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.c index 86710b9f..ea094d77 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -71,7 +71,7 @@ PY_IMPL_SEQ_FROMPY(GSEMngtResponsePdu_responsePositive_ANON_5, asn_DEF_GSEMngtRe PY_IMPL_SEQ_INIT(GSEMngtResponsePdu_responsePositive_ANON_5); PY_IMPL_SEQ_ANON_ATTR_FROMPY(GSEMngtResponsePdu_positiveNegative_ANON_4, responsePositive, &src->choice.responsePositive, GSEMngtResponsePdu_responsePositive_ANON_5); PY_IMPL_SEQ_ANON_ATTR_TOPY(GSEMngtResponsePdu_positiveNegative_ANON_4, responsePositive, &src->choice.responsePositive, GSEMngtResponsePdu_responsePositive_ANON_5); -PY_IMPL_CHOICE_GENERIC_SETATTR(GSEMngtResponsePdu_positiveNegative_ANON_4, GSEMngtResponsePdu__positiveNegative, responsePositive, responsePositive, asn_DEF_GSEMngtResponsePdu); +PY_IMPL_CHOICE_GENERIC_SETATTR(GSEMngtResponsePdu_positiveNegative_ANON_4, GSEMngtResponsePdu__positiveNegative, responsePositive, responsePositive, *asn_DEF_GSEMngtResponsePdu.elements[2].type->elements[0].type); PY_IMPL_CHOICE_GETATTR(GSEMngtResponsePdu_positiveNegative_ANON_4, GSEMngtResponsePdu__positiveNegative, responsePositive, responsePositive); PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtResponsePdu_positiveNegative_ANON_4, GSEMngtResponsePdu__positiveNegative, responseNegative, responseNegative,PyAsnGlbErrors_FromPython(value, &dst->choice.responseNegative)); PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponsePdu_positiveNegative_ANON_4, responseNegative, PyCompatAsnType_FromParent(&PyAsnGlbErrors_Type, parent, (void *)&src->choice.responseNegative)); diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.h index 1843c9ee..96ba27c6 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponsePdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -13,7 +13,13 @@ #include #include #include +#include +#include +#include +#include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.c index db187aa4..f97fb5a4 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtResponses_1[] = { 0, 0, /* No default value */ "gseMngtNotSupported" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtResponses, choice.getGoReference), + { ATF_POINTER, 0, offsetof(struct GSEMngtResponses, choice.getGoReference), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GSEMngtResponsePdu, @@ -45,7 +45,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtResponses_1[] = { 0, 0, /* No default value */ "getGoReference" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtResponses, choice.getGOOSEElementNumber), + { ATF_POINTER, 0, offsetof(struct GSEMngtResponses, choice.getGOOSEElementNumber), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GSEMngtResponsePdu, @@ -65,7 +65,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtResponses_1[] = { 0, 0, /* No default value */ "getGOOSEElementNumber" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtResponses, choice.getGsReference), + { ATF_POINTER, 0, offsetof(struct GSEMngtResponses, choice.getGsReference), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GSEMngtResponsePdu, @@ -85,7 +85,7 @@ asn_TYPE_member_t asn_MBR_GSEMngtResponses_1[] = { 0, 0, /* No default value */ "getGsReference" }, - { ATF_NOFLAGS, 0, offsetof(struct GSEMngtResponses, choice.getGSSEDataOffset), + { ATF_POINTER, 0, offsetof(struct GSEMngtResponses, choice.getGSSEDataOffset), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GSEMngtResponsePdu, diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.h index 47529aea..dbeb55ee 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -11,7 +11,6 @@ /* Including external dependencies */ #include -#include #include #ifdef __cplusplus @@ -28,15 +27,18 @@ typedef enum GSEMngtResponses_PR { GSEMngtResponses_PR_getGSSEDataOffset } GSEMngtResponses_PR; +/* Forward declarations */ +struct GSEMngtResponsePdu; + /* GSEMngtResponses */ typedef struct GSEMngtResponses { GSEMngtResponses_PR present; union GSEMngtResponses_u { - NULL_t gseMngtNotSupported; - GSEMngtResponsePdu_t getGoReference; - GSEMngtResponsePdu_t getGOOSEElementNumber; - GSEMngtResponsePdu_t getGsReference; - GSEMngtResponsePdu_t getGSSEDataOffset; + NULL_t gseMngtNotSupported; + struct GSEMngtResponsePdu *getGoReference; + struct GSEMngtResponsePdu *getGOOSEElementNumber; + struct GSEMngtResponsePdu *getGsReference; + struct GSEMngtResponsePdu *getGSSEDataOffset; } choice; /* Context for parsing across buffer boundaries */ @@ -52,5 +54,8 @@ extern asn_TYPE_member_t asn_MBR_GSEMngtResponses_1[5]; } #endif +/* Referred external types */ +#include "GSEMngtResponsePdu.h" + #endif /* _GSEMngtResponses_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.c b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.c index a3e28773..652eaac5 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -10,20 +10,20 @@ PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, gseMngtNotSupport PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, gseMngtNotSupported, Py_None); PY_IMPL_CHOICE_GETATTR(GSEMngtResponses, GSEMngtResponses, gseMngtNotSupported, gseMngtNotSupported); PY_IMPL_CHOICE_SETATTR(GSEMngtResponses, GSEMngtResponses, gseMngtNotSupported, gseMngtNotSupported); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGoReference, getGoReference,PyAsnGSEMngtResponsePdu_FromPython(value, &dst->choice.getGoReference)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGoReference, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)&src->choice.getGoReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGoReference, getGoReference, GSEMngtResponsePdu,PyAsnGSEMngtResponsePdu_FromPython(value, dst->choice.getGoReference)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGoReference, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)src->choice.getGoReference)); PY_IMPL_CHOICE_GETATTR(GSEMngtResponses, GSEMngtResponses, getGoReference, getGoReference); PY_IMPL_CHOICE_SETATTR(GSEMngtResponses, GSEMngtResponses, getGoReference, getGoReference); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGOOSEElementNumber, getGOOSEElementNumber,PyAsnGSEMngtResponsePdu_FromPython(value, &dst->choice.getGOOSEElementNumber)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGOOSEElementNumber, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)&src->choice.getGOOSEElementNumber)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGOOSEElementNumber, getGOOSEElementNumber, GSEMngtResponsePdu,PyAsnGSEMngtResponsePdu_FromPython(value, dst->choice.getGOOSEElementNumber)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGOOSEElementNumber, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)src->choice.getGOOSEElementNumber)); PY_IMPL_CHOICE_GETATTR(GSEMngtResponses, GSEMngtResponses, getGOOSEElementNumber, getGOOSEElementNumber); PY_IMPL_CHOICE_SETATTR(GSEMngtResponses, GSEMngtResponses, getGOOSEElementNumber, getGOOSEElementNumber); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGsReference, getGsReference,PyAsnGSEMngtResponsePdu_FromPython(value, &dst->choice.getGsReference)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGsReference, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)&src->choice.getGsReference)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGsReference, getGsReference, GSEMngtResponsePdu,PyAsnGSEMngtResponsePdu_FromPython(value, dst->choice.getGsReference)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGsReference, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)src->choice.getGsReference)); PY_IMPL_CHOICE_GETATTR(GSEMngtResponses, GSEMngtResponses, getGsReference, getGsReference); PY_IMPL_CHOICE_SETATTR(GSEMngtResponses, GSEMngtResponses, getGsReference, getGsReference); -PY_IMPL_CHOICE_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGSSEDataOffset, getGSSEDataOffset,PyAsnGSEMngtResponsePdu_FromPython(value, &dst->choice.getGSSEDataOffset)); -PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGSSEDataOffset, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)&src->choice.getGSSEDataOffset)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSEMngtResponses, GSEMngtResponses, getGSSEDataOffset, getGSSEDataOffset, GSEMngtResponsePdu,PyAsnGSEMngtResponsePdu_FromPython(value, dst->choice.getGSSEDataOffset)); +PY_IMPL_CHOICE_ATTR_TOPY(GSEMngtResponses, getGSSEDataOffset, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponsePdu_Type, parent, (void *)src->choice.getGSSEDataOffset)); PY_IMPL_CHOICE_GETATTR(GSEMngtResponses, GSEMngtResponses, getGSSEDataOffset, getGSSEDataOffset); PY_IMPL_CHOICE_SETATTR(GSEMngtResponses, GSEMngtResponses, getGSSEDataOffset, getGSSEDataOffset); PY_IMPL_GENERIC_DEALLOC(GSEMngtResponses); diff --git a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.h b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.h index c662709d..183662f2 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSEMngtResponses_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.c b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.c index 75d31dc5..a5fe4944 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include asn_TYPE_member_t asn_MBR_GSERequestResponse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GSERequestResponse, choice.requests), + { ATF_POINTER, 0, offsetof(struct GSERequestResponse, choice.requests), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GSEMngtRequests, @@ -25,7 +25,7 @@ asn_TYPE_member_t asn_MBR_GSERequestResponse_1[] = { 0, 0, /* No default value */ "requests" }, - { ATF_NOFLAGS, 0, offsetof(struct GSERequestResponse, choice.responses), + { ATF_POINTER, 0, offsetof(struct GSERequestResponse, choice.responses), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_GSEMngtResponses, diff --git a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.h b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.h index 2c0fc4d0..29f01a25 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -25,12 +23,16 @@ typedef enum GSERequestResponse_PR { GSERequestResponse_PR_responses } GSERequestResponse_PR; +/* Forward declarations */ +struct GSEMngtRequests; +struct GSEMngtResponses; + /* GSERequestResponse */ typedef struct GSERequestResponse { GSERequestResponse_PR present; union GSERequestResponse_u { - GSEMngtRequests_t requests; - GSEMngtResponses_t responses; + struct GSEMngtRequests *requests; + struct GSEMngtResponses *responses; } choice; /* Context for parsing across buffer boundaries */ @@ -46,5 +48,9 @@ extern asn_TYPE_member_t asn_MBR_GSERequestResponse_1[2]; } #endif +/* Referred external types */ +#include "GSEMngtRequests.h" +#include "GSEMngtResponses.h" + #endif /* _GSERequestResponse_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.c b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.c index 811a90d4..8afd4b6c 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.c @@ -1,17 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(GSERequestResponse, GSERequestResponse, requests, requests,PyAsnGSEMngtRequests_FromPython(value, &dst->choice.requests)); -PY_IMPL_CHOICE_ATTR_TOPY(GSERequestResponse, requests, PyCompatAsnType_FromParent(&PyAsnGSEMngtRequests_Type, parent, (void *)&src->choice.requests)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSERequestResponse, GSERequestResponse, requests, requests, GSEMngtRequests,PyAsnGSEMngtRequests_FromPython(value, dst->choice.requests)); +PY_IMPL_CHOICE_ATTR_TOPY(GSERequestResponse, requests, PyCompatAsnType_FromParent(&PyAsnGSEMngtRequests_Type, parent, (void *)src->choice.requests)); PY_IMPL_CHOICE_GETATTR(GSERequestResponse, GSERequestResponse, requests, requests); PY_IMPL_CHOICE_SETATTR(GSERequestResponse, GSERequestResponse, requests, requests); -PY_IMPL_CHOICE_ATTR_FROMPY(GSERequestResponse, GSERequestResponse, responses, responses,PyAsnGSEMngtResponses_FromPython(value, &dst->choice.responses)); -PY_IMPL_CHOICE_ATTR_TOPY(GSERequestResponse, responses, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponses_Type, parent, (void *)&src->choice.responses)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(GSERequestResponse, GSERequestResponse, responses, responses, GSEMngtResponses,PyAsnGSEMngtResponses_FromPython(value, dst->choice.responses)); +PY_IMPL_CHOICE_ATTR_TOPY(GSERequestResponse, responses, PyCompatAsnType_FromParent(&PyAsnGSEMngtResponses_Type, parent, (void *)src->choice.responses)); PY_IMPL_CHOICE_GETATTR(GSERequestResponse, GSERequestResponse, responses, responses); PY_IMPL_CHOICE_SETATTR(GSERequestResponse, GSERequestResponse, responses, responses); PY_IMPL_GENERIC_DEALLOC(GSERequestResponse); diff --git a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.h b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.h index 9de24a71..5e58d233 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GSERequestResponse_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.c b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.c index dfef1491..cc9ab2c8 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.c +++ b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include -static asn_TYPE_member_t asn_MBR_references_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_references __attribute__((weak, alias("asn_DEF_references_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_references_3; +static asn_TYPE_descriptor_t asn_DEF_references; +__attribute__((constructor)) static void asn_DEF_references_3_alias_init(void) { + asn_DEF_references = asn_DEF_references_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetElementRequestPdu__references_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_references_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_references_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_references_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_references_3, + asn_MBR_GetElementRequestPdu__references_3, 1, /* Single element */ &asn_SPC_references_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.h b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.h index 5ed02e32..295c296f 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.h +++ b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -21,7 +21,7 @@ extern "C" { /* GetElementRequestPdu */ typedef struct GetElementRequestPdu { - VisibleString_t ident; + VisibleString_t ident; struct GetElementRequestPdu__references { A_SEQUENCE_OF(VisibleString_t) list; diff --git a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.c b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.c index 0496fd1d..121ed466 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.h b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.h index f595a7c3..3f6d8dc4 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GetElementRequestPdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.c b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.c index 27876924..2cbc4692 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.c +++ b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.c @@ -1,10 +1,21 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include -static asn_TYPE_member_t asn_MBR_offset_3[] = { +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_offset __attribute__((weak, alias("asn_DEF_offset_3"))); +#else +static asn_TYPE_descriptor_t asn_DEF_offset_3; +static asn_TYPE_descriptor_t asn_DEF_offset; +__attribute__((constructor)) static void asn_DEF_offset_3_alias_init(void) { + asn_DEF_offset = asn_DEF_offset_3; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ +static asn_TYPE_member_t asn_MBR_GetReferenceRequestPdu__offset_3[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, @@ -23,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_offset_3[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_offset_tags_3[] = { @@ -58,7 +69,7 @@ asn_TYPE_descriptor_t asn_DEF_offset_3 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_offset_3, + asn_MBR_GetReferenceRequestPdu__offset_3, 1, /* Single element */ &asn_SPC_offset_specs_3 /* Additional specs */ }; diff --git a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.h b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.h index b6867943..5c703302 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.h +++ b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -22,7 +22,7 @@ extern "C" { /* GetReferenceRequestPdu */ typedef struct GetReferenceRequestPdu { - VisibleString_t ident; + VisibleString_t ident; struct GetReferenceRequestPdu__offset { A_SEQUENCE_OF(long) list; diff --git a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.c b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.c index d852bf36..b2f0787e 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.h b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.h index b92f34ac..4e581c46 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GetReferenceRequestPdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -12,6 +12,8 @@ /* Including dependencies */ #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/GlbErrors.c b/src/icspacket/proto/iec61850/_iec61850/GlbErrors.c index bf1e29fe..7ca29b43 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GlbErrors.c +++ b/src/icspacket/proto/iec61850/_iec61850/GlbErrors.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GlbErrors.h b/src/icspacket/proto/iec61850/_iec61850/GlbErrors.h index be71389b..0efb62b3 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GlbErrors.h +++ b/src/icspacket/proto/iec61850/_iec61850/GlbErrors.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -25,7 +25,7 @@ typedef enum GlbErrors { } e_GlbErrors; /* GlbErrors */ -typedef long GlbErrors_t; +typedef long GlbErrors_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_GlbErrors; diff --git a/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.c b/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.c index bc2b232b..69f284b8 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.h b/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.h index 0fc8435a..35da1538 100644 --- a/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/GlbErrors_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.c b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.c index 06cf20ed..f4f1422d 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.c +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include static asn_TYPE_member_t asn_MBR_IEC61850_9_2_Specific_Protocol_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct IEC61850_9_2_Specific_Protocol, choice.savPdu), + { ATF_POINTER, 0, offsetof(struct IEC61850_9_2_Specific_Protocol, choice.savPdu), (ASN_TAG_CLASS_APPLICATION | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_SavPdu, diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.h b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.h index 82042bcb..30db056a 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.h +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -10,7 +10,6 @@ #include /* Including external dependencies */ -#include #include #ifdef __cplusplus @@ -23,11 +22,14 @@ typedef enum IEC61850_9_2_Specific_Protocol_PR { IEC61850_9_2_Specific_Protocol_PR_savPdu } IEC61850_9_2_Specific_Protocol_PR; +/* Forward declarations */ +struct SavPdu; + /* IEC61850-9-2-Specific-Protocol */ typedef struct IEC61850_9_2_Specific_Protocol { IEC61850_9_2_Specific_Protocol_PR present; union IEC61850_9_2_Specific_Protocol_u { - SavPdu_t savPdu; + struct SavPdu *savPdu; } choice; /* Context for parsing across buffer boundaries */ @@ -41,5 +43,8 @@ extern asn_TYPE_descriptor_t asn_DEF_IEC61850_9_2_Specific_Protocol; } #endif +/* Referred external types */ +#include "SavPdu.h" + #endif /* _IEC61850_9_2_Specific_Protocol_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.c b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.c index c76b23dc..8f513236 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.c @@ -1,13 +1,13 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(IEC61850_9_2_Specific_Protocol, IEC61850_9_2_Specific_Protocol, savPdu, savPdu,PyAsnSavPdu_FromPython(value, &dst->choice.savPdu)); -PY_IMPL_CHOICE_ATTR_TOPY(IEC61850_9_2_Specific_Protocol, savPdu, PyCompatAsnType_FromParent(&PyAsnSavPdu_Type, parent, (void *)&src->choice.savPdu)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(IEC61850_9_2_Specific_Protocol, IEC61850_9_2_Specific_Protocol, savPdu, savPdu, SavPdu,PyAsnSavPdu_FromPython(value, dst->choice.savPdu)); +PY_IMPL_CHOICE_ATTR_TOPY(IEC61850_9_2_Specific_Protocol, savPdu, PyCompatAsnType_FromParent(&PyAsnSavPdu_Type, parent, (void *)src->choice.savPdu)); PY_IMPL_CHOICE_GETATTR(IEC61850_9_2_Specific_Protocol, IEC61850_9_2_Specific_Protocol, savPdu, savPdu); PY_IMPL_CHOICE_SETATTR(IEC61850_9_2_Specific_Protocol, IEC61850_9_2_Specific_Protocol, savPdu, savPdu); PY_IMPL_GENERIC_DEALLOC(IEC61850_9_2_Specific_Protocol); diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.h b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.h index f62f5907..14752dfe 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-9-2-Specific-Protocol_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.c b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.c index 1fae1413..41488c31 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.c +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.c @@ -1,11 +1,11 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include static asn_TYPE_member_t asn_MBR_IEC61850_Specific_Protocol_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct IEC61850_Specific_Protocol, choice.gseMngtPdu), + { ATF_POINTER, 0, offsetof(struct IEC61850_Specific_Protocol, choice.gseMngtPdu), (ASN_TAG_CLASS_APPLICATION | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_GSEMngtPdu, @@ -25,7 +25,7 @@ static asn_TYPE_member_t asn_MBR_IEC61850_Specific_Protocol_1[] = { 0, 0, /* No default value */ "gseMngtPdu" }, - { ATF_NOFLAGS, 0, offsetof(struct IEC61850_Specific_Protocol, choice.goosePdu), + { ATF_POINTER, 0, offsetof(struct IEC61850_Specific_Protocol, choice.goosePdu), (ASN_TAG_CLASS_APPLICATION | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_IECGoosePdu, diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.h b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.h index ac5baba7..b26b22c1 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.h +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -10,8 +10,6 @@ #include /* Including external dependencies */ -#include -#include #include #ifdef __cplusplus @@ -25,12 +23,16 @@ typedef enum IEC61850_Specific_Protocol_PR { IEC61850_Specific_Protocol_PR_goosePdu } IEC61850_Specific_Protocol_PR; +/* Forward declarations */ +struct GSEMngtPdu; +struct IECGoosePdu; + /* IEC61850-Specific-Protocol */ typedef struct IEC61850_Specific_Protocol { IEC61850_Specific_Protocol_PR present; union IEC61850_Specific_Protocol_u { - GSEMngtPdu_t gseMngtPdu; - IECGoosePdu_t goosePdu; + struct GSEMngtPdu *gseMngtPdu; + struct IECGoosePdu *goosePdu; } choice; /* Context for parsing across buffer boundaries */ @@ -44,5 +46,9 @@ extern asn_TYPE_descriptor_t asn_DEF_IEC61850_Specific_Protocol; } #endif +/* Referred external types */ +#include "GSEMngtPdu.h" +#include "IECGoosePdu.h" + #endif /* _IEC61850_Specific_Protocol_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.c b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.c index 0e53def8..1520cff3 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.c @@ -1,17 +1,17 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include /* class implementation */ -PY_IMPL_CHOICE_ATTR_FROMPY(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, gseMngtPdu, gseMngtPdu,PyAsnGSEMngtPdu_FromPython(value, &dst->choice.gseMngtPdu)); -PY_IMPL_CHOICE_ATTR_TOPY(IEC61850_Specific_Protocol, gseMngtPdu, PyCompatAsnType_FromParent(&PyAsnGSEMngtPdu_Type, parent, (void *)&src->choice.gseMngtPdu)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, gseMngtPdu, gseMngtPdu, GSEMngtPdu,PyAsnGSEMngtPdu_FromPython(value, dst->choice.gseMngtPdu)); +PY_IMPL_CHOICE_ATTR_TOPY(IEC61850_Specific_Protocol, gseMngtPdu, PyCompatAsnType_FromParent(&PyAsnGSEMngtPdu_Type, parent, (void *)src->choice.gseMngtPdu)); PY_IMPL_CHOICE_GETATTR(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, gseMngtPdu, gseMngtPdu); PY_IMPL_CHOICE_SETATTR(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, gseMngtPdu, gseMngtPdu); -PY_IMPL_CHOICE_ATTR_FROMPY(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, goosePdu, goosePdu,PyAsnIECGoosePdu_FromPython(value, &dst->choice.goosePdu)); -PY_IMPL_CHOICE_ATTR_TOPY(IEC61850_Specific_Protocol, goosePdu, PyCompatAsnType_FromParent(&PyAsnIECGoosePdu_Type, parent, (void *)&src->choice.goosePdu)); +PY_IMPL_CHOICE_PTR_ATTR_FROMPY(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, goosePdu, goosePdu, IECGoosePdu,PyAsnIECGoosePdu_FromPython(value, dst->choice.goosePdu)); +PY_IMPL_CHOICE_ATTR_TOPY(IEC61850_Specific_Protocol, goosePdu, PyCompatAsnType_FromParent(&PyAsnIECGoosePdu_Type, parent, (void *)src->choice.goosePdu)); PY_IMPL_CHOICE_GETATTR(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, goosePdu, goosePdu); PY_IMPL_CHOICE_SETATTR(IEC61850_Specific_Protocol, IEC61850_Specific_Protocol, goosePdu, goosePdu); PY_IMPL_GENERIC_DEALLOC(IEC61850_Specific_Protocol); diff --git a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.h b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.h index 6ed980ee..3bd55240 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/IEC61850-Specific-Protocol_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.c b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.c index c4db3696..c95276d9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.c +++ b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_allData __attribute__((weak, alias("asn_DEF_allData_13"))); +#else +static asn_TYPE_descriptor_t asn_DEF_allData_13; +static asn_TYPE_descriptor_t asn_DEF_allData; +__attribute__((constructor)) static void asn_DEF_allData_13_alias_init(void) { + asn_DEF_allData = asn_DEF_allData_13; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int asn_DFL_9_cmp_0(const void *sptr) { const BOOLEAN_t *st = sptr; @@ -48,7 +59,7 @@ static int asn_DFL_11_set_0(void **sptr) { *st = 0; return 0; } -static asn_TYPE_member_t asn_MBR_allData_13[] = { +static asn_TYPE_member_t asn_MBR_IECGoosePdu__allData_13[] = { { ATF_POINTER, 0, 0, -1 /* Ambiguous tag (CHOICE?) */, 0, @@ -67,7 +78,7 @@ static asn_TYPE_member_t asn_MBR_allData_13[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_allData_tags_13[] = { @@ -102,7 +113,7 @@ asn_TYPE_descriptor_t asn_DEF_allData_13 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_allData_13, + asn_MBR_IECGoosePdu__allData_13, 1, /* Single element */ &asn_SPC_allData_specs_13 /* Additional specs */ }; diff --git a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.h b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.h index 2e6048d2..ead20bc9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.h +++ b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -27,17 +27,17 @@ struct Data; /* IECGoosePdu */ typedef struct IECGoosePdu { - VisibleString_t gocbRef; - long timeAllowedtoLive; - VisibleString_t datSet; - VisibleString_t *goID; /* OPTIONAL */ - OCTET_STRING_t time; - long stNum; - long sqNum; - BOOLEAN_t simulation; /* DEFAULT FALSE */ - long confRev; - BOOLEAN_t ndsCom; /* DEFAULT FALSE */ - long numDatSetEntries; + VisibleString_t gocbRef; + long timeAllowedtoLive; + VisibleString_t datSet; + VisibleString_t *goID; /* OPTIONAL */ + OCTET_STRING_t time; + long stNum; + long sqNum; + BOOLEAN_t simulation; /* DEFAULT FALSE */ + long confRev; + BOOLEAN_t ndsCom; /* DEFAULT FALSE */ + long numDatSetEntries; struct IECGoosePdu__allData { A_SEQUENCE_OF(struct Data) list; @@ -59,7 +59,7 @@ extern asn_TYPE_member_t asn_MBR_IECGoosePdu_1[12]; #endif /* Referred external types */ -#include +#include "Data.h" #endif /* _IECGoosePdu_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.c b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.c index 5a186e09..a9b64ee1 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.h b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.h index 7f5ee998..4a2766fa 100644 --- a/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/IECGoosePdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/MMSString.c b/src/icspacket/proto/iec61850/_iec61850/MMSString.c index 50096692..059be84c 100644 --- a/src/icspacket/proto/iec61850/_iec61850/MMSString.c +++ b/src/icspacket/proto/iec61850/_iec61850/MMSString.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/MMSString.h b/src/icspacket/proto/iec61850/_iec61850/MMSString.h index 927c985a..698e282d 100644 --- a/src/icspacket/proto/iec61850/_iec61850/MMSString.h +++ b/src/icspacket/proto/iec61850/_iec61850/MMSString.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* MMSString */ -typedef UTF8String_t MMSString_t; +typedef UTF8String_t MMSString_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_MMSString; diff --git a/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.c b/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.c index 62abdcef..a19005dd 100644 --- a/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.h b/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.h index c1ee60be..653531d9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/MMSString_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/RequestResults.c b/src/icspacket/proto/iec61850/_iec61850/RequestResults.c index 5d53dff1..bae36861 100644 --- a/src/icspacket/proto/iec61850/_iec61850/RequestResults.c +++ b/src/icspacket/proto/iec61850/_iec61850/RequestResults.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/RequestResults.h b/src/icspacket/proto/iec61850/_iec61850/RequestResults.h index bda618b5..6770f08c 100644 --- a/src/icspacket/proto/iec61850/_iec61850/RequestResults.h +++ b/src/icspacket/proto/iec61850/_iec61850/RequestResults.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -12,7 +12,7 @@ /* Including external dependencies */ #include #include -#include +#include "ErrorReason.h" #include #ifdef __cplusplus @@ -31,9 +31,9 @@ typedef enum RequestResults_PR { typedef struct RequestResults { RequestResults_PR present; union RequestResults_u { - long offset; - IA5String_t reference; - ErrorReason_t error; + long offset; + IA5String_t reference; + ErrorReason_t error; } choice; /* Context for parsing across buffer boundaries */ diff --git a/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.c b/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.c index d5a67c08..17eeab85 100644 --- a/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.h b/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.h index 7600278d..f06f8490 100644 --- a/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/RequestResults_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/SavPdu.c b/src/icspacket/proto/iec61850/_iec61850/SavPdu.c index 09467768..fbac80a9 100644 --- a/src/icspacket/proto/iec61850/_iec61850/SavPdu.c +++ b/src/icspacket/proto/iec61850/_iec61850/SavPdu.c @@ -1,9 +1,20 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ #include +#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS +#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) +extern asn_TYPE_descriptor_t asn_DEF_seqASDU __attribute__((weak, alias("asn_DEF_seqASDU_4"))); +#else +static asn_TYPE_descriptor_t asn_DEF_seqASDU_4; +static asn_TYPE_descriptor_t asn_DEF_seqASDU; +__attribute__((constructor)) static void asn_DEF_seqASDU_4_alias_init(void) { + asn_DEF_seqASDU = asn_DEF_seqASDU_4; +} +#endif +#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ static int memb_noASDU_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { @@ -29,7 +40,7 @@ memb_noASDU_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, } } -static asn_TYPE_member_t asn_MBR_seqASDU_4[] = { +static asn_TYPE_member_t asn_MBR_SavPdu__seqASDU_4[] = { { ATF_POINTER, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, @@ -48,7 +59,7 @@ static asn_TYPE_member_t asn_MBR_seqASDU_4[] = { 0 }, 0, 0, /* No default value */ - "" + "Member" }, }; static const ber_tlv_tag_t asn_DEF_seqASDU_tags_4[] = { @@ -83,7 +94,7 @@ asn_TYPE_descriptor_t asn_DEF_seqASDU_4 = { #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, - asn_MBR_seqASDU_4, + asn_MBR_SavPdu__seqASDU_4, 1, /* Single element */ &asn_SPC_seqASDU_specs_4 /* Additional specs */ }; diff --git a/src/icspacket/proto/iec61850/_iec61850/SavPdu.h b/src/icspacket/proto/iec61850/_iec61850/SavPdu.h index a1829057..f6447009 100644 --- a/src/icspacket/proto/iec61850/_iec61850/SavPdu.h +++ b/src/icspacket/proto/iec61850/_iec61850/SavPdu.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -25,8 +25,8 @@ struct ASDU; /* SavPdu */ typedef struct SavPdu { - long noASDU; - ANY_t *security; /* OPTIONAL */ + long noASDU; + ANY_t *security; /* OPTIONAL */ struct SavPdu__seqASDU { A_SEQUENCE_OF(struct ASDU) list; @@ -48,7 +48,7 @@ extern asn_TYPE_member_t asn_MBR_SavPdu_1[3]; #endif /* Referred external types */ -#include +#include "ASDU.h" #endif /* _SavPdu_H_ */ #include diff --git a/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.c b/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.c index f4049398..c7d0a16f 100644 --- a/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.h b/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.h index aac0a03d..d93e8e81 100644 --- a/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/SavPdu_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -13,6 +13,8 @@ #include #include #include +#include +#include #ifdef __cplusplus extern "C" { diff --git a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.c b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.c index bff3adb9..5d0f684b 100644 --- a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.c +++ b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.h b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.h index f1b60a73..ba290a9e 100644 --- a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.h +++ b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* TimeOfDay */ -typedef OCTET_STRING_t TimeOfDay_t; +typedef OCTET_STRING_t TimeOfDay_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_TimeOfDay; diff --git a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.c b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.c index 9a82fdbd..463c9b86 100644 --- a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.h b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.h index 4a2ad852..95da40d1 100644 --- a/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/TimeOfDay_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/UtcTime.c b/src/icspacket/proto/iec61850/_iec61850/UtcTime.c index 2589b14d..c070d824 100644 --- a/src/icspacket/proto/iec61850/_iec61850/UtcTime.c +++ b/src/icspacket/proto/iec61850/_iec61850/UtcTime.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/UtcTime.h b/src/icspacket/proto/iec61850/_iec61850/UtcTime.h index d74fe291..dddea314 100644 --- a/src/icspacket/proto/iec61850/_iec61850/UtcTime.h +++ b/src/icspacket/proto/iec61850/_iec61850/UtcTime.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ @@ -17,7 +17,7 @@ extern "C" { #endif /* UtcTime */ -typedef OCTET_STRING_t UtcTime_t; +typedef OCTET_STRING_t UtcTime_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_UtcTime; diff --git a/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.c b/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.c index f49340c8..5db5449f 100644 --- a/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.c +++ b/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.c @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.h b/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.h index ffd061e2..dd7751c2 100644 --- a/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.h +++ b/src/icspacket/proto/iec61850/_iec61850/UtcTime_Py.h @@ -1,5 +1,5 @@ /* - * Generated by asn1c-v0.9.27-1413-ge0c0052e-dirty for Python bindings (https://github.com/MatrixEditor/asn1c-bindings) + * Generated by asn1c-bc17e5a1 (https://github.com/MatrixEditor/asn1c-bindings/issues) * From ASN.1 module "IEC61850" */ diff --git a/src/icspacket/proto/iec61850/_iec61850/asn_config.h b/src/icspacket/proto/iec61850/_iec61850/asn_config.h index dd5305dd..86c45e9b 100644 --- a/src/icspacket/proto/iec61850/_iec61850/asn_config.h +++ b/src/icspacket/proto/iec61850/_iec61850/asn_config.h @@ -3,3 +3,5 @@ #define ASN_DISABLE_OER_SUPPORT 1 #define ASN_DISABLE_UPER_SUPPORT 1 #define ASN_DISABLE_APER_SUPPORT 1 +#define ASN_DISABLE_RFILL_SUPPORT 1 +#define ASN_DISABLE_CBOR_SUPPORT 1 From 4150760b38a05b3e13dfe782215f39ceab1936c7 Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:47:13 +0200 Subject: [PATCH 7/9] fix(asn1): add missing windows __attribute__ definition --- src/icspacket/core/hexdump.py | 14 +- .../include/skeletons/asn_internal.h | 23 +- src/icspacket/include/skeletons/asn_system.h | 4 + src/icspacket/proto/iso_pres/_iso8823.pyi | 1433 +- src/icspacket/proto/mms/_mms.pyi | 16170 ++++++++-------- 5 files changed, 9097 insertions(+), 8547 deletions(-) diff --git a/src/icspacket/core/hexdump.py b/src/icspacket/core/hexdump.py index 8984fdcc..6cbc11ac 100644 --- a/src/icspacket/core/hexdump.py +++ b/src/icspacket/core/hexdump.py @@ -13,8 +13,8 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from string import ascii_letters from io import StringIO +from string import ascii_letters #: Precomputed set of valid ASCII letter byte values. #: @@ -54,7 +54,8 @@ def hexdump(data: bytes, width: int = 16) -> str: :return: A string containing the formatted hexdump, with newline - terminators at the end of each row. + terminators at the end of each row. Empty input returns an + empty string. :rtype: str :raises ValueError: @@ -64,8 +65,8 @@ def hexdump(data: bytes, width: int = 16) -> str: >>> data = b"Hello, MMS!" >>> print(hexdump(data, width=8)) - 00000000: 48 65 6c 6c 6f 2c 20 4d Hello,.M - 00000008: 4d 53 21 MS! + 00000000: 48 65 6c 6c 6f 2c 20 4d Hello..M + 00000008: 4d 53 21 MS. .. note:: Unlike the standard UNIX ``hexdump`` tool, this implementation @@ -76,10 +77,13 @@ def hexdump(data: bytes, width: int = 16) -> str: if width < 1: raise ValueError("hexdump width must be >= 1") + if not data: + return "" + windows_size = min(len(data), width) result = StringIO() for index in range(0, len(data), windows_size): - offset = index * windows_size + offset = index chunk = data[index : index + windows_size] chunk_hex = chunk.hex(sep=" ") diff --git a/src/icspacket/include/skeletons/asn_internal.h b/src/icspacket/include/skeletons/asn_internal.h index 2cb3a24c..2d93622a 100644 --- a/src/icspacket/include/skeletons/asn_internal.h +++ b/src/icspacket/include/skeletons/asn_internal.h @@ -20,7 +20,10 @@ typedef enum asn_type_kind { ASN_KIND_SET_OF, } asn_type_kind_t; -#include "asn_application.h" /* Application-visible API */ +#include "asn_application.h" /* Application-visible API */ + +#define PY_SSIZE_T_CLEAN +#include #ifndef __NO_ASSERT_H__ /* Include assert.h only for internal use. */ #include /* for assert() macro */ @@ -43,10 +46,10 @@ extern "C" { #define ASN1C_ENVIRONMENT_VERSION 923 /* Compile-time version */ int get_asn1c_environment_version(void); /* Run-time version */ -#define CALLOC(nmemb, size) calloc(nmemb, size) -#define MALLOC(size) malloc(size) -#define REALLOC(oldptr, size) realloc(oldptr, size) -#define FREEMEM(ptr) free(ptr) +#define CALLOC(nmemb, size) PyMem_RawCalloc(nmemb, size) +#define MALLOC(size) PyMem_RawMalloc(size) +#define REALLOC(oldptr, size) PyMem_RawRealloc(oldptr, size) +#define FREEMEM(ptr) PyMem_RawFree(ptr) #define asn_debug_indent 0 #define ASN_DEBUG_INDENT_ADD(i) \ @@ -139,7 +142,7 @@ ssize_t CC_PRINTFLIKE(3, 4) /* * Check if an ASN.1 type is a structured type that outputs newlines in XER. - * Structured types (SEQUENCE, SET, CHOICE, SEQUENCE_OF, SET_OF) output + * Structured types (SEQUENCE, SET, CHOICE, SEQUENCE_OF, SET_OF) output * multi-line XER content, so their closing tags need indentation. * Primitive types output inline content, so no indentation is needed. */ @@ -396,15 +399,15 @@ extern int jer_encoding_depth; /* JER */ /** * Check if the given name is an ASN.1 meta-syntax keyword that should * not be output as an XML wrapper tag (e.g., "SEQUENCE OF", "SET OF"). - * + * * Returns 1 if the name is a meta-syntax keyword, 0 otherwise. */ static inline int asn_is_meta_syntax_keyword(const char *name) { if(!name) return 0; - + size_t len = strlen(name); - + /* Check for "SEQUENCE OF", "SEQUENCE-OF", "SET OF", "SET-OF" */ /* Match if keyword is at start, followed by anything except lowercase letter */ if((len >= 11 && strncmp(name, "SEQUENCE OF", 11) == 0 && @@ -417,7 +420,7 @@ asn_is_meta_syntax_keyword(const char *name) { (len == 6 || !(name[6] >= 'a' && name[6] <= 'z')))) { return 1; } - + return 0; } diff --git a/src/icspacket/include/skeletons/asn_system.h b/src/icspacket/include/skeletons/asn_system.h index a2169fdc..a0703f5a 100644 --- a/src/icspacket/include/skeletons/asn_system.h +++ b/src/icspacket/include/skeletons/asn_system.h @@ -105,6 +105,10 @@ typedef SSIZE_T ssize_t; #endif /* _WIN32 */ /* ---------------------------- Attributes -------------------------------- */ +#if !defined(__GNUC__) && !defined(__clang__) +#define __attribute__(attr) +#endif + #if defined(__GNUC__) || defined(__clang__) #define CC_UNUSED(name) name __attribute__((unused)) #else diff --git a/src/icspacket/proto/iso_pres/_iso8823.pyi b/src/icspacket/proto/iso_pres/_iso8823.pyi index 5f344cd3..3f478a5f 100644 --- a/src/icspacket/proto/iso_pres/_iso8823.pyi +++ b/src/icspacket/proto/iso_pres/_iso8823.pyi @@ -1,12 +1,18 @@ +from collections.abc import Iterable as EXT_Iterable from enum import IntEnum as EXT_IntEnum from typing import ( Generic as EXT_Generic, +) +from typing import ( TypeVar as EXT_TypeVar, - Iterable as EXT_Iterable, +) +from typing import ( type_check_only as EXT_type_check_only, ) -from typing_extensions import override as EXT_override + from bitarray import bitarray as EXT_bitarray +from typing_extensions import Self as EXT_Self +from typing_extensions import override as EXT_override _PY_T = EXT_TypeVar("_PY_T") _ASN_T = EXT_TypeVar("_ASN_T", bound="_Asn1Type") @@ -21,27 +27,27 @@ class _Asn1Type: def check_constraints(self) -> None: ... def ber_encode(self) -> bytes: ... @classmethod - def ber_decode(cls: type[_ASN_T], data: bytes) -> _ASN_T: ... + def ber_decode(cls: type[EXT_Self], data: bytes) -> EXT_Self: ... def cer_encode(self) -> bytes: ... @classmethod - def cer_decode(cls: type[_ASN_T], data: bytes) -> _ASN_T: ... + def cer_decode(cls: type[EXT_Self], data: bytes) -> EXT_Self: ... def der_encode(self) -> bytes: ... @classmethod - def der_decode(cls: type[_ASN_T], data: bytes) -> _ASN_T: ... + def der_decode(cls: type[EXT_Self], data: bytes) -> EXT_Self: ... def xer_encode(self, /, *, canonical: bool = ...) -> bytes: ... @classmethod def xer_decode( - cls: type[_ASN_T], data: bytes, /, *, canonical: bool = ... - ) -> _ASN_T: ... + cls: type[EXT_Self], data: bytes, /, *, canonical: bool = ... + ) -> EXT_Self: ... def jer_encode(self, /, *, minified: bool = ...) -> bytes: ... @classmethod def jer_decode( - cls: type[_ASN_T], data: bytes, /, *, minified: bool = ... - ) -> _ASN_T: ... + cls: type[EXT_Self], data: bytes, /, *, minified: bool = ... + ) -> EXT_Self: ... def to_text(self) -> bytes: ... @EXT_type_check_only -class _Asn1BasicType(EXT_Generic[_PY_T], _Asn1Type): +class _Asn1BasicType(_Asn1Type, EXT_Generic[_PY_T]): def __init__(self, value: _PY_T = ...) -> None: ... @property def value(self) -> _PY_T: ... @@ -61,696 +67,789 @@ class _Asn1BitStrType(_Asn1Type): def size(self) -> int: ... def resize(self, size: int) -> None: ... -# fmt: off ### BEGIN GENERATED CODE ### -class CP_type(_Asn1Type): # SET - - class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE - @property - def protocol_version(self) -> Protocol_version | None: ... - @protocol_version.setter - def protocol_version(self, value: Protocol_version | EXT_bitarray | int | bytes | None) -> None: ... - calling_presentation_selector: Calling_presentation_selector | None - called_presentation_selector: Called_presentation_selector | None - presentation_context_definition_list: Presentation_context_definition_list | None - default_context_name: Default_context_name | None - @property - def presentation_requirements(self) -> Presentation_requirements | None: ... - @presentation_requirements.setter - def presentation_requirements(self, value: Presentation_requirements | EXT_bitarray | int | bytes | None) -> None: ... - @property - def user_session_requirements(self) -> User_session_requirements | None: ... - @user_session_requirements.setter - def user_session_requirements(self, value: User_session_requirements | EXT_bitarray | int | bytes | None) -> None: ... - @property - def protocol_options(self) -> Protocol_options | None: ... - @protocol_options.setter - def protocol_options(self, value: Protocol_options | EXT_bitarray | int | bytes | None) -> None: ... - @property - def initiators_nominated_context(self) -> Presentation_context_identifier | None: ... - @initiators_nominated_context.setter - def initiators_nominated_context(self, value: Presentation_context_identifier | int | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - protocol_version: Protocol_version = ..., - calling_presentation_selector: Calling_presentation_selector = ..., - called_presentation_selector: Called_presentation_selector = ..., - presentation_context_definition_list: Presentation_context_definition_list = ..., - default_context_name: Default_context_name = ..., - presentation_requirements: Presentation_requirements = ..., - user_session_requirements: User_session_requirements = ..., - protocol_options: Protocol_options = ..., - initiators_nominated_context: Presentation_context_identifier = ..., - user_data: User_data = ..., - ) -> None: ... - - normal_mode_parameters: normal_mode_parameters_TYPE | None - mode_selector: Mode_selector - def __init__( - self, /, *, - mode_selector: Mode_selector = ..., - normal_mode_parameters: normal_mode_parameters_TYPE = ..., - ) -> None: ... - -class CPC_type(_Asn1BasicType[User_data]): - pass - -class CPA_PPDU(_Asn1Type): # SET - - class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE - @property - def protocol_version(self) -> Protocol_version | None: ... - @protocol_version.setter - def protocol_version(self, value: Protocol_version | EXT_bitarray | int | bytes | None) -> None: ... - responding_presentation_selector: Responding_presentation_selector | None - presentation_context_definition_result_list: Presentation_context_definition_result_list | None - @property - def presentation_requirements(self) -> Presentation_requirements | None: ... - @presentation_requirements.setter - def presentation_requirements(self, value: Presentation_requirements | EXT_bitarray | int | bytes | None) -> None: ... - @property - def user_session_requirements(self) -> User_session_requirements | None: ... - @user_session_requirements.setter - def user_session_requirements(self, value: User_session_requirements | EXT_bitarray | int | bytes | None) -> None: ... - @property - def protocol_options(self) -> Protocol_options | None: ... - @protocol_options.setter - def protocol_options(self, value: Protocol_options | EXT_bitarray | int | bytes | None) -> None: ... - @property - def responders_nominated_context(self) -> Presentation_context_identifier | None: ... - @responders_nominated_context.setter - def responders_nominated_context(self, value: Presentation_context_identifier | int | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - protocol_version: Protocol_version = ..., - responding_presentation_selector: Responding_presentation_selector = ..., - presentation_context_definition_result_list: Presentation_context_definition_result_list = ..., - presentation_requirements: Presentation_requirements = ..., - user_session_requirements: User_session_requirements = ..., - protocol_options: Protocol_options = ..., - responders_nominated_context: Presentation_context_identifier = ..., - user_data: User_data = ..., - ) -> None: ... - - normal_mode_parameters: normal_mode_parameters_TYPE | None - mode_selector: Mode_selector - def __init__( - self, /, *, - mode_selector: Mode_selector = ..., - normal_mode_parameters: normal_mode_parameters_TYPE = ..., - ) -> None: ... - -class CPR_PPDU(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_normal_mode_parameters = 1 - - @property - def present(self) -> PRESENT: ... - - class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE - @property - def protocol_version(self) -> Protocol_version | None: ... - @protocol_version.setter - def protocol_version(self, value: Protocol_version | EXT_bitarray | int | bytes | None) -> None: ... - responding_presentation_selector: Responding_presentation_selector | None - presentation_context_definition_result_list: Presentation_context_definition_result_list | None - default_context_result: Default_context_result | None - @property - def provider_reason(self) -> Provider_reason | None: ... - @provider_reason.setter - def provider_reason(self, value: Provider_reason | int | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - protocol_version: Protocol_version = ..., - responding_presentation_selector: Responding_presentation_selector = ..., - presentation_context_definition_result_list: Presentation_context_definition_result_list = ..., - default_context_result: Default_context_result = ..., - provider_reason: Provider_reason = ..., - user_data: User_data = ..., - ) -> None: ... - - normal_mode_parameters: normal_mode_parameters_TYPE - def __init__( - self, /, *, - normal_mode_parameters: normal_mode_parameters_TYPE = ..., - ) -> None: ... - -class Abort_type(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_aru_ppdu = 1 - PR_arp_ppdu = 2 - - @property - def present(self) -> PRESENT: ... - aru_ppdu: ARU_PPDU | None - arp_ppdu: ARP_PPDU | None - def __init__( - self, /, *, - aru_ppdu: ARU_PPDU = ..., - arp_ppdu: ARP_PPDU = ..., - ) -> None: ... - -class ARU_PPDU(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_normal_mode_parameters = 1 - - @property - def present(self) -> PRESENT: ... - - class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE - @property - def presentation_context_identifier_list(self) -> Presentation_context_identifier_list | None: ... - @presentation_context_identifier_list.setter - def presentation_context_identifier_list(self, value: Presentation_context_identifier_list | list | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - presentation_context_identifier_list: Presentation_context_identifier_list = ..., - user_data: User_data = ..., - ) -> None: ... - - normal_mode_parameters: normal_mode_parameters_TYPE - def __init__( - self, /, *, - normal_mode_parameters: normal_mode_parameters_TYPE = ..., - ) -> None: ... - -class ARP_PPDU(_Asn1Type): # SEQUENCE - @property - def provider_reason(self) -> Abort_reason | None: ... - @provider_reason.setter - def provider_reason(self, value: Abort_reason | int | None) -> None: ... - @property - def event_identifier(self) -> Event_identifier | None: ... - @event_identifier.setter - def event_identifier(self, value: Event_identifier | int | None) -> None: ... - def __init__( - self, /, *, - provider_reason: Abort_reason = ..., - event_identifier: Event_identifier = ..., - ) -> None: ... - -class Typed_data_type(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_acPPDU = 1 - PR_acaPPDU = 2 - PR_ttdPPDU = 3 - - @property - def present(self) -> PRESENT: ... - acPPDU: AC_PPDU | None - acaPPDU: ACA_PPDU | None - ttdPPDU: User_data | None - def __init__( - self, /, *, - acPPDU: AC_PPDU = ..., - acaPPDU: ACA_PPDU = ..., - ttdPPDU: User_data = ..., - ) -> None: ... - -class AC_PPDU(_Asn1Type): # SEQUENCE - presentation_context_addition_list: Presentation_context_addition_list | None - @property - def presentation_context_deletion_list(self) -> Presentation_context_deletion_list | None: ... - @presentation_context_deletion_list.setter - def presentation_context_deletion_list(self, value: Presentation_context_deletion_list | list | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - presentation_context_addition_list: Presentation_context_addition_list = ..., - presentation_context_deletion_list: Presentation_context_deletion_list = ..., - user_data: User_data = ..., - ) -> None: ... - -class ACA_PPDU(_Asn1Type): # SEQUENCE - presentation_context_addition_result_list: Presentation_context_addition_result_list | None - @property - def presentation_context_deletion_result_list(self) -> Presentation_context_deletion_result_list | None: ... - @presentation_context_deletion_result_list.setter - def presentation_context_deletion_result_list(self, value: Presentation_context_deletion_result_list | list | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - presentation_context_addition_result_list: Presentation_context_addition_result_list = ..., - presentation_context_deletion_result_list: Presentation_context_deletion_result_list = ..., - user_data: User_data = ..., - ) -> None: ... - -class RS_PPDU(_Asn1Type): # SEQUENCE - @property - def presentation_context_identifier_list(self) -> Presentation_context_identifier_list | None: ... - @presentation_context_identifier_list.setter - def presentation_context_identifier_list(self, value: Presentation_context_identifier_list | list | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - presentation_context_identifier_list: Presentation_context_identifier_list = ..., - user_data: User_data = ..., - ) -> None: ... - -class RSA_PPDU(_Asn1Type): # SEQUENCE - @property - def presentation_context_identifier_list(self) -> Presentation_context_identifier_list | None: ... - @presentation_context_identifier_list.setter - def presentation_context_identifier_list(self, value: Presentation_context_identifier_list | list | None) -> None: ... - user_data: User_data | None - def __init__( - self, /, *, - presentation_context_identifier_list: Presentation_context_identifier_list = ..., - user_data: User_data = ..., - ) -> None: ... +class CP_type(_Asn1Type): # SET + class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE + @property + def protocol_version(self) -> Protocol_version | None: ... + @protocol_version.setter + def protocol_version( + self, value: Protocol_version | EXT_bitarray | int | bytes | None + ) -> None: ... + calling_presentation_selector: Calling_presentation_selector | None + called_presentation_selector: Called_presentation_selector | None + presentation_context_definition_list: ( + Presentation_context_definition_list | None + ) + default_context_name: Default_context_name | None + @property + def presentation_requirements(self) -> Presentation_requirements | None: ... + @presentation_requirements.setter + def presentation_requirements( + self, value: Presentation_requirements | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def user_session_requirements(self) -> User_session_requirements | None: ... + @user_session_requirements.setter + def user_session_requirements( + self, value: User_session_requirements | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def protocol_options(self) -> Protocol_options | None: ... + @protocol_options.setter + def protocol_options( + self, value: Protocol_options | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def initiators_nominated_context( + self, + ) -> Presentation_context_identifier | None: ... + @initiators_nominated_context.setter + def initiators_nominated_context( + self, value: Presentation_context_identifier | int | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + protocol_version: Protocol_version = ..., + calling_presentation_selector: Calling_presentation_selector = ..., + called_presentation_selector: Called_presentation_selector = ..., + presentation_context_definition_list: Presentation_context_definition_list = ..., + default_context_name: Default_context_name = ..., + presentation_requirements: Presentation_requirements = ..., + user_session_requirements: User_session_requirements = ..., + protocol_options: Protocol_options = ..., + initiators_nominated_context: Presentation_context_identifier = ..., + user_data: User_data = ..., + ) -> None: ... + + normal_mode_parameters: normal_mode_parameters_TYPE | None + mode_selector: Mode_selector | None + def __init__( + self, + /, + *, + mode_selector: Mode_selector = ..., + normal_mode_parameters: normal_mode_parameters_TYPE = ..., + ) -> None: ... + +class CPC_type(_Asn1BasicType[User_data]): ... + +class CPA_PPDU(_Asn1Type): # SET + class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE + @property + def protocol_version(self) -> Protocol_version | None: ... + @protocol_version.setter + def protocol_version( + self, value: Protocol_version | EXT_bitarray | int | bytes | None + ) -> None: ... + responding_presentation_selector: Responding_presentation_selector | None + presentation_context_definition_result_list: ( + Presentation_context_definition_result_list | None + ) + @property + def presentation_requirements(self) -> Presentation_requirements | None: ... + @presentation_requirements.setter + def presentation_requirements( + self, value: Presentation_requirements | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def user_session_requirements(self) -> User_session_requirements | None: ... + @user_session_requirements.setter + def user_session_requirements( + self, value: User_session_requirements | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def protocol_options(self) -> Protocol_options | None: ... + @protocol_options.setter + def protocol_options( + self, value: Protocol_options | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def responders_nominated_context( + self, + ) -> Presentation_context_identifier | None: ... + @responders_nominated_context.setter + def responders_nominated_context( + self, value: Presentation_context_identifier | int | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + protocol_version: Protocol_version = ..., + responding_presentation_selector: Responding_presentation_selector = ..., + presentation_context_definition_result_list: Presentation_context_definition_result_list = ..., + presentation_requirements: Presentation_requirements = ..., + user_session_requirements: User_session_requirements = ..., + protocol_options: Protocol_options = ..., + responders_nominated_context: Presentation_context_identifier = ..., + user_data: User_data = ..., + ) -> None: ... + + normal_mode_parameters: normal_mode_parameters_TYPE | None + mode_selector: Mode_selector | None + def __init__( + self, + /, + *, + mode_selector: Mode_selector = ..., + normal_mode_parameters: normal_mode_parameters_TYPE = ..., + ) -> None: ... + +class CPR_PPDU(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_normal_mode_parameters = 1 + + @property + def present(self) -> PRESENT: ... + + class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE + @property + def protocol_version(self) -> Protocol_version | None: ... + @protocol_version.setter + def protocol_version( + self, value: Protocol_version | EXT_bitarray | int | bytes | None + ) -> None: ... + responding_presentation_selector: Responding_presentation_selector | None + presentation_context_definition_result_list: ( + Presentation_context_definition_result_list | None + ) + default_context_result: Default_context_result | None + @property + def provider_reason(self) -> Provider_reason | None: ... + @provider_reason.setter + def provider_reason(self, value: Provider_reason | int | None) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + protocol_version: Protocol_version = ..., + responding_presentation_selector: Responding_presentation_selector = ..., + presentation_context_definition_result_list: Presentation_context_definition_result_list = ..., + default_context_result: Default_context_result = ..., + provider_reason: Provider_reason = ..., + user_data: User_data = ..., + ) -> None: ... + + normal_mode_parameters: normal_mode_parameters_TYPE + def __init__( + self, + /, + *, + normal_mode_parameters: normal_mode_parameters_TYPE = ..., + ) -> None: ... + +class Abort_type(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_aru_ppdu = 1 + PR_arp_ppdu = 2 + + @property + def present(self) -> PRESENT: ... + aru_ppdu: ARU_PPDU | None + arp_ppdu: ARP_PPDU | None + def __init__( + self, + /, + *, + aru_ppdu: ARU_PPDU = ..., + arp_ppdu: ARP_PPDU = ..., + ) -> None: ... + +class ARU_PPDU(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_normal_mode_parameters = 1 + + @property + def present(self) -> PRESENT: ... + + class normal_mode_parameters_TYPE(_Asn1Type): # SEQUENCE + @property + def presentation_context_identifier_list( + self, + ) -> Presentation_context_identifier_list | None: ... + @presentation_context_identifier_list.setter + def presentation_context_identifier_list( + self, value: Presentation_context_identifier_list | list | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + presentation_context_identifier_list: Presentation_context_identifier_list = ..., + user_data: User_data = ..., + ) -> None: ... + + normal_mode_parameters: normal_mode_parameters_TYPE + def __init__( + self, + /, + *, + normal_mode_parameters: normal_mode_parameters_TYPE = ..., + ) -> None: ... + +class ARP_PPDU(_Asn1Type): # SEQUENCE + @property + def provider_reason(self) -> Abort_reason | None: ... + @provider_reason.setter + def provider_reason(self, value: Abort_reason | int | None) -> None: ... + @property + def event_identifier(self) -> Event_identifier | None: ... + @event_identifier.setter + def event_identifier(self, value: Event_identifier | int | None) -> None: ... + def __init__( + self, + /, + *, + provider_reason: Abort_reason = ..., + event_identifier: Event_identifier = ..., + ) -> None: ... + +class Typed_data_type(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_acPPDU = 1 + PR_acaPPDU = 2 + PR_ttdPPDU = 3 + + @property + def present(self) -> PRESENT: ... + acPPDU: AC_PPDU | None + acaPPDU: ACA_PPDU | None + ttdPPDU: User_data | None + def __init__( + self, + /, + *, + acPPDU: AC_PPDU = ..., + acaPPDU: ACA_PPDU = ..., + ttdPPDU: User_data = ..., + ) -> None: ... + +class AC_PPDU(_Asn1Type): # SEQUENCE + presentation_context_addition_list: Presentation_context_addition_list | None + @property + def presentation_context_deletion_list( + self, + ) -> Presentation_context_deletion_list | None: ... + @presentation_context_deletion_list.setter + def presentation_context_deletion_list( + self, value: Presentation_context_deletion_list | list | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + presentation_context_addition_list: Presentation_context_addition_list = ..., + presentation_context_deletion_list: Presentation_context_deletion_list = ..., + user_data: User_data = ..., + ) -> None: ... + +class ACA_PPDU(_Asn1Type): # SEQUENCE + presentation_context_addition_result_list: ( + Presentation_context_addition_result_list | None + ) + @property + def presentation_context_deletion_result_list( + self, + ) -> Presentation_context_deletion_result_list | None: ... + @presentation_context_deletion_result_list.setter + def presentation_context_deletion_result_list( + self, value: Presentation_context_deletion_result_list | list | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + presentation_context_addition_result_list: Presentation_context_addition_result_list = ..., + presentation_context_deletion_result_list: Presentation_context_deletion_result_list = ..., + user_data: User_data = ..., + ) -> None: ... + +class RS_PPDU(_Asn1Type): # SEQUENCE + @property + def presentation_context_identifier_list( + self, + ) -> Presentation_context_identifier_list | None: ... + @presentation_context_identifier_list.setter + def presentation_context_identifier_list( + self, value: Presentation_context_identifier_list | list | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + presentation_context_identifier_list: Presentation_context_identifier_list = ..., + user_data: User_data = ..., + ) -> None: ... + +class RSA_PPDU(_Asn1Type): # SEQUENCE + @property + def presentation_context_identifier_list( + self, + ) -> Presentation_context_identifier_list | None: ... + @presentation_context_identifier_list.setter + def presentation_context_identifier_list( + self, value: Presentation_context_identifier_list | list | None + ) -> None: ... + user_data: User_data | None + def __init__( + self, + /, + *, + presentation_context_identifier_list: Presentation_context_identifier_list = ..., + user_data: User_data = ..., + ) -> None: ... class Abort_reason(_Asn1Type): - class VALUES(EXT_IntEnum): - V_reason_not_specified = 0 - V_unrecognized_ppdu = 1 - V_unexpected_ppdu = 2 - V_unexpected_session_service_primitive = 3 - V_unrecognized_ppdu_parameter = 4 - V_unexpected_ppdu_parameter = 5 - V_invalid_ppdu_parameter_value = 6 - - @property - def value(self) -> Abort_reason.VALUES: ... - @value.setter - def value(self, value: Abort_reason.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class Abstract_syntax_name(_Asn1BasicType[str]): - pass - -class Called_presentation_selector(_Asn1BasicType[Presentation_selector]): - pass - -class Calling_presentation_selector(_Asn1BasicType[Presentation_selector]): - pass + class VALUES(EXT_IntEnum): + V_reason_not_specified = 0 + V_unrecognized_ppdu = 1 + V_unexpected_ppdu = 2 + V_unexpected_session_service_primitive = 3 + V_unrecognized_ppdu_parameter = 4 + V_unexpected_ppdu_parameter = 5 + V_invalid_ppdu_parameter_value = 6 + + @property + def value(self) -> Abort_reason.VALUES: ... + @value.setter + def value(self, value: Abort_reason.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class Abstract_syntax_name(_Asn1BasicType[str]): ... +class Called_presentation_selector(_Asn1BasicType[Presentation_selector]): ... +class Calling_presentation_selector(_Asn1BasicType[Presentation_selector]): ... class Context_list(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + class transfer_syntax_name_list_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[Transfer_syntax_name] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Transfer_syntax_name: ... + def __setitem__(self, index: int, value: Transfer_syntax_name) -> None: ... + def add(self, value: Transfer_syntax_name) -> None: ... + def extend(self, values: EXT_Iterable[Transfer_syntax_name]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + transfer_syntax_name_list: transfer_syntax_name_list_TYPE + @property + def presentation_context_identifier( + self, + ) -> Presentation_context_identifier: ... + @presentation_context_identifier.setter + def presentation_context_identifier( + self, value: Presentation_context_identifier | int + ) -> None: ... + @property + def abstract_syntax_name(self) -> Abstract_syntax_name: ... + @abstract_syntax_name.setter + def abstract_syntax_name(self, value: Abstract_syntax_name | str) -> None: ... + def __init__( + self, + /, + *, + presentation_context_identifier: Presentation_context_identifier = ..., + abstract_syntax_name: Abstract_syntax_name = ..., + transfer_syntax_name_list: transfer_syntax_name_list_TYPE = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... - class Member_TYPE(_Asn1Type): # SEQUENCE - - class transfer_syntax_name_list_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Transfer_syntax_name] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Transfer_syntax_name: ... - def __setitem__(self, index: int, value: Transfer_syntax_name) -> None: ... - def add(self, value: Transfer_syntax_name) -> None: ... - def extend(self, values: EXT_Iterable[Transfer_syntax_name]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - transfer_syntax_name_list: transfer_syntax_name_list_TYPE - @property - def presentation_context_identifier(self) -> Presentation_context_identifier: ... - @presentation_context_identifier.setter - def presentation_context_identifier(self, value: Presentation_context_identifier | int) -> None: ... - @property - def abstract_syntax_name(self) -> Abstract_syntax_name: ... - @abstract_syntax_name.setter - def abstract_syntax_name(self, value: Abstract_syntax_name | str) -> None: ... - def __init__( - self, /, *, - presentation_context_identifier: Presentation_context_identifier = ..., - abstract_syntax_name: Abstract_syntax_name = ..., - transfer_syntax_name_list: transfer_syntax_name_list_TYPE = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class Default_context_name(_Asn1Type): # SEQUENCE - @property - def abstract_syntax_name(self) -> Abstract_syntax_name: ... - @abstract_syntax_name.setter - def abstract_syntax_name(self, value: Abstract_syntax_name | str) -> None: ... - @property - def transfer_syntax_name(self) -> Transfer_syntax_name: ... - @transfer_syntax_name.setter - def transfer_syntax_name(self, value: Transfer_syntax_name | str) -> None: ... - def __init__( - self, /, *, - abstract_syntax_name: Abstract_syntax_name = ..., - transfer_syntax_name: Transfer_syntax_name = ..., - ) -> None: ... - -class Default_context_result(_Asn1BasicType[Result]): - pass +class Default_context_name(_Asn1Type): # SEQUENCE + @property + def abstract_syntax_name(self) -> Abstract_syntax_name: ... + @abstract_syntax_name.setter + def abstract_syntax_name(self, value: Abstract_syntax_name | str) -> None: ... + @property + def transfer_syntax_name(self) -> Transfer_syntax_name: ... + @transfer_syntax_name.setter + def transfer_syntax_name(self, value: Transfer_syntax_name | str) -> None: ... + def __init__( + self, + /, + *, + abstract_syntax_name: Abstract_syntax_name = ..., + transfer_syntax_name: Transfer_syntax_name = ..., + ) -> None: ... + +class Default_context_result(_Asn1BasicType[Result]): ... class Event_identifier(_Asn1Type): - class VALUES(EXT_IntEnum): - V_cp_PPDU = 0 - V_cpa_PPDU = 1 - V_cpr_PPDU = 2 - V_aru_PPDU = 3 - V_arp_PPDU = 4 - V_ac_PPDU = 5 - V_aca_PPDU = 6 - V_td_PPDU = 7 - V_ttd_PPDU = 8 - V_te_PPDU = 9 - V_tc_PPDU = 10 - V_tcc_PPDU = 11 - V_rs_PPDU = 12 - V_rsa_PPDU = 13 - V_s_release_indication = 14 - V_s_release_confirm = 15 - V_s_token_give_indication = 16 - V_s_token_please_indication = 17 - V_s_control_give_indication = 18 - V_s_sync_minor_indication = 19 - V_s_sync_minor_confirm = 20 - V_s_sync_major_indication = 21 - V_s_sync_major_confirm = 22 - V_s_p_exception_report_indication = 23 - V_s_u_exception_report_indication = 24 - V_s_activity_start_indication = 25 - V_s_activity_resume_indication = 26 - V_s_activity_interrupt_indication = 27 - V_s_activity_interrupt_confirm = 28 - V_s_activity_discard_indication = 29 - V_s_activity_discard_confirm = 30 - V_s_activity_end_indication = 31 - V_s_activity_end_confirm = 32 - - @property - def value(self) -> Event_identifier.VALUES: ... - @value.setter - def value(self, value: Event_identifier.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class Mode_selector(_Asn1Type): # SET - - class mode_value_VALUES(EXT_IntEnum): - V_x410_1984_mode = 0 - V_normal_mode = 1 - - mode_value: mode_value_VALUES - def __init__( - self, /, *, - mode_value: mode_value_VALUES = ..., - ) -> None: ... - -class Presentation_context_addition_list(_Asn1BasicType[Context_list]): - pass - -class Presentation_context_addition_result_list(_Asn1BasicType[Result_list]): - pass - -class Presentation_context_definition_list(_Asn1BasicType[Context_list]): - pass - -class Presentation_context_definition_result_list(_Asn1BasicType[Result_list]): - pass + class VALUES(EXT_IntEnum): + V_cp_PPDU = 0 + V_cpa_PPDU = 1 + V_cpr_PPDU = 2 + V_aru_PPDU = 3 + V_arp_PPDU = 4 + V_ac_PPDU = 5 + V_aca_PPDU = 6 + V_td_PPDU = 7 + V_ttd_PPDU = 8 + V_te_PPDU = 9 + V_tc_PPDU = 10 + V_tcc_PPDU = 11 + V_rs_PPDU = 12 + V_rsa_PPDU = 13 + V_s_release_indication = 14 + V_s_release_confirm = 15 + V_s_token_give_indication = 16 + V_s_token_please_indication = 17 + V_s_control_give_indication = 18 + V_s_sync_minor_indication = 19 + V_s_sync_minor_confirm = 20 + V_s_sync_major_indication = 21 + V_s_sync_major_confirm = 22 + V_s_p_exception_report_indication = 23 + V_s_u_exception_report_indication = 24 + V_s_activity_start_indication = 25 + V_s_activity_resume_indication = 26 + V_s_activity_interrupt_indication = 27 + V_s_activity_interrupt_confirm = 28 + V_s_activity_discard_indication = 29 + V_s_activity_discard_confirm = 30 + V_s_activity_end_indication = 31 + V_s_activity_end_confirm = 32 + + @property + def value(self) -> Event_identifier.VALUES: ... + @value.setter + def value(self, value: Event_identifier.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class Mode_selector(_Asn1Type): # SET + class mode_value_VALUES(EXT_IntEnum): + V_x410_1984_mode = 0 + V_normal_mode = 1 + + mode_value: mode_value_VALUES + def __init__( + self, + /, + *, + mode_value: mode_value_VALUES = ..., + ) -> None: ... + +class Presentation_context_addition_list(_Asn1BasicType[Context_list]): ... +class Presentation_context_addition_result_list(_Asn1BasicType[Result_list]): ... +class Presentation_context_definition_list(_Asn1BasicType[Context_list]): ... +class Presentation_context_definition_result_list(_Asn1BasicType[Result_list]): ... class Presentation_context_deletion_list(_Asn1Type): - def __init__(self, values: EXT_Iterable[Presentation_context_identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Presentation_context_identifier: ... - def __setitem__(self, index: int, value: Presentation_context_identifier) -> None: ... - def add(self, value: Presentation_context_identifier) -> None: ... - def extend(self, values: EXT_Iterable[Presentation_context_identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... + def __init__( + self, values: EXT_Iterable[Presentation_context_identifier] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Presentation_context_identifier: ... + def __setitem__( + self, index: int, value: Presentation_context_identifier + ) -> None: ... + def add(self, value: Presentation_context_identifier) -> None: ... + def extend(self, values: EXT_Iterable[Presentation_context_identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... class Presentation_context_deletion_result_list(_Asn1Type): + class Member_VALUES(EXT_IntEnum): + V_acceptance = 0 + V_user_rejection = 1 + + def __init__(self, values: EXT_Iterable[Member_VALUES] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_VALUES: ... + def __setitem__(self, index: int, value: Member_VALUES) -> None: ... + def add(self, value: Member_VALUES) -> None: ... + def extend(self, values: EXT_Iterable[Member_VALUES]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... - class Member_VALUES(EXT_IntEnum): - V_acceptance = 0 - V_user_rejection = 1 - - def __init__(self, values: EXT_Iterable[Member_VALUES] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_VALUES: ... - def __setitem__(self, index: int, value: Member_VALUES) -> None: ... - def add(self, value: Member_VALUES) -> None: ... - def extend(self, values: EXT_Iterable[Member_VALUES]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class Presentation_context_identifier(_Asn1BasicType[int]): - pass +class Presentation_context_identifier(_Asn1BasicType[int]): ... class Presentation_context_identifier_list(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - @property - def presentation_context_identifier(self) -> Presentation_context_identifier: ... - @presentation_context_identifier.setter - def presentation_context_identifier(self, value: Presentation_context_identifier | int) -> None: ... - @property - def transfer_syntax_name(self) -> Transfer_syntax_name: ... - @transfer_syntax_name.setter - def transfer_syntax_name(self, value: Transfer_syntax_name | str) -> None: ... - def __init__( - self, /, *, - presentation_context_identifier: Presentation_context_identifier = ..., - transfer_syntax_name: Transfer_syntax_name = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... + class Member_TYPE(_Asn1Type): # SEQUENCE + @property + def presentation_context_identifier( + self, + ) -> Presentation_context_identifier: ... + @presentation_context_identifier.setter + def presentation_context_identifier( + self, value: Presentation_context_identifier | int + ) -> None: ... + @property + def transfer_syntax_name(self) -> Transfer_syntax_name: ... + @transfer_syntax_name.setter + def transfer_syntax_name(self, value: Transfer_syntax_name | str) -> None: ... + def __init__( + self, + /, + *, + presentation_context_identifier: Presentation_context_identifier = ..., + transfer_syntax_name: Transfer_syntax_name = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... class Presentation_requirements(_Asn1BitStrType): - V_context_management: bool # bit 0 - V_restoration: bool # bit 1 + V_context_management: bool # bit 0 + V_restoration: bool # bit 1 - -class Presentation_selector(_Asn1BasicType[bytes]): - pass +class Presentation_selector(_Asn1BasicType[bytes]): ... class Protocol_options(_Asn1BitStrType): - V_nominated_context: bool # bit 0 - V_short_encoding: bool # bit 1 - V_packed_encoding_rules: bool # bit 2 - + V_nominated_context: bool # bit 0 + V_short_encoding: bool # bit 1 + V_packed_encoding_rules: bool # bit 2 class Protocol_version(_Asn1BitStrType): - V_version_1: bool # bit 0 - + V_version_1: bool # bit 0 class Provider_reason(_Asn1Type): - class VALUES(EXT_IntEnum): - V_reason_not_specified = 0 - V_temporary_congestion = 1 - V_local_limit_exceeded = 2 - V_called_presentation_address_unknown = 3 - V_protocol_version_not_supported = 4 - V_default_context_not_supported = 5 - V_user_data_not_readable = 6 - V_no_PSAP_available = 7 - - @property - def value(self) -> Provider_reason.VALUES: ... - @value.setter - def value(self, value: Provider_reason.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class Responding_presentation_selector(_Asn1BasicType[Presentation_selector]): - pass + class VALUES(EXT_IntEnum): + V_reason_not_specified = 0 + V_temporary_congestion = 1 + V_local_limit_exceeded = 2 + V_called_presentation_address_unknown = 3 + V_protocol_version_not_supported = 4 + V_default_context_not_supported = 5 + V_user_data_not_readable = 6 + V_no_PSAP_available = 7 + + @property + def value(self) -> Provider_reason.VALUES: ... + @value.setter + def value(self, value: Provider_reason.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class Responding_presentation_selector(_Asn1BasicType[Presentation_selector]): ... class Result(_Asn1Type): - class VALUES(EXT_IntEnum): - V_acceptance = 0 - V_user_rejection = 1 - V_provider_rejection = 2 + class VALUES(EXT_IntEnum): + V_acceptance = 0 + V_user_rejection = 1 + V_provider_rejection = 2 - @property - def value(self) -> Result.VALUES: ... - @value.setter - def value(self, value: Result.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + @property + def value(self) -> Result.VALUES: ... + @value.setter + def value(self, value: Result.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class Result_list(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + @property + def result(self) -> Result: ... + @result.setter + def result(self, value: Result | int) -> None: ... + @property + def transfer_syntax_name(self) -> Transfer_syntax_name | None: ... + @transfer_syntax_name.setter + def transfer_syntax_name( + self, value: Transfer_syntax_name | str | None + ) -> None: ... + + class provider_reason_VALUES(EXT_IntEnum): + V_reason_not_specified = 0 + V_abstract_syntax_not_supported = 1 + V_proposed_transfer_syntaxes_not_supported = 2 + V_local_limit_on_DCS_exceeded = 3 + + provider_reason: provider_reason_VALUES | None + def __init__( + self, + /, + *, + result: Result = ..., + transfer_syntax_name: Transfer_syntax_name = ..., + provider_reason: provider_reason_VALUES = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class Transfer_syntax_name(_Asn1BasicType[str]): ... - class Member_TYPE(_Asn1Type): # SEQUENCE - @property - def result(self) -> Result: ... - @result.setter - def result(self, value: Result | int) -> None: ... - @property - def transfer_syntax_name(self) -> Transfer_syntax_name | None: ... - @transfer_syntax_name.setter - def transfer_syntax_name(self, value: Transfer_syntax_name | str | None) -> None: ... - - class provider_reason_VALUES(EXT_IntEnum): - V_reason_not_specified = 0 - V_abstract_syntax_not_supported = 1 - V_proposed_transfer_syntaxes_not_supported = 2 - V_local_limit_on_DCS_exceeded = 3 - - provider_reason: provider_reason_VALUES | None - def __init__( - self, /, *, - result: Result = ..., - transfer_syntax_name: Transfer_syntax_name = ..., - provider_reason: provider_reason_VALUES = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class Transfer_syntax_name(_Asn1BasicType[str]): - pass - -class User_data(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_simply_encoded_data = 1 - PR_fully_encoded_data = 2 - - @property - def present(self) -> PRESENT: ... - @property - def simply_encoded_data(self) -> Simply_encoded_data | None: ... - @simply_encoded_data.setter - def simply_encoded_data(self, value: Simply_encoded_data | bytes | None) -> None: ... - @property - def fully_encoded_data(self) -> Fully_encoded_data | None: ... - @fully_encoded_data.setter - def fully_encoded_data(self, value: Fully_encoded_data | list | None) -> None: ... - def __init__( - self, /, *, - simply_encoded_data: Simply_encoded_data = ..., - fully_encoded_data: Fully_encoded_data = ..., - ) -> None: ... - -class Simply_encoded_data(_Asn1BasicType[bytes]): - pass +class User_data(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_simply_encoded_data = 1 + PR_fully_encoded_data = 2 + + @property + def present(self) -> PRESENT: ... + @property + def simply_encoded_data(self) -> Simply_encoded_data | None: ... + @simply_encoded_data.setter + def simply_encoded_data( + self, value: Simply_encoded_data | bytes | None + ) -> None: ... + @property + def fully_encoded_data(self) -> Fully_encoded_data | None: ... + @fully_encoded_data.setter + def fully_encoded_data(self, value: Fully_encoded_data | list | None) -> None: ... + def __init__( + self, + /, + *, + simply_encoded_data: Simply_encoded_data = ..., + fully_encoded_data: Fully_encoded_data = ..., + ) -> None: ... + +class Simply_encoded_data(_Asn1BasicType[bytes]): ... class Fully_encoded_data(_Asn1Type): - def __init__(self, values: EXT_Iterable[PDV_list] | None = ...) -> None: ... - def __getitem__(self, index: int) -> PDV_list: ... - def __setitem__(self, index: int, value: PDV_list) -> None: ... - def add(self, value: PDV_list) -> None: ... - def extend(self, values: EXT_Iterable[PDV_list]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class PDV_list(_Asn1Type): # SEQUENCE - - class presentation_data_values_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_single_ASN1_type = 1 - PR_octet_aligned = 2 - PR_arbitrary = 3 - - @property - def present(self) -> PRESENT: ... - single_ASN1_type: bytes | None - octet_aligned: bytes | None - - class arbitrary_TYPE(_Asn1BitStrType): - pass - - @property - def arbitrary(self) -> arbitrary_TYPE | None: ... - @arbitrary.setter - def arbitrary(self, value: arbitrary_TYPE | EXT_bitarray | bytes | None) -> None: ... - def __init__( - self, /, *, - single_ASN1_type: bytes = ..., - octet_aligned: bytes = ..., - arbitrary: arbitrary_TYPE | EXT_bitarray | bytes = ..., - ) -> None: ... - - presentation_data_values: presentation_data_values_TYPE - @property - def transfer_syntax_name(self) -> Transfer_syntax_name | None: ... - @transfer_syntax_name.setter - def transfer_syntax_name(self, value: Transfer_syntax_name | str | None) -> None: ... - @property - def presentation_context_identifier(self) -> Presentation_context_identifier: ... - @presentation_context_identifier.setter - def presentation_context_identifier(self, value: Presentation_context_identifier | int) -> None: ... - def __init__( - self, /, *, - transfer_syntax_name: Transfer_syntax_name = ..., - presentation_context_identifier: Presentation_context_identifier = ..., - presentation_data_values: presentation_data_values_TYPE = ..., - ) -> None: ... + def __init__(self, values: EXT_Iterable[PDV_list] | None = ...) -> None: ... + def __getitem__(self, index: int) -> PDV_list: ... + def __setitem__(self, index: int, value: PDV_list) -> None: ... + def add(self, value: PDV_list) -> None: ... + def extend(self, values: EXT_Iterable[PDV_list]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class PDV_list(_Asn1Type): # SEQUENCE + class presentation_data_values_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_single_ASN1_type = 1 + PR_octet_aligned = 2 + PR_arbitrary = 3 + + @property + def present(self) -> PRESENT: ... + single_ASN1_type: bytes | None + octet_aligned: bytes | None + + class arbitrary_TYPE(_Asn1BitStrType): ... + + @property + def arbitrary(self) -> arbitrary_TYPE | None: ... + @arbitrary.setter + def arbitrary( + self, value: arbitrary_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + def __init__( + self, + /, + *, + single_ASN1_type: bytes = ..., + octet_aligned: bytes = ..., + arbitrary: arbitrary_TYPE | EXT_bitarray | bytes = ..., + ) -> None: ... + + presentation_data_values: presentation_data_values_TYPE + @property + def transfer_syntax_name(self) -> Transfer_syntax_name | None: ... + @transfer_syntax_name.setter + def transfer_syntax_name( + self, value: Transfer_syntax_name | str | None + ) -> None: ... + @property + def presentation_context_identifier(self) -> Presentation_context_identifier: ... + @presentation_context_identifier.setter + def presentation_context_identifier( + self, value: Presentation_context_identifier | int + ) -> None: ... + def __init__( + self, + /, + *, + transfer_syntax_name: Transfer_syntax_name = ..., + presentation_context_identifier: Presentation_context_identifier = ..., + presentation_data_values: presentation_data_values_TYPE = ..., + ) -> None: ... class User_session_requirements(_Asn1BitStrType): - V_half_duplex: bool # bit 0 - V_duplex: bool # bit 1 - V_expedited_data: bool # bit 2 - V_minor_synchronize: bool # bit 3 - V_major_synchronize: bool # bit 4 - V_resynchronize: bool # bit 5 - V_activity_management: bool # bit 6 - V_negotiated_release: bool # bit 7 - V_capability_data: bool # bit 8 - V_exceptions: bool # bit 9 - V_typed_data: bool # bit 10 - V_symmetric_synchronize: bool # bit 11 - V_data_separation: bool # bit 12 - - -class EXTERNAL(_Asn1Type): # SEQUENCE - - class encoding_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_single_ASN1_type = 1 - PR_octet_aligned = 2 - PR_arbitrary = 3 - - @property - def present(self) -> PRESENT: ... - single_ASN1_type: bytes | None - octet_aligned: bytes | None - - class arbitrary_TYPE(_Asn1BitStrType): - pass - - @property - def arbitrary(self) -> arbitrary_TYPE | None: ... - @arbitrary.setter - def arbitrary(self, value: arbitrary_TYPE | EXT_bitarray | bytes | None) -> None: ... - def __init__( - self, /, *, - single_ASN1_type: bytes = ..., - octet_aligned: bytes = ..., - arbitrary: arbitrary_TYPE | EXT_bitarray | bytes = ..., - ) -> None: ... - - encoding: encoding_TYPE - direct_reference: str | None - indirect_reference: int | None - data_value_descriptor: str | None - def __init__( - self, /, *, - direct_reference: str = ..., - indirect_reference: int = ..., - data_value_descriptor: str = ..., - encoding: encoding_TYPE = ..., - ) -> None: ... + V_half_duplex: bool # bit 0 + V_duplex: bool # bit 1 + V_expedited_data: bool # bit 2 + V_minor_synchronize: bool # bit 3 + V_major_synchronize: bool # bit 4 + V_resynchronize: bool # bit 5 + V_activity_management: bool # bit 6 + V_negotiated_release: bool # bit 7 + V_capability_data: bool # bit 8 + V_exceptions: bool # bit 9 + V_typed_data: bool # bit 10 + V_symmetric_synchronize: bool # bit 11 + V_data_separation: bool # bit 12 + +class EXTERNAL(_Asn1Type): # SEQUENCE + class encoding_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_single_ASN1_type = 1 + PR_octet_aligned = 2 + PR_arbitrary = 3 + + @property + def present(self) -> PRESENT: ... + single_ASN1_type: bytes | None + octet_aligned: bytes | None + + class arbitrary_TYPE(_Asn1BitStrType): ... + + @property + def arbitrary(self) -> arbitrary_TYPE | None: ... + @arbitrary.setter + def arbitrary( + self, value: arbitrary_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + def __init__( + self, + /, + *, + single_ASN1_type: bytes = ..., + octet_aligned: bytes = ..., + arbitrary: arbitrary_TYPE | EXT_bitarray | bytes = ..., + ) -> None: ... + + encoding: encoding_TYPE + direct_reference: str | None + indirect_reference: int | None + data_value_descriptor: str | None + def __init__( + self, + /, + *, + direct_reference: str = ..., + indirect_reference: int = ..., + data_value_descriptor: str = ..., + encoding: encoding_TYPE = ..., + ) -> None: ... ### END GENERATED CODE ### -# fmt: on diff --git a/src/icspacket/proto/mms/_mms.pyi b/src/icspacket/proto/mms/_mms.pyi index f669697a..f7d000ae 100644 --- a/src/icspacket/proto/mms/_mms.pyi +++ b/src/icspacket/proto/mms/_mms.pyi @@ -1,7934 +1,8374 @@ +from collections.abc import Iterable as EXT_Iterable from enum import IntEnum as EXT_IntEnum from typing import ( - Generic as EXT_Generic, - override as EXT_override, - TypeVar as EXT_TypeVar, - Iterable as EXT_Iterable, - Any as EXT_Any, - type_check_only as EXT_type_check_only, + Generic as EXT_Generic, +) +from typing import ( + TypeVar as EXT_TypeVar, +) +from typing import ( + type_check_only as EXT_type_check_only, ) from bitarray import bitarray as EXT_bitarray - +from typing_extensions import Self as EXT_Self +from typing_extensions import override as EXT_override _PY_T = EXT_TypeVar("_PY_T") _ASN_T = EXT_TypeVar("_ASN_T", bound="_Asn1Type") @EXT_type_check_only class _Asn1Type: - @EXT_override - def __repr__(self) -> str: ... - @EXT_override - def __str__(self) -> str: ... - def is_valid(self) -> bool: ... - def check_constraints(self) -> None: ... - def ber_encode(self) -> bytes: ... - @classmethod - def ber_decode(cls: type[_ASN_T], data: bytes) -> _ASN_T: ... - def cer_encode(self) -> bytes: ... - @classmethod - def cer_decode(cls: type[_ASN_T], data: bytes) -> _ASN_T: ... - def der_encode(self) -> bytes: ... - @classmethod - def der_decode(cls: type[_ASN_T], data: bytes) -> _ASN_T: ... - def xer_encode(self, /, *, canonical: bool = ...) -> bytes: ... - @classmethod - def xer_decode(cls: type[_ASN_T], data: bytes, /, *, canonical: bool = ...) -> _ASN_T: ... - def jer_encode(self, /, *, minified: bool = ...) -> bytes: ... - @classmethod - def jer_decode(cls: type[_ASN_T], data: bytes, /, *, minified: bool = ...) -> _ASN_T: ... - def to_text(self) -> bytes: ... + @EXT_override + def __repr__(self) -> str: ... + @EXT_override + def __str__(self) -> str: ... + def is_valid(self) -> bool: ... + def check_constraints(self) -> None: ... + def ber_encode(self) -> bytes: ... + @classmethod + def ber_decode(cls: type[EXT_Self], data: bytes) -> EXT_Self: ... + def cer_encode(self) -> bytes: ... + @classmethod + def cer_decode(cls: type[EXT_Self], data: bytes) -> EXT_Self: ... + def der_encode(self) -> bytes: ... + @classmethod + def der_decode(cls: type[EXT_Self], data: bytes) -> EXT_Self: ... + def xer_encode(self, /, *, canonical: bool = ...) -> bytes: ... + @classmethod + def xer_decode( + cls: type[EXT_Self], data: bytes, /, *, canonical: bool = ... + ) -> EXT_Self: ... + def jer_encode(self, /, *, minified: bool = ...) -> bytes: ... + @classmethod + def jer_decode( + cls: type[EXT_Self], data: bytes, /, *, minified: bool = ... + ) -> EXT_Self: ... + def to_text(self) -> bytes: ... @EXT_type_check_only -class _Asn1BasicType(EXT_Generic[_PY_T], _Asn1Type): - def __init__(self, value: _PY_T = ...) -> None: ... - @property - def value(self) -> _PY_T: ... - @value.setter - def value(self, value: _PY_T) -> None: ... - +class _Asn1BasicType(_Asn1Type, EXT_Generic[_PY_T]): + def __init__(self, value: _PY_T = ...) -> None: ... + @property + def value(self) -> _PY_T: ... + @value.setter + def value(self, value: _PY_T) -> None: ... @EXT_type_check_only class _Asn1BitStrType(_Asn1Type): - def __init__(self, size: int = ...) -> None: ... - @property - def value(self) -> EXT_bitarray | bytes: ... - @value.setter - def value(self, value: EXT_bitarray | bytes) -> None: ... - def clear(self) -> None: ... - def set(self, bit: int, flag: bool) -> None: ... - def get(self, bit: int) -> bool: ... - def size(self) -> int: ... - def resize(self, size: int) -> None: ... + def __init__(self, size: int = ...) -> None: ... + @property + def value(self) -> EXT_bitarray | bytes: ... + @value.setter + def value(self, value: EXT_bitarray | bytes) -> None: ... + def clear(self) -> None: ... + def set(self, bit: int, flag: bool) -> None: ... + def get(self, bit: int) -> bool: ... + def size(self) -> int: ... + def resize(self, size: int) -> None: ... ### BEGIN GENERATED CODE ### -class EMBEDDED_PDV(_Asn1Type): # SEQUENCE - - class identification_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_syntaxes = 1 - PR_syntax = 2 - PR_presentation_context_id = 3 - PR_context_negotiation = 4 - PR_transfer_syntax = 5 - PR_fixed = 6 - - @property - def present(self) -> PRESENT: ... - - class syntaxes_TYPE(_Asn1Type): # SEQUENCE - abstract: str - transfer: str - def __init__( - self, /, *, - abstract: str = ..., - transfer: str = ..., - ) -> None: ... - - syntaxes: syntaxes_TYPE - - class context_negotiation_TYPE(_Asn1Type): # SEQUENCE - presentation_context_id: int - transfer_syntax: str - def __init__( - self, /, *, - presentation_context_id: int = ..., - transfer_syntax: str = ..., - ) -> None: ... - - context_negotiation: context_negotiation_TYPE - syntax: str | None - presentation_context_id: int | None - transfer_syntax: str | None - fixed: None | None - def __init__( - self, /, *, - syntaxes: syntaxes_TYPE = ..., - syntax: str = ..., - presentation_context_id: int = ..., - context_negotiation: context_negotiation_TYPE = ..., - transfer_syntax: str = ..., - fixed: None = ..., - ) -> None: ... - - identification: identification_TYPE - data_value: bytes - def __init__( - self, /, *, - identification: identification_TYPE = ..., - data_value: bytes = ..., - ) -> None: ... - -class TimeOfDay(_Asn1BasicType[bytes]): - pass - -class Identifier(_Asn1BasicType[str]): - pass - -class Integer8(_Asn1BasicType[int]): - pass - -class Integer16(_Asn1BasicType[int]): - pass - -class Integer32(_Asn1BasicType[int]): - pass - -class Unsigned8(_Asn1BasicType[int]): - pass - -class Unsigned16(_Asn1BasicType[int]): - pass - -class Unsigned32(_Asn1BasicType[int]): - pass - -class ObjectName(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_vmd_specific = 1 - PR_domain_specific = 2 - PR_aa_specific = 3 - - @property - def present(self) -> PRESENT: ... - - class domain_specific_TYPE(_Asn1Type): # SEQUENCE - @property - def domainID(self) -> Identifier: ... - @domainID.setter - def domainID(self, value: Identifier | str) -> None: ... - @property - def itemID(self) -> Identifier: ... - @itemID.setter - def itemID(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - domainID: Identifier = ..., - itemID: Identifier = ..., - ) -> None: ... - - domain_specific: domain_specific_TYPE - @property - def vmd_specific(self) -> Identifier | None: ... - @vmd_specific.setter - def vmd_specific(self, value: Identifier | str | None) -> None: ... - @property - def aa_specific(self) -> Identifier | None: ... - @aa_specific.setter - def aa_specific(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - vmd_specific: Identifier = ..., - domain_specific: domain_specific_TYPE = ..., - aa_specific: Identifier = ..., - ) -> None: ... - -class ObjectClass(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_basicObjectClass = 1 - PR_csObjectClass = 2 - - @property - def present(self) -> PRESENT: ... - - class basicObjectClass_VALUES(EXT_IntEnum): - V_namedVariable = 0 - V_scatteredAccess = 1 - V_namedVariableList = 2 - V_namedType = 3 - V_semaphore = 4 - V_eventCondition = 5 - V_eventAction = 6 - V_eventEnrollment = 7 - V_journal = 8 - V_domain = 9 - V_programInvocation = 10 - V_operatorStation = 11 - V_dataExchange = 12 - V_accessControlList = 13 - - basicObjectClass: basicObjectClass_VALUES | None - - class csObjectClass_VALUES(EXT_IntEnum): - V_eventConditionList = 0 - V_unitControl = 1 - - csObjectClass: csObjectClass_VALUES | None - def __init__( - self, /, *, - basicObjectClass: basicObjectClass_VALUES = ..., - csObjectClass: csObjectClass_VALUES = ..., - ) -> None: ... - -class MMSString(_Asn1BasicType[str]): - pass - -class MMS255String(_Asn1BasicType[str]): - pass +class Name(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_rdnSequence = 1 + + @property + def present(self) -> PRESENT: ... + @property + def rdnSequence(self) -> RDNSequence | None: ... + @rdnSequence.setter + def rdnSequence(self, value: RDNSequence | list | None) -> None: ... + def __init__( + self, + /, + *, + rdnSequence: RDNSequence = ..., + ) -> None: ... + +class DomainName(_Asn1BasicType[str]): ... + +class RDNSequence(_Asn1Type): + def __init__( + self, values: EXT_Iterable[RelativeDistinguishedName] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> RelativeDistinguishedName: ... + def __setitem__(self, index: int, value: RelativeDistinguishedName) -> None: ... + def add(self, value: RelativeDistinguishedName) -> None: ... + def extend(self, values: EXT_Iterable[RelativeDistinguishedName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class RelativeDistinguishedName(_Asn1Type): + def __init__( + self, values: EXT_Iterable[AttributeTypeAndValue] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> AttributeTypeAndValue: ... + def __setitem__(self, index: int, value: AttributeTypeAndValue) -> None: ... + def add(self, value: AttributeTypeAndValue) -> None: ... + def extend(self, values: EXT_Iterable[AttributeTypeAndValue]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class AttributeTypeAndValue(_Asn1Type): # SEQUENCE + type: str + value: bytes + def __init__( + self, + /, + *, + type: str = ..., + value: bytes = ..., + ) -> None: ... + +class ACSE_apdu(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_aarq = 1 + PR_aare = 2 + PR_rlrq = 3 + PR_rlre = 4 + PR_abrt = 5 + + @property + def present(self) -> PRESENT: ... + aarq: AARQ_apdu | None + aare: AARE_apdu | None + rlrq: RLRQ_apdu | None + rlre: RLRE_apdu | None + abrt: ABRT_apdu | None + def __init__( + self, + /, + *, + aarq: AARQ_apdu = ..., + aare: AARE_apdu = ..., + rlrq: RLRQ_apdu = ..., + rlre: RLRE_apdu = ..., + abrt: ABRT_apdu = ..., + ) -> None: ... + +class AARQ_apdu(_Asn1Type): # SEQUENCE + class protocol_version_TYPE(_Asn1BitStrType): + V_version1: bool # bit 0 + + @property + def protocol_version(self) -> protocol_version_TYPE | None: ... + @protocol_version.setter + def protocol_version( + self, value: protocol_version_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + @property + def application_context_name(self) -> Application_context_name: ... + @application_context_name.setter + def application_context_name( + self, value: Application_context_name | str + ) -> None: ... + called_AP_title: AP_title | None + called_AE_qualifier: AE_qualifier | None + @property + def called_AP_invocation_identifier(self) -> AP_invocation_identifier | None: ... + @called_AP_invocation_identifier.setter + def called_AP_invocation_identifier( + self, value: AP_invocation_identifier | int | None + ) -> None: ... + @property + def called_AE_invocation_identifier(self) -> AE_invocation_identifier | None: ... + @called_AE_invocation_identifier.setter + def called_AE_invocation_identifier( + self, value: AE_invocation_identifier | int | None + ) -> None: ... + calling_AP_title: AP_title | None + calling_AE_qualifier: AE_qualifier | None + @property + def calling_AP_invocation_identifier(self) -> AP_invocation_identifier | None: ... + @calling_AP_invocation_identifier.setter + def calling_AP_invocation_identifier( + self, value: AP_invocation_identifier | int | None + ) -> None: ... + @property + def calling_AE_invocation_identifier(self) -> AE_invocation_identifier | None: ... + @calling_AE_invocation_identifier.setter + def calling_AE_invocation_identifier( + self, value: AE_invocation_identifier | int | None + ) -> None: ... + @property + def sender_acse_requirements(self) -> ACSE_requirements | None: ... + @sender_acse_requirements.setter + def sender_acse_requirements( + self, value: ACSE_requirements | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def mechanism_name(self) -> Mechanism_name | None: ... + @mechanism_name.setter + def mechanism_name(self, value: Mechanism_name | str | None) -> None: ... + calling_authentication_value: Authentication_value | None + @property + def application_context_name_list(self) -> Application_context_name_list | None: ... + @application_context_name_list.setter + def application_context_name_list( + self, value: Application_context_name_list | list | None + ) -> None: ... + @property + def implementation_information(self) -> Implementation_data | None: ... + @implementation_information.setter + def implementation_information( + self, value: Implementation_data | str | None + ) -> None: ... + @property + def user_information(self) -> Association_information | None: ... + @user_information.setter + def user_information( + self, value: Association_information | list | None + ) -> None: ... + def __init__( + self, + /, + *, + protocol_version: protocol_version_TYPE | EXT_bitarray | bytes = ..., + application_context_name: Application_context_name = ..., + called_AP_title: AP_title = ..., + called_AE_qualifier: AE_qualifier = ..., + called_AP_invocation_identifier: AP_invocation_identifier = ..., + called_AE_invocation_identifier: AE_invocation_identifier = ..., + calling_AP_title: AP_title = ..., + calling_AE_qualifier: AE_qualifier = ..., + calling_AP_invocation_identifier: AP_invocation_identifier = ..., + calling_AE_invocation_identifier: AE_invocation_identifier = ..., + sender_acse_requirements: ACSE_requirements = ..., + mechanism_name: Mechanism_name = ..., + calling_authentication_value: Authentication_value = ..., + application_context_name_list: Application_context_name_list = ..., + implementation_information: Implementation_data = ..., + user_information: Association_information = ..., + ) -> None: ... + +class AARE_apdu(_Asn1Type): # SEQUENCE + class protocol_version_TYPE(_Asn1BitStrType): + V_version1: bool # bit 0 + + @property + def protocol_version(self) -> protocol_version_TYPE | None: ... + @protocol_version.setter + def protocol_version( + self, value: protocol_version_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + @property + def application_context_name(self) -> Application_context_name: ... + @application_context_name.setter + def application_context_name( + self, value: Application_context_name | str + ) -> None: ... + @property + def result(self) -> Associate_result: ... + @result.setter + def result(self, value: Associate_result | int) -> None: ... + result_source_diagnostic: Associate_source_diagnostic | None + responding_AP_title: AP_title | None + responding_AE_qualifier: AE_qualifier | None + @property + def responding_AP_invocation_identifier( + self, + ) -> AP_invocation_identifier | None: ... + @responding_AP_invocation_identifier.setter + def responding_AP_invocation_identifier( + self, value: AP_invocation_identifier | int | None + ) -> None: ... + @property + def responding_AE_invocation_identifier( + self, + ) -> AE_invocation_identifier | None: ... + @responding_AE_invocation_identifier.setter + def responding_AE_invocation_identifier( + self, value: AE_invocation_identifier | int | None + ) -> None: ... + @property + def responder_acse_requirements(self) -> ACSE_requirements | None: ... + @responder_acse_requirements.setter + def responder_acse_requirements( + self, value: ACSE_requirements | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def mechanism_name(self) -> Mechanism_name | None: ... + @mechanism_name.setter + def mechanism_name(self, value: Mechanism_name | str | None) -> None: ... + responding_authentication_value: Authentication_value | None + @property + def application_context_name_list(self) -> Application_context_name_list | None: ... + @application_context_name_list.setter + def application_context_name_list( + self, value: Application_context_name_list | list | None + ) -> None: ... + @property + def implementation_information(self) -> Implementation_data | None: ... + @implementation_information.setter + def implementation_information( + self, value: Implementation_data | str | None + ) -> None: ... + @property + def user_information(self) -> Association_information | None: ... + @user_information.setter + def user_information( + self, value: Association_information | list | None + ) -> None: ... + def __init__( + self, + /, + *, + protocol_version: protocol_version_TYPE | EXT_bitarray | bytes = ..., + application_context_name: Application_context_name = ..., + result: Associate_result = ..., + result_source_diagnostic: Associate_source_diagnostic = ..., + responding_AP_title: AP_title = ..., + responding_AE_qualifier: AE_qualifier = ..., + responding_AP_invocation_identifier: AP_invocation_identifier = ..., + responding_AE_invocation_identifier: AE_invocation_identifier = ..., + responder_acse_requirements: ACSE_requirements = ..., + mechanism_name: Mechanism_name = ..., + responding_authentication_value: Authentication_value = ..., + application_context_name_list: Application_context_name_list = ..., + implementation_information: Implementation_data = ..., + user_information: Association_information = ..., + ) -> None: ... + +class RLRQ_apdu(_Asn1Type): # SEQUENCE + @property + def reason(self) -> Release_request_reason | None: ... + @reason.setter + def reason(self, value: Release_request_reason | int | None) -> None: ... + @property + def user_information(self) -> Association_information | None: ... + @user_information.setter + def user_information( + self, value: Association_information | list | None + ) -> None: ... + def __init__( + self, + /, + *, + reason: Release_request_reason = ..., + user_information: Association_information = ..., + ) -> None: ... + +class RLRE_apdu(_Asn1Type): # SEQUENCE + @property + def reason(self) -> Release_response_reason | None: ... + @reason.setter + def reason(self, value: Release_response_reason | int | None) -> None: ... + @property + def user_information(self) -> Association_information | None: ... + @user_information.setter + def user_information( + self, value: Association_information | list | None + ) -> None: ... + def __init__( + self, + /, + *, + reason: Release_response_reason = ..., + user_information: Association_information = ..., + ) -> None: ... + +class ABRT_apdu(_Asn1Type): # SEQUENCE + @property + def abort_source(self) -> ABRT_source: ... + @abort_source.setter + def abort_source(self, value: ABRT_source | int) -> None: ... + abort_diagnostic: ABRT_diagnostic | None + @property + def user_information(self) -> Association_information | None: ... + @user_information.setter + def user_information( + self, value: Association_information | list | None + ) -> None: ... + def __init__( + self, + /, + *, + abort_source: ABRT_source = ..., + abort_diagnostic: ABRT_diagnostic = ..., + user_information: Association_information = ..., + ) -> None: ... + +class ABRT_diagnostic(_Asn1Type): + class VALUES(EXT_IntEnum): + V_no_reason_given = 1 + V_protocol_error = 2 + V_authentication_mechanism_name_not_recognized = 3 + V_authentication_mechanism_name_required = 4 + V_authentication_failure = 5 + V_authentication_required = 6 + + @property + def value(self) -> ABRT_diagnostic.VALUES: ... + @value.setter + def value(self, value: ABRT_diagnostic.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class ABRT_source(_Asn1Type): + class VALUES(EXT_IntEnum): + V_acse_service_user = 0 + V_acse_service_provider = 1 + + @property + def value(self) -> ABRT_source.VALUES: ... + @value.setter + def value(self, value: ABRT_source.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class ACSE_requirements(_Asn1BitStrType): + V_authentication: bool # bit 0 + V_application_context_negotiation: bool # bit 1 + +class Application_context_name_list(_Asn1Type): + def __init__( + self, values: EXT_Iterable[Application_context_name] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Application_context_name: ... + def __setitem__(self, index: int, value: Application_context_name) -> None: ... + def add(self, value: Application_context_name) -> None: ... + def extend(self, values: EXT_Iterable[Application_context_name]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class Application_context_name(_Asn1BasicType[str]): ... + +class AP_title(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_ap_title_form1 = 1 + PR_ap_title_form2 = 2 + + @property + def present(self) -> PRESENT: ... + ap_title_form1: AP_title_form1 | None + @property + def ap_title_form2(self) -> AP_title_form2 | None: ... + @ap_title_form2.setter + def ap_title_form2(self, value: AP_title_form2 | str | None) -> None: ... + def __init__( + self, + /, + *, + ap_title_form1: AP_title_form1 = ..., + ap_title_form2: AP_title_form2 = ..., + ) -> None: ... + +class AE_qualifier(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_ae_qualifier_form1 = 1 + PR_ae_qualifier_form2 = 2 + + @property + def present(self) -> PRESENT: ... + ae_qualifier_form1: AE_qualifier_form1 | None + @property + def ae_qualifier_form2(self) -> AE_qualifier_form2 | None: ... + @ae_qualifier_form2.setter + def ae_qualifier_form2(self, value: AE_qualifier_form2 | int | None) -> None: ... + def __init__( + self, + /, + *, + ae_qualifier_form1: AE_qualifier_form1 = ..., + ae_qualifier_form2: AE_qualifier_form2 = ..., + ) -> None: ... + +class AP_title_form1(_Asn1BasicType[Name]): ... +class AE_qualifier_form1(_Asn1BasicType[RelativeDistinguishedName]): ... +class AP_title_form2(_Asn1BasicType[str]): ... +class AE_qualifier_form2(_Asn1BasicType[int]): ... + +class AE_title(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_ae_title_form1 = 1 + PR_ae_title_form2 = 2 + + @property + def present(self) -> PRESENT: ... + ae_title_form1: AE_title_form1 | None + @property + def ae_title_form2(self) -> AE_title_form2 | None: ... + @ae_title_form2.setter + def ae_title_form2(self, value: AE_title_form2 | str | None) -> None: ... + def __init__( + self, + /, + *, + ae_title_form1: AE_title_form1 = ..., + ae_title_form2: AE_title_form2 = ..., + ) -> None: ... + +class AE_title_form1(_Asn1BasicType[Name]): ... +class AE_title_form2(_Asn1BasicType[str]): ... +class AE_invocation_identifier(_Asn1BasicType[int]): ... +class AP_invocation_identifier(_Asn1BasicType[int]): ... + +class Associate_result(_Asn1Type): + class VALUES(EXT_IntEnum): + V_accepted = 0 + V_rejected_permanent = 1 + V_rejected_transient = 2 + + @property + def value(self) -> Associate_result.VALUES: ... + @value.setter + def value(self, value: Associate_result.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class Associate_source_diagnostic(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_acse_service_user = 1 + PR_acse_service_provider = 2 + + @property + def present(self) -> PRESENT: ... + + class acse_service_user_VALUES(EXT_IntEnum): + V_null = 0 + V_no_reason_given = 1 + V_application_context_name_not_supported = 2 + V_calling_AP_title_not_recognized = 3 + V_calling_AP_invocation_identifier_not_recognized = 4 + V_calling_AE_qualifier_not_recognized = 5 + V_calling_AE_invocation_identifier_not_recognized = 6 + V_called_AP_title_not_recognized = 7 + V_called_AP_invocation_identifier_not_recognized = 8 + V_called_AE_qualifier_not_recognized = 9 + V_called_AE_invocation_identifier_not_recognized = 10 + V_authentication_mechanism_name_not_recognized = 11 + V_authentication_mechanism_name_required = 12 + V_authentication_failure = 13 + V_authentication_required = 14 + + acse_service_user: acse_service_user_VALUES | None + + class acse_service_provider_VALUES(EXT_IntEnum): + V_null = 0 + V_no_reason_given = 1 + V_no_common_acse_version = 2 + + acse_service_provider: acse_service_provider_VALUES | None + def __init__( + self, + /, + *, + acse_service_user: acse_service_user_VALUES = ..., + acse_service_provider: acse_service_provider_VALUES = ..., + ) -> None: ... + +class Association_information(_Asn1Type): + def __init__(self, values: EXT_Iterable[EXTERNAL] | None = ...) -> None: ... + def __getitem__(self, index: int) -> EXTERNAL: ... + def __setitem__(self, index: int, value: EXTERNAL) -> None: ... + def add(self, value: EXTERNAL) -> None: ... + def extend(self, values: EXT_Iterable[EXTERNAL]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class Authentication_value(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_charstring = 1 + PR_bitstring = 2 + PR_external = 3 + PR_other = 4 + + @property + def present(self) -> PRESENT: ... + + class other_TYPE(_Asn1Type): # SEQUENCE + @property + def other_mechanism_name(self) -> Mechanism_name: ... + @other_mechanism_name.setter + def other_mechanism_name(self, value: Mechanism_name | str) -> None: ... + other_mechanism_value: bytes + def __init__( + self, + /, + *, + other_mechanism_name: Mechanism_name = ..., + other_mechanism_value: bytes = ..., + ) -> None: ... + + other: other_TYPE + charstring: str | None + + class bitstring_TYPE(_Asn1BitStrType): ... + + @property + def bitstring(self) -> bitstring_TYPE | None: ... + @bitstring.setter + def bitstring( + self, value: bitstring_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + external: EXTERNAL | None + def __init__( + self, + /, + *, + charstring: str = ..., + bitstring: bitstring_TYPE | EXT_bitarray | bytes = ..., + external: EXTERNAL = ..., + other: other_TYPE = ..., + ) -> None: ... + +class Implementation_data(_Asn1BasicType[str]): ... +class Mechanism_name(_Asn1BasicType[str]): ... + +class Release_request_reason(_Asn1Type): + class VALUES(EXT_IntEnum): + V_normal = 0 + V_urgent = 1 + V_user_defined = 30 + + @property + def value(self) -> Release_request_reason.VALUES: ... + @value.setter + def value(self, value: Release_request_reason.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class Release_response_reason(_Asn1Type): + class VALUES(EXT_IntEnum): + V_normal = 0 + V_not_finished = 1 + V_user_defined = 30 + + @property + def value(self) -> Release_response_reason.VALUES: ... + @value.setter + def value(self, value: Release_response_reason.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class EMBEDDED_PDV(_Asn1Type): # SEQUENCE + class identification_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_syntaxes = 1 + PR_syntax = 2 + PR_presentation_context_id = 3 + PR_context_negotiation = 4 + PR_transfer_syntax = 5 + PR_fixed = 6 + + @property + def present(self) -> PRESENT: ... + + class syntaxes_TYPE(_Asn1Type): # SEQUENCE + abstract: str + transfer: str + def __init__( + self, + /, + *, + abstract: str = ..., + transfer: str = ..., + ) -> None: ... + + syntaxes: syntaxes_TYPE + + class context_negotiation_TYPE(_Asn1Type): # SEQUENCE + presentation_context_id: int + transfer_syntax: str + def __init__( + self, + /, + *, + presentation_context_id: int = ..., + transfer_syntax: str = ..., + ) -> None: ... + + context_negotiation: context_negotiation_TYPE + syntax: str | None + presentation_context_id: int | None + transfer_syntax: str | None + fixed: None + def __init__( + self, + /, + *, + syntaxes: syntaxes_TYPE = ..., + syntax: str = ..., + presentation_context_id: int = ..., + context_negotiation: context_negotiation_TYPE = ..., + transfer_syntax: str = ..., + fixed: None = ..., + ) -> None: ... + + identification: identification_TYPE + data_value: bytes + def __init__( + self, + /, + *, + identification: identification_TYPE = ..., + data_value: bytes = ..., + ) -> None: ... + +class TimeOfDay(_Asn1BasicType[bytes]): ... +class Identifier(_Asn1BasicType[str]): ... +class Integer8(_Asn1BasicType[int]): ... +class Integer16(_Asn1BasicType[int]): ... +class Integer32(_Asn1BasicType[int]): ... +class Unsigned8(_Asn1BasicType[int]): ... +class Unsigned16(_Asn1BasicType[int]): ... +class Unsigned32(_Asn1BasicType[int]): ... + +class ObjectName(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_vmd_specific = 1 + PR_domain_specific = 2 + PR_aa_specific = 3 + + @property + def present(self) -> PRESENT: ... + + class domain_specific_TYPE(_Asn1Type): # SEQUENCE + @property + def domainID(self) -> Identifier: ... + @domainID.setter + def domainID(self, value: Identifier | str) -> None: ... + @property + def itemID(self) -> Identifier: ... + @itemID.setter + def itemID(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + domainID: Identifier = ..., + itemID: Identifier = ..., + ) -> None: ... + + domain_specific: domain_specific_TYPE + @property + def vmd_specific(self) -> Identifier | None: ... + @vmd_specific.setter + def vmd_specific(self, value: Identifier | str | None) -> None: ... + @property + def aa_specific(self) -> Identifier | None: ... + @aa_specific.setter + def aa_specific(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + vmd_specific: Identifier = ..., + domain_specific: domain_specific_TYPE = ..., + aa_specific: Identifier = ..., + ) -> None: ... + +class ObjectClass(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_basicObjectClass = 1 + PR_csObjectClass = 2 + + @property + def present(self) -> PRESENT: ... + + class basicObjectClass_VALUES(EXT_IntEnum): + V_namedVariable = 0 + V_scatteredAccess = 1 + V_namedVariableList = 2 + V_namedType = 3 + V_semaphore = 4 + V_eventCondition = 5 + V_eventAction = 6 + V_eventEnrollment = 7 + V_journal = 8 + V_domain = 9 + V_programInvocation = 10 + V_operatorStation = 11 + V_dataExchange = 12 + V_accessControlList = 13 + + basicObjectClass: basicObjectClass_VALUES | None + + class csObjectClass_VALUES(EXT_IntEnum): + V_eventConditionList = 0 + V_unitControl = 1 + + csObjectClass: csObjectClass_VALUES | None + def __init__( + self, + /, + *, + basicObjectClass: basicObjectClass_VALUES = ..., + csObjectClass: csObjectClass_VALUES = ..., + ) -> None: ... + +class MMSString(_Asn1BasicType[str]): ... +class MMS255String(_Asn1BasicType[str]): ... class FileName(_Asn1Type): - def __init__(self, values: EXT_Iterable[str] | None = ...) -> None: ... - def __getitem__(self, index: int) -> str: ... - def __setitem__(self, index: int, value: str) -> None: ... - def add(self, value: str) -> None: ... - def extend(self, values: EXT_Iterable[str]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class MMSpdu(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_confirmed_RequestPDU = 1 - PR_confirmed_ResponsePDU = 2 - PR_confirmed_ErrorPDU = 3 - PR_unconfirmed_PDU = 4 - PR_rejectPDU = 5 - PR_cancel_RequestPDU = 6 - PR_cancel_ResponsePDU = 7 - PR_cancel_ErrorPDU = 8 - PR_initiate_RequestPDU = 9 - PR_initiate_ResponsePDU = 10 - PR_initiate_ErrorPDU = 11 - PR_conclude_RequestPDU = 12 - PR_conclude_ResponsePDU = 13 - PR_conclude_ErrorPDU = 14 - - @property - def present(self) -> PRESENT: ... - confirmed_RequestPDU: Confirmed_RequestPDU | None - confirmed_ResponsePDU: Confirmed_ResponsePDU | None - confirmed_ErrorPDU: Confirmed_ErrorPDU | None - unconfirmed_PDU: Unconfirmed_PDU | None - rejectPDU: RejectPDU | None - cancel_RequestPDU: Cancel_RequestPDU | None - cancel_ResponsePDU: Cancel_ResponsePDU | None - cancel_ErrorPDU: Cancel_ErrorPDU | None - initiate_RequestPDU: Initiate_RequestPDU | None - initiate_ResponsePDU: Initiate_ResponsePDU | None - initiate_ErrorPDU: Initiate_ErrorPDU | None - @property - def conclude_RequestPDU(self) -> Conclude_RequestPDU | None: ... - @conclude_RequestPDU.setter - def conclude_RequestPDU(self, value: Conclude_RequestPDU | None | None) -> None: ... - @property - def conclude_ResponsePDU(self) -> Conclude_ResponsePDU | None: ... - @conclude_ResponsePDU.setter - def conclude_ResponsePDU(self, value: Conclude_ResponsePDU | None | None) -> None: ... - conclude_ErrorPDU: Conclude_ErrorPDU | None - def __init__( - self, /, *, - confirmed_RequestPDU: Confirmed_RequestPDU = ..., - confirmed_ResponsePDU: Confirmed_ResponsePDU = ..., - confirmed_ErrorPDU: Confirmed_ErrorPDU = ..., - unconfirmed_PDU: Unconfirmed_PDU = ..., - rejectPDU: RejectPDU = ..., - cancel_RequestPDU: Cancel_RequestPDU = ..., - cancel_ResponsePDU: Cancel_ResponsePDU = ..., - cancel_ErrorPDU: Cancel_ErrorPDU = ..., - initiate_RequestPDU: Initiate_RequestPDU = ..., - initiate_ResponsePDU: Initiate_ResponsePDU = ..., - initiate_ErrorPDU: Initiate_ErrorPDU = ..., - conclude_RequestPDU: Conclude_RequestPDU = ..., - conclude_ResponsePDU: Conclude_ResponsePDU = ..., - conclude_ErrorPDU: Conclude_ErrorPDU = ..., - ) -> None: ... - -class Confirmed_RequestPDU(_Asn1Type): # SEQUENCE - - class listOfModifiers_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Modifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Modifier: ... - def __setitem__(self, index: int, value: Modifier) -> None: ... - def add(self, value: Modifier) -> None: ... - def extend(self, values: EXT_Iterable[Modifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfModifiers: listOfModifiers_TYPE | None - @property - def invokeID(self) -> Unsigned32: ... - @invokeID.setter - def invokeID(self, value: Unsigned32 | int) -> None: ... - service: ConfirmedServiceRequest - service_ext: Request_Detail | None - def __init__( - self, /, *, - invokeID: Unsigned32 = ..., - listOfModifiers: listOfModifiers_TYPE = ..., - service: ConfirmedServiceRequest = ..., - service_ext: Request_Detail = ..., - ) -> None: ... - -class Confirmed_ErrorPDU(_Asn1Type): # SEQUENCE - @property - def invokeID(self) -> Unsigned32: ... - @invokeID.setter - def invokeID(self, value: Unsigned32 | int) -> None: ... - @property - def modifierPosition(self) -> Unsigned32 | None: ... - @modifierPosition.setter - def modifierPosition(self, value: Unsigned32 | int | None) -> None: ... - serviceError: ServiceError - def __init__( - self, /, *, - invokeID: Unsigned32 = ..., - modifierPosition: Unsigned32 = ..., - serviceError: ServiceError = ..., - ) -> None: ... - -class ConfirmedServiceRequest(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_status = 1 - PR_getNameList = 2 - PR_identify = 3 - PR_rename = 4 - PR_read = 5 - PR_write = 6 - PR_getVariableAccessAttributes = 7 - PR_defineNamedVariable = 8 - PR_defineScatteredAccess = 9 - PR_getScatteredAccessAttributes = 10 - PR_deleteVariableAccess = 11 - PR_defineNamedVariableList = 12 - PR_getNamedVariableListAttributes = 13 - PR_deleteNamedVariableList = 14 - PR_defineNamedType = 15 - PR_getNamedTypeAttributes = 16 - PR_deleteNamedType = 17 - PR_input = 18 - PR_output = 19 - PR_takeControl = 20 - PR_relinquishControl = 21 - PR_defineSemaphore = 22 - PR_deleteSemaphore = 23 - PR_reportSemaphoreStatus = 24 - PR_reportPoolSemaphoreStatus = 25 - PR_reportSemaphoreEntryStatus = 26 - PR_initiateDownloadSequence = 27 - PR_downloadSegment = 28 - PR_terminateDownloadSequence = 29 - PR_initiateUploadSequence = 30 - PR_uploadSegment = 31 - PR_terminateUploadSequence = 32 - PR_requestDomainDownload = 33 - PR_requestDomainUpload = 34 - PR_loadDomainContent = 35 - PR_storeDomainContent = 36 - PR_deleteDomain = 37 - PR_getDomainAttributes = 38 - PR_createProgramInvocation = 39 - PR_deleteProgramInvocation = 40 - PR_start = 41 - PR_stop = 42 - PR_resume = 43 - PR_reset = 44 - PR_kill = 45 - PR_getProgramInvocationAttributes = 46 - PR_obtainFile = 47 - PR_defineEventCondition = 48 - PR_deleteEventCondition = 49 - PR_getEventConditionAttributes = 50 - PR_reportEventConditionStatus = 51 - PR_alterEventConditionMonitoring = 52 - PR_triggerEvent = 53 - PR_defineEventAction = 54 - PR_deleteEventAction = 55 - PR_getEventActionAttributes = 56 - PR_reportEventActionStatus = 57 - PR_defineEventEnrollment = 58 - PR_deleteEventEnrollment = 59 - PR_alterEventEnrollment = 60 - PR_reportEventEnrollmentStatus = 61 - PR_getEventEnrollmentAttributes = 62 - PR_acknowledgeEventNotification = 63 - PR_getAlarmSummary = 64 - PR_getAlarmEnrollmentSummary = 65 - PR_readJournal = 66 - PR_writeJournal = 67 - PR_initializeJournal = 68 - PR_reportJournalStatus = 69 - PR_createJournal = 70 - PR_deleteJournal = 71 - PR_getCapabilityList = 72 - PR_fileOpen = 73 - PR_fileRead = 74 - PR_fileClose = 75 - PR_fileRename = 76 - PR_fileDelete = 77 - PR_fileDirectory = 78 - PR_additionalService = 79 - PR_getDataExchangeAttributes = 80 - PR_exchangeData = 81 - PR_defineAccessControlList = 82 - PR_getAccessControlListAttributes = 83 - PR_reportAccessControlledObjects = 84 - PR_deleteAccessControlList = 85 - PR_changeAccessControl = 86 - - @property - def present(self) -> PRESENT: ... - @property - def status(self) -> Status_Request | None: ... - @status.setter - def status(self, value: Status_Request | bool | None) -> None: ... - getNameList: GetNameList_Request | None - @property - def identify(self) -> Identify_Request | None: ... - @identify.setter - def identify(self, value: Identify_Request | None | None) -> None: ... - rename: Rename_Request | None - read: Read_Request | None - write: Write_Request | None - getVariableAccessAttributes: GetVariableAccessAttributes_Request | None - defineNamedVariable: DefineNamedVariable_Request | None - defineScatteredAccess: DefineScatteredAccess_Request | None - getScatteredAccessAttributes: GetScatteredAccessAttributes_Request | None - deleteVariableAccess: DeleteVariableAccess_Request | None - defineNamedVariableList: DefineNamedVariableList_Request | None - getNamedVariableListAttributes: GetNamedVariableListAttributes_Request | None - deleteNamedVariableList: DeleteNamedVariableList_Request | None - defineNamedType: DefineNamedType_Request | None - getNamedTypeAttributes: GetNamedTypeAttributes_Request | None - deleteNamedType: DeleteNamedType_Request | None - input: Input_Request | None - output: Output_Request | None - takeControl: TakeControl_Request | None - relinquishControl: RelinquishControl_Request | None - defineSemaphore: DefineSemaphore_Request | None - deleteSemaphore: DeleteSemaphore_Request | None - reportSemaphoreStatus: ReportSemaphoreStatus_Request | None - reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Request | None - reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Request | None - initiateDownloadSequence: InitiateDownloadSequence_Request | None - downloadSegment: DownloadSegment_Request | None - terminateDownloadSequence: TerminateDownloadSequence_Request | None - initiateUploadSequence: InitiateUploadSequence_Request | None - uploadSegment: UploadSegment_Request | None - terminateUploadSequence: TerminateUploadSequence_Request | None - requestDomainDownload: RequestDomainDownload_Request | None - requestDomainUpload: RequestDomainUpload_Request | None - loadDomainContent: LoadDomainContent_Request | None - storeDomainContent: StoreDomainContent_Request | None - deleteDomain: DeleteDomain_Request | None - getDomainAttributes: GetDomainAttributes_Request | None - createProgramInvocation: CreateProgramInvocation_Request | None - deleteProgramInvocation: DeleteProgramInvocation_Request | None - start: Start_Request | None - stop: Stop_Request | None - resume: Resume_Request | None - reset: Reset_Request | None - kill: Kill_Request | None - getProgramInvocationAttributes: GetProgramInvocationAttributes_Request | None - obtainFile: ObtainFile_Request | None - defineEventCondition: DefineEventCondition_Request | None - deleteEventCondition: DeleteEventCondition_Request | None - getEventConditionAttributes: GetEventConditionAttributes_Request | None - reportEventConditionStatus: ReportEventConditionStatus_Request | None - alterEventConditionMonitoring: AlterEventConditionMonitoring_Request | None - triggerEvent: TriggerEvent_Request | None - defineEventAction: DefineEventAction_Request | None - deleteEventAction: DeleteEventAction_Request | None - getEventActionAttributes: GetEventActionAttributes_Request | None - reportEventActionStatus: ReportEventActionStatus_Request | None - defineEventEnrollment: DefineEventEnrollment_Request | None - deleteEventEnrollment: DeleteEventEnrollment_Request | None - alterEventEnrollment: AlterEventEnrollment_Request | None - reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Request | None - getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Request | None - acknowledgeEventNotification: AcknowledgeEventNotification_Request | None - getAlarmSummary: GetAlarmSummary_Request | None - getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Request | None - readJournal: ReadJournal_Request | None - writeJournal: WriteJournal_Request | None - initializeJournal: InitializeJournal_Request | None - reportJournalStatus: ReportJournalStatus_Request | None - createJournal: CreateJournal_Request | None - deleteJournal: DeleteJournal_Request | None - getCapabilityList: GetCapabilityList_Request | None - fileOpen: FileOpen_Request | None - fileRead: FileRead_Request | None - fileClose: FileClose_Request | None - fileRename: FileRename_Request | None - fileDelete: FileDelete_Request | None - fileDirectory: FileDirectory_Request | None - additionalService: AdditionalService_Request | None - getDataExchangeAttributes: GetDataExchangeAttributes_Request | None - exchangeData: ExchangeData_Request | None - defineAccessControlList: DefineAccessControlList_Request | None - getAccessControlListAttributes: GetAccessControlListAttributes_Request | None - reportAccessControlledObjects: ReportAccessControlledObjects_Request | None - deleteAccessControlList: DeleteAccessControlList_Request | None - changeAccessControl: ChangeAccessControl_Request | None - def __init__( - self, /, *, - status: Status_Request = ..., - getNameList: GetNameList_Request = ..., - identify: Identify_Request = ..., - rename: Rename_Request = ..., - read: Read_Request = ..., - write: Write_Request = ..., - getVariableAccessAttributes: GetVariableAccessAttributes_Request = ..., - defineNamedVariable: DefineNamedVariable_Request = ..., - defineScatteredAccess: DefineScatteredAccess_Request = ..., - getScatteredAccessAttributes: GetScatteredAccessAttributes_Request = ..., - deleteVariableAccess: DeleteVariableAccess_Request = ..., - defineNamedVariableList: DefineNamedVariableList_Request = ..., - getNamedVariableListAttributes: GetNamedVariableListAttributes_Request = ..., - deleteNamedVariableList: DeleteNamedVariableList_Request = ..., - defineNamedType: DefineNamedType_Request = ..., - getNamedTypeAttributes: GetNamedTypeAttributes_Request = ..., - deleteNamedType: DeleteNamedType_Request = ..., - input: Input_Request = ..., - output: Output_Request = ..., - takeControl: TakeControl_Request = ..., - relinquishControl: RelinquishControl_Request = ..., - defineSemaphore: DefineSemaphore_Request = ..., - deleteSemaphore: DeleteSemaphore_Request = ..., - reportSemaphoreStatus: ReportSemaphoreStatus_Request = ..., - reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Request = ..., - reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Request = ..., - initiateDownloadSequence: InitiateDownloadSequence_Request = ..., - downloadSegment: DownloadSegment_Request = ..., - terminateDownloadSequence: TerminateDownloadSequence_Request = ..., - initiateUploadSequence: InitiateUploadSequence_Request = ..., - uploadSegment: UploadSegment_Request = ..., - terminateUploadSequence: TerminateUploadSequence_Request = ..., - requestDomainDownload: RequestDomainDownload_Request = ..., - requestDomainUpload: RequestDomainUpload_Request = ..., - loadDomainContent: LoadDomainContent_Request = ..., - storeDomainContent: StoreDomainContent_Request = ..., - deleteDomain: DeleteDomain_Request = ..., - getDomainAttributes: GetDomainAttributes_Request = ..., - createProgramInvocation: CreateProgramInvocation_Request = ..., - deleteProgramInvocation: DeleteProgramInvocation_Request = ..., - start: Start_Request = ..., - stop: Stop_Request = ..., - resume: Resume_Request = ..., - reset: Reset_Request = ..., - kill: Kill_Request = ..., - getProgramInvocationAttributes: GetProgramInvocationAttributes_Request = ..., - obtainFile: ObtainFile_Request = ..., - defineEventCondition: DefineEventCondition_Request = ..., - deleteEventCondition: DeleteEventCondition_Request = ..., - getEventConditionAttributes: GetEventConditionAttributes_Request = ..., - reportEventConditionStatus: ReportEventConditionStatus_Request = ..., - alterEventConditionMonitoring: AlterEventConditionMonitoring_Request = ..., - triggerEvent: TriggerEvent_Request = ..., - defineEventAction: DefineEventAction_Request = ..., - deleteEventAction: DeleteEventAction_Request = ..., - getEventActionAttributes: GetEventActionAttributes_Request = ..., - reportEventActionStatus: ReportEventActionStatus_Request = ..., - defineEventEnrollment: DefineEventEnrollment_Request = ..., - deleteEventEnrollment: DeleteEventEnrollment_Request = ..., - alterEventEnrollment: AlterEventEnrollment_Request = ..., - reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Request = ..., - getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Request = ..., - acknowledgeEventNotification: AcknowledgeEventNotification_Request = ..., - getAlarmSummary: GetAlarmSummary_Request = ..., - getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Request = ..., - readJournal: ReadJournal_Request = ..., - writeJournal: WriteJournal_Request = ..., - initializeJournal: InitializeJournal_Request = ..., - reportJournalStatus: ReportJournalStatus_Request = ..., - createJournal: CreateJournal_Request = ..., - deleteJournal: DeleteJournal_Request = ..., - getCapabilityList: GetCapabilityList_Request = ..., - fileOpen: FileOpen_Request = ..., - fileRead: FileRead_Request = ..., - fileClose: FileClose_Request = ..., - fileRename: FileRename_Request = ..., - fileDelete: FileDelete_Request = ..., - fileDirectory: FileDirectory_Request = ..., - additionalService: AdditionalService_Request = ..., - getDataExchangeAttributes: GetDataExchangeAttributes_Request = ..., - exchangeData: ExchangeData_Request = ..., - defineAccessControlList: DefineAccessControlList_Request = ..., - getAccessControlListAttributes: GetAccessControlListAttributes_Request = ..., - reportAccessControlledObjects: ReportAccessControlledObjects_Request = ..., - deleteAccessControlList: DeleteAccessControlList_Request = ..., - changeAccessControl: ChangeAccessControl_Request = ..., - ) -> None: ... - -class AdditionalService_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_vMDStop = 1 - PR_vMDReset = 2 - PR_select = 3 - PR_alterPI = 4 - PR_initiateUCLoad = 5 - PR_uCLoad = 6 - PR_uCUpload = 7 - PR_startUC = 8 - PR_stopUC = 9 - PR_createUC = 10 - PR_addToUC = 11 - PR_removeFromUC = 12 - PR_getUCAttributes = 13 - PR_loadUCFromFile = 14 - PR_storeUCToFile = 15 - PR_deleteUC = 16 - PR_defineECL = 17 - PR_deleteECL = 18 - PR_addECLReference = 19 - PR_removeECLReference = 20 - PR_getECLAttributes = 21 - PR_reportECLStatus = 22 - PR_alterECLMonitoring = 23 - - @property - def present(self) -> PRESENT: ... - @property - def vMDStop(self) -> VMDStop_Request | None: ... - @vMDStop.setter - def vMDStop(self, value: VMDStop_Request | None | None) -> None: ... - @property - def vMDReset(self) -> VMDReset_Request | None: ... - @vMDReset.setter - def vMDReset(self, value: VMDReset_Request | bool | None) -> None: ... - select: Select_Request | None - alterPI: AlterProgramInvocationAttributes_Request | None - initiateUCLoad: InitiateUnitControlLoad_Request | None - uCLoad: UnitControlLoadSegment_Request | None - uCUpload: UnitControlUpload_Request | None - startUC: StartUnitControl_Request | None - stopUC: StopUnitControl_Request | None - createUC: CreateUnitControl_Request | None - addToUC: AddToUnitControl_Request | None - removeFromUC: RemoveFromUnitControl_Request | None - getUCAttributes: GetUnitControlAttributes_Request | None - loadUCFromFile: LoadUnitControlFromFile_Request | None - storeUCToFile: StoreUnitControlToFile_Request | None - deleteUC: DeleteUnitControl_Request | None - defineECL: DefineEventConditionList_Request | None - deleteECL: DeleteEventConditionList_Request | None - addECLReference: AddEventConditionListReference_Request | None - removeECLReference: RemoveEventConditionListReference_Request | None - getECLAttributes: GetEventConditionListAttributes_Request | None - reportECLStatus: ReportEventConditionListStatus_Request | None - alterECLMonitoring: AlterEventConditionListMonitoring_Request | None - def __init__( - self, /, *, - vMDStop: VMDStop_Request = ..., - vMDReset: VMDReset_Request = ..., - select: Select_Request = ..., - alterPI: AlterProgramInvocationAttributes_Request = ..., - initiateUCLoad: InitiateUnitControlLoad_Request = ..., - uCLoad: UnitControlLoadSegment_Request = ..., - uCUpload: UnitControlUpload_Request = ..., - startUC: StartUnitControl_Request = ..., - stopUC: StopUnitControl_Request = ..., - createUC: CreateUnitControl_Request = ..., - addToUC: AddToUnitControl_Request = ..., - removeFromUC: RemoveFromUnitControl_Request = ..., - getUCAttributes: GetUnitControlAttributes_Request = ..., - loadUCFromFile: LoadUnitControlFromFile_Request = ..., - storeUCToFile: StoreUnitControlToFile_Request = ..., - deleteUC: DeleteUnitControl_Request = ..., - defineECL: DefineEventConditionList_Request = ..., - deleteECL: DeleteEventConditionList_Request = ..., - addECLReference: AddEventConditionListReference_Request = ..., - removeECLReference: RemoveEventConditionListReference_Request = ..., - getECLAttributes: GetEventConditionListAttributes_Request = ..., - reportECLStatus: ReportEventConditionListStatus_Request = ..., - alterECLMonitoring: AlterEventConditionListMonitoring_Request = ..., - ) -> None: ... - -class Request_Detail(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_otherRequests = 1 - PR_createProgramInvocation = 2 - PR_start = 3 - PR_resume = 4 - PR_defineEventCondition = 5 - PR_alterEventConditionMonitoring = 6 - PR_defineEventEnrollment = 7 - PR_alterEventEnrollment = 8 - - @property - def present(self) -> PRESENT: ... - otherRequests: None | None - @property - def createProgramInvocation(self) -> CS_CreateProgramInvocation_Request | None: ... - @createProgramInvocation.setter - def createProgramInvocation(self, value: CS_CreateProgramInvocation_Request | int | None) -> None: ... - start: CS_Start_Request | None - resume: CS_Resume_Request | None - defineEventCondition: CS_DefineEventCondition_Request | None - alterEventConditionMonitoring: CS_AlterEventConditionMonitoring_Request | None - defineEventEnrollment: CS_DefineEventEnrollment_Request | None - alterEventEnrollment: CS_AlterEventEnrollment_Request | None - def __init__( - self, /, *, - otherRequests: None = ..., - createProgramInvocation: CS_CreateProgramInvocation_Request = ..., - start: CS_Start_Request = ..., - resume: CS_Resume_Request = ..., - defineEventCondition: CS_DefineEventCondition_Request = ..., - alterEventConditionMonitoring: CS_AlterEventConditionMonitoring_Request = ..., - defineEventEnrollment: CS_DefineEventEnrollment_Request = ..., - alterEventEnrollment: CS_AlterEventEnrollment_Request = ..., - ) -> None: ... - -class Unconfirmed_PDU(_Asn1Type): # SEQUENCE - service: UnconfirmedService - service_ext: Unconfirmed_Detail | None - def __init__( - self, /, *, - service: UnconfirmedService = ..., - service_ext: Unconfirmed_Detail = ..., - ) -> None: ... - -class UnconfirmedService(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_informationReport = 1 - PR_unsolicitedStatus = 2 - PR_eventNotification = 3 - - @property - def present(self) -> PRESENT: ... - informationReport: InformationReport | None - unsolicitedStatus: UnsolicitedStatus | None - eventNotification: EventNotification | None - def __init__( - self, /, *, - informationReport: InformationReport = ..., - unsolicitedStatus: UnsolicitedStatus = ..., - eventNotification: EventNotification = ..., - ) -> None: ... - -class Unconfirmed_Detail(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_otherRequests = 1 - PR_eventNotification = 2 - - @property - def present(self) -> PRESENT: ... - otherRequests: None | None - eventNotification: CS_EventNotification | None - def __init__( - self, /, *, - otherRequests: None = ..., - eventNotification: CS_EventNotification = ..., - ) -> None: ... - -class Confirmed_ResponsePDU(_Asn1Type): # SEQUENCE - @property - def invokeID(self) -> Unsigned32: ... - @invokeID.setter - def invokeID(self, value: Unsigned32 | int) -> None: ... - service: ConfirmedServiceResponse - service_ext: Response_Detail | None - def __init__( - self, /, *, - invokeID: Unsigned32 = ..., - service: ConfirmedServiceResponse = ..., - service_ext: Response_Detail = ..., - ) -> None: ... - -class ConfirmedServiceResponse(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_status = 1 - PR_getNameList = 2 - PR_identify = 3 - PR_rename = 4 - PR_read = 5 - PR_write = 6 - PR_getVariableAccessAttributes = 7 - PR_defineNamedVariable = 8 - PR_defineScatteredAccess = 9 - PR_getScatteredAccessAttributes = 10 - PR_deleteVariableAccess = 11 - PR_defineNamedVariableList = 12 - PR_getNamedVariableListAttributes = 13 - PR_deleteNamedVariableList = 14 - PR_defineNamedType = 15 - PR_getNamedTypeAttributes = 16 - PR_deleteNamedType = 17 - PR_input = 18 - PR_output = 19 - PR_takeControl = 20 - PR_relinquishControl = 21 - PR_defineSemaphore = 22 - PR_deleteSemaphore = 23 - PR_reportSemaphoreStatus = 24 - PR_reportPoolSemaphoreStatus = 25 - PR_reportSemaphoreEntryStatus = 26 - PR_initiateDownloadSequence = 27 - PR_downloadSegment = 28 - PR_terminateDownloadSequence = 29 - PR_initiateUploadSequence = 30 - PR_uploadSegment = 31 - PR_terminateUploadSequence = 32 - PR_requestDomainDownload = 33 - PR_requestDomainUpload = 34 - PR_loadDomainContent = 35 - PR_storeDomainContent = 36 - PR_deleteDomain = 37 - PR_getDomainAttributes = 38 - PR_createProgramInvocation = 39 - PR_deleteProgramInvocation = 40 - PR_start = 41 - PR_stop = 42 - PR_resume = 43 - PR_reset = 44 - PR_kill = 45 - PR_getProgramInvocationAttributes = 46 - PR_obtainFile = 47 - PR_defineEventCondition = 48 - PR_deleteEventCondition = 49 - PR_getEventConditionAttributes = 50 - PR_reportEventConditionStatus = 51 - PR_alterEventConditionMonitoring = 52 - PR_triggerEvent = 53 - PR_defineEventAction = 54 - PR_deleteEventAction = 55 - PR_getEventActionAttributes = 56 - PR_reportEventActionStatus = 57 - PR_defineEventEnrollment = 58 - PR_deleteEventEnrollment = 59 - PR_alterEventEnrollment = 60 - PR_reportEventEnrollmentStatus = 61 - PR_getEventEnrollmentAttributes = 62 - PR_acknowledgeEventNotification = 63 - PR_getAlarmSummary = 64 - PR_getAlarmEnrollmentSummary = 65 - PR_readJournal = 66 - PR_writeJournal = 67 - PR_initializeJournal = 68 - PR_reportJournalStatus = 69 - PR_createJournal = 70 - PR_deleteJournal = 71 - PR_getCapabilityList = 72 - PR_fileOpen = 73 - PR_fileRead = 74 - PR_fileClose = 75 - PR_fileRename = 76 - PR_fileDelete = 77 - PR_fileDirectory = 78 - PR_additionalService = 79 - PR_getDataExchangeAttributes = 80 - PR_exchangeData = 81 - PR_defineAccessControlList = 82 - PR_getAccessControlListAttributes = 83 - PR_reportAccessControlledObjects = 84 - PR_deleteAccessControlList = 85 - PR_changeAccessControl = 86 - - @property - def present(self) -> PRESENT: ... - status: Status_Response | None - getNameList: GetNameList_Response | None - identify: Identify_Response | None - @property - def rename(self) -> Rename_Response | None: ... - @rename.setter - def rename(self, value: Rename_Response | None | None) -> None: ... - read: Read_Response | None - @property - def write(self) -> Write_Response | None: ... - @write.setter - def write(self, value: Write_Response | list | None) -> None: ... - getVariableAccessAttributes: GetVariableAccessAttributes_Response | None - @property - def defineNamedVariable(self) -> DefineNamedVariable_Response | None: ... - @defineNamedVariable.setter - def defineNamedVariable(self, value: DefineNamedVariable_Response | None | None) -> None: ... - @property - def defineScatteredAccess(self) -> DefineScatteredAccess_Response | None: ... - @defineScatteredAccess.setter - def defineScatteredAccess(self, value: DefineScatteredAccess_Response | None | None) -> None: ... - getScatteredAccessAttributes: GetScatteredAccessAttributes_Response | None - deleteVariableAccess: DeleteVariableAccess_Response | None - @property - def defineNamedVariableList(self) -> DefineNamedVariableList_Response | None: ... - @defineNamedVariableList.setter - def defineNamedVariableList(self, value: DefineNamedVariableList_Response | None | None) -> None: ... - getNamedVariableListAttributes: GetNamedVariableListAttributes_Response | None - deleteNamedVariableList: DeleteNamedVariableList_Response | None - @property - def defineNamedType(self) -> DefineNamedType_Response | None: ... - @defineNamedType.setter - def defineNamedType(self, value: DefineNamedType_Response | None | None) -> None: ... - getNamedTypeAttributes: GetNamedTypeAttributes_Response | None - deleteNamedType: DeleteNamedType_Response | None - input: Input_Response | None - @property - def output(self) -> Output_Response | None: ... - @output.setter - def output(self, value: Output_Response | None | None) -> None: ... - takeControl: TakeControl_Response | None - @property - def relinquishControl(self) -> RelinquishControl_Response | None: ... - @relinquishControl.setter - def relinquishControl(self, value: RelinquishControl_Response | None | None) -> None: ... - @property - def defineSemaphore(self) -> DefineSemaphore_Response | None: ... - @defineSemaphore.setter - def defineSemaphore(self, value: DefineSemaphore_Response | None | None) -> None: ... - @property - def deleteSemaphore(self) -> DeleteSemaphore_Response | None: ... - @deleteSemaphore.setter - def deleteSemaphore(self, value: DeleteSemaphore_Response | None | None) -> None: ... - reportSemaphoreStatus: ReportSemaphoreStatus_Response | None - reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Response | None - reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Response | None - @property - def initiateDownloadSequence(self) -> InitiateDownloadSequence_Response | None: ... - @initiateDownloadSequence.setter - def initiateDownloadSequence(self, value: InitiateDownloadSequence_Response | None | None) -> None: ... - downloadSegment: DownloadSegment_Response | None - @property - def terminateDownloadSequence(self) -> TerminateDownloadSequence_Response | None: ... - @terminateDownloadSequence.setter - def terminateDownloadSequence(self, value: TerminateDownloadSequence_Response | None | None) -> None: ... - initiateUploadSequence: InitiateUploadSequence_Response | None - uploadSegment: UploadSegment_Response | None - @property - def terminateUploadSequence(self) -> TerminateUploadSequence_Response | None: ... - @terminateUploadSequence.setter - def terminateUploadSequence(self, value: TerminateUploadSequence_Response | None | None) -> None: ... - @property - def requestDomainDownload(self) -> RequestDomainDownload_Response | None: ... - @requestDomainDownload.setter - def requestDomainDownload(self, value: RequestDomainDownload_Response | None | None) -> None: ... - @property - def requestDomainUpload(self) -> RequestDomainUpload_Response | None: ... - @requestDomainUpload.setter - def requestDomainUpload(self, value: RequestDomainUpload_Response | None | None) -> None: ... - @property - def loadDomainContent(self) -> LoadDomainContent_Response | None: ... - @loadDomainContent.setter - def loadDomainContent(self, value: LoadDomainContent_Response | None | None) -> None: ... - @property - def storeDomainContent(self) -> StoreDomainContent_Response | None: ... - @storeDomainContent.setter - def storeDomainContent(self, value: StoreDomainContent_Response | None | None) -> None: ... - @property - def deleteDomain(self) -> DeleteDomain_Response | None: ... - @deleteDomain.setter - def deleteDomain(self, value: DeleteDomain_Response | None | None) -> None: ... - getDomainAttributes: GetDomainAttributes_Response | None - @property - def createProgramInvocation(self) -> CreateProgramInvocation_Response | None: ... - @createProgramInvocation.setter - def createProgramInvocation(self, value: CreateProgramInvocation_Response | None | None) -> None: ... - @property - def deleteProgramInvocation(self) -> DeleteProgramInvocation_Response | None: ... - @deleteProgramInvocation.setter - def deleteProgramInvocation(self, value: DeleteProgramInvocation_Response | None | None) -> None: ... - @property - def start(self) -> Start_Response | None: ... - @start.setter - def start(self, value: Start_Response | None | None) -> None: ... - @property - def stop(self) -> Stop_Response | None: ... - @stop.setter - def stop(self, value: Stop_Response | None | None) -> None: ... - @property - def resume(self) -> Resume_Response | None: ... - @resume.setter - def resume(self, value: Resume_Response | None | None) -> None: ... - @property - def reset(self) -> Reset_Response | None: ... - @reset.setter - def reset(self, value: Reset_Response | None | None) -> None: ... - @property - def kill(self) -> Kill_Response | None: ... - @kill.setter - def kill(self, value: Kill_Response | None | None) -> None: ... - getProgramInvocationAttributes: GetProgramInvocationAttributes_Response | None - @property - def obtainFile(self) -> ObtainFile_Response | None: ... - @obtainFile.setter - def obtainFile(self, value: ObtainFile_Response | None | None) -> None: ... - @property - def defineEventCondition(self) -> DefineEventCondition_Response | None: ... - @defineEventCondition.setter - def defineEventCondition(self, value: DefineEventCondition_Response | None | None) -> None: ... - deleteEventCondition: DeleteEventCondition_Response | None - getEventConditionAttributes: GetEventConditionAttributes_Response | None - reportEventConditionStatus: ReportEventConditionStatus_Response | None - @property - def alterEventConditionMonitoring(self) -> AlterEventConditionMonitoring_Response | None: ... - @alterEventConditionMonitoring.setter - def alterEventConditionMonitoring(self, value: AlterEventConditionMonitoring_Response | None | None) -> None: ... - @property - def triggerEvent(self) -> TriggerEvent_Response | None: ... - @triggerEvent.setter - def triggerEvent(self, value: TriggerEvent_Response | None | None) -> None: ... - @property - def defineEventAction(self) -> DefineEventAction_Response | None: ... - @defineEventAction.setter - def defineEventAction(self, value: DefineEventAction_Response | None | None) -> None: ... - deleteEventAction: DeleteEventAction_Response | None - getEventActionAttributes: GetEventActionAttributes_Response | None - reportEventActionStatus: ReportEventActionStatus_Response | None - @property - def defineEventEnrollment(self) -> DefineEventEnrollment_Response | None: ... - @defineEventEnrollment.setter - def defineEventEnrollment(self, value: DefineEventEnrollment_Response | None | None) -> None: ... - deleteEventEnrollment: DeleteEventEnrollment_Response | None - alterEventEnrollment: AlterEventEnrollment_Response | None - reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Response | None - getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Response | None - @property - def acknowledgeEventNotification(self) -> AcknowledgeEventNotification_Response | None: ... - @acknowledgeEventNotification.setter - def acknowledgeEventNotification(self, value: AcknowledgeEventNotification_Response | None | None) -> None: ... - getAlarmSummary: GetAlarmSummary_Response | None - getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Response | None - readJournal: ReadJournal_Response | None - @property - def writeJournal(self) -> WriteJournal_Response | None: ... - @writeJournal.setter - def writeJournal(self, value: WriteJournal_Response | None | None) -> None: ... - initializeJournal: InitializeJournal_Response | None - reportJournalStatus: ReportJournalStatus_Response | None - @property - def createJournal(self) -> CreateJournal_Response | None: ... - @createJournal.setter - def createJournal(self, value: CreateJournal_Response | None | None) -> None: ... - @property - def deleteJournal(self) -> DeleteJournal_Response | None: ... - @deleteJournal.setter - def deleteJournal(self, value: DeleteJournal_Response | None | None) -> None: ... - getCapabilityList: GetCapabilityList_Response | None - fileOpen: FileOpen_Response | None - fileRead: FileRead_Response | None - @property - def fileClose(self) -> FileClose_Response | None: ... - @fileClose.setter - def fileClose(self, value: FileClose_Response | None | None) -> None: ... - @property - def fileRename(self) -> FileRename_Response | None: ... - @fileRename.setter - def fileRename(self, value: FileRename_Response | None | None) -> None: ... - @property - def fileDelete(self) -> FileDelete_Response | None: ... - @fileDelete.setter - def fileDelete(self, value: FileDelete_Response | None | None) -> None: ... - fileDirectory: FileDirectory_Response | None - additionalService: AdditionalService_Response | None - getDataExchangeAttributes: GetDataExchangeAttributes_Response | None - exchangeData: ExchangeData_Response | None - @property - def defineAccessControlList(self) -> DefineAccessControlList_Response | None: ... - @defineAccessControlList.setter - def defineAccessControlList(self, value: DefineAccessControlList_Response | None | None) -> None: ... - getAccessControlListAttributes: GetAccessControlListAttributes_Response | None - reportAccessControlledObjects: ReportAccessControlledObjects_Response | None - @property - def deleteAccessControlList(self) -> DeleteAccessControlList_Response | None: ... - @deleteAccessControlList.setter - def deleteAccessControlList(self, value: DeleteAccessControlList_Response | None | None) -> None: ... - changeAccessControl: ChangeAccessControl_Response | None - def __init__( - self, /, *, - status: Status_Response = ..., - getNameList: GetNameList_Response = ..., - identify: Identify_Response = ..., - rename: Rename_Response = ..., - read: Read_Response = ..., - write: Write_Response = ..., - getVariableAccessAttributes: GetVariableAccessAttributes_Response = ..., - defineNamedVariable: DefineNamedVariable_Response = ..., - defineScatteredAccess: DefineScatteredAccess_Response = ..., - getScatteredAccessAttributes: GetScatteredAccessAttributes_Response = ..., - deleteVariableAccess: DeleteVariableAccess_Response = ..., - defineNamedVariableList: DefineNamedVariableList_Response = ..., - getNamedVariableListAttributes: GetNamedVariableListAttributes_Response = ..., - deleteNamedVariableList: DeleteNamedVariableList_Response = ..., - defineNamedType: DefineNamedType_Response = ..., - getNamedTypeAttributes: GetNamedTypeAttributes_Response = ..., - deleteNamedType: DeleteNamedType_Response = ..., - input: Input_Response = ..., - output: Output_Response = ..., - takeControl: TakeControl_Response = ..., - relinquishControl: RelinquishControl_Response = ..., - defineSemaphore: DefineSemaphore_Response = ..., - deleteSemaphore: DeleteSemaphore_Response = ..., - reportSemaphoreStatus: ReportSemaphoreStatus_Response = ..., - reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Response = ..., - reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Response = ..., - initiateDownloadSequence: InitiateDownloadSequence_Response = ..., - downloadSegment: DownloadSegment_Response = ..., - terminateDownloadSequence: TerminateDownloadSequence_Response = ..., - initiateUploadSequence: InitiateUploadSequence_Response = ..., - uploadSegment: UploadSegment_Response = ..., - terminateUploadSequence: TerminateUploadSequence_Response = ..., - requestDomainDownload: RequestDomainDownload_Response = ..., - requestDomainUpload: RequestDomainUpload_Response = ..., - loadDomainContent: LoadDomainContent_Response = ..., - storeDomainContent: StoreDomainContent_Response = ..., - deleteDomain: DeleteDomain_Response = ..., - getDomainAttributes: GetDomainAttributes_Response = ..., - createProgramInvocation: CreateProgramInvocation_Response = ..., - deleteProgramInvocation: DeleteProgramInvocation_Response = ..., - start: Start_Response = ..., - stop: Stop_Response = ..., - resume: Resume_Response = ..., - reset: Reset_Response = ..., - kill: Kill_Response = ..., - getProgramInvocationAttributes: GetProgramInvocationAttributes_Response = ..., - obtainFile: ObtainFile_Response = ..., - defineEventCondition: DefineEventCondition_Response = ..., - deleteEventCondition: DeleteEventCondition_Response = ..., - getEventConditionAttributes: GetEventConditionAttributes_Response = ..., - reportEventConditionStatus: ReportEventConditionStatus_Response = ..., - alterEventConditionMonitoring: AlterEventConditionMonitoring_Response = ..., - triggerEvent: TriggerEvent_Response = ..., - defineEventAction: DefineEventAction_Response = ..., - deleteEventAction: DeleteEventAction_Response = ..., - getEventActionAttributes: GetEventActionAttributes_Response = ..., - reportEventActionStatus: ReportEventActionStatus_Response = ..., - defineEventEnrollment: DefineEventEnrollment_Response = ..., - deleteEventEnrollment: DeleteEventEnrollment_Response = ..., - alterEventEnrollment: AlterEventEnrollment_Response = ..., - reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Response = ..., - getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Response = ..., - acknowledgeEventNotification: AcknowledgeEventNotification_Response = ..., - getAlarmSummary: GetAlarmSummary_Response = ..., - getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Response = ..., - readJournal: ReadJournal_Response = ..., - writeJournal: WriteJournal_Response = ..., - initializeJournal: InitializeJournal_Response = ..., - reportJournalStatus: ReportJournalStatus_Response = ..., - createJournal: CreateJournal_Response = ..., - deleteJournal: DeleteJournal_Response = ..., - getCapabilityList: GetCapabilityList_Response = ..., - fileOpen: FileOpen_Response = ..., - fileRead: FileRead_Response = ..., - fileClose: FileClose_Response = ..., - fileRename: FileRename_Response = ..., - fileDelete: FileDelete_Response = ..., - fileDirectory: FileDirectory_Response = ..., - additionalService: AdditionalService_Response = ..., - getDataExchangeAttributes: GetDataExchangeAttributes_Response = ..., - exchangeData: ExchangeData_Response = ..., - defineAccessControlList: DefineAccessControlList_Response = ..., - getAccessControlListAttributes: GetAccessControlListAttributes_Response = ..., - reportAccessControlledObjects: ReportAccessControlledObjects_Response = ..., - deleteAccessControlList: DeleteAccessControlList_Response = ..., - changeAccessControl: ChangeAccessControl_Response = ..., - ) -> None: ... - -class AdditionalService_Response(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_vMDStop = 1 - PR_vMDReset = 2 - PR_select = 3 - PR_alterPI = 4 - PR_initiateUCLoad = 5 - PR_uCLoad = 6 - PR_uCUpload = 7 - PR_startUC = 8 - PR_stopUC = 9 - PR_createUC = 10 - PR_addToUC = 11 - PR_removeFromUC = 12 - PR_getUCAttributes = 13 - PR_loadUCFromFile = 14 - PR_storeUCToFile = 15 - PR_deleteUC = 16 - PR_defineECL = 17 - PR_deleteECL = 18 - PR_addECLReference = 19 - PR_removeECLReference = 20 - PR_getECLAttributes = 21 - PR_reportECLStatus = 22 - PR_alterECLMonitoring = 23 - - @property - def present(self) -> PRESENT: ... - @property - def vMDStop(self) -> VMDStop_Response | None: ... - @vMDStop.setter - def vMDStop(self, value: VMDStop_Response | None | None) -> None: ... - vMDReset: VMDReset_Response | None - @property - def select(self) -> Select_Response | None: ... - @select.setter - def select(self, value: Select_Response | None | None) -> None: ... - @property - def alterPI(self) -> AlterProgramInvocationAttributes_Response | None: ... - @alterPI.setter - def alterPI(self, value: AlterProgramInvocationAttributes_Response | None | None) -> None: ... - @property - def initiateUCLoad(self) -> InitiateUnitControlLoad_Response | None: ... - @initiateUCLoad.setter - def initiateUCLoad(self, value: InitiateUnitControlLoad_Response | None | None) -> None: ... - uCLoad: UnitControlLoadSegment_Response | None - uCUpload: UnitControlUpload_Response | None - @property - def startUC(self) -> StartUnitControl_Response | None: ... - @startUC.setter - def startUC(self, value: StartUnitControl_Response | None | None) -> None: ... - @property - def stopUC(self) -> StopUnitControl_Response | None: ... - @stopUC.setter - def stopUC(self, value: StopUnitControl_Response | None | None) -> None: ... - @property - def createUC(self) -> CreateUnitControl_Response | None: ... - @createUC.setter - def createUC(self, value: CreateUnitControl_Response | None | None) -> None: ... - @property - def addToUC(self) -> AddToUnitControl_Response | None: ... - @addToUC.setter - def addToUC(self, value: AddToUnitControl_Response | None | None) -> None: ... - @property - def removeFromUC(self) -> RemoveFromUnitControl_Response | None: ... - @removeFromUC.setter - def removeFromUC(self, value: RemoveFromUnitControl_Response | None | None) -> None: ... - getUCAttributes: GetUnitControlAttributes_Response | None - @property - def loadUCFromFile(self) -> LoadUnitControlFromFile_Response | None: ... - @loadUCFromFile.setter - def loadUCFromFile(self, value: LoadUnitControlFromFile_Response | None | None) -> None: ... - @property - def storeUCToFile(self) -> StoreUnitControlToFile_Response | None: ... - @storeUCToFile.setter - def storeUCToFile(self, value: StoreUnitControlToFile_Response | None | None) -> None: ... - @property - def deleteUC(self) -> DeleteUnitControl_Response | None: ... - @deleteUC.setter - def deleteUC(self, value: DeleteUnitControl_Response | None | None) -> None: ... - @property - def defineECL(self) -> DefineEventConditionList_Response | None: ... - @defineECL.setter - def defineECL(self, value: DefineEventConditionList_Response | None | None) -> None: ... - @property - def deleteECL(self) -> DeleteEventConditionList_Response | None: ... - @deleteECL.setter - def deleteECL(self, value: DeleteEventConditionList_Response | None | None) -> None: ... - @property - def addECLReference(self) -> AddEventConditionListReference_Response | None: ... - @addECLReference.setter - def addECLReference(self, value: AddEventConditionListReference_Response | None | None) -> None: ... - @property - def removeECLReference(self) -> RemoveEventConditionListReference_Response | None: ... - @removeECLReference.setter - def removeECLReference(self, value: RemoveEventConditionListReference_Response | None | None) -> None: ... - getECLAttributes: GetEventConditionListAttributes_Response | None - reportECLStatus: ReportEventConditionListStatus_Response | None - @property - def alterECLMonitoring(self) -> AlterEventConditionListMonitoring_Response | None: ... - @alterECLMonitoring.setter - def alterECLMonitoring(self, value: AlterEventConditionListMonitoring_Response | None | None) -> None: ... - def __init__( - self, /, *, - vMDStop: VMDStop_Response = ..., - vMDReset: VMDReset_Response = ..., - select: Select_Response = ..., - alterPI: AlterProgramInvocationAttributes_Response = ..., - initiateUCLoad: InitiateUnitControlLoad_Response = ..., - uCLoad: UnitControlLoadSegment_Response = ..., - uCUpload: UnitControlUpload_Response = ..., - startUC: StartUnitControl_Response = ..., - stopUC: StopUnitControl_Response = ..., - createUC: CreateUnitControl_Response = ..., - addToUC: AddToUnitControl_Response = ..., - removeFromUC: RemoveFromUnitControl_Response = ..., - getUCAttributes: GetUnitControlAttributes_Response = ..., - loadUCFromFile: LoadUnitControlFromFile_Response = ..., - storeUCToFile: StoreUnitControlToFile_Response = ..., - deleteUC: DeleteUnitControl_Response = ..., - defineECL: DefineEventConditionList_Response = ..., - deleteECL: DeleteEventConditionList_Response = ..., - addECLReference: AddEventConditionListReference_Response = ..., - removeECLReference: RemoveEventConditionListReference_Response = ..., - getECLAttributes: GetEventConditionListAttributes_Response = ..., - reportECLStatus: ReportEventConditionListStatus_Response = ..., - alterECLMonitoring: AlterEventConditionListMonitoring_Response = ..., - ) -> None: ... - -class Response_Detail(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_otherRequests = 1 - PR_status = 2 - PR_getProgramInvocationAttributes = 3 - PR_getEventConditionAttributes = 4 - - @property - def present(self) -> PRESENT: ... - otherRequests: None | None - status: CS_Status_Response | None - getProgramInvocationAttributes: CS_GetProgramInvocationAttributes_Response | None - getEventConditionAttributes: CS_GetEventConditionAttributes_Response | None - def __init__( - self, /, *, - otherRequests: None = ..., - status: CS_Status_Response = ..., - getProgramInvocationAttributes: CS_GetProgramInvocationAttributes_Response = ..., - getEventConditionAttributes: CS_GetEventConditionAttributes_Response = ..., - ) -> None: ... - -class ServiceError(_Asn1Type): # SEQUENCE - - class errorClass_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_vmd_state = 1 - PR_application_reference = 2 - PR_definition = 3 - PR_resource = 4 - PR_service = 5 - PR_service_preempt = 6 - PR_time_resolution = 7 - PR_access = 8 - PR_initiate = 9 - PR_conclude = 10 - PR_cancel = 11 - PR_file = 12 - PR_others = 13 - - @property - def present(self) -> PRESENT: ... - - class vmd_state_VALUES(EXT_IntEnum): - V_other = 0 - V_vmd_state_conflict = 1 - V_vmd_operational_problem = 2 - V_domain_transfer_problem = 3 - V_state_machine_id_invalid = 4 - - vmd_state: vmd_state_VALUES | None - - class application_reference_VALUES(EXT_IntEnum): - V_other = 0 - V_application_unreachable = 1 - V_connection_lost = 2 - V_application_reference_invalid = 3 - V_context_unsupported = 4 - - application_reference: application_reference_VALUES | None - - class definition_VALUES(EXT_IntEnum): - V_other = 0 - V_object_undefined = 1 - V_invalid_address = 2 - V_type_unsupported = 3 - V_type_inconsistent = 4 - V_object_exists = 5 - V_object_attribute_inconsistent = 6 - - definition: definition_VALUES | None - - class resource_VALUES(EXT_IntEnum): - V_other = 0 - V_memory_unavailable = 1 - V_processor_resource_unavailable = 2 - V_mass_storage_unavailable = 3 - V_capability_unavailable = 4 - V_capability_unknown = 5 - - resource: resource_VALUES | None - - class service_VALUES(EXT_IntEnum): - V_other = 0 - V_primitives_out_of_sequence = 1 - V_object_state_conflict = 2 - V_pdu_size = 3 - V_continuation_invalid = 4 - V_object_constraint_conflict = 5 - - service: service_VALUES | None - - class service_preempt_VALUES(EXT_IntEnum): - V_other = 0 - V_timeout = 1 - V_deadlock = 2 - V_cancel = 3 - - service_preempt: service_preempt_VALUES | None - - class time_resolution_VALUES(EXT_IntEnum): - V_other = 0 - V_unsupportable_time_resolution = 1 - - time_resolution: time_resolution_VALUES | None - - class access_VALUES(EXT_IntEnum): - V_other = 0 - V_object_access_unsupported = 1 - V_object_non_existent = 2 - V_object_access_denied = 3 - V_object_invalidated = 4 - - access: access_VALUES | None - - class initiate_VALUES(EXT_IntEnum): - V_other = 0 - V_max_services_outstanding_calling_insufficient = 3 - V_max_services_outstanding_called_insufficient = 4 - V_service_CBB_insufficient = 5 - V_parameter_CBB_insufficient = 6 - V_nesting_level_insufficient = 7 - - initiate: initiate_VALUES | None - - class conclude_VALUES(EXT_IntEnum): - V_other = 0 - V_further_communication_required = 1 - - conclude: conclude_VALUES | None - - class cancel_VALUES(EXT_IntEnum): - V_other = 0 - V_invoke_id_unknown = 1 - V_cancel_not_possible = 2 - - cancel: cancel_VALUES | None - - class file_VALUES(EXT_IntEnum): - V_other = 0 - V_filename_ambiguous = 1 - V_file_busy = 2 - V_filename_syntax_error = 3 - V_content_type_invalid = 4 - V_position_invalid = 5 - V_file_access_denied = 6 - V_file_non_existent = 7 - V_duplicate_filename = 8 - V_insufficient_space_in_filestore = 9 - - file: file_VALUES | None - others: int | None - def __init__( - self, /, *, - vmd_state: vmd_state_VALUES = ..., - application_reference: application_reference_VALUES = ..., - definition: definition_VALUES = ..., - resource: resource_VALUES = ..., - service: service_VALUES = ..., - service_preempt: service_preempt_VALUES = ..., - time_resolution: time_resolution_VALUES = ..., - access: access_VALUES = ..., - initiate: initiate_VALUES = ..., - conclude: conclude_VALUES = ..., - cancel: cancel_VALUES = ..., - file: file_VALUES = ..., - others: int = ..., - ) -> None: ... - - errorClass: errorClass_TYPE - - class serviceSpecificInfo_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_obtainFile = 1 - PR_start = 2 - PR_stop = 3 - PR_resume = 4 - PR_reset = 5 - PR_deleteVariableAccess = 6 - PR_deleteNamedVariableList = 7 - PR_deleteNamedType = 8 - PR_defineEventEnrollment_Error = 9 - PR_fileRename = 10 - PR_additionalService = 11 - PR_changeAccessControl = 12 - - @property - def present(self) -> PRESENT: ... - @property - def obtainFile(self) -> ObtainFile_Error | None: ... - @obtainFile.setter - def obtainFile(self, value: ObtainFile_Error | int | None) -> None: ... - start: Start_Error | None - stop: Stop_Error | None - resume: Resume_Error | None - reset: Reset_Error | None - deleteVariableAccess: DeleteVariableAccess_Error | None - deleteNamedVariableList: DeleteNamedVariableList_Error | None - deleteNamedType: DeleteNamedType_Error | None - defineEventEnrollment_Error: DefineEventEnrollment_Error | None - @property - def fileRename(self) -> FileRename_Error | None: ... - @fileRename.setter - def fileRename(self, value: FileRename_Error | int | None) -> None: ... - additionalService: AdditionalService_Error | None - changeAccessControl: ChangeAccessControl_Error | None - def __init__( - self, /, *, - obtainFile: ObtainFile_Error = ..., - start: Start_Error = ..., - stop: Stop_Error = ..., - resume: Resume_Error = ..., - reset: Reset_Error = ..., - deleteVariableAccess: DeleteVariableAccess_Error = ..., - deleteNamedVariableList: DeleteNamedVariableList_Error = ..., - deleteNamedType: DeleteNamedType_Error = ..., - defineEventEnrollment_Error: DefineEventEnrollment_Error = ..., - fileRename: FileRename_Error = ..., - additionalService: AdditionalService_Error = ..., - changeAccessControl: ChangeAccessControl_Error = ..., - ) -> None: ... - - serviceSpecificInfo: serviceSpecificInfo_TYPE | None - additionalCode: int | None - additionalDescription: str | None - def __init__( - self, /, *, - errorClass: errorClass_TYPE = ..., - additionalCode: int = ..., - additionalDescription: str = ..., - serviceSpecificInfo: serviceSpecificInfo_TYPE = ..., - ) -> None: ... - -class AdditionalService_Error(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_defineEcl = 1 - PR_addECLReference = 2 - PR_removeECLReference = 3 - PR_initiateUC = 4 - PR_startUC = 5 - PR_stopUC = 6 - PR_deleteUC = 7 - PR_loadUCFromFile = 8 - - @property - def present(self) -> PRESENT: ... - defineEcl: DefineEventConditionList_Error | None - addECLReference: AddEventConditionListReference_Error | None - removeECLReference: RemoveEventConditionListReference_Error | None - initiateUC: InitiateUnitControl_Error | None - startUC: StartUnitControl_Error | None - stopUC: StopUnitControl_Error | None - deleteUC: DeleteUnitControl_Error | None - loadUCFromFile: LoadUnitControlFromFile_Error | None - def __init__( - self, /, *, - defineEcl: DefineEventConditionList_Error = ..., - addECLReference: AddEventConditionListReference_Error = ..., - removeECLReference: RemoveEventConditionListReference_Error = ..., - initiateUC: InitiateUnitControl_Error = ..., - startUC: StartUnitControl_Error = ..., - stopUC: StopUnitControl_Error = ..., - deleteUC: DeleteUnitControl_Error = ..., - loadUCFromFile: LoadUnitControlFromFile_Error = ..., - ) -> None: ... - -class Initiate_RequestPDU(_Asn1Type): # SEQUENCE - - class initRequestDetail_TYPE(_Asn1Type): # SEQUENCE - @property - def proposedVersionNumber(self) -> Integer16: ... - @proposedVersionNumber.setter - def proposedVersionNumber(self, value: Integer16 | int) -> None: ... - @property - def proposedParameterCBB(self) -> ParameterSupportOptions: ... - @proposedParameterCBB.setter - def proposedParameterCBB(self, value: ParameterSupportOptions | EXT_bitarray | int | bytes) -> None: ... - @property - def servicesSupportedCalling(self) -> ServiceSupportOptions: ... - @servicesSupportedCalling.setter - def servicesSupportedCalling(self, value: ServiceSupportOptions | EXT_bitarray | int | bytes) -> None: ... - @property - def additionalSupportedCalling(self) -> AdditionalSupportOptions | None: ... - @additionalSupportedCalling.setter - def additionalSupportedCalling(self, value: AdditionalSupportOptions | EXT_bitarray | int | bytes | None) -> None: ... - @property - def additionalCbbSupportedCalling(self) -> AdditionalCBBOptions | None: ... - @additionalCbbSupportedCalling.setter - def additionalCbbSupportedCalling(self, value: AdditionalCBBOptions | EXT_bitarray | int | bytes | None) -> None: ... - privilegeClassIdentityCalling: str | None - def __init__( - self, /, *, - proposedVersionNumber: Integer16 = ..., - proposedParameterCBB: ParameterSupportOptions = ..., - servicesSupportedCalling: ServiceSupportOptions = ..., - additionalSupportedCalling: AdditionalSupportOptions = ..., - additionalCbbSupportedCalling: AdditionalCBBOptions = ..., - privilegeClassIdentityCalling: str = ..., - ) -> None: ... - - initRequestDetail: initRequestDetail_TYPE - @property - def localDetailCalling(self) -> Integer32 | None: ... - @localDetailCalling.setter - def localDetailCalling(self, value: Integer32 | int | None) -> None: ... - @property - def proposedMaxServOutstandingCalling(self) -> Integer16: ... - @proposedMaxServOutstandingCalling.setter - def proposedMaxServOutstandingCalling(self, value: Integer16 | int) -> None: ... - @property - def proposedMaxServOutstandingCalled(self) -> Integer16: ... - @proposedMaxServOutstandingCalled.setter - def proposedMaxServOutstandingCalled(self, value: Integer16 | int) -> None: ... - @property - def proposedDataStructureNestingLevel(self) -> Integer8 | None: ... - @proposedDataStructureNestingLevel.setter - def proposedDataStructureNestingLevel(self, value: Integer8 | int | None) -> None: ... - def __init__( - self, /, *, - localDetailCalling: Integer32 = ..., - proposedMaxServOutstandingCalling: Integer16 = ..., - proposedMaxServOutstandingCalled: Integer16 = ..., - proposedDataStructureNestingLevel: Integer8 = ..., - initRequestDetail: initRequestDetail_TYPE = ..., - ) -> None: ... - -class Initiate_ResponsePDU(_Asn1Type): # SEQUENCE - - class initResponseDetail_TYPE(_Asn1Type): # SEQUENCE - @property - def negotiatedVersionNumber(self) -> Integer16: ... - @negotiatedVersionNumber.setter - def negotiatedVersionNumber(self, value: Integer16 | int) -> None: ... - @property - def negotiatedParameterCBB(self) -> ParameterSupportOptions: ... - @negotiatedParameterCBB.setter - def negotiatedParameterCBB(self, value: ParameterSupportOptions | EXT_bitarray | int | bytes) -> None: ... - @property - def servicesSupportedCalled(self) -> ServiceSupportOptions: ... - @servicesSupportedCalled.setter - def servicesSupportedCalled(self, value: ServiceSupportOptions | EXT_bitarray | int | bytes) -> None: ... - @property - def additionalSupportedCalled(self) -> AdditionalSupportOptions | None: ... - @additionalSupportedCalled.setter - def additionalSupportedCalled(self, value: AdditionalSupportOptions | EXT_bitarray | int | bytes | None) -> None: ... - @property - def additionalCbbSupportedCalled(self) -> AdditionalCBBOptions | None: ... - @additionalCbbSupportedCalled.setter - def additionalCbbSupportedCalled(self, value: AdditionalCBBOptions | EXT_bitarray | int | bytes | None) -> None: ... - privilegeClassIdentityCalled: str | None - def __init__( - self, /, *, - negotiatedVersionNumber: Integer16 = ..., - negotiatedParameterCBB: ParameterSupportOptions = ..., - servicesSupportedCalled: ServiceSupportOptions = ..., - additionalSupportedCalled: AdditionalSupportOptions = ..., - additionalCbbSupportedCalled: AdditionalCBBOptions = ..., - privilegeClassIdentityCalled: str = ..., - ) -> None: ... - - initResponseDetail: initResponseDetail_TYPE - @property - def localDetailCalled(self) -> Integer32 | None: ... - @localDetailCalled.setter - def localDetailCalled(self, value: Integer32 | int | None) -> None: ... - @property - def negotiatedMaxServOutstandingCalling(self) -> Integer16: ... - @negotiatedMaxServOutstandingCalling.setter - def negotiatedMaxServOutstandingCalling(self, value: Integer16 | int) -> None: ... - @property - def negotiatedMaxServOutstandingCalled(self) -> Integer16: ... - @negotiatedMaxServOutstandingCalled.setter - def negotiatedMaxServOutstandingCalled(self, value: Integer16 | int) -> None: ... - @property - def negotiatedDataStructureNestingLevel(self) -> Integer8 | None: ... - @negotiatedDataStructureNestingLevel.setter - def negotiatedDataStructureNestingLevel(self, value: Integer8 | int | None) -> None: ... - def __init__( - self, /, *, - localDetailCalled: Integer32 = ..., - negotiatedMaxServOutstandingCalling: Integer16 = ..., - negotiatedMaxServOutstandingCalled: Integer16 = ..., - negotiatedDataStructureNestingLevel: Integer8 = ..., - initResponseDetail: initResponseDetail_TYPE = ..., - ) -> None: ... - -class Initiate_ErrorPDU(_Asn1BasicType[ServiceError]): - pass - -class Conclude_RequestPDU(_Asn1BasicType[None]): - pass - -class Conclude_ResponsePDU(_Asn1BasicType[None]): - pass - -class Conclude_ErrorPDU(_Asn1BasicType[ServiceError]): - pass - -class Cancel_RequestPDU(_Asn1BasicType[Unsigned32]): - pass - -class Cancel_ResponsePDU(_Asn1BasicType[Unsigned32]): - pass - -class Cancel_ErrorPDU(_Asn1Type): # SEQUENCE - @property - def originalInvokeID(self) -> Unsigned32: ... - @originalInvokeID.setter - def originalInvokeID(self, value: Unsigned32 | int) -> None: ... - serviceError: ServiceError - def __init__( - self, /, *, - originalInvokeID: Unsigned32 = ..., - serviceError: ServiceError = ..., - ) -> None: ... - -class RejectPDU(_Asn1Type): # SEQUENCE - - class rejectReason_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_confirmed_requestPDU = 1 - PR_confirmed_responsePDU = 2 - PR_confirmed_errorPDU = 3 - PR_unconfirmedPDU = 4 - PR_pdu_error = 5 - PR_cancel_requestPDU = 6 - PR_cancel_responsePDU = 7 - PR_cancel_errorPDU = 8 - PR_conclude_requestPDU = 9 - PR_conclude_responsePDU = 10 - PR_conclude_errorPDU = 11 - - @property - def present(self) -> PRESENT: ... - - class confirmed_requestPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_unrecognized_service = 1 - V_unrecognized_modifier = 2 - V_invalid_invokeID = 3 - V_invalid_argument = 4 - V_invalid_modifier = 5 - V_max_serv_outstanding_exceeded = 6 - V_max_recursion_exceeded = 8 - V_value_out_of_range = 9 - - confirmed_requestPDU: confirmed_requestPDU_VALUES | None - - class confirmed_responsePDU_VALUES(EXT_IntEnum): - V_other = 0 - V_unrecognized_service = 1 - V_invalid_invokeID = 2 - V_invalid_result = 3 - V_max_recursion_exceeded = 5 - V_value_out_of_range = 6 - - confirmed_responsePDU: confirmed_responsePDU_VALUES | None - - class confirmed_errorPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_unrecognized_service = 1 - V_invalid_invokeID = 2 - V_invalid_serviceError = 3 - V_value_out_of_range = 4 - - confirmed_errorPDU: confirmed_errorPDU_VALUES | None - - class unconfirmedPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_unrecognized_service = 1 - V_invalid_argument = 2 - V_max_recursion_exceeded = 3 - V_value_out_of_range = 4 - - unconfirmedPDU: unconfirmedPDU_VALUES | None - - class pdu_error_VALUES(EXT_IntEnum): - V_unknown_pdu_type = 0 - V_invalid_pdu = 1 - V_illegal_acse_mapping = 2 - - pdu_error: pdu_error_VALUES | None - - class cancel_requestPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_invalid_invokeID = 1 - - cancel_requestPDU: cancel_requestPDU_VALUES | None - - class cancel_responsePDU_VALUES(EXT_IntEnum): - V_other = 0 - V_invalid_invokeID = 1 - - cancel_responsePDU: cancel_responsePDU_VALUES | None - - class cancel_errorPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_invalid_invokeID = 1 - V_invalid_serviceError = 2 - V_value_out_of_range = 3 - - cancel_errorPDU: cancel_errorPDU_VALUES | None - - class conclude_requestPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_invalid_argument = 1 - - conclude_requestPDU: conclude_requestPDU_VALUES | None - - class conclude_responsePDU_VALUES(EXT_IntEnum): - V_other = 0 - V_invalid_result = 1 - - conclude_responsePDU: conclude_responsePDU_VALUES | None - - class conclude_errorPDU_VALUES(EXT_IntEnum): - V_other = 0 - V_invalid_serviceError = 1 - V_value_out_of_range = 2 - - conclude_errorPDU: conclude_errorPDU_VALUES | None - def __init__( - self, /, *, - confirmed_requestPDU: confirmed_requestPDU_VALUES = ..., - confirmed_responsePDU: confirmed_responsePDU_VALUES = ..., - confirmed_errorPDU: confirmed_errorPDU_VALUES = ..., - unconfirmedPDU: unconfirmedPDU_VALUES = ..., - pdu_error: pdu_error_VALUES = ..., - cancel_requestPDU: cancel_requestPDU_VALUES = ..., - cancel_responsePDU: cancel_responsePDU_VALUES = ..., - cancel_errorPDU: cancel_errorPDU_VALUES = ..., - conclude_requestPDU: conclude_requestPDU_VALUES = ..., - conclude_responsePDU: conclude_responsePDU_VALUES = ..., - conclude_errorPDU: conclude_errorPDU_VALUES = ..., - ) -> None: ... - - rejectReason: rejectReason_TYPE - @property - def originalInvokeID(self) -> Unsigned32 | None: ... - @originalInvokeID.setter - def originalInvokeID(self, value: Unsigned32 | int | None) -> None: ... - def __init__( - self, /, *, - originalInvokeID: Unsigned32 = ..., - rejectReason: rejectReason_TYPE = ..., - ) -> None: ... - -class DefineAccessControlList_Request(_Asn1Type): # SEQUENCE - - class accessControlListElements_TYPE(_Asn1Type): # SEQUENCE - readAccessCondition: AccessCondition | None - storeAccessCondition: AccessCondition | None - writeAccessCondition: AccessCondition | None - loadAccessCondition: AccessCondition | None - executeAccessCondition: AccessCondition | None - deleteAccessCondition: AccessCondition | None - editAccessCondition: AccessCondition | None - def __init__( - self, /, *, - readAccessCondition: AccessCondition = ..., - storeAccessCondition: AccessCondition = ..., - writeAccessCondition: AccessCondition = ..., - loadAccessCondition: AccessCondition = ..., - executeAccessCondition: AccessCondition = ..., - deleteAccessCondition: AccessCondition = ..., - editAccessCondition: AccessCondition = ..., - ) -> None: ... - - accessControlListElements: accessControlListElements_TYPE - @property - def accessControlListName(self) -> Identifier: ... - @accessControlListName.setter - def accessControlListName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - accessControlListName: Identifier = ..., - accessControlListElements: accessControlListElements_TYPE = ..., - ) -> None: ... - -class DefineAccessControlList_Response(_Asn1BasicType[None]): - pass - -class GetAccessControlListAttributes_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_accessControlListName = 1 - PR_vMD = 2 - PR_namedObject = 3 - - @property - def present(self) -> PRESENT: ... - - class namedObject_TYPE(_Asn1Type): # SEQUENCE - objectClass: ObjectClass - objectName: ObjectName - def __init__( - self, /, *, - objectClass: ObjectClass = ..., - objectName: ObjectName = ..., - ) -> None: ... - - namedObject: namedObject_TYPE - @property - def accessControlListName(self) -> Identifier | None: ... - @accessControlListName.setter - def accessControlListName(self, value: Identifier | str | None) -> None: ... - vMD: None | None - def __init__( - self, /, *, - accessControlListName: Identifier = ..., - vMD: None = ..., - namedObject: namedObject_TYPE = ..., - ) -> None: ... - -class GetAccessControlListAttributes_Response(_Asn1Type): # SEQUENCE - - class accessControlListElements_TYPE(_Asn1Type): # SEQUENCE - readAccessCondition: AccessCondition | None - storeAccessCondition: AccessCondition | None - writeAccessCondition: AccessCondition | None - loadAccessCondition: AccessCondition | None - executeAccessCondition: AccessCondition | None - deleteAccessCondition: AccessCondition | None - editAccessCondition: AccessCondition | None - def __init__( - self, /, *, - readAccessCondition: AccessCondition = ..., - storeAccessCondition: AccessCondition = ..., - writeAccessCondition: AccessCondition = ..., - loadAccessCondition: AccessCondition = ..., - executeAccessCondition: AccessCondition = ..., - deleteAccessCondition: AccessCondition = ..., - editAccessCondition: AccessCondition = ..., - ) -> None: ... - - accessControlListElements: accessControlListElements_TYPE - - class references_TYPE(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - objectClass: ObjectClass - objectCount: int - def __init__( - self, /, *, - objectClass: ObjectClass = ..., - objectCount: int = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - references: references_TYPE - @property - def name(self) -> Identifier: ... - @name.setter - def name(self, value: Identifier | str) -> None: ... - vMDuse: bool - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - name: Identifier = ..., - accessControlListElements: accessControlListElements_TYPE = ..., - vMDuse: bool = ..., - references: references_TYPE = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class ReportAccessControlledObjects_Request(_Asn1Type): # SEQUENCE - @property - def accessControlList(self) -> Identifier: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str) -> None: ... - objectClass: ObjectClass - continueAfter: ObjectName | None - def __init__( - self, /, *, - accessControlList: Identifier = ..., - objectClass: ObjectClass = ..., - continueAfter: ObjectName = ..., - ) -> None: ... - -class ReportAccessControlledObjects_Response(_Asn1Type): # SEQUENCE - - class listOfNames_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfNames: listOfNames_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfNames: listOfNames_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class DeleteAccessControlList_Request(_Asn1BasicType[Identifier]): - pass - -class DeleteAccessControlList_Response(_Asn1BasicType[None]): - pass - -class ChangeAccessControl_Request(_Asn1Type): # SEQUENCE - - class scopeOfChange_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_vMDOnly = 1 - PR_listOfObjects = 2 - - @property - def present(self) -> PRESENT: ... - - class listOfObjects_TYPE(_Asn1Type): # SEQUENCE - - class objectScope_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_specific = 1 - PR_aa_specific = 2 - PR_domain = 3 - PR_vmd = 4 - - @property - def present(self) -> PRESENT: ... - - class specific_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - specific: specific_TYPE - aa_specific: None | None - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - vmd: None | None - def __init__( - self, /, *, - specific: specific_TYPE = ..., - aa_specific: None = ..., - domain: Identifier = ..., - vmd: None = ..., - ) -> None: ... - - objectScope: objectScope_TYPE - objectClass: ObjectClass - def __init__( - self, /, *, - objectClass: ObjectClass = ..., - objectScope: objectScope_TYPE = ..., - ) -> None: ... - - listOfObjects: listOfObjects_TYPE - vMDOnly: None | None - def __init__( - self, /, *, - vMDOnly: None = ..., - listOfObjects: listOfObjects_TYPE = ..., - ) -> None: ... - - scopeOfChange: scopeOfChange_TYPE - @property - def accessControlListName(self) -> Identifier: ... - @accessControlListName.setter - def accessControlListName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - scopeOfChange: scopeOfChange_TYPE = ..., - accessControlListName: Identifier = ..., - ) -> None: ... - -class ChangeAccessControl_Response(_Asn1Type): # SEQUENCE - @property - def numberMatched(self) -> Unsigned32: ... - @numberMatched.setter - def numberMatched(self, value: Unsigned32 | int) -> None: ... - @property - def numberChanged(self) -> Unsigned32: ... - @numberChanged.setter - def numberChanged(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - numberMatched: Unsigned32 = ..., - numberChanged: Unsigned32 = ..., - ) -> None: ... - -class ChangeAccessControl_Error(_Asn1BasicType[Unsigned32]): - pass - -class StatusResponse(_Asn1Type): # SEQUENCE - - class vmdLogicalStatus_VALUES(EXT_IntEnum): - V_state_changes_allowed = 0 - V_no_state_changes_allowed = 1 - V_limited_services_permitted = 2 - V_support_services_allowed = 3 - - vmdLogicalStatus: vmdLogicalStatus_VALUES - - class vmdPhysicalStatus_VALUES(EXT_IntEnum): - V_operational = 0 - V_partially_operational = 1 - V_inoperable = 2 - V_needs_commissioning = 3 - - vmdPhysicalStatus: vmdPhysicalStatus_VALUES - - class localDetail_TYPE(_Asn1BitStrType): - pass - - @property - def localDetail(self) -> localDetail_TYPE | None: ... - @localDetail.setter - def localDetail(self, value: localDetail_TYPE | EXT_bitarray | bytes | None) -> None: ... - def __init__( - self, /, *, - vmdLogicalStatus: vmdLogicalStatus_VALUES = ..., - vmdPhysicalStatus: vmdPhysicalStatus_VALUES = ..., - localDetail: localDetail_TYPE | EXT_bitarray | bytes = ..., - ) -> None: ... - -class CS_Status_Response(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_fullResponse = 1 - PR_noExtraResponse = 2 - - @property - def present(self) -> PRESENT: ... - - class fullResponse_TYPE(_Asn1Type): # SEQUENCE - - class selectedProgramInvocation_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_programInvocation = 1 - PR_noneSelected = 2 - - @property - def present(self) -> PRESENT: ... - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - noneSelected: None | None - def __init__( - self, /, *, - programInvocation: Identifier = ..., - noneSelected: None = ..., - ) -> None: ... - - selectedProgramInvocation: selectedProgramInvocation_TYPE - @property - def operationState(self) -> OperationState: ... - @operationState.setter - def operationState(self, value: OperationState | int) -> None: ... - @property - def extendedStatus(self) -> ExtendedStatus: ... - @extendedStatus.setter - def extendedStatus(self, value: ExtendedStatus | EXT_bitarray | int | bytes) -> None: ... - @property - def extendedStatusMask(self) -> ExtendedStatus | None: ... - @extendedStatusMask.setter - def extendedStatusMask(self, value: ExtendedStatus | EXT_bitarray | int | bytes | None) -> None: ... - def __init__( - self, /, *, - operationState: OperationState = ..., - extendedStatus: ExtendedStatus = ..., - extendedStatusMask: ExtendedStatus = ..., - selectedProgramInvocation: selectedProgramInvocation_TYPE = ..., - ) -> None: ... - - fullResponse: fullResponse_TYPE - noExtraResponse: None | None - def __init__( - self, /, *, - fullResponse: fullResponse_TYPE = ..., - noExtraResponse: None = ..., - ) -> None: ... + def __init__(self, values: EXT_Iterable[str] | None = ...) -> None: ... + def __getitem__(self, index: int) -> str: ... + def __setitem__(self, index: int, value: str) -> None: ... + def add(self, value: str) -> None: ... + def extend(self, values: EXT_Iterable[str]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class MMSpdu(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_confirmed_RequestPDU = 1 + PR_confirmed_ResponsePDU = 2 + PR_confirmed_ErrorPDU = 3 + PR_unconfirmed_PDU = 4 + PR_rejectPDU = 5 + PR_cancel_RequestPDU = 6 + PR_cancel_ResponsePDU = 7 + PR_cancel_ErrorPDU = 8 + PR_initiate_RequestPDU = 9 + PR_initiate_ResponsePDU = 10 + PR_initiate_ErrorPDU = 11 + PR_conclude_RequestPDU = 12 + PR_conclude_ResponsePDU = 13 + PR_conclude_ErrorPDU = 14 + + @property + def present(self) -> PRESENT: ... + confirmed_RequestPDU: Confirmed_RequestPDU | None + confirmed_ResponsePDU: Confirmed_ResponsePDU | None + confirmed_ErrorPDU: Confirmed_ErrorPDU | None + unconfirmed_PDU: Unconfirmed_PDU | None + rejectPDU: RejectPDU | None + cancel_RequestPDU: Cancel_RequestPDU | None + cancel_ResponsePDU: Cancel_ResponsePDU | None + cancel_ErrorPDU: Cancel_ErrorPDU | None + initiate_RequestPDU: Initiate_RequestPDU | None + initiate_ResponsePDU: Initiate_ResponsePDU | None + initiate_ErrorPDU: Initiate_ErrorPDU | None + @property + def conclude_RequestPDU(self) -> Conclude_RequestPDU | None: ... + @conclude_RequestPDU.setter + def conclude_RequestPDU(self, value: Conclude_RequestPDU | None) -> None: ... + @property + def conclude_ResponsePDU(self) -> Conclude_ResponsePDU | None: ... + @conclude_ResponsePDU.setter + def conclude_ResponsePDU(self, value: Conclude_ResponsePDU | None) -> None: ... + conclude_ErrorPDU: Conclude_ErrorPDU | None + def __init__( + self, + /, + *, + confirmed_RequestPDU: Confirmed_RequestPDU = ..., + confirmed_ResponsePDU: Confirmed_ResponsePDU = ..., + confirmed_ErrorPDU: Confirmed_ErrorPDU = ..., + unconfirmed_PDU: Unconfirmed_PDU = ..., + rejectPDU: RejectPDU = ..., + cancel_RequestPDU: Cancel_RequestPDU = ..., + cancel_ResponsePDU: Cancel_ResponsePDU = ..., + cancel_ErrorPDU: Cancel_ErrorPDU = ..., + initiate_RequestPDU: Initiate_RequestPDU = ..., + initiate_ResponsePDU: Initiate_ResponsePDU = ..., + initiate_ErrorPDU: Initiate_ErrorPDU = ..., + conclude_RequestPDU: Conclude_RequestPDU = ..., + conclude_ResponsePDU: Conclude_ResponsePDU = ..., + conclude_ErrorPDU: Conclude_ErrorPDU = ..., + ) -> None: ... + +class Confirmed_RequestPDU(_Asn1Type): # SEQUENCE + class listOfModifiers_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Modifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Modifier: ... + def __setitem__(self, index: int, value: Modifier) -> None: ... + def add(self, value: Modifier) -> None: ... + def extend(self, values: EXT_Iterable[Modifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfModifiers: listOfModifiers_TYPE | None + @property + def invokeID(self) -> Unsigned32: ... + @invokeID.setter + def invokeID(self, value: Unsigned32 | int) -> None: ... + service: ConfirmedServiceRequest | None + service_ext: Request_Detail | None + def __init__( + self, + /, + *, + invokeID: Unsigned32 = ..., + listOfModifiers: listOfModifiers_TYPE = ..., + service: ConfirmedServiceRequest = ..., + service_ext: Request_Detail = ..., + ) -> None: ... + +class Confirmed_ErrorPDU(_Asn1Type): # SEQUENCE + @property + def invokeID(self) -> Unsigned32: ... + @invokeID.setter + def invokeID(self, value: Unsigned32 | int) -> None: ... + @property + def modifierPosition(self) -> Unsigned32 | None: ... + @modifierPosition.setter + def modifierPosition(self, value: Unsigned32 | int | None) -> None: ... + serviceError: ServiceError | None + def __init__( + self, + /, + *, + invokeID: Unsigned32 = ..., + modifierPosition: Unsigned32 = ..., + serviceError: ServiceError = ..., + ) -> None: ... + +class ConfirmedServiceRequest(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_status = 1 + PR_getNameList = 2 + PR_identify = 3 + PR_rename = 4 + PR_read = 5 + PR_write = 6 + PR_getVariableAccessAttributes = 7 + PR_defineNamedVariable = 8 + PR_defineScatteredAccess = 9 + PR_getScatteredAccessAttributes = 10 + PR_deleteVariableAccess = 11 + PR_defineNamedVariableList = 12 + PR_getNamedVariableListAttributes = 13 + PR_deleteNamedVariableList = 14 + PR_defineNamedType = 15 + PR_getNamedTypeAttributes = 16 + PR_deleteNamedType = 17 + PR_input = 18 + PR_output = 19 + PR_takeControl = 20 + PR_relinquishControl = 21 + PR_defineSemaphore = 22 + PR_deleteSemaphore = 23 + PR_reportSemaphoreStatus = 24 + PR_reportPoolSemaphoreStatus = 25 + PR_reportSemaphoreEntryStatus = 26 + PR_initiateDownloadSequence = 27 + PR_downloadSegment = 28 + PR_terminateDownloadSequence = 29 + PR_initiateUploadSequence = 30 + PR_uploadSegment = 31 + PR_terminateUploadSequence = 32 + PR_requestDomainDownload = 33 + PR_requestDomainUpload = 34 + PR_loadDomainContent = 35 + PR_storeDomainContent = 36 + PR_deleteDomain = 37 + PR_getDomainAttributes = 38 + PR_createProgramInvocation = 39 + PR_deleteProgramInvocation = 40 + PR_start = 41 + PR_stop = 42 + PR_resume = 43 + PR_reset = 44 + PR_kill = 45 + PR_getProgramInvocationAttributes = 46 + PR_obtainFile = 47 + PR_defineEventCondition = 48 + PR_deleteEventCondition = 49 + PR_getEventConditionAttributes = 50 + PR_reportEventConditionStatus = 51 + PR_alterEventConditionMonitoring = 52 + PR_triggerEvent = 53 + PR_defineEventAction = 54 + PR_deleteEventAction = 55 + PR_getEventActionAttributes = 56 + PR_reportEventActionStatus = 57 + PR_defineEventEnrollment = 58 + PR_deleteEventEnrollment = 59 + PR_alterEventEnrollment = 60 + PR_reportEventEnrollmentStatus = 61 + PR_getEventEnrollmentAttributes = 62 + PR_acknowledgeEventNotification = 63 + PR_getAlarmSummary = 64 + PR_getAlarmEnrollmentSummary = 65 + PR_readJournal = 66 + PR_writeJournal = 67 + PR_initializeJournal = 68 + PR_reportJournalStatus = 69 + PR_createJournal = 70 + PR_deleteJournal = 71 + PR_getCapabilityList = 72 + PR_fileOpen = 73 + PR_fileRead = 74 + PR_fileClose = 75 + PR_fileRename = 76 + PR_fileDelete = 77 + PR_fileDirectory = 78 + PR_additionalService = 79 + PR_getDataExchangeAttributes = 80 + PR_exchangeData = 81 + PR_defineAccessControlList = 82 + PR_getAccessControlListAttributes = 83 + PR_reportAccessControlledObjects = 84 + PR_deleteAccessControlList = 85 + PR_changeAccessControl = 86 + + @property + def present(self) -> PRESENT: ... + @property + def status(self) -> Status_Request | None: ... + @status.setter + def status(self, value: Status_Request | bool | None) -> None: ... + getNameList: GetNameList_Request | None + @property + def identify(self) -> Identify_Request | None: ... + @identify.setter + def identify(self, value: Identify_Request | None) -> None: ... + rename: Rename_Request | None + read: Read_Request | None + write: Write_Request | None + getVariableAccessAttributes: GetVariableAccessAttributes_Request | None + defineNamedVariable: DefineNamedVariable_Request | None + defineScatteredAccess: DefineScatteredAccess_Request | None + getScatteredAccessAttributes: GetScatteredAccessAttributes_Request | None + deleteVariableAccess: DeleteVariableAccess_Request | None + defineNamedVariableList: DefineNamedVariableList_Request | None + getNamedVariableListAttributes: GetNamedVariableListAttributes_Request | None + deleteNamedVariableList: DeleteNamedVariableList_Request | None + defineNamedType: DefineNamedType_Request | None + getNamedTypeAttributes: GetNamedTypeAttributes_Request | None + deleteNamedType: DeleteNamedType_Request | None + input: Input_Request | None + output: Output_Request | None + takeControl: TakeControl_Request | None + relinquishControl: RelinquishControl_Request | None + defineSemaphore: DefineSemaphore_Request | None + deleteSemaphore: DeleteSemaphore_Request | None + reportSemaphoreStatus: ReportSemaphoreStatus_Request | None + reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Request | None + reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Request | None + initiateDownloadSequence: InitiateDownloadSequence_Request | None + downloadSegment: DownloadSegment_Request | None + terminateDownloadSequence: TerminateDownloadSequence_Request | None + initiateUploadSequence: InitiateUploadSequence_Request | None + uploadSegment: UploadSegment_Request | None + terminateUploadSequence: TerminateUploadSequence_Request | None + requestDomainDownload: RequestDomainDownload_Request | None + requestDomainUpload: RequestDomainUpload_Request | None + loadDomainContent: LoadDomainContent_Request | None + storeDomainContent: StoreDomainContent_Request | None + deleteDomain: DeleteDomain_Request | None + getDomainAttributes: GetDomainAttributes_Request | None + createProgramInvocation: CreateProgramInvocation_Request | None + deleteProgramInvocation: DeleteProgramInvocation_Request | None + start: Start_Request | None + stop: Stop_Request | None + resume: Resume_Request | None + reset: Reset_Request | None + kill: Kill_Request | None + getProgramInvocationAttributes: GetProgramInvocationAttributes_Request | None + obtainFile: ObtainFile_Request | None + defineEventCondition: DefineEventCondition_Request | None + deleteEventCondition: DeleteEventCondition_Request | None + getEventConditionAttributes: GetEventConditionAttributes_Request | None + reportEventConditionStatus: ReportEventConditionStatus_Request | None + alterEventConditionMonitoring: AlterEventConditionMonitoring_Request | None + triggerEvent: TriggerEvent_Request | None + defineEventAction: DefineEventAction_Request | None + deleteEventAction: DeleteEventAction_Request | None + getEventActionAttributes: GetEventActionAttributes_Request | None + reportEventActionStatus: ReportEventActionStatus_Request | None + defineEventEnrollment: DefineEventEnrollment_Request | None + deleteEventEnrollment: DeleteEventEnrollment_Request | None + alterEventEnrollment: AlterEventEnrollment_Request | None + reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Request | None + getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Request | None + acknowledgeEventNotification: AcknowledgeEventNotification_Request | None + getAlarmSummary: GetAlarmSummary_Request | None + getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Request | None + readJournal: ReadJournal_Request | None + writeJournal: WriteJournal_Request | None + initializeJournal: InitializeJournal_Request | None + reportJournalStatus: ReportJournalStatus_Request | None + createJournal: CreateJournal_Request | None + deleteJournal: DeleteJournal_Request | None + getCapabilityList: GetCapabilityList_Request | None + fileOpen: FileOpen_Request | None + fileRead: FileRead_Request | None + fileClose: FileClose_Request | None + fileRename: FileRename_Request | None + fileDelete: FileDelete_Request | None + fileDirectory: FileDirectory_Request | None + additionalService: AdditionalService_Request | None + getDataExchangeAttributes: GetDataExchangeAttributes_Request | None + exchangeData: ExchangeData_Request | None + defineAccessControlList: DefineAccessControlList_Request | None + getAccessControlListAttributes: GetAccessControlListAttributes_Request | None + reportAccessControlledObjects: ReportAccessControlledObjects_Request | None + deleteAccessControlList: DeleteAccessControlList_Request | None + changeAccessControl: ChangeAccessControl_Request | None + def __init__( + self, + /, + *, + status: Status_Request = ..., + getNameList: GetNameList_Request = ..., + identify: Identify_Request = ..., + rename: Rename_Request = ..., + read: Read_Request = ..., + write: Write_Request = ..., + getVariableAccessAttributes: GetVariableAccessAttributes_Request = ..., + defineNamedVariable: DefineNamedVariable_Request = ..., + defineScatteredAccess: DefineScatteredAccess_Request = ..., + getScatteredAccessAttributes: GetScatteredAccessAttributes_Request = ..., + deleteVariableAccess: DeleteVariableAccess_Request = ..., + defineNamedVariableList: DefineNamedVariableList_Request = ..., + getNamedVariableListAttributes: GetNamedVariableListAttributes_Request = ..., + deleteNamedVariableList: DeleteNamedVariableList_Request = ..., + defineNamedType: DefineNamedType_Request = ..., + getNamedTypeAttributes: GetNamedTypeAttributes_Request = ..., + deleteNamedType: DeleteNamedType_Request = ..., + input: Input_Request = ..., + output: Output_Request = ..., + takeControl: TakeControl_Request = ..., + relinquishControl: RelinquishControl_Request = ..., + defineSemaphore: DefineSemaphore_Request = ..., + deleteSemaphore: DeleteSemaphore_Request = ..., + reportSemaphoreStatus: ReportSemaphoreStatus_Request = ..., + reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Request = ..., + reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Request = ..., + initiateDownloadSequence: InitiateDownloadSequence_Request = ..., + downloadSegment: DownloadSegment_Request = ..., + terminateDownloadSequence: TerminateDownloadSequence_Request = ..., + initiateUploadSequence: InitiateUploadSequence_Request = ..., + uploadSegment: UploadSegment_Request = ..., + terminateUploadSequence: TerminateUploadSequence_Request = ..., + requestDomainDownload: RequestDomainDownload_Request = ..., + requestDomainUpload: RequestDomainUpload_Request = ..., + loadDomainContent: LoadDomainContent_Request = ..., + storeDomainContent: StoreDomainContent_Request = ..., + deleteDomain: DeleteDomain_Request = ..., + getDomainAttributes: GetDomainAttributes_Request = ..., + createProgramInvocation: CreateProgramInvocation_Request = ..., + deleteProgramInvocation: DeleteProgramInvocation_Request = ..., + start: Start_Request = ..., + stop: Stop_Request = ..., + resume: Resume_Request = ..., + reset: Reset_Request = ..., + kill: Kill_Request = ..., + getProgramInvocationAttributes: GetProgramInvocationAttributes_Request = ..., + obtainFile: ObtainFile_Request = ..., + defineEventCondition: DefineEventCondition_Request = ..., + deleteEventCondition: DeleteEventCondition_Request = ..., + getEventConditionAttributes: GetEventConditionAttributes_Request = ..., + reportEventConditionStatus: ReportEventConditionStatus_Request = ..., + alterEventConditionMonitoring: AlterEventConditionMonitoring_Request = ..., + triggerEvent: TriggerEvent_Request = ..., + defineEventAction: DefineEventAction_Request = ..., + deleteEventAction: DeleteEventAction_Request = ..., + getEventActionAttributes: GetEventActionAttributes_Request = ..., + reportEventActionStatus: ReportEventActionStatus_Request = ..., + defineEventEnrollment: DefineEventEnrollment_Request = ..., + deleteEventEnrollment: DeleteEventEnrollment_Request = ..., + alterEventEnrollment: AlterEventEnrollment_Request = ..., + reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Request = ..., + getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Request = ..., + acknowledgeEventNotification: AcknowledgeEventNotification_Request = ..., + getAlarmSummary: GetAlarmSummary_Request = ..., + getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Request = ..., + readJournal: ReadJournal_Request = ..., + writeJournal: WriteJournal_Request = ..., + initializeJournal: InitializeJournal_Request = ..., + reportJournalStatus: ReportJournalStatus_Request = ..., + createJournal: CreateJournal_Request = ..., + deleteJournal: DeleteJournal_Request = ..., + getCapabilityList: GetCapabilityList_Request = ..., + fileOpen: FileOpen_Request = ..., + fileRead: FileRead_Request = ..., + fileClose: FileClose_Request = ..., + fileRename: FileRename_Request = ..., + fileDelete: FileDelete_Request = ..., + fileDirectory: FileDirectory_Request = ..., + additionalService: AdditionalService_Request = ..., + getDataExchangeAttributes: GetDataExchangeAttributes_Request = ..., + exchangeData: ExchangeData_Request = ..., + defineAccessControlList: DefineAccessControlList_Request = ..., + getAccessControlListAttributes: GetAccessControlListAttributes_Request = ..., + reportAccessControlledObjects: ReportAccessControlledObjects_Request = ..., + deleteAccessControlList: DeleteAccessControlList_Request = ..., + changeAccessControl: ChangeAccessControl_Request = ..., + ) -> None: ... + +class AdditionalService_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_vMDStop = 1 + PR_vMDReset = 2 + PR_select = 3 + PR_alterPI = 4 + PR_initiateUCLoad = 5 + PR_uCLoad = 6 + PR_uCUpload = 7 + PR_startUC = 8 + PR_stopUC = 9 + PR_createUC = 10 + PR_addToUC = 11 + PR_removeFromUC = 12 + PR_getUCAttributes = 13 + PR_loadUCFromFile = 14 + PR_storeUCToFile = 15 + PR_deleteUC = 16 + PR_defineECL = 17 + PR_deleteECL = 18 + PR_addECLReference = 19 + PR_removeECLReference = 20 + PR_getECLAttributes = 21 + PR_reportECLStatus = 22 + PR_alterECLMonitoring = 23 + + @property + def present(self) -> PRESENT: ... + @property + def vMDStop(self) -> VMDStop_Request | None: ... + @vMDStop.setter + def vMDStop(self, value: VMDStop_Request | None) -> None: ... + @property + def vMDReset(self) -> VMDReset_Request | None: ... + @vMDReset.setter + def vMDReset(self, value: VMDReset_Request | bool | None) -> None: ... + select: Select_Request | None + alterPI: AlterProgramInvocationAttributes_Request | None + initiateUCLoad: InitiateUnitControlLoad_Request | None + uCLoad: UnitControlLoadSegment_Request | None + uCUpload: UnitControlUpload_Request | None + startUC: StartUnitControl_Request | None + stopUC: StopUnitControl_Request | None + createUC: CreateUnitControl_Request | None + addToUC: AddToUnitControl_Request | None + removeFromUC: RemoveFromUnitControl_Request | None + getUCAttributes: GetUnitControlAttributes_Request | None + loadUCFromFile: LoadUnitControlFromFile_Request | None + storeUCToFile: StoreUnitControlToFile_Request | None + deleteUC: DeleteUnitControl_Request | None + defineECL: DefineEventConditionList_Request | None + deleteECL: DeleteEventConditionList_Request | None + addECLReference: AddEventConditionListReference_Request | None + removeECLReference: RemoveEventConditionListReference_Request | None + getECLAttributes: GetEventConditionListAttributes_Request | None + reportECLStatus: ReportEventConditionListStatus_Request | None + alterECLMonitoring: AlterEventConditionListMonitoring_Request | None + def __init__( + self, + /, + *, + vMDStop: VMDStop_Request = ..., + vMDReset: VMDReset_Request = ..., + select: Select_Request = ..., + alterPI: AlterProgramInvocationAttributes_Request = ..., + initiateUCLoad: InitiateUnitControlLoad_Request = ..., + uCLoad: UnitControlLoadSegment_Request = ..., + uCUpload: UnitControlUpload_Request = ..., + startUC: StartUnitControl_Request = ..., + stopUC: StopUnitControl_Request = ..., + createUC: CreateUnitControl_Request = ..., + addToUC: AddToUnitControl_Request = ..., + removeFromUC: RemoveFromUnitControl_Request = ..., + getUCAttributes: GetUnitControlAttributes_Request = ..., + loadUCFromFile: LoadUnitControlFromFile_Request = ..., + storeUCToFile: StoreUnitControlToFile_Request = ..., + deleteUC: DeleteUnitControl_Request = ..., + defineECL: DefineEventConditionList_Request = ..., + deleteECL: DeleteEventConditionList_Request = ..., + addECLReference: AddEventConditionListReference_Request = ..., + removeECLReference: RemoveEventConditionListReference_Request = ..., + getECLAttributes: GetEventConditionListAttributes_Request = ..., + reportECLStatus: ReportEventConditionListStatus_Request = ..., + alterECLMonitoring: AlterEventConditionListMonitoring_Request = ..., + ) -> None: ... + +class Request_Detail(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_otherRequests = 1 + PR_createProgramInvocation = 2 + PR_start = 3 + PR_resume = 4 + PR_defineEventCondition = 5 + PR_alterEventConditionMonitoring = 6 + PR_defineEventEnrollment = 7 + PR_alterEventEnrollment = 8 + + @property + def present(self) -> PRESENT: ... + otherRequests: None + @property + def createProgramInvocation(self) -> CS_CreateProgramInvocation_Request | None: ... + @createProgramInvocation.setter + def createProgramInvocation( + self, value: CS_CreateProgramInvocation_Request | int | None + ) -> None: ... + start: CS_Start_Request | None + resume: CS_Resume_Request | None + defineEventCondition: CS_DefineEventCondition_Request | None + alterEventConditionMonitoring: CS_AlterEventConditionMonitoring_Request | None + defineEventEnrollment: CS_DefineEventEnrollment_Request | None + alterEventEnrollment: CS_AlterEventEnrollment_Request | None + def __init__( + self, + /, + *, + otherRequests: None = ..., + createProgramInvocation: CS_CreateProgramInvocation_Request = ..., + start: CS_Start_Request = ..., + resume: CS_Resume_Request = ..., + defineEventCondition: CS_DefineEventCondition_Request = ..., + alterEventConditionMonitoring: CS_AlterEventConditionMonitoring_Request = ..., + defineEventEnrollment: CS_DefineEventEnrollment_Request = ..., + alterEventEnrollment: CS_AlterEventEnrollment_Request = ..., + ) -> None: ... + +class Unconfirmed_PDU(_Asn1Type): # SEQUENCE + service: UnconfirmedService | None + service_ext: Unconfirmed_Detail | None + def __init__( + self, + /, + *, + service: UnconfirmedService = ..., + service_ext: Unconfirmed_Detail = ..., + ) -> None: ... + +class UnconfirmedService(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_informationReport = 1 + PR_unsolicitedStatus = 2 + PR_eventNotification = 3 + + @property + def present(self) -> PRESENT: ... + informationReport: InformationReport | None + unsolicitedStatus: UnsolicitedStatus | None + eventNotification: EventNotification | None + def __init__( + self, + /, + *, + informationReport: InformationReport = ..., + unsolicitedStatus: UnsolicitedStatus = ..., + eventNotification: EventNotification = ..., + ) -> None: ... + +class Unconfirmed_Detail(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_otherRequests = 1 + PR_eventNotification = 2 + + @property + def present(self) -> PRESENT: ... + otherRequests: None + eventNotification: CS_EventNotification | None + def __init__( + self, + /, + *, + otherRequests: None = ..., + eventNotification: CS_EventNotification = ..., + ) -> None: ... + +class Confirmed_ResponsePDU(_Asn1Type): # SEQUENCE + @property + def invokeID(self) -> Unsigned32: ... + @invokeID.setter + def invokeID(self, value: Unsigned32 | int) -> None: ... + service: ConfirmedServiceResponse | None + service_ext: Response_Detail | None + def __init__( + self, + /, + *, + invokeID: Unsigned32 = ..., + service: ConfirmedServiceResponse = ..., + service_ext: Response_Detail = ..., + ) -> None: ... + +class ConfirmedServiceResponse(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_status = 1 + PR_getNameList = 2 + PR_identify = 3 + PR_rename = 4 + PR_read = 5 + PR_write = 6 + PR_getVariableAccessAttributes = 7 + PR_defineNamedVariable = 8 + PR_defineScatteredAccess = 9 + PR_getScatteredAccessAttributes = 10 + PR_deleteVariableAccess = 11 + PR_defineNamedVariableList = 12 + PR_getNamedVariableListAttributes = 13 + PR_deleteNamedVariableList = 14 + PR_defineNamedType = 15 + PR_getNamedTypeAttributes = 16 + PR_deleteNamedType = 17 + PR_input = 18 + PR_output = 19 + PR_takeControl = 20 + PR_relinquishControl = 21 + PR_defineSemaphore = 22 + PR_deleteSemaphore = 23 + PR_reportSemaphoreStatus = 24 + PR_reportPoolSemaphoreStatus = 25 + PR_reportSemaphoreEntryStatus = 26 + PR_initiateDownloadSequence = 27 + PR_downloadSegment = 28 + PR_terminateDownloadSequence = 29 + PR_initiateUploadSequence = 30 + PR_uploadSegment = 31 + PR_terminateUploadSequence = 32 + PR_requestDomainDownload = 33 + PR_requestDomainUpload = 34 + PR_loadDomainContent = 35 + PR_storeDomainContent = 36 + PR_deleteDomain = 37 + PR_getDomainAttributes = 38 + PR_createProgramInvocation = 39 + PR_deleteProgramInvocation = 40 + PR_start = 41 + PR_stop = 42 + PR_resume = 43 + PR_reset = 44 + PR_kill = 45 + PR_getProgramInvocationAttributes = 46 + PR_obtainFile = 47 + PR_defineEventCondition = 48 + PR_deleteEventCondition = 49 + PR_getEventConditionAttributes = 50 + PR_reportEventConditionStatus = 51 + PR_alterEventConditionMonitoring = 52 + PR_triggerEvent = 53 + PR_defineEventAction = 54 + PR_deleteEventAction = 55 + PR_getEventActionAttributes = 56 + PR_reportEventActionStatus = 57 + PR_defineEventEnrollment = 58 + PR_deleteEventEnrollment = 59 + PR_alterEventEnrollment = 60 + PR_reportEventEnrollmentStatus = 61 + PR_getEventEnrollmentAttributes = 62 + PR_acknowledgeEventNotification = 63 + PR_getAlarmSummary = 64 + PR_getAlarmEnrollmentSummary = 65 + PR_readJournal = 66 + PR_writeJournal = 67 + PR_initializeJournal = 68 + PR_reportJournalStatus = 69 + PR_createJournal = 70 + PR_deleteJournal = 71 + PR_getCapabilityList = 72 + PR_fileOpen = 73 + PR_fileRead = 74 + PR_fileClose = 75 + PR_fileRename = 76 + PR_fileDelete = 77 + PR_fileDirectory = 78 + PR_additionalService = 79 + PR_getDataExchangeAttributes = 80 + PR_exchangeData = 81 + PR_defineAccessControlList = 82 + PR_getAccessControlListAttributes = 83 + PR_reportAccessControlledObjects = 84 + PR_deleteAccessControlList = 85 + PR_changeAccessControl = 86 + + @property + def present(self) -> PRESENT: ... + status: Status_Response | None + getNameList: GetNameList_Response | None + identify: Identify_Response | None + @property + def rename(self) -> Rename_Response | None: ... + @rename.setter + def rename(self, value: Rename_Response | None) -> None: ... + read: Read_Response | None + @property + def write(self) -> Write_Response | None: ... + @write.setter + def write(self, value: Write_Response | list | None) -> None: ... + getVariableAccessAttributes: GetVariableAccessAttributes_Response | None + @property + def defineNamedVariable(self) -> DefineNamedVariable_Response | None: ... + @defineNamedVariable.setter + def defineNamedVariable( + self, value: DefineNamedVariable_Response | None + ) -> None: ... + @property + def defineScatteredAccess(self) -> DefineScatteredAccess_Response | None: ... + @defineScatteredAccess.setter + def defineScatteredAccess( + self, value: DefineScatteredAccess_Response | None + ) -> None: ... + getScatteredAccessAttributes: GetScatteredAccessAttributes_Response | None + deleteVariableAccess: DeleteVariableAccess_Response | None + @property + def defineNamedVariableList(self) -> DefineNamedVariableList_Response | None: ... + @defineNamedVariableList.setter + def defineNamedVariableList( + self, value: DefineNamedVariableList_Response | None + ) -> None: ... + getNamedVariableListAttributes: GetNamedVariableListAttributes_Response | None + deleteNamedVariableList: DeleteNamedVariableList_Response | None + @property + def defineNamedType(self) -> DefineNamedType_Response | None: ... + @defineNamedType.setter + def defineNamedType(self, value: DefineNamedType_Response | None) -> None: ... + getNamedTypeAttributes: GetNamedTypeAttributes_Response | None + deleteNamedType: DeleteNamedType_Response | None + input: Input_Response | None + @property + def output(self) -> Output_Response | None: ... + @output.setter + def output(self, value: Output_Response | None) -> None: ... + takeControl: TakeControl_Response | None + @property + def relinquishControl(self) -> RelinquishControl_Response | None: ... + @relinquishControl.setter + def relinquishControl(self, value: RelinquishControl_Response | None) -> None: ... + @property + def defineSemaphore(self) -> DefineSemaphore_Response | None: ... + @defineSemaphore.setter + def defineSemaphore(self, value: DefineSemaphore_Response | None) -> None: ... + @property + def deleteSemaphore(self) -> DeleteSemaphore_Response | None: ... + @deleteSemaphore.setter + def deleteSemaphore(self, value: DeleteSemaphore_Response | None) -> None: ... + reportSemaphoreStatus: ReportSemaphoreStatus_Response | None + reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Response | None + reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Response | None + @property + def initiateDownloadSequence(self) -> InitiateDownloadSequence_Response | None: ... + @initiateDownloadSequence.setter + def initiateDownloadSequence( + self, value: InitiateDownloadSequence_Response | None + ) -> None: ... + downloadSegment: DownloadSegment_Response | None + @property + def terminateDownloadSequence( + self, + ) -> TerminateDownloadSequence_Response | None: ... + @terminateDownloadSequence.setter + def terminateDownloadSequence( + self, value: TerminateDownloadSequence_Response | None + ) -> None: ... + initiateUploadSequence: InitiateUploadSequence_Response | None + uploadSegment: UploadSegment_Response | None + @property + def terminateUploadSequence(self) -> TerminateUploadSequence_Response | None: ... + @terminateUploadSequence.setter + def terminateUploadSequence( + self, value: TerminateUploadSequence_Response | None + ) -> None: ... + @property + def requestDomainDownload(self) -> RequestDomainDownload_Response | None: ... + @requestDomainDownload.setter + def requestDomainDownload( + self, value: RequestDomainDownload_Response | None + ) -> None: ... + @property + def requestDomainUpload(self) -> RequestDomainUpload_Response | None: ... + @requestDomainUpload.setter + def requestDomainUpload( + self, value: RequestDomainUpload_Response | None + ) -> None: ... + @property + def loadDomainContent(self) -> LoadDomainContent_Response | None: ... + @loadDomainContent.setter + def loadDomainContent(self, value: LoadDomainContent_Response | None) -> None: ... + @property + def storeDomainContent(self) -> StoreDomainContent_Response | None: ... + @storeDomainContent.setter + def storeDomainContent(self, value: StoreDomainContent_Response | None) -> None: ... + @property + def deleteDomain(self) -> DeleteDomain_Response | None: ... + @deleteDomain.setter + def deleteDomain(self, value: DeleteDomain_Response | None) -> None: ... + getDomainAttributes: GetDomainAttributes_Response | None + @property + def createProgramInvocation(self) -> CreateProgramInvocation_Response | None: ... + @createProgramInvocation.setter + def createProgramInvocation( + self, value: CreateProgramInvocation_Response | None + ) -> None: ... + @property + def deleteProgramInvocation(self) -> DeleteProgramInvocation_Response | None: ... + @deleteProgramInvocation.setter + def deleteProgramInvocation( + self, value: DeleteProgramInvocation_Response | None + ) -> None: ... + @property + def start(self) -> Start_Response | None: ... + @start.setter + def start(self, value: Start_Response | None) -> None: ... + @property + def stop(self) -> Stop_Response | None: ... + @stop.setter + def stop(self, value: Stop_Response | None) -> None: ... + @property + def resume(self) -> Resume_Response | None: ... + @resume.setter + def resume(self, value: Resume_Response | None) -> None: ... + @property + def reset(self) -> Reset_Response | None: ... + @reset.setter + def reset(self, value: Reset_Response | None) -> None: ... + @property + def kill(self) -> Kill_Response | None: ... + @kill.setter + def kill(self, value: Kill_Response | None) -> None: ... + getProgramInvocationAttributes: GetProgramInvocationAttributes_Response | None + @property + def obtainFile(self) -> ObtainFile_Response | None: ... + @obtainFile.setter + def obtainFile(self, value: ObtainFile_Response | None) -> None: ... + @property + def defineEventCondition(self) -> DefineEventCondition_Response | None: ... + @defineEventCondition.setter + def defineEventCondition( + self, value: DefineEventCondition_Response | None + ) -> None: ... + deleteEventCondition: DeleteEventCondition_Response | None + getEventConditionAttributes: GetEventConditionAttributes_Response | None + reportEventConditionStatus: ReportEventConditionStatus_Response | None + @property + def alterEventConditionMonitoring( + self, + ) -> AlterEventConditionMonitoring_Response | None: ... + @alterEventConditionMonitoring.setter + def alterEventConditionMonitoring( + self, value: AlterEventConditionMonitoring_Response | None + ) -> None: ... + @property + def triggerEvent(self) -> TriggerEvent_Response | None: ... + @triggerEvent.setter + def triggerEvent(self, value: TriggerEvent_Response | None) -> None: ... + @property + def defineEventAction(self) -> DefineEventAction_Response | None: ... + @defineEventAction.setter + def defineEventAction(self, value: DefineEventAction_Response | None) -> None: ... + deleteEventAction: DeleteEventAction_Response | None + getEventActionAttributes: GetEventActionAttributes_Response | None + reportEventActionStatus: ReportEventActionStatus_Response | None + @property + def defineEventEnrollment(self) -> DefineEventEnrollment_Response | None: ... + @defineEventEnrollment.setter + def defineEventEnrollment( + self, value: DefineEventEnrollment_Response | None + ) -> None: ... + deleteEventEnrollment: DeleteEventEnrollment_Response | None + alterEventEnrollment: AlterEventEnrollment_Response | None + reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Response | None + getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Response | None + @property + def acknowledgeEventNotification( + self, + ) -> AcknowledgeEventNotification_Response | None: ... + @acknowledgeEventNotification.setter + def acknowledgeEventNotification( + self, value: AcknowledgeEventNotification_Response | None + ) -> None: ... + getAlarmSummary: GetAlarmSummary_Response | None + getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Response | None + readJournal: ReadJournal_Response | None + @property + def writeJournal(self) -> WriteJournal_Response | None: ... + @writeJournal.setter + def writeJournal(self, value: WriteJournal_Response | None) -> None: ... + initializeJournal: InitializeJournal_Response | None + reportJournalStatus: ReportJournalStatus_Response | None + @property + def createJournal(self) -> CreateJournal_Response | None: ... + @createJournal.setter + def createJournal(self, value: CreateJournal_Response | None) -> None: ... + @property + def deleteJournal(self) -> DeleteJournal_Response | None: ... + @deleteJournal.setter + def deleteJournal(self, value: DeleteJournal_Response | None) -> None: ... + getCapabilityList: GetCapabilityList_Response | None + fileOpen: FileOpen_Response | None + fileRead: FileRead_Response | None + @property + def fileClose(self) -> FileClose_Response | None: ... + @fileClose.setter + def fileClose(self, value: FileClose_Response | None) -> None: ... + @property + def fileRename(self) -> FileRename_Response | None: ... + @fileRename.setter + def fileRename(self, value: FileRename_Response | None) -> None: ... + @property + def fileDelete(self) -> FileDelete_Response | None: ... + @fileDelete.setter + def fileDelete(self, value: FileDelete_Response | None) -> None: ... + fileDirectory: FileDirectory_Response | None + additionalService: AdditionalService_Response | None + getDataExchangeAttributes: GetDataExchangeAttributes_Response | None + exchangeData: ExchangeData_Response | None + @property + def defineAccessControlList(self) -> DefineAccessControlList_Response | None: ... + @defineAccessControlList.setter + def defineAccessControlList( + self, value: DefineAccessControlList_Response | None + ) -> None: ... + getAccessControlListAttributes: GetAccessControlListAttributes_Response | None + reportAccessControlledObjects: ReportAccessControlledObjects_Response | None + @property + def deleteAccessControlList(self) -> DeleteAccessControlList_Response | None: ... + @deleteAccessControlList.setter + def deleteAccessControlList( + self, value: DeleteAccessControlList_Response | None + ) -> None: ... + changeAccessControl: ChangeAccessControl_Response | None + def __init__( + self, + /, + *, + status: Status_Response = ..., + getNameList: GetNameList_Response = ..., + identify: Identify_Response = ..., + rename: Rename_Response = ..., + read: Read_Response = ..., + write: Write_Response = ..., + getVariableAccessAttributes: GetVariableAccessAttributes_Response = ..., + defineNamedVariable: DefineNamedVariable_Response = ..., + defineScatteredAccess: DefineScatteredAccess_Response = ..., + getScatteredAccessAttributes: GetScatteredAccessAttributes_Response = ..., + deleteVariableAccess: DeleteVariableAccess_Response = ..., + defineNamedVariableList: DefineNamedVariableList_Response = ..., + getNamedVariableListAttributes: GetNamedVariableListAttributes_Response = ..., + deleteNamedVariableList: DeleteNamedVariableList_Response = ..., + defineNamedType: DefineNamedType_Response = ..., + getNamedTypeAttributes: GetNamedTypeAttributes_Response = ..., + deleteNamedType: DeleteNamedType_Response = ..., + input: Input_Response = ..., + output: Output_Response = ..., + takeControl: TakeControl_Response = ..., + relinquishControl: RelinquishControl_Response = ..., + defineSemaphore: DefineSemaphore_Response = ..., + deleteSemaphore: DeleteSemaphore_Response = ..., + reportSemaphoreStatus: ReportSemaphoreStatus_Response = ..., + reportPoolSemaphoreStatus: ReportPoolSemaphoreStatus_Response = ..., + reportSemaphoreEntryStatus: ReportSemaphoreEntryStatus_Response = ..., + initiateDownloadSequence: InitiateDownloadSequence_Response = ..., + downloadSegment: DownloadSegment_Response = ..., + terminateDownloadSequence: TerminateDownloadSequence_Response = ..., + initiateUploadSequence: InitiateUploadSequence_Response = ..., + uploadSegment: UploadSegment_Response = ..., + terminateUploadSequence: TerminateUploadSequence_Response = ..., + requestDomainDownload: RequestDomainDownload_Response = ..., + requestDomainUpload: RequestDomainUpload_Response = ..., + loadDomainContent: LoadDomainContent_Response = ..., + storeDomainContent: StoreDomainContent_Response = ..., + deleteDomain: DeleteDomain_Response = ..., + getDomainAttributes: GetDomainAttributes_Response = ..., + createProgramInvocation: CreateProgramInvocation_Response = ..., + deleteProgramInvocation: DeleteProgramInvocation_Response = ..., + start: Start_Response = ..., + stop: Stop_Response = ..., + resume: Resume_Response = ..., + reset: Reset_Response = ..., + kill: Kill_Response = ..., + getProgramInvocationAttributes: GetProgramInvocationAttributes_Response = ..., + obtainFile: ObtainFile_Response = ..., + defineEventCondition: DefineEventCondition_Response = ..., + deleteEventCondition: DeleteEventCondition_Response = ..., + getEventConditionAttributes: GetEventConditionAttributes_Response = ..., + reportEventConditionStatus: ReportEventConditionStatus_Response = ..., + alterEventConditionMonitoring: AlterEventConditionMonitoring_Response = ..., + triggerEvent: TriggerEvent_Response = ..., + defineEventAction: DefineEventAction_Response = ..., + deleteEventAction: DeleteEventAction_Response = ..., + getEventActionAttributes: GetEventActionAttributes_Response = ..., + reportEventActionStatus: ReportEventActionStatus_Response = ..., + defineEventEnrollment: DefineEventEnrollment_Response = ..., + deleteEventEnrollment: DeleteEventEnrollment_Response = ..., + alterEventEnrollment: AlterEventEnrollment_Response = ..., + reportEventEnrollmentStatus: ReportEventEnrollmentStatus_Response = ..., + getEventEnrollmentAttributes: GetEventEnrollmentAttributes_Response = ..., + acknowledgeEventNotification: AcknowledgeEventNotification_Response = ..., + getAlarmSummary: GetAlarmSummary_Response = ..., + getAlarmEnrollmentSummary: GetAlarmEnrollmentSummary_Response = ..., + readJournal: ReadJournal_Response = ..., + writeJournal: WriteJournal_Response = ..., + initializeJournal: InitializeJournal_Response = ..., + reportJournalStatus: ReportJournalStatus_Response = ..., + createJournal: CreateJournal_Response = ..., + deleteJournal: DeleteJournal_Response = ..., + getCapabilityList: GetCapabilityList_Response = ..., + fileOpen: FileOpen_Response = ..., + fileRead: FileRead_Response = ..., + fileClose: FileClose_Response = ..., + fileRename: FileRename_Response = ..., + fileDelete: FileDelete_Response = ..., + fileDirectory: FileDirectory_Response = ..., + additionalService: AdditionalService_Response = ..., + getDataExchangeAttributes: GetDataExchangeAttributes_Response = ..., + exchangeData: ExchangeData_Response = ..., + defineAccessControlList: DefineAccessControlList_Response = ..., + getAccessControlListAttributes: GetAccessControlListAttributes_Response = ..., + reportAccessControlledObjects: ReportAccessControlledObjects_Response = ..., + deleteAccessControlList: DeleteAccessControlList_Response = ..., + changeAccessControl: ChangeAccessControl_Response = ..., + ) -> None: ... + +class AdditionalService_Response(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_vMDStop = 1 + PR_vMDReset = 2 + PR_select = 3 + PR_alterPI = 4 + PR_initiateUCLoad = 5 + PR_uCLoad = 6 + PR_uCUpload = 7 + PR_startUC = 8 + PR_stopUC = 9 + PR_createUC = 10 + PR_addToUC = 11 + PR_removeFromUC = 12 + PR_getUCAttributes = 13 + PR_loadUCFromFile = 14 + PR_storeUCToFile = 15 + PR_deleteUC = 16 + PR_defineECL = 17 + PR_deleteECL = 18 + PR_addECLReference = 19 + PR_removeECLReference = 20 + PR_getECLAttributes = 21 + PR_reportECLStatus = 22 + PR_alterECLMonitoring = 23 + + @property + def present(self) -> PRESENT: ... + @property + def vMDStop(self) -> VMDStop_Response | None: ... + @vMDStop.setter + def vMDStop(self, value: VMDStop_Response | None) -> None: ... + vMDReset: VMDReset_Response | None + @property + def select(self) -> Select_Response | None: ... + @select.setter + def select(self, value: Select_Response | None) -> None: ... + @property + def alterPI(self) -> AlterProgramInvocationAttributes_Response | None: ... + @alterPI.setter + def alterPI( + self, value: AlterProgramInvocationAttributes_Response | None + ) -> None: ... + @property + def initiateUCLoad(self) -> InitiateUnitControlLoad_Response | None: ... + @initiateUCLoad.setter + def initiateUCLoad( + self, value: InitiateUnitControlLoad_Response | None + ) -> None: ... + uCLoad: UnitControlLoadSegment_Response | None + uCUpload: UnitControlUpload_Response | None + @property + def startUC(self) -> StartUnitControl_Response | None: ... + @startUC.setter + def startUC(self, value: StartUnitControl_Response | None) -> None: ... + @property + def stopUC(self) -> StopUnitControl_Response | None: ... + @stopUC.setter + def stopUC(self, value: StopUnitControl_Response | None) -> None: ... + @property + def createUC(self) -> CreateUnitControl_Response | None: ... + @createUC.setter + def createUC(self, value: CreateUnitControl_Response | None) -> None: ... + @property + def addToUC(self) -> AddToUnitControl_Response | None: ... + @addToUC.setter + def addToUC(self, value: AddToUnitControl_Response | None) -> None: ... + @property + def removeFromUC(self) -> RemoveFromUnitControl_Response | None: ... + @removeFromUC.setter + def removeFromUC(self, value: RemoveFromUnitControl_Response | None) -> None: ... + getUCAttributes: GetUnitControlAttributes_Response | None + @property + def loadUCFromFile(self) -> LoadUnitControlFromFile_Response | None: ... + @loadUCFromFile.setter + def loadUCFromFile( + self, value: LoadUnitControlFromFile_Response | None + ) -> None: ... + @property + def storeUCToFile(self) -> StoreUnitControlToFile_Response | None: ... + @storeUCToFile.setter + def storeUCToFile(self, value: StoreUnitControlToFile_Response | None) -> None: ... + @property + def deleteUC(self) -> DeleteUnitControl_Response | None: ... + @deleteUC.setter + def deleteUC(self, value: DeleteUnitControl_Response | None) -> None: ... + @property + def defineECL(self) -> DefineEventConditionList_Response | None: ... + @defineECL.setter + def defineECL(self, value: DefineEventConditionList_Response | None) -> None: ... + @property + def deleteECL(self) -> DeleteEventConditionList_Response | None: ... + @deleteECL.setter + def deleteECL(self, value: DeleteEventConditionList_Response | None) -> None: ... + @property + def addECLReference(self) -> AddEventConditionListReference_Response | None: ... + @addECLReference.setter + def addECLReference( + self, value: AddEventConditionListReference_Response | None + ) -> None: ... + @property + def removeECLReference( + self, + ) -> RemoveEventConditionListReference_Response | None: ... + @removeECLReference.setter + def removeECLReference( + self, value: RemoveEventConditionListReference_Response | None + ) -> None: ... + getECLAttributes: GetEventConditionListAttributes_Response | None + reportECLStatus: ReportEventConditionListStatus_Response | None + @property + def alterECLMonitoring( + self, + ) -> AlterEventConditionListMonitoring_Response | None: ... + @alterECLMonitoring.setter + def alterECLMonitoring( + self, value: AlterEventConditionListMonitoring_Response | None + ) -> None: ... + def __init__( + self, + /, + *, + vMDStop: VMDStop_Response = ..., + vMDReset: VMDReset_Response = ..., + select: Select_Response = ..., + alterPI: AlterProgramInvocationAttributes_Response = ..., + initiateUCLoad: InitiateUnitControlLoad_Response = ..., + uCLoad: UnitControlLoadSegment_Response = ..., + uCUpload: UnitControlUpload_Response = ..., + startUC: StartUnitControl_Response = ..., + stopUC: StopUnitControl_Response = ..., + createUC: CreateUnitControl_Response = ..., + addToUC: AddToUnitControl_Response = ..., + removeFromUC: RemoveFromUnitControl_Response = ..., + getUCAttributes: GetUnitControlAttributes_Response = ..., + loadUCFromFile: LoadUnitControlFromFile_Response = ..., + storeUCToFile: StoreUnitControlToFile_Response = ..., + deleteUC: DeleteUnitControl_Response = ..., + defineECL: DefineEventConditionList_Response = ..., + deleteECL: DeleteEventConditionList_Response = ..., + addECLReference: AddEventConditionListReference_Response = ..., + removeECLReference: RemoveEventConditionListReference_Response = ..., + getECLAttributes: GetEventConditionListAttributes_Response = ..., + reportECLStatus: ReportEventConditionListStatus_Response = ..., + alterECLMonitoring: AlterEventConditionListMonitoring_Response = ..., + ) -> None: ... + +class Response_Detail(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_otherRequests = 1 + PR_status = 2 + PR_getProgramInvocationAttributes = 3 + PR_getEventConditionAttributes = 4 + + @property + def present(self) -> PRESENT: ... + otherRequests: None + status: CS_Status_Response | None + getProgramInvocationAttributes: CS_GetProgramInvocationAttributes_Response | None + getEventConditionAttributes: CS_GetEventConditionAttributes_Response | None + def __init__( + self, + /, + *, + otherRequests: None = ..., + status: CS_Status_Response = ..., + getProgramInvocationAttributes: CS_GetProgramInvocationAttributes_Response = ..., + getEventConditionAttributes: CS_GetEventConditionAttributes_Response = ..., + ) -> None: ... + +class ServiceError(_Asn1Type): # SEQUENCE + class errorClass_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_vmd_state = 1 + PR_application_reference = 2 + PR_definition = 3 + PR_resource = 4 + PR_service = 5 + PR_service_preempt = 6 + PR_time_resolution = 7 + PR_access = 8 + PR_initiate = 9 + PR_conclude = 10 + PR_cancel = 11 + PR_file = 12 + PR_others = 13 + + @property + def present(self) -> PRESENT: ... + + class vmd_state_VALUES(EXT_IntEnum): + V_other = 0 + V_vmd_state_conflict = 1 + V_vmd_operational_problem = 2 + V_domain_transfer_problem = 3 + V_state_machine_id_invalid = 4 + + vmd_state: vmd_state_VALUES | None + + class application_reference_VALUES(EXT_IntEnum): + V_other = 0 + V_application_unreachable = 1 + V_connection_lost = 2 + V_application_reference_invalid = 3 + V_context_unsupported = 4 + + application_reference: application_reference_VALUES | None + + class definition_VALUES(EXT_IntEnum): + V_other = 0 + V_object_undefined = 1 + V_invalid_address = 2 + V_type_unsupported = 3 + V_type_inconsistent = 4 + V_object_exists = 5 + V_object_attribute_inconsistent = 6 + + definition: definition_VALUES | None + + class resource_VALUES(EXT_IntEnum): + V_other = 0 + V_memory_unavailable = 1 + V_processor_resource_unavailable = 2 + V_mass_storage_unavailable = 3 + V_capability_unavailable = 4 + V_capability_unknown = 5 + + resource: resource_VALUES | None + + class service_VALUES(EXT_IntEnum): + V_other = 0 + V_primitives_out_of_sequence = 1 + V_object_state_conflict = 2 + V_pdu_size = 3 + V_continuation_invalid = 4 + V_object_constraint_conflict = 5 + + service: service_VALUES | None + + class service_preempt_VALUES(EXT_IntEnum): + V_other = 0 + V_timeout = 1 + V_deadlock = 2 + V_cancel = 3 + + service_preempt: service_preempt_VALUES | None + + class time_resolution_VALUES(EXT_IntEnum): + V_other = 0 + V_unsupportable_time_resolution = 1 + + time_resolution: time_resolution_VALUES | None + + class access_VALUES(EXT_IntEnum): + V_other = 0 + V_object_access_unsupported = 1 + V_object_non_existent = 2 + V_object_access_denied = 3 + V_object_invalidated = 4 + + access: access_VALUES | None + + class initiate_VALUES(EXT_IntEnum): + V_other = 0 + V_max_services_outstanding_calling_insufficient = 3 + V_max_services_outstanding_called_insufficient = 4 + V_service_CBB_insufficient = 5 + V_parameter_CBB_insufficient = 6 + V_nesting_level_insufficient = 7 + + initiate: initiate_VALUES | None + + class conclude_VALUES(EXT_IntEnum): + V_other = 0 + V_further_communication_required = 1 + + conclude: conclude_VALUES | None + + class cancel_VALUES(EXT_IntEnum): + V_other = 0 + V_invoke_id_unknown = 1 + V_cancel_not_possible = 2 + + cancel: cancel_VALUES | None + + class file_VALUES(EXT_IntEnum): + V_other = 0 + V_filename_ambiguous = 1 + V_file_busy = 2 + V_filename_syntax_error = 3 + V_content_type_invalid = 4 + V_position_invalid = 5 + V_file_access_denied = 6 + V_file_non_existent = 7 + V_duplicate_filename = 8 + V_insufficient_space_in_filestore = 9 + + file: file_VALUES | None + others: int | None + def __init__( + self, + /, + *, + vmd_state: vmd_state_VALUES = ..., + application_reference: application_reference_VALUES = ..., + definition: definition_VALUES = ..., + resource: resource_VALUES = ..., + service: service_VALUES = ..., + service_preempt: service_preempt_VALUES = ..., + time_resolution: time_resolution_VALUES = ..., + access: access_VALUES = ..., + initiate: initiate_VALUES = ..., + conclude: conclude_VALUES = ..., + cancel: cancel_VALUES = ..., + file: file_VALUES = ..., + others: int = ..., + ) -> None: ... + + errorClass: errorClass_TYPE + + class serviceSpecificInfo_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_obtainFile = 1 + PR_start = 2 + PR_stop = 3 + PR_resume = 4 + PR_reset = 5 + PR_deleteVariableAccess = 6 + PR_deleteNamedVariableList = 7 + PR_deleteNamedType = 8 + PR_defineEventEnrollment_Error = 9 + PR_fileRename = 10 + PR_additionalService = 11 + PR_changeAccessControl = 12 + + @property + def present(self) -> PRESENT: ... + @property + def obtainFile(self) -> ObtainFile_Error | None: ... + @obtainFile.setter + def obtainFile(self, value: ObtainFile_Error | int | None) -> None: ... + start: Start_Error | None + stop: Stop_Error | None + resume: Resume_Error | None + reset: Reset_Error | None + deleteVariableAccess: DeleteVariableAccess_Error | None + deleteNamedVariableList: DeleteNamedVariableList_Error | None + deleteNamedType: DeleteNamedType_Error | None + defineEventEnrollment_Error: DefineEventEnrollment_Error | None + @property + def fileRename(self) -> FileRename_Error | None: ... + @fileRename.setter + def fileRename(self, value: FileRename_Error | int | None) -> None: ... + additionalService: AdditionalService_Error | None + changeAccessControl: ChangeAccessControl_Error | None + def __init__( + self, + /, + *, + obtainFile: ObtainFile_Error = ..., + start: Start_Error = ..., + stop: Stop_Error = ..., + resume: Resume_Error = ..., + reset: Reset_Error = ..., + deleteVariableAccess: DeleteVariableAccess_Error = ..., + deleteNamedVariableList: DeleteNamedVariableList_Error = ..., + deleteNamedType: DeleteNamedType_Error = ..., + defineEventEnrollment_Error: DefineEventEnrollment_Error = ..., + fileRename: FileRename_Error = ..., + additionalService: AdditionalService_Error = ..., + changeAccessControl: ChangeAccessControl_Error = ..., + ) -> None: ... + + serviceSpecificInfo: serviceSpecificInfo_TYPE | None + additionalCode: int | None + additionalDescription: str | None + def __init__( + self, + /, + *, + errorClass: errorClass_TYPE = ..., + additionalCode: int = ..., + additionalDescription: str = ..., + serviceSpecificInfo: serviceSpecificInfo_TYPE = ..., + ) -> None: ... + +class AdditionalService_Error(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_defineEcl = 1 + PR_addECLReference = 2 + PR_removeECLReference = 3 + PR_initiateUC = 4 + PR_startUC = 5 + PR_stopUC = 6 + PR_deleteUC = 7 + PR_loadUCFromFile = 8 + + @property + def present(self) -> PRESENT: ... + defineEcl: DefineEventConditionList_Error | None + addECLReference: AddEventConditionListReference_Error | None + removeECLReference: RemoveEventConditionListReference_Error | None + initiateUC: InitiateUnitControl_Error | None + startUC: StartUnitControl_Error | None + stopUC: StopUnitControl_Error | None + deleteUC: DeleteUnitControl_Error | None + loadUCFromFile: LoadUnitControlFromFile_Error | None + def __init__( + self, + /, + *, + defineEcl: DefineEventConditionList_Error = ..., + addECLReference: AddEventConditionListReference_Error = ..., + removeECLReference: RemoveEventConditionListReference_Error = ..., + initiateUC: InitiateUnitControl_Error = ..., + startUC: StartUnitControl_Error = ..., + stopUC: StopUnitControl_Error = ..., + deleteUC: DeleteUnitControl_Error = ..., + loadUCFromFile: LoadUnitControlFromFile_Error = ..., + ) -> None: ... + +class Initiate_RequestPDU(_Asn1Type): # SEQUENCE + class initRequestDetail_TYPE(_Asn1Type): # SEQUENCE + @property + def proposedVersionNumber(self) -> Integer16: ... + @proposedVersionNumber.setter + def proposedVersionNumber(self, value: Integer16 | int) -> None: ... + @property + def proposedParameterCBB(self) -> ParameterSupportOptions: ... + @proposedParameterCBB.setter + def proposedParameterCBB( + self, value: ParameterSupportOptions | EXT_bitarray | int | bytes + ) -> None: ... + @property + def servicesSupportedCalling(self) -> ServiceSupportOptions: ... + @servicesSupportedCalling.setter + def servicesSupportedCalling( + self, value: ServiceSupportOptions | EXT_bitarray | int | bytes + ) -> None: ... + @property + def additionalSupportedCalling(self) -> AdditionalSupportOptions | None: ... + @additionalSupportedCalling.setter + def additionalSupportedCalling( + self, value: AdditionalSupportOptions | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def additionalCbbSupportedCalling(self) -> AdditionalCBBOptions | None: ... + @additionalCbbSupportedCalling.setter + def additionalCbbSupportedCalling( + self, value: AdditionalCBBOptions | EXT_bitarray | int | bytes | None + ) -> None: ... + privilegeClassIdentityCalling: str | None + def __init__( + self, + /, + *, + proposedVersionNumber: Integer16 = ..., + proposedParameterCBB: ParameterSupportOptions = ..., + servicesSupportedCalling: ServiceSupportOptions = ..., + additionalSupportedCalling: AdditionalSupportOptions = ..., + additionalCbbSupportedCalling: AdditionalCBBOptions = ..., + privilegeClassIdentityCalling: str = ..., + ) -> None: ... + + initRequestDetail: initRequestDetail_TYPE + @property + def localDetailCalling(self) -> Integer32 | None: ... + @localDetailCalling.setter + def localDetailCalling(self, value: Integer32 | int | None) -> None: ... + @property + def proposedMaxServOutstandingCalling(self) -> Integer16: ... + @proposedMaxServOutstandingCalling.setter + def proposedMaxServOutstandingCalling(self, value: Integer16 | int) -> None: ... + @property + def proposedMaxServOutstandingCalled(self) -> Integer16: ... + @proposedMaxServOutstandingCalled.setter + def proposedMaxServOutstandingCalled(self, value: Integer16 | int) -> None: ... + @property + def proposedDataStructureNestingLevel(self) -> Integer8 | None: ... + @proposedDataStructureNestingLevel.setter + def proposedDataStructureNestingLevel( + self, value: Integer8 | int | None + ) -> None: ... + def __init__( + self, + /, + *, + localDetailCalling: Integer32 = ..., + proposedMaxServOutstandingCalling: Integer16 = ..., + proposedMaxServOutstandingCalled: Integer16 = ..., + proposedDataStructureNestingLevel: Integer8 = ..., + initRequestDetail: initRequestDetail_TYPE = ..., + ) -> None: ... + +class Initiate_ResponsePDU(_Asn1Type): # SEQUENCE + class initResponseDetail_TYPE(_Asn1Type): # SEQUENCE + @property + def negotiatedVersionNumber(self) -> Integer16: ... + @negotiatedVersionNumber.setter + def negotiatedVersionNumber(self, value: Integer16 | int) -> None: ... + @property + def negotiatedParameterCBB(self) -> ParameterSupportOptions: ... + @negotiatedParameterCBB.setter + def negotiatedParameterCBB( + self, value: ParameterSupportOptions | EXT_bitarray | int | bytes + ) -> None: ... + @property + def servicesSupportedCalled(self) -> ServiceSupportOptions: ... + @servicesSupportedCalled.setter + def servicesSupportedCalled( + self, value: ServiceSupportOptions | EXT_bitarray | int | bytes + ) -> None: ... + @property + def additionalSupportedCalled(self) -> AdditionalSupportOptions | None: ... + @additionalSupportedCalled.setter + def additionalSupportedCalled( + self, value: AdditionalSupportOptions | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def additionalCbbSupportedCalled(self) -> AdditionalCBBOptions | None: ... + @additionalCbbSupportedCalled.setter + def additionalCbbSupportedCalled( + self, value: AdditionalCBBOptions | EXT_bitarray | int | bytes | None + ) -> None: ... + privilegeClassIdentityCalled: str | None + def __init__( + self, + /, + *, + negotiatedVersionNumber: Integer16 = ..., + negotiatedParameterCBB: ParameterSupportOptions = ..., + servicesSupportedCalled: ServiceSupportOptions = ..., + additionalSupportedCalled: AdditionalSupportOptions = ..., + additionalCbbSupportedCalled: AdditionalCBBOptions = ..., + privilegeClassIdentityCalled: str = ..., + ) -> None: ... + + initResponseDetail: initResponseDetail_TYPE + @property + def localDetailCalled(self) -> Integer32 | None: ... + @localDetailCalled.setter + def localDetailCalled(self, value: Integer32 | int | None) -> None: ... + @property + def negotiatedMaxServOutstandingCalling(self) -> Integer16: ... + @negotiatedMaxServOutstandingCalling.setter + def negotiatedMaxServOutstandingCalling(self, value: Integer16 | int) -> None: ... + @property + def negotiatedMaxServOutstandingCalled(self) -> Integer16: ... + @negotiatedMaxServOutstandingCalled.setter + def negotiatedMaxServOutstandingCalled(self, value: Integer16 | int) -> None: ... + @property + def negotiatedDataStructureNestingLevel(self) -> Integer8 | None: ... + @negotiatedDataStructureNestingLevel.setter + def negotiatedDataStructureNestingLevel( + self, value: Integer8 | int | None + ) -> None: ... + def __init__( + self, + /, + *, + localDetailCalled: Integer32 = ..., + negotiatedMaxServOutstandingCalling: Integer16 = ..., + negotiatedMaxServOutstandingCalled: Integer16 = ..., + negotiatedDataStructureNestingLevel: Integer8 = ..., + initResponseDetail: initResponseDetail_TYPE = ..., + ) -> None: ... + +class Initiate_ErrorPDU(_Asn1BasicType[ServiceError]): ... +class Conclude_RequestPDU(_Asn1BasicType[None]): ... +class Conclude_ResponsePDU(_Asn1BasicType[None]): ... +class Conclude_ErrorPDU(_Asn1BasicType[ServiceError]): ... +class Cancel_RequestPDU(_Asn1BasicType[Unsigned32]): ... +class Cancel_ResponsePDU(_Asn1BasicType[Unsigned32]): ... + +class Cancel_ErrorPDU(_Asn1Type): # SEQUENCE + @property + def originalInvokeID(self) -> Unsigned32: ... + @originalInvokeID.setter + def originalInvokeID(self, value: Unsigned32 | int) -> None: ... + serviceError: ServiceError | None + def __init__( + self, + /, + *, + originalInvokeID: Unsigned32 = ..., + serviceError: ServiceError = ..., + ) -> None: ... + +class RejectPDU(_Asn1Type): # SEQUENCE + class rejectReason_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_confirmed_requestPDU = 1 + PR_confirmed_responsePDU = 2 + PR_confirmed_errorPDU = 3 + PR_unconfirmedPDU = 4 + PR_pdu_error = 5 + PR_cancel_requestPDU = 6 + PR_cancel_responsePDU = 7 + PR_cancel_errorPDU = 8 + PR_conclude_requestPDU = 9 + PR_conclude_responsePDU = 10 + PR_conclude_errorPDU = 11 + + @property + def present(self) -> PRESENT: ... + + class confirmed_requestPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_unrecognized_service = 1 + V_unrecognized_modifier = 2 + V_invalid_invokeID = 3 + V_invalid_argument = 4 + V_invalid_modifier = 5 + V_max_serv_outstanding_exceeded = 6 + V_max_recursion_exceeded = 8 + V_value_out_of_range = 9 + + confirmed_requestPDU: confirmed_requestPDU_VALUES | None + + class confirmed_responsePDU_VALUES(EXT_IntEnum): + V_other = 0 + V_unrecognized_service = 1 + V_invalid_invokeID = 2 + V_invalid_result = 3 + V_max_recursion_exceeded = 5 + V_value_out_of_range = 6 + + confirmed_responsePDU: confirmed_responsePDU_VALUES | None + + class confirmed_errorPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_unrecognized_service = 1 + V_invalid_invokeID = 2 + V_invalid_serviceError = 3 + V_value_out_of_range = 4 + + confirmed_errorPDU: confirmed_errorPDU_VALUES | None + + class unconfirmedPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_unrecognized_service = 1 + V_invalid_argument = 2 + V_max_recursion_exceeded = 3 + V_value_out_of_range = 4 + + unconfirmedPDU: unconfirmedPDU_VALUES | None + + class pdu_error_VALUES(EXT_IntEnum): + V_unknown_pdu_type = 0 + V_invalid_pdu = 1 + V_illegal_acse_mapping = 2 + + pdu_error: pdu_error_VALUES | None + + class cancel_requestPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_invalid_invokeID = 1 + + cancel_requestPDU: cancel_requestPDU_VALUES | None + + class cancel_responsePDU_VALUES(EXT_IntEnum): + V_other = 0 + V_invalid_invokeID = 1 + + cancel_responsePDU: cancel_responsePDU_VALUES | None + + class cancel_errorPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_invalid_invokeID = 1 + V_invalid_serviceError = 2 + V_value_out_of_range = 3 + + cancel_errorPDU: cancel_errorPDU_VALUES | None + + class conclude_requestPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_invalid_argument = 1 + + conclude_requestPDU: conclude_requestPDU_VALUES | None + + class conclude_responsePDU_VALUES(EXT_IntEnum): + V_other = 0 + V_invalid_result = 1 + + conclude_responsePDU: conclude_responsePDU_VALUES | None + + class conclude_errorPDU_VALUES(EXT_IntEnum): + V_other = 0 + V_invalid_serviceError = 1 + V_value_out_of_range = 2 + + conclude_errorPDU: conclude_errorPDU_VALUES | None + def __init__( + self, + /, + *, + confirmed_requestPDU: confirmed_requestPDU_VALUES = ..., + confirmed_responsePDU: confirmed_responsePDU_VALUES = ..., + confirmed_errorPDU: confirmed_errorPDU_VALUES = ..., + unconfirmedPDU: unconfirmedPDU_VALUES = ..., + pdu_error: pdu_error_VALUES = ..., + cancel_requestPDU: cancel_requestPDU_VALUES = ..., + cancel_responsePDU: cancel_responsePDU_VALUES = ..., + cancel_errorPDU: cancel_errorPDU_VALUES = ..., + conclude_requestPDU: conclude_requestPDU_VALUES = ..., + conclude_responsePDU: conclude_responsePDU_VALUES = ..., + conclude_errorPDU: conclude_errorPDU_VALUES = ..., + ) -> None: ... + + rejectReason: rejectReason_TYPE + @property + def originalInvokeID(self) -> Unsigned32 | None: ... + @originalInvokeID.setter + def originalInvokeID(self, value: Unsigned32 | int | None) -> None: ... + def __init__( + self, + /, + *, + originalInvokeID: Unsigned32 = ..., + rejectReason: rejectReason_TYPE = ..., + ) -> None: ... + +class DefineAccessControlList_Request(_Asn1Type): # SEQUENCE + class accessControlListElements_TYPE(_Asn1Type): # SEQUENCE + readAccessCondition: AccessCondition | None + storeAccessCondition: AccessCondition | None + writeAccessCondition: AccessCondition | None + loadAccessCondition: AccessCondition | None + executeAccessCondition: AccessCondition | None + deleteAccessCondition: AccessCondition | None + editAccessCondition: AccessCondition | None + def __init__( + self, + /, + *, + readAccessCondition: AccessCondition = ..., + storeAccessCondition: AccessCondition = ..., + writeAccessCondition: AccessCondition = ..., + loadAccessCondition: AccessCondition = ..., + executeAccessCondition: AccessCondition = ..., + deleteAccessCondition: AccessCondition = ..., + editAccessCondition: AccessCondition = ..., + ) -> None: ... + + accessControlListElements: accessControlListElements_TYPE + @property + def accessControlListName(self) -> Identifier: ... + @accessControlListName.setter + def accessControlListName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + accessControlListName: Identifier = ..., + accessControlListElements: accessControlListElements_TYPE = ..., + ) -> None: ... + +class DefineAccessControlList_Response(_Asn1BasicType[None]): ... + +class GetAccessControlListAttributes_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_accessControlListName = 1 + PR_vMD = 2 + PR_namedObject = 3 + + @property + def present(self) -> PRESENT: ... + + class namedObject_TYPE(_Asn1Type): # SEQUENCE + objectClass: ObjectClass + objectName: ObjectName + def __init__( + self, + /, + *, + objectClass: ObjectClass = ..., + objectName: ObjectName = ..., + ) -> None: ... + + namedObject: namedObject_TYPE + @property + def accessControlListName(self) -> Identifier | None: ... + @accessControlListName.setter + def accessControlListName(self, value: Identifier | str | None) -> None: ... + vMD: None + def __init__( + self, + /, + *, + accessControlListName: Identifier = ..., + vMD: None = ..., + namedObject: namedObject_TYPE = ..., + ) -> None: ... + +class GetAccessControlListAttributes_Response(_Asn1Type): # SEQUENCE + class accessControlListElements_TYPE(_Asn1Type): # SEQUENCE + readAccessCondition: AccessCondition | None + storeAccessCondition: AccessCondition | None + writeAccessCondition: AccessCondition | None + loadAccessCondition: AccessCondition | None + executeAccessCondition: AccessCondition | None + deleteAccessCondition: AccessCondition | None + editAccessCondition: AccessCondition | None + def __init__( + self, + /, + *, + readAccessCondition: AccessCondition = ..., + storeAccessCondition: AccessCondition = ..., + writeAccessCondition: AccessCondition = ..., + loadAccessCondition: AccessCondition = ..., + executeAccessCondition: AccessCondition = ..., + deleteAccessCondition: AccessCondition = ..., + editAccessCondition: AccessCondition = ..., + ) -> None: ... + + accessControlListElements: accessControlListElements_TYPE + + class references_TYPE(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + objectClass: ObjectClass + objectCount: int + def __init__( + self, + /, + *, + objectClass: ObjectClass = ..., + objectCount: int = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + references: references_TYPE + @property + def name(self) -> Identifier: ... + @name.setter + def name(self, value: Identifier | str) -> None: ... + vMDuse: bool + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + name: Identifier = ..., + accessControlListElements: accessControlListElements_TYPE = ..., + vMDuse: bool = ..., + references: references_TYPE = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class ReportAccessControlledObjects_Request(_Asn1Type): # SEQUENCE + @property + def accessControlList(self) -> Identifier: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str) -> None: ... + objectClass: ObjectClass | None + continueAfter: ObjectName | None + def __init__( + self, + /, + *, + accessControlList: Identifier = ..., + objectClass: ObjectClass = ..., + continueAfter: ObjectName = ..., + ) -> None: ... + +class ReportAccessControlledObjects_Response(_Asn1Type): # SEQUENCE + class listOfNames_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfNames: listOfNames_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfNames: listOfNames_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class DeleteAccessControlList_Request(_Asn1BasicType[Identifier]): ... +class DeleteAccessControlList_Response(_Asn1BasicType[None]): ... + +class ChangeAccessControl_Request(_Asn1Type): # SEQUENCE + class scopeOfChange_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_vMDOnly = 1 + PR_listOfObjects = 2 + + @property + def present(self) -> PRESENT: ... + + class listOfObjects_TYPE(_Asn1Type): # SEQUENCE + class objectScope_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_specific = 1 + PR_aa_specific = 2 + PR_domain = 3 + PR_vmd = 4 + + @property + def present(self) -> PRESENT: ... + + class specific_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[ObjectName] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + specific: specific_TYPE + aa_specific: None + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + vmd: None + def __init__( + self, + /, + *, + specific: specific_TYPE = ..., + aa_specific: None = ..., + domain: Identifier = ..., + vmd: None = ..., + ) -> None: ... + + objectScope: objectScope_TYPE + objectClass: ObjectClass + def __init__( + self, + /, + *, + objectClass: ObjectClass = ..., + objectScope: objectScope_TYPE = ..., + ) -> None: ... + + listOfObjects: listOfObjects_TYPE + vMDOnly: None + def __init__( + self, + /, + *, + vMDOnly: None = ..., + listOfObjects: listOfObjects_TYPE = ..., + ) -> None: ... + + scopeOfChange: scopeOfChange_TYPE + @property + def accessControlListName(self) -> Identifier: ... + @accessControlListName.setter + def accessControlListName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + scopeOfChange: scopeOfChange_TYPE = ..., + accessControlListName: Identifier = ..., + ) -> None: ... + +class ChangeAccessControl_Response(_Asn1Type): # SEQUENCE + @property + def numberMatched(self) -> Unsigned32: ... + @numberMatched.setter + def numberMatched(self, value: Unsigned32 | int) -> None: ... + @property + def numberChanged(self) -> Unsigned32: ... + @numberChanged.setter + def numberChanged(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + numberMatched: Unsigned32 = ..., + numberChanged: Unsigned32 = ..., + ) -> None: ... + +class ChangeAccessControl_Error(_Asn1BasicType[Unsigned32]): ... + +class StatusResponse(_Asn1Type): # SEQUENCE + class vmdLogicalStatus_VALUES(EXT_IntEnum): + V_state_changes_allowed = 0 + V_no_state_changes_allowed = 1 + V_limited_services_permitted = 2 + V_support_services_allowed = 3 + + vmdLogicalStatus: vmdLogicalStatus_VALUES + + class vmdPhysicalStatus_VALUES(EXT_IntEnum): + V_operational = 0 + V_partially_operational = 1 + V_inoperable = 2 + V_needs_commissioning = 3 + + vmdPhysicalStatus: vmdPhysicalStatus_VALUES + + class localDetail_TYPE(_Asn1BitStrType): ... + + @property + def localDetail(self) -> localDetail_TYPE | None: ... + @localDetail.setter + def localDetail( + self, value: localDetail_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + def __init__( + self, + /, + *, + vmdLogicalStatus: vmdLogicalStatus_VALUES = ..., + vmdPhysicalStatus: vmdPhysicalStatus_VALUES = ..., + localDetail: localDetail_TYPE | EXT_bitarray | bytes = ..., + ) -> None: ... + +class CS_Status_Response(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_fullResponse = 1 + PR_noExtraResponse = 2 + + @property + def present(self) -> PRESENT: ... + + class fullResponse_TYPE(_Asn1Type): # SEQUENCE + class selectedProgramInvocation_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_programInvocation = 1 + PR_noneSelected = 2 + + @property + def present(self) -> PRESENT: ... + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + noneSelected: None + def __init__( + self, + /, + *, + programInvocation: Identifier = ..., + noneSelected: None = ..., + ) -> None: ... + + selectedProgramInvocation: selectedProgramInvocation_TYPE + @property + def operationState(self) -> OperationState: ... + @operationState.setter + def operationState(self, value: OperationState | int) -> None: ... + @property + def extendedStatus(self) -> ExtendedStatus: ... + @extendedStatus.setter + def extendedStatus( + self, value: ExtendedStatus | EXT_bitarray | int | bytes + ) -> None: ... + @property + def extendedStatusMask(self) -> ExtendedStatus | None: ... + @extendedStatusMask.setter + def extendedStatusMask( + self, value: ExtendedStatus | EXT_bitarray | int | bytes | None + ) -> None: ... + def __init__( + self, + /, + *, + operationState: OperationState = ..., + extendedStatus: ExtendedStatus = ..., + extendedStatusMask: ExtendedStatus = ..., + selectedProgramInvocation: selectedProgramInvocation_TYPE = ..., + ) -> None: ... + + fullResponse: fullResponse_TYPE + noExtraResponse: None + def __init__( + self, + /, + *, + fullResponse: fullResponse_TYPE = ..., + noExtraResponse: None = ..., + ) -> None: ... class OperationState(_Asn1Type): - class VALUES(EXT_IntEnum): - V_idle = 0 - V_loaded = 1 - V_ready = 2 - V_executing = 3 - V_motion_paused = 4 - V_manualInterventionRequired = 5 - - @property - def value(self) -> OperationState.VALUES: ... - @value.setter - def value(self, value: OperationState.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + class VALUES(EXT_IntEnum): + V_idle = 0 + V_loaded = 1 + V_ready = 2 + V_executing = 3 + V_motion_paused = 4 + V_manualInterventionRequired = 5 + + @property + def value(self) -> OperationState.VALUES: ... + @value.setter + def value(self, value: OperationState.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class ExtendedStatus(_Asn1BitStrType): - V_safetyInterlocksViolated: bool # bit 0 - V_anyPhysicalResourcePowerOn: bool # bit 1 - V_allPhysicalResourcesCalibrated: bool # bit 2 - V_localControl: bool # bit 3 - - -class Status_Request(_Asn1BasicType[bool]): - pass - -class Status_Response(_Asn1BasicType[StatusResponse]): - pass - -class UnsolicitedStatus(_Asn1BasicType[StatusResponse]): - pass - -class GetNameList_Request(_Asn1Type): # SEQUENCE - - class objectScope_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_vmdSpecific = 1 - PR_domainSpecific = 2 - PR_aaSpecific = 3 - - @property - def present(self) -> PRESENT: ... - vmdSpecific: None | None - @property - def domainSpecific(self) -> Identifier | None: ... - @domainSpecific.setter - def domainSpecific(self, value: Identifier | str | None) -> None: ... - aaSpecific: None | None - def __init__( - self, /, *, - vmdSpecific: None = ..., - domainSpecific: Identifier = ..., - aaSpecific: None = ..., - ) -> None: ... - - objectScope: objectScope_TYPE - objectClass: ObjectClass - @property - def continueAfter(self) -> Identifier | None: ... - @continueAfter.setter - def continueAfter(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - objectClass: ObjectClass = ..., - objectScope: objectScope_TYPE = ..., - continueAfter: Identifier = ..., - ) -> None: ... - -class GetNameList_Response(_Asn1Type): # SEQUENCE - - class listOfIdentifier_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfIdentifier: listOfIdentifier_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfIdentifier: listOfIdentifier_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class Identify_Request(_Asn1BasicType[None]): - pass - -class Identify_Response(_Asn1Type): # SEQUENCE - - class listOfAbstractSyntaxes_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[str] | None = ...) -> None: ... - def __getitem__(self, index: int) -> str: ... - def __setitem__(self, index: int, value: str) -> None: ... - def add(self, value: str) -> None: ... - def extend(self, values: EXT_Iterable[str]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfAbstractSyntaxes: listOfAbstractSyntaxes_TYPE | None - @property - def vendorName(self) -> MMSString: ... - @vendorName.setter - def vendorName(self, value: MMSString | str) -> None: ... - @property - def modelName(self) -> MMSString: ... - @modelName.setter - def modelName(self, value: MMSString | str) -> None: ... - @property - def revision(self) -> MMSString: ... - @revision.setter - def revision(self, value: MMSString | str) -> None: ... - def __init__( - self, /, *, - vendorName: MMSString = ..., - modelName: MMSString = ..., - revision: MMSString = ..., - listOfAbstractSyntaxes: listOfAbstractSyntaxes_TYPE = ..., - ) -> None: ... - -class Rename_Request(_Asn1Type): # SEQUENCE - objectClass: ObjectClass - currentName: ObjectName - @property - def newIdentifier(self) -> Identifier: ... - @newIdentifier.setter - def newIdentifier(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - objectClass: ObjectClass = ..., - currentName: ObjectName = ..., - newIdentifier: Identifier = ..., - ) -> None: ... - -class Rename_Response(_Asn1BasicType[None]): - pass - -class GetCapabilityList_Request(_Asn1Type): # SEQUENCE - @property - def continueAfter(self) -> MMSString | None: ... - @continueAfter.setter - def continueAfter(self, value: MMSString | str | None) -> None: ... - def __init__( - self, /, *, - continueAfter: MMSString = ..., - ) -> None: ... - -class GetCapabilityList_Response(_Asn1Type): # SEQUENCE - - class listOfCapabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfCapabilities: listOfCapabilities_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfCapabilities: listOfCapabilities_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class VMDStop_Request(_Asn1BasicType[None]): - pass - -class VMDStop_Response(_Asn1BasicType[None]): - pass - -class VMDReset_Request(_Asn1BasicType[bool]): - pass - -class VMDReset_Response(_Asn1BasicType[StatusResponse]): - pass - -class InitiateDownloadSequence_Request(_Asn1Type): # SEQUENCE - - class listOfCapabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfCapabilities: listOfCapabilities_TYPE - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - sharable: bool - def __init__( - self, /, *, - domainName: Identifier = ..., - listOfCapabilities: listOfCapabilities_TYPE = ..., - sharable: bool = ..., - ) -> None: ... - -class InitiateDownloadSequence_Response(_Asn1BasicType[None]): - pass - -class DownloadSegment_Request(_Asn1BasicType[Identifier]): - pass - -class DownloadSegment_Response(_Asn1Type): # SEQUENCE - loadData: LoadData - moreFollows: bool | None - def __init__( - self, /, *, - loadData: LoadData = ..., - moreFollows: bool = ..., - ) -> None: ... - -class LoadData(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_non_coded = 1 - PR_coded = 2 - PR_embedded = 3 - - @property - def present(self) -> PRESENT: ... - non_coded: bytes | None - coded: EXTERNAL | None - embedded: EMBEDDED_PDV | None - def __init__( - self, /, *, - non_coded: bytes = ..., - coded: EXTERNAL = ..., - embedded: EMBEDDED_PDV = ..., - ) -> None: ... - -class TerminateDownloadSequence_Request(_Asn1Type): # SEQUENCE - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - discard: ServiceError | None - def __init__( - self, /, *, - domainName: Identifier = ..., - discard: ServiceError = ..., - ) -> None: ... - -class TerminateDownloadSequence_Response(_Asn1BasicType[None]): - pass - -class InitiateUploadSequence_Request(_Asn1BasicType[Identifier]): - pass - -class InitiateUploadSequence_Response(_Asn1Type): # SEQUENCE - - class listOfCapabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfCapabilities: listOfCapabilities_TYPE - @property - def ulsmID(self) -> Integer32: ... - @ulsmID.setter - def ulsmID(self, value: Integer32 | int) -> None: ... - def __init__( - self, /, *, - ulsmID: Integer32 = ..., - listOfCapabilities: listOfCapabilities_TYPE = ..., - ) -> None: ... - -class UploadSegment_Request(_Asn1BasicType[Integer32]): - pass - -class UploadSegment_Response(_Asn1Type): # SEQUENCE - loadData: LoadData - moreFollows: bool | None - def __init__( - self, /, *, - loadData: LoadData = ..., - moreFollows: bool = ..., - ) -> None: ... - -class TerminateUploadSequence_Request(_Asn1BasicType[Integer32]): - pass - -class TerminateUploadSequence_Response(_Asn1BasicType[None]): - pass - -class RequestDomainDownload_Request(_Asn1Type): # SEQUENCE - - class listOfCapabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfCapabilities: listOfCapabilities_TYPE | None - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - sharable: bool - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - def __init__( - self, /, *, - domainName: Identifier = ..., - listOfCapabilities: listOfCapabilities_TYPE = ..., - sharable: bool = ..., - fileName: FileName = ..., - ) -> None: ... - -class RequestDomainDownload_Response(_Asn1BasicType[None]): - pass - -class RequestDomainUpload_Request(_Asn1Type): # SEQUENCE - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - def __init__( - self, /, *, - domainName: Identifier = ..., - fileName: FileName = ..., - ) -> None: ... - -class RequestDomainUpload_Response(_Asn1BasicType[None]): - pass - -class LoadDomainContent_Request(_Asn1Type): # SEQUENCE - - class listOfCapabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfCapabilities: listOfCapabilities_TYPE | None - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - sharable: bool - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - thirdParty: ApplicationReference | None - def __init__( - self, /, *, - domainName: Identifier = ..., - listOfCapabilities: listOfCapabilities_TYPE = ..., - sharable: bool = ..., - fileName: FileName = ..., - thirdParty: ApplicationReference = ..., - ) -> None: ... - -class LoadDomainContent_Response(_Asn1BasicType[None]): - pass - -class StoreDomainContent_Request(_Asn1Type): # SEQUENCE - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - thirdParty: ApplicationReference | None - def __init__( - self, /, *, - domainName: Identifier = ..., - fileName: FileName = ..., - thirdParty: ApplicationReference = ..., - ) -> None: ... - -class StoreDomainContent_Response(_Asn1BasicType[None]): - pass - -class DeleteDomain_Request(_Asn1BasicType[Identifier]): - pass - -class DeleteDomain_Response(_Asn1BasicType[None]): - pass - -class GetDomainAttributes_Request(_Asn1BasicType[Identifier]): - pass - -class GetDomainAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfCapabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfCapabilities: listOfCapabilities_TYPE - - class listOfProgramInvocations_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfProgramInvocations: listOfProgramInvocations_TYPE - @property - def state(self) -> DomainState: ... - @state.setter - def state(self, value: DomainState | int) -> None: ... - mmsDeletable: bool - sharable: bool - @property - def uploadInProgress(self) -> Integer8: ... - @uploadInProgress.setter - def uploadInProgress(self, value: Integer8 | int) -> None: ... - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - listOfCapabilities: listOfCapabilities_TYPE = ..., - state: DomainState = ..., - mmsDeletable: bool = ..., - sharable: bool = ..., - listOfProgramInvocations: listOfProgramInvocations_TYPE = ..., - uploadInProgress: Integer8 = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class CreateProgramInvocation_Request(_Asn1Type): # SEQUENCE - - class listOfDomainNames_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfDomainNames: listOfDomainNames_TYPE - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - reusable: bool | None - monitorType: bool | None - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - listOfDomainNames: listOfDomainNames_TYPE = ..., - reusable: bool = ..., - monitorType: bool = ..., - ) -> None: ... - -class CreateProgramInvocation_Response(_Asn1BasicType[None]): - pass + V_safetyInterlocksViolated: bool # bit 0 + V_anyPhysicalResourcePowerOn: bool # bit 1 + V_allPhysicalResourcesCalibrated: bool # bit 2 + V_localControl: bool # bit 3 + +class Status_Request(_Asn1BasicType[bool]): ... +class Status_Response(_Asn1BasicType[StatusResponse]): ... +class UnsolicitedStatus(_Asn1BasicType[StatusResponse]): ... + +class GetNameList_Request(_Asn1Type): # SEQUENCE + class objectScope_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_vmdSpecific = 1 + PR_domainSpecific = 2 + PR_aaSpecific = 3 + + @property + def present(self) -> PRESENT: ... + vmdSpecific: None + @property + def domainSpecific(self) -> Identifier | None: ... + @domainSpecific.setter + def domainSpecific(self, value: Identifier | str | None) -> None: ... + aaSpecific: None + def __init__( + self, + /, + *, + vmdSpecific: None = ..., + domainSpecific: Identifier = ..., + aaSpecific: None = ..., + ) -> None: ... + + objectScope: objectScope_TYPE + objectClass: ObjectClass | None + @property + def continueAfter(self) -> Identifier | None: ... + @continueAfter.setter + def continueAfter(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + objectClass: ObjectClass = ..., + objectScope: objectScope_TYPE = ..., + continueAfter: Identifier = ..., + ) -> None: ... + +class GetNameList_Response(_Asn1Type): # SEQUENCE + class listOfIdentifier_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfIdentifier: listOfIdentifier_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfIdentifier: listOfIdentifier_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class Identify_Request(_Asn1BasicType[None]): ... + +class Identify_Response(_Asn1Type): # SEQUENCE + class listOfAbstractSyntaxes_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[str] | None = ...) -> None: ... + def __getitem__(self, index: int) -> str: ... + def __setitem__(self, index: int, value: str) -> None: ... + def add(self, value: str) -> None: ... + def extend(self, values: EXT_Iterable[str]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfAbstractSyntaxes: listOfAbstractSyntaxes_TYPE | None + @property + def vendorName(self) -> MMSString: ... + @vendorName.setter + def vendorName(self, value: MMSString | str) -> None: ... + @property + def modelName(self) -> MMSString: ... + @modelName.setter + def modelName(self, value: MMSString | str) -> None: ... + @property + def revision(self) -> MMSString: ... + @revision.setter + def revision(self, value: MMSString | str) -> None: ... + def __init__( + self, + /, + *, + vendorName: MMSString = ..., + modelName: MMSString = ..., + revision: MMSString = ..., + listOfAbstractSyntaxes: listOfAbstractSyntaxes_TYPE = ..., + ) -> None: ... + +class Rename_Request(_Asn1Type): # SEQUENCE + objectClass: ObjectClass | None + currentName: ObjectName | None + @property + def newIdentifier(self) -> Identifier: ... + @newIdentifier.setter + def newIdentifier(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + objectClass: ObjectClass = ..., + currentName: ObjectName = ..., + newIdentifier: Identifier = ..., + ) -> None: ... + +class Rename_Response(_Asn1BasicType[None]): ... + +class GetCapabilityList_Request(_Asn1Type): # SEQUENCE + @property + def continueAfter(self) -> MMSString | None: ... + @continueAfter.setter + def continueAfter(self, value: MMSString | str | None) -> None: ... + def __init__( + self, + /, + *, + continueAfter: MMSString = ..., + ) -> None: ... + +class GetCapabilityList_Response(_Asn1Type): # SEQUENCE + class listOfCapabilities_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfCapabilities: listOfCapabilities_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfCapabilities: listOfCapabilities_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class VMDStop_Request(_Asn1BasicType[None]): ... +class VMDStop_Response(_Asn1BasicType[None]): ... +class VMDReset_Request(_Asn1BasicType[bool]): ... +class VMDReset_Response(_Asn1BasicType[StatusResponse]): ... + +class InitiateDownloadSequence_Request(_Asn1Type): # SEQUENCE + class listOfCapabilities_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfCapabilities: listOfCapabilities_TYPE + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + sharable: bool + def __init__( + self, + /, + *, + domainName: Identifier = ..., + listOfCapabilities: listOfCapabilities_TYPE = ..., + sharable: bool = ..., + ) -> None: ... + +class InitiateDownloadSequence_Response(_Asn1BasicType[None]): ... +class DownloadSegment_Request(_Asn1BasicType[Identifier]): ... + +class DownloadSegment_Response(_Asn1Type): # SEQUENCE + loadData: LoadData | None + moreFollows: bool | None + def __init__( + self, + /, + *, + loadData: LoadData = ..., + moreFollows: bool = ..., + ) -> None: ... + +class LoadData(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_non_coded = 1 + PR_coded = 2 + PR_embedded = 3 + + @property + def present(self) -> PRESENT: ... + non_coded: bytes | None + coded: EXTERNAL | None + embedded: EMBEDDED_PDV | None + def __init__( + self, + /, + *, + non_coded: bytes = ..., + coded: EXTERNAL = ..., + embedded: EMBEDDED_PDV = ..., + ) -> None: ... + +class TerminateDownloadSequence_Request(_Asn1Type): # SEQUENCE + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + discard: ServiceError | None + def __init__( + self, + /, + *, + domainName: Identifier = ..., + discard: ServiceError = ..., + ) -> None: ... + +class TerminateDownloadSequence_Response(_Asn1BasicType[None]): ... +class InitiateUploadSequence_Request(_Asn1BasicType[Identifier]): ... + +class InitiateUploadSequence_Response(_Asn1Type): # SEQUENCE + class listOfCapabilities_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfCapabilities: listOfCapabilities_TYPE + @property + def ulsmID(self) -> Integer32: ... + @ulsmID.setter + def ulsmID(self, value: Integer32 | int) -> None: ... + def __init__( + self, + /, + *, + ulsmID: Integer32 = ..., + listOfCapabilities: listOfCapabilities_TYPE = ..., + ) -> None: ... + +class UploadSegment_Request(_Asn1BasicType[Integer32]): ... + +class UploadSegment_Response(_Asn1Type): # SEQUENCE + loadData: LoadData | None + moreFollows: bool | None + def __init__( + self, + /, + *, + loadData: LoadData = ..., + moreFollows: bool = ..., + ) -> None: ... + +class TerminateUploadSequence_Request(_Asn1BasicType[Integer32]): ... +class TerminateUploadSequence_Response(_Asn1BasicType[None]): ... + +class RequestDomainDownload_Request(_Asn1Type): # SEQUENCE + class listOfCapabilities_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfCapabilities: listOfCapabilities_TYPE | None + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + sharable: bool + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + def __init__( + self, + /, + *, + domainName: Identifier = ..., + listOfCapabilities: listOfCapabilities_TYPE = ..., + sharable: bool = ..., + fileName: FileName = ..., + ) -> None: ... + +class RequestDomainDownload_Response(_Asn1BasicType[None]): ... + +class RequestDomainUpload_Request(_Asn1Type): # SEQUENCE + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + def __init__( + self, + /, + *, + domainName: Identifier = ..., + fileName: FileName = ..., + ) -> None: ... + +class RequestDomainUpload_Response(_Asn1BasicType[None]): ... + +class LoadDomainContent_Request(_Asn1Type): # SEQUENCE + class listOfCapabilities_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfCapabilities: listOfCapabilities_TYPE | None + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + sharable: bool + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + thirdParty: ApplicationReference | None + def __init__( + self, + /, + *, + domainName: Identifier = ..., + listOfCapabilities: listOfCapabilities_TYPE = ..., + sharable: bool = ..., + fileName: FileName = ..., + thirdParty: ApplicationReference = ..., + ) -> None: ... + +class LoadDomainContent_Response(_Asn1BasicType[None]): ... + +class StoreDomainContent_Request(_Asn1Type): # SEQUENCE + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + thirdParty: ApplicationReference | None + def __init__( + self, + /, + *, + domainName: Identifier = ..., + fileName: FileName = ..., + thirdParty: ApplicationReference = ..., + ) -> None: ... + +class StoreDomainContent_Response(_Asn1BasicType[None]): ... +class DeleteDomain_Request(_Asn1BasicType[Identifier]): ... +class DeleteDomain_Response(_Asn1BasicType[None]): ... +class GetDomainAttributes_Request(_Asn1BasicType[Identifier]): ... + +class GetDomainAttributes_Response(_Asn1Type): # SEQUENCE + class listOfCapabilities_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfCapabilities: listOfCapabilities_TYPE + + class listOfProgramInvocations_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfProgramInvocations: listOfProgramInvocations_TYPE + @property + def state(self) -> DomainState: ... + @state.setter + def state(self, value: DomainState | int) -> None: ... + mmsDeletable: bool + sharable: bool + @property + def uploadInProgress(self) -> Integer8: ... + @uploadInProgress.setter + def uploadInProgress(self, value: Integer8 | int) -> None: ... + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + listOfCapabilities: listOfCapabilities_TYPE = ..., + state: DomainState = ..., + mmsDeletable: bool = ..., + sharable: bool = ..., + listOfProgramInvocations: listOfProgramInvocations_TYPE = ..., + uploadInProgress: Integer8 = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class CreateProgramInvocation_Request(_Asn1Type): # SEQUENCE + class listOfDomainNames_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfDomainNames: listOfDomainNames_TYPE + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + reusable: bool | None + monitorType: bool | None + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + listOfDomainNames: listOfDomainNames_TYPE = ..., + reusable: bool = ..., + monitorType: bool = ..., + ) -> None: ... + +class CreateProgramInvocation_Response(_Asn1BasicType[None]): ... class CS_CreateProgramInvocation_Request(_Asn1Type): - class VALUES(EXT_IntEnum): - V_normal = 0 - V_controlling = 1 - V_controlled = 2 - - @property - def value(self) -> CS_CreateProgramInvocation_Request.VALUES: ... - @value.setter - def value(self, value: CS_CreateProgramInvocation_Request.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class DeleteProgramInvocation_Request(_Asn1BasicType[Identifier]): - pass - -class DeleteProgramInvocation_Response(_Asn1BasicType[None]): - pass - -class Start_Request(_Asn1Type): # SEQUENCE - - class executionArgument_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_simpleString = 1 - PR_encodedString = 2 - PR_embeddedString = 3 - - @property - def present(self) -> PRESENT: ... - @property - def simpleString(self) -> MMSString | None: ... - @simpleString.setter - def simpleString(self, value: MMSString | str | None) -> None: ... - encodedString: EXTERNAL | None - embeddedString: EMBEDDED_PDV | None - def __init__( - self, /, *, - simpleString: MMSString = ..., - encodedString: EXTERNAL = ..., - embeddedString: EMBEDDED_PDV = ..., - ) -> None: ... - - executionArgument: executionArgument_TYPE | None - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - executionArgument: executionArgument_TYPE = ..., - ) -> None: ... - -class Start_Response(_Asn1BasicType[None]): - pass - -class Start_Error(_Asn1BasicType[ProgramInvocationState]): - pass - -class CS_Start_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_normal = 1 - PR_controlling = 2 - - @property - def present(self) -> PRESENT: ... - - class controlling_TYPE(_Asn1Type): # SEQUENCE - startLocation: str | None - startCount: StartCount | None - def __init__( - self, /, *, - startLocation: str = ..., - startCount: StartCount = ..., - ) -> None: ... - - controlling: controlling_TYPE - normal: None | None - def __init__( - self, /, *, - normal: None = ..., - controlling: controlling_TYPE = ..., - ) -> None: ... - -class StartCount(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_noLimit = 1 - PR_cycleCount = 2 - PR_stepCount = 3 - - @property - def present(self) -> PRESENT: ... - noLimit: None | None - cycleCount: int | None - stepCount: int | None - def __init__( - self, /, *, - noLimit: None = ..., - cycleCount: int = ..., - stepCount: int = ..., - ) -> None: ... - -class Stop_Request(_Asn1Type): # SEQUENCE - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - ) -> None: ... - -class Stop_Response(_Asn1BasicType[None]): - pass - -class Stop_Error(_Asn1BasicType[ProgramInvocationState]): - pass - -class Resume_Request(_Asn1Type): # SEQUENCE - - class executionArgument_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_simpleString = 1 - PR_encodedString = 2 - PR_enmbeddedString = 3 - - @property - def present(self) -> PRESENT: ... - @property - def simpleString(self) -> MMSString | None: ... - @simpleString.setter - def simpleString(self, value: MMSString | str | None) -> None: ... - encodedString: EXTERNAL | None - enmbeddedString: EMBEDDED_PDV | None - def __init__( - self, /, *, - simpleString: MMSString = ..., - encodedString: EXTERNAL = ..., - enmbeddedString: EMBEDDED_PDV = ..., - ) -> None: ... - - executionArgument: executionArgument_TYPE | None - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - executionArgument: executionArgument_TYPE = ..., - ) -> None: ... - -class Resume_Response(_Asn1BasicType[None]): - pass - -class Resume_Error(_Asn1BasicType[ProgramInvocationState]): - pass - -class CS_Resume_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_normal = 1 - PR_controlling = 2 - - @property - def present(self) -> PRESENT: ... - - class controlling_TYPE(_Asn1Type): # SEQUENCE - - class modeType_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_continueMode = 1 - PR_changeMode = 2 - - @property - def present(self) -> PRESENT: ... - continueMode: None | None - changeMode: StartCount | None - def __init__( - self, /, *, - continueMode: None = ..., - changeMode: StartCount = ..., - ) -> None: ... - - modeType: modeType_TYPE - def __init__( - self, /, *, - modeType: modeType_TYPE = ..., - ) -> None: ... - - controlling: controlling_TYPE - normal: None | None - def __init__( - self, /, *, - normal: None = ..., - controlling: controlling_TYPE = ..., - ) -> None: ... - -class Reset_Request(_Asn1Type): # SEQUENCE - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - ) -> None: ... - -class Reset_Response(_Asn1BasicType[None]): - pass - -class Reset_Error(_Asn1BasicType[ProgramInvocationState]): - pass - -class Kill_Request(_Asn1Type): # SEQUENCE - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - ) -> None: ... - -class Kill_Response(_Asn1BasicType[None]): - pass - -class GetProgramInvocationAttributes_Request(_Asn1BasicType[Identifier]): - pass - -class GetProgramInvocationAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfDomainNames_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfDomainNames: listOfDomainNames_TYPE - - class executionArgument_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_simpleString = 1 - PR_encodedString = 2 - PR_enmbeddedString = 3 - - @property - def present(self) -> PRESENT: ... - @property - def simpleString(self) -> MMSString | None: ... - @simpleString.setter - def simpleString(self, value: MMSString | str | None) -> None: ... - encodedString: EXTERNAL | None - enmbeddedString: EMBEDDED_PDV | None - def __init__( - self, /, *, - simpleString: MMSString = ..., - encodedString: EXTERNAL = ..., - enmbeddedString: EMBEDDED_PDV = ..., - ) -> None: ... - - executionArgument: executionArgument_TYPE - @property - def state(self) -> ProgramInvocationState: ... - @state.setter - def state(self, value: ProgramInvocationState | int) -> None: ... - mmsDeletable: bool - reusable: bool - monitor: bool - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - state: ProgramInvocationState = ..., - listOfDomainNames: listOfDomainNames_TYPE = ..., - mmsDeletable: bool = ..., - reusable: bool = ..., - monitor: bool = ..., - executionArgument: executionArgument_TYPE = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class CS_GetProgramInvocationAttributes_Response(_Asn1Type): # SEQUENCE - - class control_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_controlling = 1 - PR_controlled = 2 - PR_normal = 3 - - @property - def present(self) -> PRESENT: ... - - class controlling_TYPE(_Asn1Type): # SEQUENCE - - class controlledPI_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - controlledPI: controlledPI_TYPE - - class runningMode_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_freeRunning = 1 - PR_cycleLimited = 2 - PR_stepLimited = 3 - - @property - def present(self) -> PRESENT: ... - freeRunning: None | None - cycleLimited: int | None - stepLimited: int | None - def __init__( - self, /, *, - freeRunning: None = ..., - cycleLimited: int = ..., - stepLimited: int = ..., - ) -> None: ... - - runningMode: runningMode_TYPE - programLocation: str | None - def __init__( - self, /, *, - controlledPI: controlledPI_TYPE = ..., - programLocation: str = ..., - runningMode: runningMode_TYPE = ..., - ) -> None: ... - - controlling: controlling_TYPE - - class controlled_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_controllingPI = 1 - PR_none = 2 - - @property - def present(self) -> PRESENT: ... - @property - def controllingPI(self) -> Identifier | None: ... - @controllingPI.setter - def controllingPI(self, value: Identifier | str | None) -> None: ... - none: None | None - def __init__( - self, /, *, - controllingPI: Identifier = ..., - none: None = ..., - ) -> None: ... - - controlled: controlled_TYPE - normal: None | None - def __init__( - self, /, *, - controlling: controlling_TYPE = ..., - controlled: controlled_TYPE = ..., - normal: None = ..., - ) -> None: ... - - control: control_TYPE - errorCode: int - def __init__( - self, /, *, - errorCode: int = ..., - control: control_TYPE = ..., - ) -> None: ... - -class Select_Request(_Asn1Type): # SEQUENCE - - class controlled_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - controlled: controlled_TYPE | None - @property - def controlling(self) -> Identifier | None: ... - @controlling.setter - def controlling(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - controlling: Identifier = ..., - controlled: controlled_TYPE = ..., - ) -> None: ... - -class Select_Response(_Asn1BasicType[None]): - pass - -class AlterProgramInvocationAttributes_Request(_Asn1Type): # SEQUENCE - @property - def programInvocation(self) -> Identifier: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str) -> None: ... - startCount: StartCount | None - def __init__( - self, /, *, - programInvocation: Identifier = ..., - startCount: StartCount = ..., - ) -> None: ... - -class AlterProgramInvocationAttributes_Response(_Asn1BasicType[None]): - pass - -class ControlElement(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_beginDomainDef = 1 - PR_continueDomainDef = 2 - PR_endDomainDef = 3 - PR_piDefinition = 4 - - @property - def present(self) -> PRESENT: ... - - class beginDomainDef_TYPE(_Asn1Type): # SEQUENCE - - class capabilities_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - capabilities: capabilities_TYPE - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - sharable: bool - loadData: LoadData | None - def __init__( - self, /, *, - domainName: Identifier = ..., - capabilities: capabilities_TYPE = ..., - sharable: bool = ..., - loadData: LoadData = ..., - ) -> None: ... - - beginDomainDef: beginDomainDef_TYPE - - class continueDomainDef_TYPE(_Asn1Type): # SEQUENCE - @property - def domainName(self) -> Identifier: ... - @domainName.setter - def domainName(self, value: Identifier | str) -> None: ... - loadData: LoadData - def __init__( - self, /, *, - domainName: Identifier = ..., - loadData: LoadData = ..., - ) -> None: ... - - continueDomainDef: continueDomainDef_TYPE - - class piDefinition_TYPE(_Asn1Type): # SEQUENCE - - class listOfDomains_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfDomains: listOfDomains_TYPE - @property - def piName(self) -> Identifier: ... - @piName.setter - def piName(self, value: Identifier | str) -> None: ... - reusable: bool | None - monitorType: bool | None - @property - def pIState(self) -> ProgramInvocationState | None: ... - @pIState.setter - def pIState(self, value: ProgramInvocationState | int | None) -> None: ... - def __init__( - self, /, *, - piName: Identifier = ..., - listOfDomains: listOfDomains_TYPE = ..., - reusable: bool = ..., - monitorType: bool = ..., - pIState: ProgramInvocationState = ..., - ) -> None: ... - - piDefinition: piDefinition_TYPE - @property - def endDomainDef(self) -> Identifier | None: ... - @endDomainDef.setter - def endDomainDef(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - beginDomainDef: beginDomainDef_TYPE = ..., - continueDomainDef: continueDomainDef_TYPE = ..., - endDomainDef: Identifier = ..., - piDefinition: piDefinition_TYPE = ..., - ) -> None: ... - -class InitiateUnitControlLoad_Request(_Asn1BasicType[Identifier]): - pass - -class InitiateUnitControlLoad_Response(_Asn1BasicType[None]): - pass - -class InitiateUnitControl_Error(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_domain = 1 - PR_programInvocation = 2 - - @property - def present(self) -> PRESENT: ... - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - domain: Identifier = ..., - programInvocation: Identifier = ..., - ) -> None: ... - -class UnitControlLoadSegment_Request(_Asn1BasicType[Identifier]): - pass - -class UnitControlLoadSegment_Response(_Asn1Type): # SEQUENCE - - class controlElements_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ControlElement] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ControlElement: ... - def __setitem__(self, index: int, value: ControlElement) -> None: ... - def add(self, value: ControlElement) -> None: ... - def extend(self, values: EXT_Iterable[ControlElement]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - controlElements: controlElements_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - controlElements: controlElements_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class UnitControlUpload_Request(_Asn1Type): # SEQUENCE - - class continueAfter_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_domain = 1 - PR_ulsmID = 2 - PR_programInvocation = 3 - - @property - def present(self) -> PRESENT: ... - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - ulsmID: int | None - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - domain: Identifier = ..., - ulsmID: int = ..., - programInvocation: Identifier = ..., - ) -> None: ... - - continueAfter: continueAfter_TYPE | None - @property - def unitControlName(self) -> Identifier: ... - @unitControlName.setter - def unitControlName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - unitControlName: Identifier = ..., - continueAfter: continueAfter_TYPE = ..., - ) -> None: ... - -class UnitControlUpload_Response(_Asn1Type): # SEQUENCE - - class controlElements_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ControlElement] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ControlElement: ... - def __setitem__(self, index: int, value: ControlElement) -> None: ... - def add(self, value: ControlElement) -> None: ... - def extend(self, values: EXT_Iterable[ControlElement]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - controlElements: controlElements_TYPE - - class nextElement_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_domain = 1 - PR_ulsmID = 2 - PR_programInvocation = 3 - - @property - def present(self) -> PRESENT: ... - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - ulsmID: int | None - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - domain: Identifier = ..., - ulsmID: int = ..., - programInvocation: Identifier = ..., - ) -> None: ... - - nextElement: nextElement_TYPE | None - def __init__( - self, /, *, - controlElements: controlElements_TYPE = ..., - nextElement: nextElement_TYPE = ..., - ) -> None: ... - -class StartUnitControl_Request(_Asn1Type): # SEQUENCE - - class executionArgument_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_simpleString = 1 - PR_encodedString = 2 - PR_enmbeddedString = 3 - - @property - def present(self) -> PRESENT: ... - @property - def simpleString(self) -> MMSString | None: ... - @simpleString.setter - def simpleString(self, value: MMSString | str | None) -> None: ... - encodedString: EXTERNAL | None - enmbeddedString: EMBEDDED_PDV | None - def __init__( - self, /, *, - simpleString: MMSString = ..., - encodedString: EXTERNAL = ..., - enmbeddedString: EMBEDDED_PDV = ..., - ) -> None: ... - - executionArgument: executionArgument_TYPE | None - @property - def unitControlName(self) -> Identifier: ... - @unitControlName.setter - def unitControlName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - unitControlName: Identifier = ..., - executionArgument: executionArgument_TYPE = ..., - ) -> None: ... - -class StartUnitControl_Response(_Asn1BasicType[None]): - pass - -class StartUnitControl_Error(_Asn1Type): # SEQUENCE - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - @property - def programInvocationState(self) -> ProgramInvocationState: ... - @programInvocationState.setter - def programInvocationState(self, value: ProgramInvocationState | int) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - programInvocationState: ProgramInvocationState = ..., - ) -> None: ... - -class StopUnitControl_Request(_Asn1BasicType[Identifier]): - pass - -class StopUnitControl_Response(_Asn1BasicType[None]): - pass - -class StopUnitControl_Error(_Asn1Type): # SEQUENCE - @property - def programInvocationName(self) -> Identifier: ... - @programInvocationName.setter - def programInvocationName(self, value: Identifier | str) -> None: ... - @property - def programInvocationState(self) -> ProgramInvocationState: ... - @programInvocationState.setter - def programInvocationState(self, value: ProgramInvocationState | int) -> None: ... - def __init__( - self, /, *, - programInvocationName: Identifier = ..., - programInvocationState: ProgramInvocationState = ..., - ) -> None: ... - -class CreateUnitControl_Request(_Asn1Type): # SEQUENCE - - class domains_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - domains: domains_TYPE - - class programInvocations_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - programInvocations: programInvocations_TYPE - @property - def unitControl(self) -> Identifier: ... - @unitControl.setter - def unitControl(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - unitControl: Identifier = ..., - domains: domains_TYPE = ..., - programInvocations: programInvocations_TYPE = ..., - ) -> None: ... - -class CreateUnitControl_Response(_Asn1BasicType[None]): - pass - -class AddToUnitControl_Request(_Asn1Type): # SEQUENCE - - class domains_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - domains: domains_TYPE - - class programInvocations_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - programInvocations: programInvocations_TYPE - @property - def unitControl(self) -> Identifier: ... - @unitControl.setter - def unitControl(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - unitControl: Identifier = ..., - domains: domains_TYPE = ..., - programInvocations: programInvocations_TYPE = ..., - ) -> None: ... - -class AddToUnitControl_Response(_Asn1BasicType[None]): - pass - -class RemoveFromUnitControl_Request(_Asn1Type): # SEQUENCE - - class domains_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - domains: domains_TYPE - - class programInvocations_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - programInvocations: programInvocations_TYPE - @property - def unitControl(self) -> Identifier: ... - @unitControl.setter - def unitControl(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - unitControl: Identifier = ..., - domains: domains_TYPE = ..., - programInvocations: programInvocations_TYPE = ..., - ) -> None: ... - -class RemoveFromUnitControl_Response(_Asn1BasicType[None]): - pass - -class GetUnitControlAttributes_Request(_Asn1BasicType[Identifier]): - pass - -class GetUnitControlAttributes_Response(_Asn1Type): # SEQUENCE - - class domains_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - domains: domains_TYPE - - class programInvocations_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Identifier: ... - def __setitem__(self, index: int, value: Identifier) -> None: ... - def add(self, value: Identifier) -> None: ... - def extend(self, values: EXT_Iterable[Identifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - programInvocations: programInvocations_TYPE - def __init__( - self, /, *, - domains: domains_TYPE = ..., - programInvocations: programInvocations_TYPE = ..., - ) -> None: ... - -class LoadUnitControlFromFile_Request(_Asn1Type): # SEQUENCE - @property - def unitControlName(self) -> Identifier: ... - @unitControlName.setter - def unitControlName(self, value: Identifier | str) -> None: ... - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - thirdParty: ApplicationReference | None - def __init__( - self, /, *, - unitControlName: Identifier = ..., - fileName: FileName = ..., - thirdParty: ApplicationReference = ..., - ) -> None: ... - -class LoadUnitControlFromFile_Response(_Asn1BasicType[None]): - pass - -class LoadUnitControlFromFile_Error(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_none = 1 - PR_domain = 2 - PR_programInvocation = 3 - - @property - def present(self) -> PRESENT: ... - none: None | None - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - none: None = ..., - domain: Identifier = ..., - programInvocation: Identifier = ..., - ) -> None: ... - -class StoreUnitControlToFile_Request(_Asn1Type): # SEQUENCE - @property - def unitControlName(self) -> Identifier: ... - @unitControlName.setter - def unitControlName(self, value: Identifier | str) -> None: ... - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - thirdParty: ApplicationReference | None - def __init__( - self, /, *, - unitControlName: Identifier = ..., - fileName: FileName = ..., - thirdParty: ApplicationReference = ..., - ) -> None: ... - -class StoreUnitControlToFile_Response(_Asn1BasicType[None]): - pass - -class DeleteUnitControl_Request(_Asn1BasicType[Identifier]): - pass - -class DeleteUnitControl_Response(_Asn1BasicType[None]): - pass - -class DeleteUnitControl_Error(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_domain = 1 - PR_programInvocation = 2 - - @property - def present(self) -> PRESENT: ... - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - domain: Identifier = ..., - programInvocation: Identifier = ..., - ) -> None: ... - -class TypeSpecification(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_typeName = 1 - PR_typeDescription = 2 - - @property - def present(self) -> PRESENT: ... - typeName: ObjectName | None - typeDescription: TypeDescription | None - def __init__( - self, /, *, - typeName: ObjectName = ..., - typeDescription: TypeDescription = ..., - ) -> None: ... + class VALUES(EXT_IntEnum): + V_normal = 0 + V_controlling = 1 + V_controlled = 2 + + @property + def value(self) -> CS_CreateProgramInvocation_Request.VALUES: ... + @value.setter + def value(self, value: CS_CreateProgramInvocation_Request.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class DeleteProgramInvocation_Request(_Asn1BasicType[Identifier]): ... +class DeleteProgramInvocation_Response(_Asn1BasicType[None]): ... + +class Start_Request(_Asn1Type): # SEQUENCE + class executionArgument_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_simpleString = 1 + PR_encodedString = 2 + PR_embeddedString = 3 + + @property + def present(self) -> PRESENT: ... + @property + def simpleString(self) -> MMSString | None: ... + @simpleString.setter + def simpleString(self, value: MMSString | str | None) -> None: ... + encodedString: EXTERNAL | None + embeddedString: EMBEDDED_PDV | None + def __init__( + self, + /, + *, + simpleString: MMSString = ..., + encodedString: EXTERNAL = ..., + embeddedString: EMBEDDED_PDV = ..., + ) -> None: ... + + executionArgument: executionArgument_TYPE | None + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + executionArgument: executionArgument_TYPE = ..., + ) -> None: ... + +class Start_Response(_Asn1BasicType[None]): ... +class Start_Error(_Asn1BasicType[ProgramInvocationState]): ... + +class CS_Start_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_normal = 1 + PR_controlling = 2 + + @property + def present(self) -> PRESENT: ... + + class controlling_TYPE(_Asn1Type): # SEQUENCE + startLocation: str | None + startCount: StartCount | None + def __init__( + self, + /, + *, + startLocation: str = ..., + startCount: StartCount = ..., + ) -> None: ... + + controlling: controlling_TYPE + normal: None + def __init__( + self, + /, + *, + normal: None = ..., + controlling: controlling_TYPE = ..., + ) -> None: ... + +class StartCount(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_noLimit = 1 + PR_cycleCount = 2 + PR_stepCount = 3 + + @property + def present(self) -> PRESENT: ... + noLimit: None + cycleCount: int | None + stepCount: int | None + def __init__( + self, + /, + *, + noLimit: None = ..., + cycleCount: int = ..., + stepCount: int = ..., + ) -> None: ... + +class Stop_Request(_Asn1Type): # SEQUENCE + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + ) -> None: ... + +class Stop_Response(_Asn1BasicType[None]): ... +class Stop_Error(_Asn1BasicType[ProgramInvocationState]): ... + +class Resume_Request(_Asn1Type): # SEQUENCE + class executionArgument_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_simpleString = 1 + PR_encodedString = 2 + PR_enmbeddedString = 3 + + @property + def present(self) -> PRESENT: ... + @property + def simpleString(self) -> MMSString | None: ... + @simpleString.setter + def simpleString(self, value: MMSString | str | None) -> None: ... + encodedString: EXTERNAL | None + enmbeddedString: EMBEDDED_PDV | None + def __init__( + self, + /, + *, + simpleString: MMSString = ..., + encodedString: EXTERNAL = ..., + enmbeddedString: EMBEDDED_PDV = ..., + ) -> None: ... + + executionArgument: executionArgument_TYPE | None + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + executionArgument: executionArgument_TYPE = ..., + ) -> None: ... + +class Resume_Response(_Asn1BasicType[None]): ... +class Resume_Error(_Asn1BasicType[ProgramInvocationState]): ... + +class CS_Resume_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_normal = 1 + PR_controlling = 2 + + @property + def present(self) -> PRESENT: ... + + class controlling_TYPE(_Asn1Type): # SEQUENCE + class modeType_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_continueMode = 1 + PR_changeMode = 2 + + @property + def present(self) -> PRESENT: ... + continueMode: None + changeMode: StartCount | None + def __init__( + self, + /, + *, + continueMode: None = ..., + changeMode: StartCount = ..., + ) -> None: ... + + modeType: modeType_TYPE + def __init__( + self, + /, + *, + modeType: modeType_TYPE = ..., + ) -> None: ... + + controlling: controlling_TYPE + normal: None + def __init__( + self, + /, + *, + normal: None = ..., + controlling: controlling_TYPE = ..., + ) -> None: ... + +class Reset_Request(_Asn1Type): # SEQUENCE + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + ) -> None: ... + +class Reset_Response(_Asn1BasicType[None]): ... +class Reset_Error(_Asn1BasicType[ProgramInvocationState]): ... + +class Kill_Request(_Asn1Type): # SEQUENCE + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + ) -> None: ... + +class Kill_Response(_Asn1BasicType[None]): ... +class GetProgramInvocationAttributes_Request(_Asn1BasicType[Identifier]): ... + +class GetProgramInvocationAttributes_Response(_Asn1Type): # SEQUENCE + class listOfDomainNames_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfDomainNames: listOfDomainNames_TYPE + + class executionArgument_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_simpleString = 1 + PR_encodedString = 2 + PR_enmbeddedString = 3 + + @property + def present(self) -> PRESENT: ... + @property + def simpleString(self) -> MMSString | None: ... + @simpleString.setter + def simpleString(self, value: MMSString | str | None) -> None: ... + encodedString: EXTERNAL | None + enmbeddedString: EMBEDDED_PDV | None + def __init__( + self, + /, + *, + simpleString: MMSString = ..., + encodedString: EXTERNAL = ..., + enmbeddedString: EMBEDDED_PDV = ..., + ) -> None: ... + + executionArgument: executionArgument_TYPE + @property + def state(self) -> ProgramInvocationState: ... + @state.setter + def state(self, value: ProgramInvocationState | int) -> None: ... + mmsDeletable: bool + reusable: bool + monitor: bool + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + state: ProgramInvocationState = ..., + listOfDomainNames: listOfDomainNames_TYPE = ..., + mmsDeletable: bool = ..., + reusable: bool = ..., + monitor: bool = ..., + executionArgument: executionArgument_TYPE = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class CS_GetProgramInvocationAttributes_Response(_Asn1Type): # SEQUENCE + class control_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_controlling = 1 + PR_controlled = 2 + PR_normal = 3 + + @property + def present(self) -> PRESENT: ... + + class controlling_TYPE(_Asn1Type): # SEQUENCE + class controlledPI_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[Identifier] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + controlledPI: controlledPI_TYPE + + class runningMode_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_freeRunning = 1 + PR_cycleLimited = 2 + PR_stepLimited = 3 + + @property + def present(self) -> PRESENT: ... + freeRunning: None + cycleLimited: int | None + stepLimited: int | None + def __init__( + self, + /, + *, + freeRunning: None = ..., + cycleLimited: int = ..., + stepLimited: int = ..., + ) -> None: ... + + runningMode: runningMode_TYPE + programLocation: str | None + def __init__( + self, + /, + *, + controlledPI: controlledPI_TYPE = ..., + programLocation: str = ..., + runningMode: runningMode_TYPE = ..., + ) -> None: ... + + controlling: controlling_TYPE + + class controlled_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_controllingPI = 1 + PR_none = 2 + + @property + def present(self) -> PRESENT: ... + @property + def controllingPI(self) -> Identifier | None: ... + @controllingPI.setter + def controllingPI(self, value: Identifier | str | None) -> None: ... + none: None + def __init__( + self, + /, + *, + controllingPI: Identifier = ..., + none: None = ..., + ) -> None: ... + + controlled: controlled_TYPE + normal: None + def __init__( + self, + /, + *, + controlling: controlling_TYPE = ..., + controlled: controlled_TYPE = ..., + normal: None = ..., + ) -> None: ... + + control: control_TYPE + errorCode: int + def __init__( + self, + /, + *, + errorCode: int = ..., + control: control_TYPE = ..., + ) -> None: ... + +class Select_Request(_Asn1Type): # SEQUENCE + class controlled_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + controlled: controlled_TYPE | None + @property + def controlling(self) -> Identifier | None: ... + @controlling.setter + def controlling(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + controlling: Identifier = ..., + controlled: controlled_TYPE = ..., + ) -> None: ... + +class Select_Response(_Asn1BasicType[None]): ... + +class AlterProgramInvocationAttributes_Request(_Asn1Type): # SEQUENCE + @property + def programInvocation(self) -> Identifier: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str) -> None: ... + startCount: StartCount | None + def __init__( + self, + /, + *, + programInvocation: Identifier = ..., + startCount: StartCount = ..., + ) -> None: ... + +class AlterProgramInvocationAttributes_Response(_Asn1BasicType[None]): ... + +class ControlElement(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_beginDomainDef = 1 + PR_continueDomainDef = 2 + PR_endDomainDef = 3 + PR_piDefinition = 4 + + @property + def present(self) -> PRESENT: ... + + class beginDomainDef_TYPE(_Asn1Type): # SEQUENCE + class capabilities_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[MMSString] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + capabilities: capabilities_TYPE + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + sharable: bool + loadData: LoadData | None + def __init__( + self, + /, + *, + domainName: Identifier = ..., + capabilities: capabilities_TYPE = ..., + sharable: bool = ..., + loadData: LoadData = ..., + ) -> None: ... + + beginDomainDef: beginDomainDef_TYPE + + class continueDomainDef_TYPE(_Asn1Type): # SEQUENCE + @property + def domainName(self) -> Identifier: ... + @domainName.setter + def domainName(self, value: Identifier | str) -> None: ... + loadData: LoadData + def __init__( + self, + /, + *, + domainName: Identifier = ..., + loadData: LoadData = ..., + ) -> None: ... + + continueDomainDef: continueDomainDef_TYPE + + class piDefinition_TYPE(_Asn1Type): # SEQUENCE + class listOfDomains_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[Identifier] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfDomains: listOfDomains_TYPE + @property + def piName(self) -> Identifier: ... + @piName.setter + def piName(self, value: Identifier | str) -> None: ... + reusable: bool | None + monitorType: bool | None + @property + def pIState(self) -> ProgramInvocationState | None: ... + @pIState.setter + def pIState(self, value: ProgramInvocationState | int | None) -> None: ... + def __init__( + self, + /, + *, + piName: Identifier = ..., + listOfDomains: listOfDomains_TYPE = ..., + reusable: bool = ..., + monitorType: bool = ..., + pIState: ProgramInvocationState = ..., + ) -> None: ... + + piDefinition: piDefinition_TYPE + @property + def endDomainDef(self) -> Identifier | None: ... + @endDomainDef.setter + def endDomainDef(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + beginDomainDef: beginDomainDef_TYPE = ..., + continueDomainDef: continueDomainDef_TYPE = ..., + endDomainDef: Identifier = ..., + piDefinition: piDefinition_TYPE = ..., + ) -> None: ... + +class InitiateUnitControlLoad_Request(_Asn1BasicType[Identifier]): ... +class InitiateUnitControlLoad_Response(_Asn1BasicType[None]): ... + +class InitiateUnitControl_Error(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_domain = 1 + PR_programInvocation = 2 + + @property + def present(self) -> PRESENT: ... + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + domain: Identifier = ..., + programInvocation: Identifier = ..., + ) -> None: ... + +class UnitControlLoadSegment_Request(_Asn1BasicType[Identifier]): ... + +class UnitControlLoadSegment_Response(_Asn1Type): # SEQUENCE + class controlElements_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[ControlElement] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> ControlElement: ... + def __setitem__(self, index: int, value: ControlElement) -> None: ... + def add(self, value: ControlElement) -> None: ... + def extend(self, values: EXT_Iterable[ControlElement]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + controlElements: controlElements_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + controlElements: controlElements_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class UnitControlUpload_Request(_Asn1Type): # SEQUENCE + class continueAfter_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_domain = 1 + PR_ulsmID = 2 + PR_programInvocation = 3 + + @property + def present(self) -> PRESENT: ... + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + ulsmID: int | None + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + domain: Identifier = ..., + ulsmID: int = ..., + programInvocation: Identifier = ..., + ) -> None: ... + + continueAfter: continueAfter_TYPE | None + @property + def unitControlName(self) -> Identifier: ... + @unitControlName.setter + def unitControlName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + unitControlName: Identifier = ..., + continueAfter: continueAfter_TYPE = ..., + ) -> None: ... + +class UnitControlUpload_Response(_Asn1Type): # SEQUENCE + class controlElements_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[ControlElement] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> ControlElement: ... + def __setitem__(self, index: int, value: ControlElement) -> None: ... + def add(self, value: ControlElement) -> None: ... + def extend(self, values: EXT_Iterable[ControlElement]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + controlElements: controlElements_TYPE + + class nextElement_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_domain = 1 + PR_ulsmID = 2 + PR_programInvocation = 3 + + @property + def present(self) -> PRESENT: ... + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + ulsmID: int | None + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + domain: Identifier = ..., + ulsmID: int = ..., + programInvocation: Identifier = ..., + ) -> None: ... + + nextElement: nextElement_TYPE | None + def __init__( + self, + /, + *, + controlElements: controlElements_TYPE = ..., + nextElement: nextElement_TYPE = ..., + ) -> None: ... + +class StartUnitControl_Request(_Asn1Type): # SEQUENCE + class executionArgument_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_simpleString = 1 + PR_encodedString = 2 + PR_enmbeddedString = 3 + + @property + def present(self) -> PRESENT: ... + @property + def simpleString(self) -> MMSString | None: ... + @simpleString.setter + def simpleString(self, value: MMSString | str | None) -> None: ... + encodedString: EXTERNAL | None + enmbeddedString: EMBEDDED_PDV | None + def __init__( + self, + /, + *, + simpleString: MMSString = ..., + encodedString: EXTERNAL = ..., + enmbeddedString: EMBEDDED_PDV = ..., + ) -> None: ... + + executionArgument: executionArgument_TYPE | None + @property + def unitControlName(self) -> Identifier: ... + @unitControlName.setter + def unitControlName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + unitControlName: Identifier = ..., + executionArgument: executionArgument_TYPE = ..., + ) -> None: ... + +class StartUnitControl_Response(_Asn1BasicType[None]): ... + +class StartUnitControl_Error(_Asn1Type): # SEQUENCE + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + @property + def programInvocationState(self) -> ProgramInvocationState: ... + @programInvocationState.setter + def programInvocationState(self, value: ProgramInvocationState | int) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + programInvocationState: ProgramInvocationState = ..., + ) -> None: ... + +class StopUnitControl_Request(_Asn1BasicType[Identifier]): ... +class StopUnitControl_Response(_Asn1BasicType[None]): ... + +class StopUnitControl_Error(_Asn1Type): # SEQUENCE + @property + def programInvocationName(self) -> Identifier: ... + @programInvocationName.setter + def programInvocationName(self, value: Identifier | str) -> None: ... + @property + def programInvocationState(self) -> ProgramInvocationState: ... + @programInvocationState.setter + def programInvocationState(self, value: ProgramInvocationState | int) -> None: ... + def __init__( + self, + /, + *, + programInvocationName: Identifier = ..., + programInvocationState: ProgramInvocationState = ..., + ) -> None: ... + +class CreateUnitControl_Request(_Asn1Type): # SEQUENCE + class domains_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + domains: domains_TYPE + + class programInvocations_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + programInvocations: programInvocations_TYPE + @property + def unitControl(self) -> Identifier: ... + @unitControl.setter + def unitControl(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + unitControl: Identifier = ..., + domains: domains_TYPE = ..., + programInvocations: programInvocations_TYPE = ..., + ) -> None: ... + +class CreateUnitControl_Response(_Asn1BasicType[None]): ... + +class AddToUnitControl_Request(_Asn1Type): # SEQUENCE + class domains_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + domains: domains_TYPE + + class programInvocations_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + programInvocations: programInvocations_TYPE + @property + def unitControl(self) -> Identifier: ... + @unitControl.setter + def unitControl(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + unitControl: Identifier = ..., + domains: domains_TYPE = ..., + programInvocations: programInvocations_TYPE = ..., + ) -> None: ... + +class AddToUnitControl_Response(_Asn1BasicType[None]): ... + +class RemoveFromUnitControl_Request(_Asn1Type): # SEQUENCE + class domains_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + domains: domains_TYPE + + class programInvocations_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + programInvocations: programInvocations_TYPE + @property + def unitControl(self) -> Identifier: ... + @unitControl.setter + def unitControl(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + unitControl: Identifier = ..., + domains: domains_TYPE = ..., + programInvocations: programInvocations_TYPE = ..., + ) -> None: ... + +class RemoveFromUnitControl_Response(_Asn1BasicType[None]): ... +class GetUnitControlAttributes_Request(_Asn1BasicType[Identifier]): ... + +class GetUnitControlAttributes_Response(_Asn1Type): # SEQUENCE + class domains_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + domains: domains_TYPE + + class programInvocations_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Identifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Identifier: ... + def __setitem__(self, index: int, value: Identifier) -> None: ... + def add(self, value: Identifier) -> None: ... + def extend(self, values: EXT_Iterable[Identifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + programInvocations: programInvocations_TYPE + def __init__( + self, + /, + *, + domains: domains_TYPE = ..., + programInvocations: programInvocations_TYPE = ..., + ) -> None: ... + +class LoadUnitControlFromFile_Request(_Asn1Type): # SEQUENCE + @property + def unitControlName(self) -> Identifier: ... + @unitControlName.setter + def unitControlName(self, value: Identifier | str) -> None: ... + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + thirdParty: ApplicationReference | None + def __init__( + self, + /, + *, + unitControlName: Identifier = ..., + fileName: FileName = ..., + thirdParty: ApplicationReference = ..., + ) -> None: ... + +class LoadUnitControlFromFile_Response(_Asn1BasicType[None]): ... + +class LoadUnitControlFromFile_Error(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_none = 1 + PR_domain = 2 + PR_programInvocation = 3 + + @property + def present(self) -> PRESENT: ... + none: None + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + none: None = ..., + domain: Identifier = ..., + programInvocation: Identifier = ..., + ) -> None: ... + +class StoreUnitControlToFile_Request(_Asn1Type): # SEQUENCE + @property + def unitControlName(self) -> Identifier: ... + @unitControlName.setter + def unitControlName(self, value: Identifier | str) -> None: ... + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + thirdParty: ApplicationReference | None + def __init__( + self, + /, + *, + unitControlName: Identifier = ..., + fileName: FileName = ..., + thirdParty: ApplicationReference = ..., + ) -> None: ... + +class StoreUnitControlToFile_Response(_Asn1BasicType[None]): ... +class DeleteUnitControl_Request(_Asn1BasicType[Identifier]): ... +class DeleteUnitControl_Response(_Asn1BasicType[None]): ... + +class DeleteUnitControl_Error(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_domain = 1 + PR_programInvocation = 2 + + @property + def present(self) -> PRESENT: ... + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + domain: Identifier = ..., + programInvocation: Identifier = ..., + ) -> None: ... + +class TypeSpecification(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_typeName = 1 + PR_typeDescription = 2 + + @property + def present(self) -> PRESENT: ... + typeName: ObjectName | None + typeDescription: TypeDescription | None + def __init__( + self, + /, + *, + typeName: ObjectName = ..., + typeDescription: TypeDescription = ..., + ) -> None: ... class AlternateAccess(_Asn1Type): - - class Member_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_unnamed = 1 - PR_named = 2 - - @property - def present(self) -> PRESENT: ... - - class named_TYPE(_Asn1Type): # SEQUENCE - @property - def componentName(self) -> Identifier: ... - @componentName.setter - def componentName(self, value: Identifier | str) -> None: ... - access: AlternateAccessSelection | None - def __init__( - self, /, *, - componentName: Identifier = ..., - access: AlternateAccessSelection = ..., - ) -> None: ... - - named: named_TYPE - unnamed: AlternateAccessSelection | None - def __init__( - self, /, *, - unnamed: AlternateAccessSelection = ..., - named: named_TYPE = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class AlternateAccessSelection(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_selectAlternateAccess = 1 - PR_selectAccess = 2 - - @property - def present(self) -> PRESENT: ... - - class selectAlternateAccess_TYPE(_Asn1Type): # SEQUENCE - - class accessSelection_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_component = 1 - PR_index = 2 - PR_indexRange = 3 - PR_allElements = 4 - - @property - def present(self) -> PRESENT: ... - - class indexRange_TYPE(_Asn1Type): # SEQUENCE - @property - def lowIndex(self) -> Unsigned32: ... - @lowIndex.setter - def lowIndex(self, value: Unsigned32 | int) -> None: ... - @property - def numberOfElements(self) -> Unsigned32: ... - @numberOfElements.setter - def numberOfElements(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - lowIndex: Unsigned32 = ..., - numberOfElements: Unsigned32 = ..., - ) -> None: ... - - indexRange: indexRange_TYPE - @property - def component(self) -> Identifier | None: ... - @component.setter - def component(self, value: Identifier | str | None) -> None: ... - @property - def index(self) -> Unsigned32 | None: ... - @index.setter - def index(self, value: Unsigned32 | int | None) -> None: ... - allElements: None | None - def __init__( - self, /, *, - component: Identifier = ..., - index: Unsigned32 = ..., - indexRange: indexRange_TYPE = ..., - allElements: None = ..., - ) -> None: ... - - accessSelection: accessSelection_TYPE - @property - def alternateAccess(self) -> AlternateAccess | None: ... - @alternateAccess.setter - def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... - def __init__( - self, /, *, - accessSelection: accessSelection_TYPE = ..., - alternateAccess: AlternateAccess = ..., - ) -> None: ... - - selectAlternateAccess: selectAlternateAccess_TYPE - - class selectAccess_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_component = 1 - PR_index = 2 - PR_indexRange = 3 - PR_allElements = 4 - - @property - def present(self) -> PRESENT: ... - - class indexRange_TYPE(_Asn1Type): # SEQUENCE - @property - def lowIndex(self) -> Unsigned32: ... - @lowIndex.setter - def lowIndex(self, value: Unsigned32 | int) -> None: ... - @property - def numberOfElements(self) -> Unsigned32: ... - @numberOfElements.setter - def numberOfElements(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - lowIndex: Unsigned32 = ..., - numberOfElements: Unsigned32 = ..., - ) -> None: ... - - indexRange: indexRange_TYPE - @property - def component(self) -> Identifier | None: ... - @component.setter - def component(self, value: Identifier | str | None) -> None: ... - @property - def index(self) -> Unsigned32 | None: ... - @index.setter - def index(self, value: Unsigned32 | int | None) -> None: ... - allElements: None | None - def __init__( - self, /, *, - component: Identifier = ..., - index: Unsigned32 = ..., - indexRange: indexRange_TYPE = ..., - allElements: None = ..., - ) -> None: ... - - selectAccess: selectAccess_TYPE - def __init__( - self, /, *, - selectAlternateAccess: selectAlternateAccess_TYPE = ..., - selectAccess: selectAccess_TYPE = ..., - ) -> None: ... - -class AccessResult(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_failure = 1 - PR_success = 2 - - @property - def present(self) -> PRESENT: ... - @property - def failure(self) -> DataAccessError | None: ... - @failure.setter - def failure(self, value: DataAccessError | int | None) -> None: ... - success: Data | None - def __init__( - self, /, *, - failure: DataAccessError = ..., - success: Data = ..., - ) -> None: ... - -class Data(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_array = 1 - PR_structure = 2 - PR_boolean = 3 - PR_bit_string = 4 - PR_integer = 5 - PR_unsigned = 6 - PR_floating_point = 7 - PR_octet_string = 8 - PR_visible_string = 9 - PR_generalized_time = 10 - PR_binary_time = 11 - PR_bcd = 12 - PR_booleanArray = 13 - PR_objId = 14 - PR_mMSString = 15 - PR_utc_time = 16 - - @property - def present(self) -> PRESENT: ... - - class array_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Data: ... - def __setitem__(self, index: int, value: Data) -> None: ... - def add(self, value: Data) -> None: ... - def extend(self, values: EXT_Iterable[Data]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - array: array_TYPE - - class structure_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Data: ... - def __setitem__(self, index: int, value: Data) -> None: ... - def add(self, value: Data) -> None: ... - def extend(self, values: EXT_Iterable[Data]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - structure: structure_TYPE - boolean: bool | None - - class bit_string_TYPE(_Asn1BitStrType): - pass - - @property - def bit_string(self) -> bit_string_TYPE | None: ... - @bit_string.setter - def bit_string(self, value: bit_string_TYPE | EXT_bitarray | bytes | None) -> None: ... - integer: int | None - unsigned: int | None - @property - def floating_point(self) -> FloatingPoint | None: ... - @floating_point.setter - def floating_point(self, value: FloatingPoint | bytes | None) -> None: ... - octet_string: bytes | None - visible_string: str | None - generalized_time: bytes | None - @property - def binary_time(self) -> TimeOfDay | None: ... - @binary_time.setter - def binary_time(self, value: TimeOfDay | bytes | None) -> None: ... - bcd: int | None - - class booleanArray_TYPE(_Asn1BitStrType): - pass - - @property - def booleanArray(self) -> booleanArray_TYPE | None: ... - @booleanArray.setter - def booleanArray(self, value: booleanArray_TYPE | EXT_bitarray | bytes | None) -> None: ... - objId: str | None - @property - def mMSString(self) -> MMSString | None: ... - @mMSString.setter - def mMSString(self, value: MMSString | str | None) -> None: ... - @property - def utc_time(self) -> UtcTime | None: ... - @utc_time.setter - def utc_time(self, value: UtcTime | bytes | None) -> None: ... - def __init__( - self, /, *, - array: array_TYPE = ..., - structure: structure_TYPE = ..., - boolean: bool = ..., - bit_string: bit_string_TYPE | EXT_bitarray | bytes = ..., - integer: int = ..., - unsigned: int = ..., - floating_point: FloatingPoint = ..., - octet_string: bytes = ..., - visible_string: str = ..., - generalized_time: bytes = ..., - binary_time: TimeOfDay = ..., - bcd: int = ..., - booleanArray: booleanArray_TYPE | EXT_bitarray | bytes = ..., - objId: str = ..., - mMSString: MMSString = ..., - utc_time: UtcTime = ..., - ) -> None: ... - -class UtcTime(_Asn1BasicType[bytes]): - pass - -class FloatingPoint(_Asn1BasicType[bytes]): - pass + class Member_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_unnamed = 1 + PR_named = 2 + + @property + def present(self) -> PRESENT: ... + + class named_TYPE(_Asn1Type): # SEQUENCE + @property + def componentName(self) -> Identifier: ... + @componentName.setter + def componentName(self, value: Identifier | str) -> None: ... + access: AlternateAccessSelection | None + def __init__( + self, + /, + *, + componentName: Identifier = ..., + access: AlternateAccessSelection = ..., + ) -> None: ... + + named: named_TYPE + unnamed: AlternateAccessSelection | None + def __init__( + self, + /, + *, + unnamed: AlternateAccessSelection = ..., + named: named_TYPE = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class AlternateAccessSelection(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_selectAlternateAccess = 1 + PR_selectAccess = 2 + + @property + def present(self) -> PRESENT: ... + + class selectAlternateAccess_TYPE(_Asn1Type): # SEQUENCE + class accessSelection_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_component = 1 + PR_index = 2 + PR_indexRange = 3 + PR_allElements = 4 + + @property + def present(self) -> PRESENT: ... + + class indexRange_TYPE(_Asn1Type): # SEQUENCE + @property + def lowIndex(self) -> Unsigned32: ... + @lowIndex.setter + def lowIndex(self, value: Unsigned32 | int) -> None: ... + @property + def numberOfElements(self) -> Unsigned32: ... + @numberOfElements.setter + def numberOfElements(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + lowIndex: Unsigned32 = ..., + numberOfElements: Unsigned32 = ..., + ) -> None: ... + + indexRange: indexRange_TYPE + @property + def component(self) -> Identifier | None: ... + @component.setter + def component(self, value: Identifier | str | None) -> None: ... + @property + def index(self) -> Unsigned32 | None: ... + @index.setter + def index(self, value: Unsigned32 | int | None) -> None: ... + allElements: None + def __init__( + self, + /, + *, + component: Identifier = ..., + index: Unsigned32 = ..., + indexRange: indexRange_TYPE = ..., + allElements: None = ..., + ) -> None: ... + + accessSelection: accessSelection_TYPE + @property + def alternateAccess(self) -> AlternateAccess | None: ... + @alternateAccess.setter + def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... + def __init__( + self, + /, + *, + accessSelection: accessSelection_TYPE = ..., + alternateAccess: AlternateAccess = ..., + ) -> None: ... + + selectAlternateAccess: selectAlternateAccess_TYPE + + class selectAccess_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_component = 1 + PR_index = 2 + PR_indexRange = 3 + PR_allElements = 4 + + @property + def present(self) -> PRESENT: ... + + class indexRange_TYPE(_Asn1Type): # SEQUENCE + @property + def lowIndex(self) -> Unsigned32: ... + @lowIndex.setter + def lowIndex(self, value: Unsigned32 | int) -> None: ... + @property + def numberOfElements(self) -> Unsigned32: ... + @numberOfElements.setter + def numberOfElements(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + lowIndex: Unsigned32 = ..., + numberOfElements: Unsigned32 = ..., + ) -> None: ... + + indexRange: indexRange_TYPE + @property + def component(self) -> Identifier | None: ... + @component.setter + def component(self, value: Identifier | str | None) -> None: ... + @property + def index(self) -> Unsigned32 | None: ... + @index.setter + def index(self, value: Unsigned32 | int | None) -> None: ... + allElements: None + def __init__( + self, + /, + *, + component: Identifier = ..., + index: Unsigned32 = ..., + indexRange: indexRange_TYPE = ..., + allElements: None = ..., + ) -> None: ... + + selectAccess: selectAccess_TYPE + def __init__( + self, + /, + *, + selectAlternateAccess: selectAlternateAccess_TYPE = ..., + selectAccess: selectAccess_TYPE = ..., + ) -> None: ... + +class AccessResult(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_failure = 1 + PR_success = 2 + + @property + def present(self) -> PRESENT: ... + @property + def failure(self) -> DataAccessError | None: ... + @failure.setter + def failure(self, value: DataAccessError | int | None) -> None: ... + success: Data | None + def __init__( + self, + /, + *, + failure: DataAccessError = ..., + success: Data = ..., + ) -> None: ... + +class Data(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_array = 1 + PR_structure = 2 + PR_boolean = 3 + PR_bit_string = 4 + PR_integer = 5 + PR_unsigned = 6 + PR_floating_point = 7 + PR_octet_string = 8 + PR_visible_string = 9 + PR_generalized_time = 10 + PR_binary_time = 11 + PR_bcd = 12 + PR_booleanArray = 13 + PR_objId = 14 + PR_mMSString = 15 + PR_utc_time = 16 + + @property + def present(self) -> PRESENT: ... + + class array_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Data: ... + def __setitem__(self, index: int, value: Data) -> None: ... + def add(self, value: Data) -> None: ... + def extend(self, values: EXT_Iterable[Data]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + array: array_TYPE + + class structure_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Data: ... + def __setitem__(self, index: int, value: Data) -> None: ... + def add(self, value: Data) -> None: ... + def extend(self, values: EXT_Iterable[Data]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + structure: structure_TYPE + boolean: bool | None + + class bit_string_TYPE(_Asn1BitStrType): ... + + @property + def bit_string(self) -> bit_string_TYPE | None: ... + @bit_string.setter + def bit_string( + self, value: bit_string_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + integer: int | None + unsigned: int | None + @property + def floating_point(self) -> FloatingPoint | None: ... + @floating_point.setter + def floating_point(self, value: FloatingPoint | bytes | None) -> None: ... + octet_string: bytes | None + visible_string: str | None + generalized_time: bytes | None + @property + def binary_time(self) -> TimeOfDay | None: ... + @binary_time.setter + def binary_time(self, value: TimeOfDay | bytes | None) -> None: ... + bcd: int | None + + class booleanArray_TYPE(_Asn1BitStrType): ... + + @property + def booleanArray(self) -> booleanArray_TYPE | None: ... + @booleanArray.setter + def booleanArray( + self, value: booleanArray_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + objId: str | None + @property + def mMSString(self) -> MMSString | None: ... + @mMSString.setter + def mMSString(self, value: MMSString | str | None) -> None: ... + @property + def utc_time(self) -> UtcTime | None: ... + @utc_time.setter + def utc_time(self, value: UtcTime | bytes | None) -> None: ... + def __init__( + self, + /, + *, + array: array_TYPE = ..., + structure: structure_TYPE = ..., + boolean: bool = ..., + bit_string: bit_string_TYPE | EXT_bitarray | bytes = ..., + integer: int = ..., + unsigned: int = ..., + floating_point: FloatingPoint = ..., + octet_string: bytes = ..., + visible_string: str = ..., + generalized_time: bytes = ..., + binary_time: TimeOfDay = ..., + bcd: int = ..., + booleanArray: booleanArray_TYPE | EXT_bitarray | bytes = ..., + objId: str = ..., + mMSString: MMSString = ..., + utc_time: UtcTime = ..., + ) -> None: ... + +class UtcTime(_Asn1BasicType[bytes]): ... +class FloatingPoint(_Asn1BasicType[bytes]): ... class DataAccessError(_Asn1Type): - class VALUES(EXT_IntEnum): - V_object_invalidated = 0 - V_hardware_fault = 1 - V_temporarily_unavailable = 2 - V_object_access_denied = 3 - V_object_undefined = 4 - V_invalid_address = 5 - V_type_unsupported = 6 - V_type_inconsistent = 7 - V_object_attribute_inconsistent = 8 - V_object_access_unsupported = 9 - V_object_non_existent = 10 - V_object_value_invalid = 11 - - @property - def value(self) -> DataAccessError.VALUES: ... - @value.setter - def value(self, value: DataAccessError.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class VariableAccessSpecification(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_listOfVariable = 1 - PR_variableListName = 2 - - @property - def present(self) -> PRESENT: ... - - class listOfVariable_TYPE(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - variableSpecification: VariableSpecification - @property - def alternateAccess(self) -> AlternateAccess | None: ... - @alternateAccess.setter - def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... - def __init__( - self, /, *, - variableSpecification: VariableSpecification = ..., - alternateAccess: AlternateAccess = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfVariable: listOfVariable_TYPE - variableListName: ObjectName | None - def __init__( - self, /, *, - listOfVariable: listOfVariable_TYPE = ..., - variableListName: ObjectName = ..., - ) -> None: ... - -class VariableSpecification(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_name = 1 - PR_address = 2 - PR_variableDescription = 3 - PR_scatteredAccessDescription = 4 - PR_invalidated = 5 - - @property - def present(self) -> PRESENT: ... - - class variableDescription_TYPE(_Asn1Type): # SEQUENCE - address: Address - typeSpecification: TypeSpecification - def __init__( - self, /, *, - address: Address = ..., - typeSpecification: TypeSpecification = ..., - ) -> None: ... - - variableDescription: variableDescription_TYPE - name: ObjectName | None - address: Address | None - @property - def scatteredAccessDescription(self) -> ScatteredAccessDescription | None: ... - @scatteredAccessDescription.setter - def scatteredAccessDescription(self, value: ScatteredAccessDescription | list | None) -> None: ... - invalidated: None | None - def __init__( - self, /, *, - name: ObjectName = ..., - address: Address = ..., - variableDescription: variableDescription_TYPE = ..., - scatteredAccessDescription: ScatteredAccessDescription = ..., - invalidated: None = ..., - ) -> None: ... - -class Read_Request(_Asn1Type): # SEQUENCE - specificationWithResult: bool | None - variableAccessSpecification: VariableAccessSpecification - def __init__( - self, /, *, - specificationWithResult: bool = ..., - variableAccessSpecification: VariableAccessSpecification = ..., - ) -> None: ... - -class Read_Response(_Asn1Type): # SEQUENCE - - class listOfAccessResult_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[AccessResult] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AccessResult: ... - def __setitem__(self, index: int, value: AccessResult) -> None: ... - def add(self, value: AccessResult) -> None: ... - def extend(self, values: EXT_Iterable[AccessResult]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfAccessResult: listOfAccessResult_TYPE - variableAccessSpecification: VariableAccessSpecification | None - def __init__( - self, /, *, - variableAccessSpecification: VariableAccessSpecification = ..., - listOfAccessResult: listOfAccessResult_TYPE = ..., - ) -> None: ... + class VALUES(EXT_IntEnum): + V_object_invalidated = 0 + V_hardware_fault = 1 + V_temporarily_unavailable = 2 + V_object_access_denied = 3 + V_object_undefined = 4 + V_invalid_address = 5 + V_type_unsupported = 6 + V_type_inconsistent = 7 + V_object_attribute_inconsistent = 8 + V_object_access_unsupported = 9 + V_object_non_existent = 10 + V_object_value_invalid = 11 + + @property + def value(self) -> DataAccessError.VALUES: ... + @value.setter + def value(self, value: DataAccessError.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class VariableAccessSpecification(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_listOfVariable = 1 + PR_variableListName = 2 + + @property + def present(self) -> PRESENT: ... + + class listOfVariable_TYPE(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + variableSpecification: VariableSpecification + @property + def alternateAccess(self) -> AlternateAccess | None: ... + @alternateAccess.setter + def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... + def __init__( + self, + /, + *, + variableSpecification: VariableSpecification = ..., + alternateAccess: AlternateAccess = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfVariable: listOfVariable_TYPE + variableListName: ObjectName | None + def __init__( + self, + /, + *, + listOfVariable: listOfVariable_TYPE = ..., + variableListName: ObjectName = ..., + ) -> None: ... + +class VariableSpecification(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_name = 1 + PR_address = 2 + PR_variableDescription = 3 + PR_scatteredAccessDescription = 4 + PR_invalidated = 5 + + @property + def present(self) -> PRESENT: ... + + class variableDescription_TYPE(_Asn1Type): # SEQUENCE + address: Address + typeSpecification: TypeSpecification + def __init__( + self, + /, + *, + address: Address = ..., + typeSpecification: TypeSpecification = ..., + ) -> None: ... + + variableDescription: variableDescription_TYPE + name: ObjectName | None + address: Address | None + @property + def scatteredAccessDescription(self) -> ScatteredAccessDescription | None: ... + @scatteredAccessDescription.setter + def scatteredAccessDescription( + self, value: ScatteredAccessDescription | list | None + ) -> None: ... + invalidated: None + def __init__( + self, + /, + *, + name: ObjectName = ..., + address: Address = ..., + variableDescription: variableDescription_TYPE = ..., + scatteredAccessDescription: ScatteredAccessDescription = ..., + invalidated: None = ..., + ) -> None: ... + +class Read_Request(_Asn1Type): # SEQUENCE + specificationWithResult: bool | None + variableAccessSpecification: VariableAccessSpecification | None + def __init__( + self, + /, + *, + specificationWithResult: bool = ..., + variableAccessSpecification: VariableAccessSpecification = ..., + ) -> None: ... + +class Read_Response(_Asn1Type): # SEQUENCE + class listOfAccessResult_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[AccessResult] | None = ...) -> None: ... + def __getitem__(self, index: int) -> AccessResult: ... + def __setitem__(self, index: int, value: AccessResult) -> None: ... + def add(self, value: AccessResult) -> None: ... + def extend(self, values: EXT_Iterable[AccessResult]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfAccessResult: listOfAccessResult_TYPE + variableAccessSpecification: VariableAccessSpecification | None + def __init__( + self, + /, + *, + variableAccessSpecification: VariableAccessSpecification = ..., + listOfAccessResult: listOfAccessResult_TYPE = ..., + ) -> None: ... class Write_Response(_Asn1Type): - - class Member_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_failure = 1 - PR_success = 2 - - @property - def present(self) -> PRESENT: ... - @property - def failure(self) -> DataAccessError | None: ... - @failure.setter - def failure(self, value: DataAccessError | int | None) -> None: ... - success: None | None - def __init__( - self, /, *, - failure: DataAccessError = ..., - success: None = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class Write_Request(_Asn1Type): # SEQUENCE - - class listOfData_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Data: ... - def __setitem__(self, index: int, value: Data) -> None: ... - def add(self, value: Data) -> None: ... - def extend(self, values: EXT_Iterable[Data]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfData: listOfData_TYPE - variableAccessSpecification: VariableAccessSpecification - def __init__( - self, /, *, - variableAccessSpecification: VariableAccessSpecification = ..., - listOfData: listOfData_TYPE = ..., - ) -> None: ... - -class InformationReport(_Asn1Type): # SEQUENCE - - class listOfAccessResult_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[AccessResult] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AccessResult: ... - def __setitem__(self, index: int, value: AccessResult) -> None: ... - def add(self, value: AccessResult) -> None: ... - def extend(self, values: EXT_Iterable[AccessResult]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfAccessResult: listOfAccessResult_TYPE - variableAccessSpecification: VariableAccessSpecification - def __init__( - self, /, *, - variableAccessSpecification: VariableAccessSpecification = ..., - listOfAccessResult: listOfAccessResult_TYPE = ..., - ) -> None: ... - -class GetVariableAccessAttributes_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_name = 1 - PR_address = 2 - - @property - def present(self) -> PRESENT: ... - name: ObjectName | None - address: Address | None - def __init__( - self, /, *, - name: ObjectName = ..., - address: Address = ..., - ) -> None: ... - -class GetVariableAccessAttributes_Response(_Asn1Type): # SEQUENCE - mmsDeletable: bool - address: Address | None - typeDescription: TypeDescription - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - meaning: str | None - def __init__( - self, /, *, - mmsDeletable: bool = ..., - address: Address = ..., - typeDescription: TypeDescription = ..., - accessControlList: Identifier = ..., - meaning: str = ..., - ) -> None: ... - -class DefineNamedVariable_Request(_Asn1Type): # SEQUENCE - variableName: ObjectName - address: Address - typeSpecification: TypeSpecification | None - def __init__( - self, /, *, - variableName: ObjectName = ..., - address: Address = ..., - typeSpecification: TypeSpecification = ..., - ) -> None: ... - -class DefineNamedVariable_Response(_Asn1BasicType[None]): - pass - -class DeleteVariableAccess_Request(_Asn1Type): # SEQUENCE - - class listOfName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfName: listOfName_TYPE | None - - class scopeOfDelete_VALUES(EXT_IntEnum): - V_specific = 0 - V_aa_specific = 1 - V_domain = 2 - V_vmd = 3 - - scopeOfDelete: scopeOfDelete_VALUES | None - @property - def domainName(self) -> Identifier | None: ... - @domainName.setter - def domainName(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - scopeOfDelete: scopeOfDelete_VALUES = ..., - listOfName: listOfName_TYPE = ..., - domainName: Identifier = ..., - ) -> None: ... - -class DeleteVariableAccess_Response(_Asn1Type): # SEQUENCE - @property - def numberMatched(self) -> Unsigned32: ... - @numberMatched.setter - def numberMatched(self, value: Unsigned32 | int) -> None: ... - @property - def numberDeleted(self) -> Unsigned32: ... - @numberDeleted.setter - def numberDeleted(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - numberMatched: Unsigned32 = ..., - numberDeleted: Unsigned32 = ..., - ) -> None: ... - -class DeleteVariableAccess_Error(_Asn1BasicType[Unsigned32]): - pass - -class DefineNamedVariableList_Request(_Asn1Type): # SEQUENCE - - class listOfVariable_TYPE(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - variableSpecification: VariableSpecification - @property - def alternateAccess(self) -> AlternateAccess | None: ... - @alternateAccess.setter - def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... - def __init__( - self, /, *, - variableSpecification: VariableSpecification = ..., - alternateAccess: AlternateAccess = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfVariable: listOfVariable_TYPE - variableListName: ObjectName - def __init__( - self, /, *, - variableListName: ObjectName = ..., - listOfVariable: listOfVariable_TYPE = ..., - ) -> None: ... - -class DefineNamedVariableList_Response(_Asn1BasicType[None]): - pass - -class GetNamedVariableListAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetNamedVariableListAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfVariable_TYPE(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - variableSpecification: VariableSpecification - @property - def alternateAccess(self) -> AlternateAccess | None: ... - @alternateAccess.setter - def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... - def __init__( - self, /, *, - variableSpecification: VariableSpecification = ..., - alternateAccess: AlternateAccess = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfVariable: listOfVariable_TYPE - mmsDeletable: bool - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - mmsDeletable: bool = ..., - listOfVariable: listOfVariable_TYPE = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class DeleteNamedVariableList_Response(_Asn1Type): # SEQUENCE - @property - def numberMatched(self) -> Unsigned32: ... - @numberMatched.setter - def numberMatched(self, value: Unsigned32 | int) -> None: ... - @property - def numberDeleted(self) -> Unsigned32: ... - @numberDeleted.setter - def numberDeleted(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - numberMatched: Unsigned32 = ..., - numberDeleted: Unsigned32 = ..., - ) -> None: ... - -class DeleteNamedVariableList_Request(_Asn1Type): # SEQUENCE - - class listOfVariableListName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfVariableListName: listOfVariableListName_TYPE | None - - class scopeOfDelete_VALUES(EXT_IntEnum): - V_specific = 0 - V_aa_specific = 1 - V_domain = 2 - V_vmd = 3 - - scopeOfDelete: scopeOfDelete_VALUES | None - @property - def domainName(self) -> Identifier | None: ... - @domainName.setter - def domainName(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - scopeOfDelete: scopeOfDelete_VALUES = ..., - listOfVariableListName: listOfVariableListName_TYPE = ..., - domainName: Identifier = ..., - ) -> None: ... - -class DeleteNamedVariableList_Error(_Asn1BasicType[Unsigned32]): - pass - -class DefineNamedType_Request(_Asn1Type): # SEQUENCE - typeName: ObjectName - typeSpecification: TypeSpecification - def __init__( - self, /, *, - typeName: ObjectName = ..., - typeSpecification: TypeSpecification = ..., - ) -> None: ... - -class DefineNamedType_Response(_Asn1BasicType[None]): - pass - -class GetNamedTypeAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetNamedTypeAttributes_Response(_Asn1Type): # SEQUENCE - mmsDeletable: bool - typeSpecification: TypeSpecification - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - meaning: str | None - def __init__( - self, /, *, - mmsDeletable: bool = ..., - typeSpecification: TypeSpecification = ..., - accessControlList: Identifier = ..., - meaning: str = ..., - ) -> None: ... - -class DeleteNamedType_Request(_Asn1Type): # SEQUENCE - - class listOfTypeName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfTypeName: listOfTypeName_TYPE | None - - class scopeOfDelete_VALUES(EXT_IntEnum): - V_specific = 0 - V_aa_specific = 1 - V_domain = 2 - V_vmd = 3 - - scopeOfDelete: scopeOfDelete_VALUES | None - @property - def domainName(self) -> Identifier | None: ... - @domainName.setter - def domainName(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - scopeOfDelete: scopeOfDelete_VALUES = ..., - listOfTypeName: listOfTypeName_TYPE = ..., - domainName: Identifier = ..., - ) -> None: ... - -class DeleteNamedType_Response(_Asn1Type): # SEQUENCE - @property - def numberMatched(self) -> Unsigned32: ... - @numberMatched.setter - def numberMatched(self, value: Unsigned32 | int) -> None: ... - @property - def numberDeleted(self) -> Unsigned32: ... - @numberDeleted.setter - def numberDeleted(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - numberMatched: Unsigned32 = ..., - numberDeleted: Unsigned32 = ..., - ) -> None: ... - -class DeleteNamedType_Error(_Asn1BasicType[Unsigned32]): - pass - -class ExchangeData_Request(_Asn1Type): # SEQUENCE - - class listOfRequestData_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Data: ... - def __setitem__(self, index: int, value: Data) -> None: ... - def add(self, value: Data) -> None: ... - def extend(self, values: EXT_Iterable[Data]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfRequestData: listOfRequestData_TYPE - dataExchangeName: ObjectName - def __init__( - self, /, *, - dataExchangeName: ObjectName = ..., - listOfRequestData: listOfRequestData_TYPE = ..., - ) -> None: ... - -class ExchangeData_Response(_Asn1Type): # SEQUENCE - - class listOfResponseData_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Data: ... - def __setitem__(self, index: int, value: Data) -> None: ... - def add(self, value: Data) -> None: ... - def extend(self, values: EXT_Iterable[Data]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfResponseData: listOfResponseData_TYPE - def __init__( - self, /, *, - listOfResponseData: listOfResponseData_TYPE = ..., - ) -> None: ... - -class GetDataExchangeAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetDataExchangeAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfRequestTypeDescriptions_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[TypeDescription] | None = ...) -> None: ... - def __getitem__(self, index: int) -> TypeDescription: ... - def __setitem__(self, index: int, value: TypeDescription) -> None: ... - def add(self, value: TypeDescription) -> None: ... - def extend(self, values: EXT_Iterable[TypeDescription]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfRequestTypeDescriptions: listOfRequestTypeDescriptions_TYPE - - class listOfResponseTypeDescriptions_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[TypeDescription] | None = ...) -> None: ... - def __getitem__(self, index: int) -> TypeDescription: ... - def __setitem__(self, index: int, value: TypeDescription) -> None: ... - def add(self, value: TypeDescription) -> None: ... - def extend(self, values: EXT_Iterable[TypeDescription]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfResponseTypeDescriptions: listOfResponseTypeDescriptions_TYPE - inUse: bool - @property - def programInvocation(self) -> Identifier | None: ... - @programInvocation.setter - def programInvocation(self, value: Identifier | str | None) -> None: ... - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - inUse: bool = ..., - listOfRequestTypeDescriptions: listOfRequestTypeDescriptions_TYPE = ..., - listOfResponseTypeDescriptions: listOfResponseTypeDescriptions_TYPE = ..., - programInvocation: Identifier = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class TakeControl_Request(_Asn1Type): # SEQUENCE - semaphoreName: ObjectName - @property - def namedToken(self) -> Identifier | None: ... - @namedToken.setter - def namedToken(self, value: Identifier | str | None) -> None: ... - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - @property - def acceptableDelay(self) -> Unsigned32 | None: ... - @acceptableDelay.setter - def acceptableDelay(self, value: Unsigned32 | int | None) -> None: ... - @property - def controlTimeOut(self) -> Unsigned32 | None: ... - @controlTimeOut.setter - def controlTimeOut(self, value: Unsigned32 | int | None) -> None: ... - abortOnTimeOut: bool | None - relinquishIfConnectionLost: bool | None - applicationToPreempt: ApplicationReference | None - def __init__( - self, /, *, - semaphoreName: ObjectName = ..., - namedToken: Identifier = ..., - priority: Priority = ..., - acceptableDelay: Unsigned32 = ..., - controlTimeOut: Unsigned32 = ..., - abortOnTimeOut: bool = ..., - relinquishIfConnectionLost: bool = ..., - applicationToPreempt: ApplicationReference = ..., - ) -> None: ... - -class TakeControl_Response(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_noResult = 1 - PR_namedToken = 2 - - @property - def present(self) -> PRESENT: ... - noResult: None | None - @property - def namedToken(self) -> Identifier | None: ... - @namedToken.setter - def namedToken(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - noResult: None = ..., - namedToken: Identifier = ..., - ) -> None: ... - -class RelinquishControl_Request(_Asn1Type): # SEQUENCE - semaphoreName: ObjectName - @property - def namedToken(self) -> Identifier | None: ... - @namedToken.setter - def namedToken(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - semaphoreName: ObjectName = ..., - namedToken: Identifier = ..., - ) -> None: ... - -class RelinquishControl_Response(_Asn1BasicType[None]): - pass - -class DefineSemaphore_Request(_Asn1Type): # SEQUENCE - semaphoreName: ObjectName - @property - def numberOfTokens(self) -> Unsigned16: ... - @numberOfTokens.setter - def numberOfTokens(self, value: Unsigned16 | int) -> None: ... - def __init__( - self, /, *, - semaphoreName: ObjectName = ..., - numberOfTokens: Unsigned16 = ..., - ) -> None: ... - -class DefineSemaphore_Response(_Asn1BasicType[None]): - pass - -class DeleteSemaphore_Request(_Asn1BasicType[ObjectName]): - pass - -class DeleteSemaphore_Response(_Asn1BasicType[None]): - pass - -class ReportSemaphoreStatus_Request(_Asn1BasicType[ObjectName]): - pass - -class ReportSemaphoreStatus_Response(_Asn1Type): # SEQUENCE - mmsDeletable: bool - - class class__VALUES(EXT_IntEnum): - V_token = 0 - V_pool = 1 - - class_: class__VALUES - @property - def numberOfTokens(self) -> Unsigned16: ... - @numberOfTokens.setter - def numberOfTokens(self, value: Unsigned16 | int) -> None: ... - @property - def numberOfOwnedTokens(self) -> Unsigned16: ... - @numberOfOwnedTokens.setter - def numberOfOwnedTokens(self, value: Unsigned16 | int) -> None: ... - @property - def numberOfHungTokens(self) -> Unsigned16: ... - @numberOfHungTokens.setter - def numberOfHungTokens(self, value: Unsigned16 | int) -> None: ... - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - mmsDeletable: bool = ..., - class_: class__VALUES = ..., - numberOfTokens: Unsigned16 = ..., - numberOfOwnedTokens: Unsigned16 = ..., - numberOfHungTokens: Unsigned16 = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class ReportPoolSemaphoreStatus_Request(_Asn1Type): # SEQUENCE - semaphoreName: ObjectName - @property - def nameToStartAfter(self) -> Identifier | None: ... - @nameToStartAfter.setter - def nameToStartAfter(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - semaphoreName: ObjectName = ..., - nameToStartAfter: Identifier = ..., - ) -> None: ... - -class ReportPoolSemaphoreStatus_Response(_Asn1Type): # SEQUENCE - - class listOfNamedTokens_TYPE(_Asn1Type): - - class Member_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_freeNamedToken = 1 - PR_ownedNamedToken = 2 - PR_hungNamedToken = 3 - - @property - def present(self) -> PRESENT: ... - @property - def freeNamedToken(self) -> Identifier | None: ... - @freeNamedToken.setter - def freeNamedToken(self, value: Identifier | str | None) -> None: ... - @property - def ownedNamedToken(self) -> Identifier | None: ... - @ownedNamedToken.setter - def ownedNamedToken(self, value: Identifier | str | None) -> None: ... - @property - def hungNamedToken(self) -> Identifier | None: ... - @hungNamedToken.setter - def hungNamedToken(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - freeNamedToken: Identifier = ..., - ownedNamedToken: Identifier = ..., - hungNamedToken: Identifier = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfNamedTokens: listOfNamedTokens_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfNamedTokens: listOfNamedTokens_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class ReportSemaphoreEntryStatus_Request(_Asn1Type): # SEQUENCE - semaphoreName: ObjectName - - class state_VALUES(EXT_IntEnum): - V_queued = 0 - V_owner = 1 - V_hung = 2 - - state: state_VALUES - entryIDToStartAfter: bytes | None - def __init__( - self, /, *, - semaphoreName: ObjectName = ..., - state: state_VALUES = ..., - entryIDToStartAfter: bytes = ..., - ) -> None: ... - -class ReportSemaphoreEntryStatus_Response(_Asn1Type): # SEQUENCE - - class listOfSemaphoreEntry_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[SemaphoreEntry] | None = ...) -> None: ... - def __getitem__(self, index: int) -> SemaphoreEntry: ... - def __setitem__(self, index: int, value: SemaphoreEntry) -> None: ... - def add(self, value: SemaphoreEntry) -> None: ... - def extend(self, values: EXT_Iterable[SemaphoreEntry]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfSemaphoreEntry: listOfSemaphoreEntry_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfSemaphoreEntry: listOfSemaphoreEntry_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class SemaphoreEntry(_Asn1Type): # SEQUENCE - entryID: bytes - - class entryClass_VALUES(EXT_IntEnum): - V_simple = 0 - V_modifier = 1 - - entryClass: entryClass_VALUES - applicationReference: ApplicationReference - @property - def namedToken(self) -> Identifier | None: ... - @namedToken.setter - def namedToken(self, value: Identifier | str | None) -> None: ... - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - @property - def remainingTimeOut(self) -> Unsigned32 | None: ... - @remainingTimeOut.setter - def remainingTimeOut(self, value: Unsigned32 | int | None) -> None: ... - abortOnTimeOut: bool | None - relinquishIfConnectionLost: bool | None - def __init__( - self, /, *, - entryID: bytes = ..., - entryClass: entryClass_VALUES = ..., - applicationReference: ApplicationReference = ..., - namedToken: Identifier = ..., - priority: Priority = ..., - remainingTimeOut: Unsigned32 = ..., - abortOnTimeOut: bool = ..., - relinquishIfConnectionLost: bool = ..., - ) -> None: ... - -class AttachToSemaphore(_Asn1Type): # SEQUENCE - semaphoreName: ObjectName - @property - def namedToken(self) -> Identifier | None: ... - @namedToken.setter - def namedToken(self, value: Identifier | str | None) -> None: ... - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - @property - def acceptableDelay(self) -> Unsigned32 | None: ... - @acceptableDelay.setter - def acceptableDelay(self, value: Unsigned32 | int | None) -> None: ... - @property - def controlTimeOut(self) -> Unsigned32 | None: ... - @controlTimeOut.setter - def controlTimeOut(self, value: Unsigned32 | int | None) -> None: ... - abortOnTimeOut: bool | None - relinquishIfConnectionLost: bool | None - def __init__( - self, /, *, - semaphoreName: ObjectName = ..., - namedToken: Identifier = ..., - priority: Priority = ..., - acceptableDelay: Unsigned32 = ..., - controlTimeOut: Unsigned32 = ..., - abortOnTimeOut: bool = ..., - relinquishIfConnectionLost: bool = ..., - ) -> None: ... - -class Input_Request(_Asn1Type): # SEQUENCE - - class listOfPromptData_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfPromptData: listOfPromptData_TYPE | None - @property - def operatorStationName(self) -> Identifier: ... - @operatorStationName.setter - def operatorStationName(self, value: Identifier | str) -> None: ... - echo: bool | None - @property - def inputTimeOut(self) -> Unsigned32 | None: ... - @inputTimeOut.setter - def inputTimeOut(self, value: Unsigned32 | int | None) -> None: ... - def __init__( - self, /, *, - operatorStationName: Identifier = ..., - echo: bool = ..., - listOfPromptData: listOfPromptData_TYPE = ..., - inputTimeOut: Unsigned32 = ..., - ) -> None: ... - -class Input_Response(_Asn1BasicType[MMSString]): - pass - -class Output_Request(_Asn1Type): # SEQUENCE - - class listOfOutputData_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... - def __getitem__(self, index: int) -> MMSString: ... - def __setitem__(self, index: int, value: MMSString) -> None: ... - def add(self, value: MMSString) -> None: ... - def extend(self, values: EXT_Iterable[MMSString]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfOutputData: listOfOutputData_TYPE - @property - def operatorStationName(self) -> Identifier: ... - @operatorStationName.setter - def operatorStationName(self, value: Identifier | str) -> None: ... - def __init__( - self, /, *, - operatorStationName: Identifier = ..., - listOfOutputData: listOfOutputData_TYPE = ..., - ) -> None: ... - -class Output_Response(_Asn1BasicType[None]): - pass - -class TriggerEvent_Request(_Asn1Type): # SEQUENCE - eventConditionName: ObjectName - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - def __init__( - self, /, *, - eventConditionName: ObjectName = ..., - priority: Priority = ..., - ) -> None: ... - -class TriggerEvent_Response(_Asn1BasicType[None]): - pass - -class EventNotification(_Asn1Type): # SEQUENCE - - class actionResult_TYPE(_Asn1Type): # SEQUENCE - - class successOrFailure_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_success = 1 - PR_failure = 2 - - @property - def present(self) -> PRESENT: ... - - class success_TYPE(_Asn1Type): # SEQUENCE - confirmedServiceResponse: ConfirmedServiceResponse - cs_Response_Detail: Response_Detail | None - def __init__( - self, /, *, - confirmedServiceResponse: ConfirmedServiceResponse = ..., - cs_Response_Detail: Response_Detail = ..., - ) -> None: ... - - success: success_TYPE - - class failure_TYPE(_Asn1Type): # SEQUENCE - @property - def modifierPosition(self) -> Unsigned32 | None: ... - @modifierPosition.setter - def modifierPosition(self, value: Unsigned32 | int | None) -> None: ... - serviceError: ServiceError - def __init__( - self, /, *, - modifierPosition: Unsigned32 = ..., - serviceError: ServiceError = ..., - ) -> None: ... - - failure: failure_TYPE - def __init__( - self, /, *, - success: success_TYPE = ..., - failure: failure_TYPE = ..., - ) -> None: ... - - successOrFailure: successOrFailure_TYPE - eventActionName: ObjectName - def __init__( - self, /, *, - eventActionName: ObjectName = ..., - successOrFailure: successOrFailure_TYPE = ..., - ) -> None: ... - - actionResult: actionResult_TYPE | None - eventEnrollmentName: ObjectName - eventConditionName: ObjectName - @property - def severity(self) -> Severity: ... - @severity.setter - def severity(self, value: Severity | int) -> None: ... - @property - def currentState(self) -> EC_State | None: ... - @currentState.setter - def currentState(self, value: EC_State | int | None) -> None: ... - transitionTime: EventTime - notificationLost: bool | None - @property - def alarmAcknowledgmentRule(self) -> AlarmAckRule | None: ... - @alarmAcknowledgmentRule.setter - def alarmAcknowledgmentRule(self, value: AlarmAckRule | int | None) -> None: ... - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - eventConditionName: ObjectName = ..., - severity: Severity = ..., - currentState: EC_State = ..., - transitionTime: EventTime = ..., - notificationLost: bool = ..., - alarmAcknowledgmentRule: AlarmAckRule = ..., - actionResult: actionResult_TYPE = ..., - ) -> None: ... - -class CS_EventNotification(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - -class AcknowledgeEventNotification_Request(_Asn1Type): # SEQUENCE - eventEnrollmentName: ObjectName - @property - def acknowledgedState(self) -> EC_State: ... - @acknowledgedState.setter - def acknowledgedState(self, value: EC_State | int) -> None: ... - timeOfAcknowledgedTransition: EventTime - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - acknowledgedState: EC_State = ..., - timeOfAcknowledgedTransition: EventTime = ..., - ) -> None: ... - -class AcknowledgeEventNotification_Response(_Asn1BasicType[None]): - pass - -class GetAlarmSummary_Request(_Asn1Type): # SEQUENCE - - class severityFilter_TYPE(_Asn1Type): # SEQUENCE - @property - def mostSevere(self) -> Unsigned8: ... - @mostSevere.setter - def mostSevere(self, value: Unsigned8 | int) -> None: ... - @property - def leastSevere(self) -> Unsigned8: ... - @leastSevere.setter - def leastSevere(self, value: Unsigned8 | int) -> None: ... - def __init__( - self, /, *, - mostSevere: Unsigned8 = ..., - leastSevere: Unsigned8 = ..., - ) -> None: ... - - severityFilter: severityFilter_TYPE | None - enrollmentsOnly: bool | None - activeAlarmsOnly: bool | None - - class acknowledgementFilter_VALUES(EXT_IntEnum): - V_not_acked = 0 - V_acked = 1 - V_all = 2 - - acknowledgementFilter: acknowledgementFilter_VALUES | None - continueAfter: ObjectName | None - def __init__( - self, /, *, - enrollmentsOnly: bool = ..., - activeAlarmsOnly: bool = ..., - acknowledgementFilter: acknowledgementFilter_VALUES = ..., - severityFilter: severityFilter_TYPE = ..., - continueAfter: ObjectName = ..., - ) -> None: ... - -class GetAlarmSummary_Response(_Asn1Type): # SEQUENCE - - class listOfAlarmSummary_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[AlarmSummary] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AlarmSummary: ... - def __setitem__(self, index: int, value: AlarmSummary) -> None: ... - def add(self, value: AlarmSummary) -> None: ... - def extend(self, values: EXT_Iterable[AlarmSummary]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfAlarmSummary: listOfAlarmSummary_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfAlarmSummary: listOfAlarmSummary_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class AlarmSummary(_Asn1Type): # SEQUENCE - eventConditionName: ObjectName - @property - def severity(self) -> Unsigned8: ... - @severity.setter - def severity(self, value: Unsigned8 | int) -> None: ... - @property - def currentState(self) -> EC_State: ... - @currentState.setter - def currentState(self, value: EC_State | int) -> None: ... - - class unacknowledgedState_VALUES(EXT_IntEnum): - V_none = 0 - V_active = 1 - V_idle = 2 - V_both = 3 - - unacknowledgedState: unacknowledgedState_VALUES - displayEnhancement: EN_Additional_Detail | None - timeOfLastTransitionToActive: EventTime | None - timeOfLastTransitionToIdle: EventTime | None - def __init__( - self, /, *, - eventConditionName: ObjectName = ..., - severity: Unsigned8 = ..., - currentState: EC_State = ..., - unacknowledgedState: unacknowledgedState_VALUES = ..., - displayEnhancement: EN_Additional_Detail = ..., - timeOfLastTransitionToActive: EventTime = ..., - timeOfLastTransitionToIdle: EventTime = ..., - ) -> None: ... - -class EN_Additional_Detail(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - -class GetAlarmEnrollmentSummary_Request(_Asn1Type): # SEQUENCE - - class severityFilter_TYPE(_Asn1Type): # SEQUENCE - @property - def mostSevere(self) -> Unsigned8: ... - @mostSevere.setter - def mostSevere(self, value: Unsigned8 | int) -> None: ... - @property - def leastSevere(self) -> Unsigned8: ... - @leastSevere.setter - def leastSevere(self, value: Unsigned8 | int) -> None: ... - def __init__( - self, /, *, - mostSevere: Unsigned8 = ..., - leastSevere: Unsigned8 = ..., - ) -> None: ... - - severityFilter: severityFilter_TYPE | None - enrollmentsOnly: bool | None - activeAlarmsOnly: bool | None - - class acknowledgementFilter_VALUES(EXT_IntEnum): - V_not_acked = 0 - V_acked = 1 - V_all = 2 - - acknowledgementFilter: acknowledgementFilter_VALUES | None - continueAfter: ObjectName | None - def __init__( - self, /, *, - enrollmentsOnly: bool = ..., - activeAlarmsOnly: bool = ..., - acknowledgementFilter: acknowledgementFilter_VALUES = ..., - severityFilter: severityFilter_TYPE = ..., - continueAfter: ObjectName = ..., - ) -> None: ... - -class GetAlarmEnrollmentSummary_Response(_Asn1Type): # SEQUENCE - - class listOfAlarmEnrollmentSummary_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[AlarmEnrollmentSummary] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AlarmEnrollmentSummary: ... - def __setitem__(self, index: int, value: AlarmEnrollmentSummary) -> None: ... - def add(self, value: AlarmEnrollmentSummary) -> None: ... - def extend(self, values: EXT_Iterable[AlarmEnrollmentSummary]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfAlarmEnrollmentSummary: listOfAlarmEnrollmentSummary_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfAlarmEnrollmentSummary: listOfAlarmEnrollmentSummary_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class AlarmEnrollmentSummary(_Asn1Type): # SEQUENCE - eventEnrollmentName: ObjectName - clientApplication: ApplicationReference | None - @property - def severity(self) -> Unsigned8: ... - @severity.setter - def severity(self, value: Unsigned8 | int) -> None: ... - @property - def currentState(self) -> EC_State: ... - @currentState.setter - def currentState(self, value: EC_State | int) -> None: ... - displayEnhancement: EN_Additional_Detail | None - notificationLost: bool | None - @property - def alarmAcknowledgmentRule(self) -> AlarmAckRule: ... - @alarmAcknowledgmentRule.setter - def alarmAcknowledgmentRule(self, value: AlarmAckRule | int) -> None: ... - @property - def enrollmentState(self) -> EE_State | None: ... - @enrollmentState.setter - def enrollmentState(self, value: EE_State | int | None) -> None: ... - timeOfLastTransitionToActive: EventTime | None - timeActiveAcknowledged: EventTime | None - timeOfLastTransitionToIdle: EventTime | None - timeIdleAcknowledged: EventTime | None - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - clientApplication: ApplicationReference = ..., - severity: Unsigned8 = ..., - currentState: EC_State = ..., - displayEnhancement: EN_Additional_Detail = ..., - notificationLost: bool = ..., - alarmAcknowledgmentRule: AlarmAckRule = ..., - enrollmentState: EE_State = ..., - timeOfLastTransitionToActive: EventTime = ..., - timeActiveAcknowledged: EventTime = ..., - timeOfLastTransitionToIdle: EventTime = ..., - timeIdleAcknowledged: EventTime = ..., - ) -> None: ... - -class AttachToEventCondition(_Asn1Type): # SEQUENCE - eventEnrollmentName: ObjectName - eventConditionName: ObjectName - @property - def causingTransitions(self) -> Transitions: ... - @causingTransitions.setter - def causingTransitions(self, value: Transitions | EXT_bitarray | int | bytes) -> None: ... - @property - def acceptableDelay(self) -> Unsigned32 | None: ... - @acceptableDelay.setter - def acceptableDelay(self, value: Unsigned32 | int | None) -> None: ... - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - eventConditionName: ObjectName = ..., - causingTransitions: Transitions = ..., - acceptableDelay: Unsigned32 = ..., - ) -> None: ... - -class DefineEventCondition_Request(_Asn1Type): # SEQUENCE - eventConditionName: ObjectName - @property - def class_(self) -> EC_Class: ... - @class_.setter - def class_(self, value: EC_Class | int) -> None: ... - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - @property - def severity(self) -> Unsigned8 | None: ... - @severity.setter - def severity(self, value: Unsigned8 | int | None) -> None: ... - alarmSummaryReports: bool | None - monitoredVariable: VariableSpecification | None - @property - def evaluationInterval(self) -> Unsigned32 | None: ... - @evaluationInterval.setter - def evaluationInterval(self, value: Unsigned32 | int | None) -> None: ... - def __init__( - self, /, *, - eventConditionName: ObjectName = ..., - class_: EC_Class = ..., - priority: Priority = ..., - severity: Unsigned8 = ..., - alarmSummaryReports: bool = ..., - monitoredVariable: VariableSpecification = ..., - evaluationInterval: Unsigned32 = ..., - ) -> None: ... - -class DefineEventCondition_Response(_Asn1BasicType[None]): - pass - -class CS_DefineEventCondition_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - -class DeleteEventCondition_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_specific = 1 - PR_aa_specific = 2 - PR_domain = 3 - PR_vmd = 4 - - @property - def present(self) -> PRESENT: ... - - class specific_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - specific: specific_TYPE - aa_specific: None | None - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - vmd: None | None - def __init__( - self, /, *, - specific: specific_TYPE = ..., - aa_specific: None = ..., - domain: Identifier = ..., - vmd: None = ..., - ) -> None: ... - -class DeleteEventCondition_Response(_Asn1BasicType[Unsigned32]): - pass - -class GetEventConditionAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetEventConditionAttributes_Response(_Asn1Type): # SEQUENCE - - class monitoredVariable_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_variableReference = 1 - PR_undefined = 2 - - @property - def present(self) -> PRESENT: ... - variableReference: VariableSpecification | None - undefined: None | None - def __init__( - self, /, *, - variableReference: VariableSpecification = ..., - undefined: None = ..., - ) -> None: ... - - monitoredVariable: monitoredVariable_TYPE | None - mmsDeletable: bool | None - @property - def class_(self) -> EC_Class: ... - @class_.setter - def class_(self, value: EC_Class | int) -> None: ... - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - @property - def severity(self) -> Unsigned8 | None: ... - @severity.setter - def severity(self, value: Unsigned8 | int | None) -> None: ... - alarmSummaryReports: bool | None - @property - def evaluationInterval(self) -> Unsigned32 | None: ... - @evaluationInterval.setter - def evaluationInterval(self, value: Unsigned32 | int | None) -> None: ... - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - mmsDeletable: bool = ..., - class_: EC_Class = ..., - priority: Priority = ..., - severity: Unsigned8 = ..., - alarmSummaryReports: bool = ..., - monitoredVariable: monitoredVariable_TYPE = ..., - evaluationInterval: Unsigned32 = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class CS_GetEventConditionAttributes_Response(_Asn1Type): # SEQUENCE - - class groupPriorityOverride_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_priority = 1 - PR_undefined = 2 - - @property - def present(self) -> PRESENT: ... - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - undefined: None | None - def __init__( - self, /, *, - priority: Priority = ..., - undefined: None = ..., - ) -> None: ... - - groupPriorityOverride: groupPriorityOverride_TYPE | None - - class listOfReferencingECL_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfReferencingECL: listOfReferencingECL_TYPE | None - - class displayEnhancement_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - - displayEnhancement: displayEnhancement_TYPE - def __init__( - self, /, *, - groupPriorityOverride: groupPriorityOverride_TYPE = ..., - listOfReferencingECL: listOfReferencingECL_TYPE = ..., - displayEnhancement: displayEnhancement_TYPE = ..., - ) -> None: ... - -class ReportEventConditionStatus_Request(_Asn1BasicType[ObjectName]): - pass - -class ReportEventConditionStatus_Response(_Asn1Type): # SEQUENCE - @property - def currentState(self) -> EC_State: ... - @currentState.setter - def currentState(self, value: EC_State | int) -> None: ... - @property - def numberOfEventEnrollments(self) -> Unsigned32: ... - @numberOfEventEnrollments.setter - def numberOfEventEnrollments(self, value: Unsigned32 | int) -> None: ... - enabled: bool | None - timeOfLastTransitionToActive: EventTime | None - timeOfLastTransitionToIdle: EventTime | None - def __init__( - self, /, *, - currentState: EC_State = ..., - numberOfEventEnrollments: Unsigned32 = ..., - enabled: bool = ..., - timeOfLastTransitionToActive: EventTime = ..., - timeOfLastTransitionToIdle: EventTime = ..., - ) -> None: ... - -class AlterEventConditionMonitoring_Request(_Asn1Type): # SEQUENCE - eventConditionName: ObjectName - enabled: bool | None - @property - def priority(self) -> Priority | None: ... - @priority.setter - def priority(self, value: Priority | int | None) -> None: ... - alarmSummaryReports: bool | None - @property - def evaluationInterval(self) -> Unsigned32 | None: ... - @evaluationInterval.setter - def evaluationInterval(self, value: Unsigned32 | int | None) -> None: ... - def __init__( - self, /, *, - eventConditionName: ObjectName = ..., - enabled: bool = ..., - priority: Priority = ..., - alarmSummaryReports: bool = ..., - evaluationInterval: Unsigned32 = ..., - ) -> None: ... - -class AlterEventConditionMonitoring_Response(_Asn1BasicType[None]): - pass - -class CS_AlterEventConditionMonitoring_Request(_Asn1Type): # SEQUENCE - - class changeDisplay_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - - changeDisplay: changeDisplay_TYPE | None - def __init__( - self, /, *, - changeDisplay: changeDisplay_TYPE = ..., - ) -> None: ... - -class DefineEventAction_Request(_Asn1Type): # SEQUENCE - - class listOfModifier_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Modifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Modifier: ... - def __setitem__(self, index: int, value: Modifier) -> None: ... - def add(self, value: Modifier) -> None: ... - def extend(self, values: EXT_Iterable[Modifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfModifier: listOfModifier_TYPE | None - eventActionName: ObjectName - confirmedServiceRequest: ConfirmedServiceRequest | None - cs_extension: Request_Detail | None - def __init__( - self, /, *, - eventActionName: ObjectName = ..., - listOfModifier: listOfModifier_TYPE = ..., - confirmedServiceRequest: ConfirmedServiceRequest = ..., - cs_extension: Request_Detail = ..., - ) -> None: ... - -class DefineEventAction_Response(_Asn1BasicType[None]): - pass - -class DeleteEventAction_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_specific = 1 - PR_aa_specific = 2 - PR_domain = 3 - PR_vmd = 4 - - @property - def present(self) -> PRESENT: ... - - class specific_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - specific: specific_TYPE - aa_specific: None | None - @property - def domain(self) -> Identifier | None: ... - @domain.setter - def domain(self, value: Identifier | str | None) -> None: ... - vmd: None | None - def __init__( - self, /, *, - specific: specific_TYPE = ..., - aa_specific: None = ..., - domain: Identifier = ..., - vmd: None = ..., - ) -> None: ... - -class DeleteEventAction_Response(_Asn1BasicType[Unsigned32]): - pass - -class GetEventActionAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetEventActionAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfModifier_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Modifier] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Modifier: ... - def __setitem__(self, index: int, value: Modifier) -> None: ... - def add(self, value: Modifier) -> None: ... - def extend(self, values: EXT_Iterable[Modifier]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfModifier: listOfModifier_TYPE - mmsDeletable: bool | None - confirmedServiceRequest: ConfirmedServiceRequest - cs_extension: Request_Detail | None - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - mmsDeletable: bool = ..., - listOfModifier: listOfModifier_TYPE = ..., - confirmedServiceRequest: ConfirmedServiceRequest = ..., - cs_extension: Request_Detail = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class ReportEventActionStatus_Request(_Asn1BasicType[ObjectName]): - pass - -class ReportEventActionStatus_Response(_Asn1BasicType[Unsigned32]): - pass - -class DefineEventEnrollment_Request(_Asn1Type): # SEQUENCE - eventEnrollmentName: ObjectName - eventConditionName: ObjectName - @property - def eventConditionTransitions(self) -> Transitions: ... - @eventConditionTransitions.setter - def eventConditionTransitions(self, value: Transitions | EXT_bitarray | int | bytes) -> None: ... - @property - def alarmAcknowledgmentRule(self) -> AlarmAckRule: ... - @alarmAcknowledgmentRule.setter - def alarmAcknowledgmentRule(self, value: AlarmAckRule | int) -> None: ... - eventActionName: ObjectName | None - clientApplication: ApplicationReference | None - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - eventConditionName: ObjectName = ..., - eventConditionTransitions: Transitions = ..., - alarmAcknowledgmentRule: AlarmAckRule = ..., - eventActionName: ObjectName = ..., - clientApplication: ApplicationReference = ..., - ) -> None: ... - -class DefineEventEnrollment_Response(_Asn1BasicType[None]): - pass - -class DefineEventEnrollment_Error(_Asn1BasicType[ObjectName]): - pass - -class CS_DefineEventEnrollment_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - -class DeleteEventEnrollment_Request(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_specific = 1 - PR_ec = 2 - PR_ea = 3 - - @property - def present(self) -> PRESENT: ... - - class specific_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - specific: specific_TYPE - ec: ObjectName | None - ea: ObjectName | None - def __init__( - self, /, *, - specific: specific_TYPE = ..., - ec: ObjectName = ..., - ea: ObjectName = ..., - ) -> None: ... - -class DeleteEventEnrollment_Response(_Asn1BasicType[Unsigned32]): - pass - -class GetEventEnrollmentAttributes_Request(_Asn1Type): # SEQUENCE - - class eventEnrollmentNames_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - eventEnrollmentNames: eventEnrollmentNames_TYPE | None - - class scopeOfRequest_VALUES(EXT_IntEnum): - V_specific = 0 - V_client = 1 - V_ec = 2 - V_ea = 3 - - scopeOfRequest: scopeOfRequest_VALUES | None - clientApplication: ApplicationReference | None - eventConditionName: ObjectName | None - eventActionName: ObjectName | None - continueAfter: ObjectName | None - def __init__( - self, /, *, - scopeOfRequest: scopeOfRequest_VALUES = ..., - eventEnrollmentNames: eventEnrollmentNames_TYPE = ..., - clientApplication: ApplicationReference = ..., - eventConditionName: ObjectName = ..., - eventActionName: ObjectName = ..., - continueAfter: ObjectName = ..., - ) -> None: ... - -class GetEventEnrollmentAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfEEAttributes_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[EEAttributes] | None = ...) -> None: ... - def __getitem__(self, index: int) -> EEAttributes: ... - def __setitem__(self, index: int, value: EEAttributes) -> None: ... - def add(self, value: EEAttributes) -> None: ... - def extend(self, values: EXT_Iterable[EEAttributes]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEEAttributes: listOfEEAttributes_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfEEAttributes: listOfEEAttributes_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class EEAttributes(_Asn1Type): # SEQUENCE - - class eventConditionName_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_eventCondition = 1 - PR_undefined = 2 - - @property - def present(self) -> PRESENT: ... - eventCondition: ObjectName | None - undefined: None | None - def __init__( - self, /, *, - eventCondition: ObjectName = ..., - undefined: None = ..., - ) -> None: ... - - eventConditionName: eventConditionName_TYPE - - class eventActionName_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_eventAction = 1 - PR_undefined = 2 - - @property - def present(self) -> PRESENT: ... - eventAction: ObjectName | None - undefined: None | None - def __init__( - self, /, *, - eventAction: ObjectName = ..., - undefined: None = ..., - ) -> None: ... - - eventActionName: eventActionName_TYPE | None - - class displayEnhancement_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - - displayEnhancement: displayEnhancement_TYPE - eventEnrollmentName: ObjectName - clientApplication: ApplicationReference | None - mmsDeletable: bool | None - @property - def enrollmentClass(self) -> EE_Class: ... - @enrollmentClass.setter - def enrollmentClass(self, value: EE_Class | int) -> None: ... - @property - def duration(self) -> EE_Duration | None: ... - @duration.setter - def duration(self, value: EE_Duration | int | None) -> None: ... - @property - def invokeID(self) -> Unsigned32 | None: ... - @invokeID.setter - def invokeID(self, value: Unsigned32 | int | None) -> None: ... - @property - def remainingAcceptableDelay(self) -> Unsigned32 | None: ... - @remainingAcceptableDelay.setter - def remainingAcceptableDelay(self, value: Unsigned32 | int | None) -> None: ... - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - eventConditionName: eventConditionName_TYPE = ..., - eventActionName: eventActionName_TYPE = ..., - clientApplication: ApplicationReference = ..., - mmsDeletable: bool = ..., - enrollmentClass: EE_Class = ..., - duration: EE_Duration = ..., - invokeID: Unsigned32 = ..., - remainingAcceptableDelay: Unsigned32 = ..., - displayEnhancement: displayEnhancement_TYPE = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class ReportEventEnrollmentStatus_Request(_Asn1BasicType[ObjectName]): - pass - -class ReportEventEnrollmentStatus_Response(_Asn1Type): # SEQUENCE - @property - def eventConditionTransitions(self) -> Transitions: ... - @eventConditionTransitions.setter - def eventConditionTransitions(self, value: Transitions | EXT_bitarray | int | bytes) -> None: ... - notificationLost: bool | None - @property - def duration(self) -> EE_Duration: ... - @duration.setter - def duration(self, value: EE_Duration | int) -> None: ... - @property - def alarmAcknowledgmentRule(self) -> AlarmAckRule | None: ... - @alarmAcknowledgmentRule.setter - def alarmAcknowledgmentRule(self, value: AlarmAckRule | int | None) -> None: ... - @property - def currentState(self) -> EE_State: ... - @currentState.setter - def currentState(self, value: EE_State | int) -> None: ... - def __init__( - self, /, *, - eventConditionTransitions: Transitions = ..., - notificationLost: bool = ..., - duration: EE_Duration = ..., - alarmAcknowledgmentRule: AlarmAckRule = ..., - currentState: EE_State = ..., - ) -> None: ... - -class AlterEventEnrollment_Request(_Asn1Type): # SEQUENCE - eventEnrollmentName: ObjectName - @property - def eventConditionTransitions(self) -> Transitions | None: ... - @eventConditionTransitions.setter - def eventConditionTransitions(self, value: Transitions | EXT_bitarray | int | bytes | None) -> None: ... - @property - def alarmAcknowledgmentRule(self) -> AlarmAckRule | None: ... - @alarmAcknowledgmentRule.setter - def alarmAcknowledgmentRule(self, value: AlarmAckRule | int | None) -> None: ... - def __init__( - self, /, *, - eventEnrollmentName: ObjectName = ..., - eventConditionTransitions: Transitions = ..., - alarmAcknowledgmentRule: AlarmAckRule = ..., - ) -> None: ... - -class AlterEventEnrollment_Response(_Asn1Type): # SEQUENCE - - class currentState_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_state = 1 - PR_undefined = 2 - - @property - def present(self) -> PRESENT: ... - @property - def state(self) -> EE_State | None: ... - @state.setter - def state(self, value: EE_State | int | None) -> None: ... - undefined: None | None - def __init__( - self, /, *, - state: EE_State = ..., - undefined: None = ..., - ) -> None: ... - - currentState: currentState_TYPE - transitionTime: EventTime - def __init__( - self, /, *, - currentState: currentState_TYPE = ..., - transitionTime: EventTime = ..., - ) -> None: ... - -class CS_AlterEventEnrollment_Request(_Asn1Type): # SEQUENCE - - class changeDisplay_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_string = 1 - PR_index = 2 - PR_noEnhancement = 3 - - @property - def present(self) -> PRESENT: ... - string: str | None - index: int | None - noEnhancement: None | None - def __init__( - self, /, *, - string: str = ..., - index: int = ..., - noEnhancement: None = ..., - ) -> None: ... - - changeDisplay: changeDisplay_TYPE | None - def __init__( - self, /, *, - changeDisplay: changeDisplay_TYPE = ..., - ) -> None: ... + class Member_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_failure = 1 + PR_success = 2 + + @property + def present(self) -> PRESENT: ... + @property + def failure(self) -> DataAccessError | None: ... + @failure.setter + def failure(self, value: DataAccessError | int | None) -> None: ... + success: None + def __init__( + self, + /, + *, + failure: DataAccessError = ..., + success: None = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class Write_Request(_Asn1Type): # SEQUENCE + class listOfData_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Data: ... + def __setitem__(self, index: int, value: Data) -> None: ... + def add(self, value: Data) -> None: ... + def extend(self, values: EXT_Iterable[Data]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfData: listOfData_TYPE + variableAccessSpecification: VariableAccessSpecification | None + def __init__( + self, + /, + *, + variableAccessSpecification: VariableAccessSpecification = ..., + listOfData: listOfData_TYPE = ..., + ) -> None: ... + +class InformationReport(_Asn1Type): # SEQUENCE + class listOfAccessResult_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[AccessResult] | None = ...) -> None: ... + def __getitem__(self, index: int) -> AccessResult: ... + def __setitem__(self, index: int, value: AccessResult) -> None: ... + def add(self, value: AccessResult) -> None: ... + def extend(self, values: EXT_Iterable[AccessResult]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfAccessResult: listOfAccessResult_TYPE + variableAccessSpecification: VariableAccessSpecification | None + def __init__( + self, + /, + *, + variableAccessSpecification: VariableAccessSpecification = ..., + listOfAccessResult: listOfAccessResult_TYPE = ..., + ) -> None: ... + +class GetVariableAccessAttributes_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_name = 1 + PR_address = 2 + + @property + def present(self) -> PRESENT: ... + name: ObjectName | None + address: Address | None + def __init__( + self, + /, + *, + name: ObjectName = ..., + address: Address = ..., + ) -> None: ... + +class GetVariableAccessAttributes_Response(_Asn1Type): # SEQUENCE + mmsDeletable: bool + address: Address | None + typeDescription: TypeDescription | None + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + meaning: str | None + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + address: Address = ..., + typeDescription: TypeDescription = ..., + accessControlList: Identifier = ..., + meaning: str = ..., + ) -> None: ... + +class DefineNamedVariable_Request(_Asn1Type): # SEQUENCE + variableName: ObjectName | None + address: Address | None + typeSpecification: TypeSpecification | None + def __init__( + self, + /, + *, + variableName: ObjectName = ..., + address: Address = ..., + typeSpecification: TypeSpecification = ..., + ) -> None: ... + +class DefineNamedVariable_Response(_Asn1BasicType[None]): ... + +class DeleteVariableAccess_Request(_Asn1Type): # SEQUENCE + class listOfName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfName: listOfName_TYPE | None + + class scopeOfDelete_VALUES(EXT_IntEnum): + V_specific = 0 + V_aa_specific = 1 + V_domain = 2 + V_vmd = 3 + + scopeOfDelete: scopeOfDelete_VALUES | None + @property + def domainName(self) -> Identifier | None: ... + @domainName.setter + def domainName(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + scopeOfDelete: scopeOfDelete_VALUES = ..., + listOfName: listOfName_TYPE = ..., + domainName: Identifier = ..., + ) -> None: ... + +class DeleteVariableAccess_Response(_Asn1Type): # SEQUENCE + @property + def numberMatched(self) -> Unsigned32: ... + @numberMatched.setter + def numberMatched(self, value: Unsigned32 | int) -> None: ... + @property + def numberDeleted(self) -> Unsigned32: ... + @numberDeleted.setter + def numberDeleted(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + numberMatched: Unsigned32 = ..., + numberDeleted: Unsigned32 = ..., + ) -> None: ... + +class DeleteVariableAccess_Error(_Asn1BasicType[Unsigned32]): ... + +class DefineNamedVariableList_Request(_Asn1Type): # SEQUENCE + class listOfVariable_TYPE(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + variableSpecification: VariableSpecification + @property + def alternateAccess(self) -> AlternateAccess | None: ... + @alternateAccess.setter + def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... + def __init__( + self, + /, + *, + variableSpecification: VariableSpecification = ..., + alternateAccess: AlternateAccess = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfVariable: listOfVariable_TYPE + variableListName: ObjectName | None + def __init__( + self, + /, + *, + variableListName: ObjectName = ..., + listOfVariable: listOfVariable_TYPE = ..., + ) -> None: ... + +class DefineNamedVariableList_Response(_Asn1BasicType[None]): ... +class GetNamedVariableListAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetNamedVariableListAttributes_Response(_Asn1Type): # SEQUENCE + class listOfVariable_TYPE(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + variableSpecification: VariableSpecification + @property + def alternateAccess(self) -> AlternateAccess | None: ... + @alternateAccess.setter + def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... + def __init__( + self, + /, + *, + variableSpecification: VariableSpecification = ..., + alternateAccess: AlternateAccess = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfVariable: listOfVariable_TYPE + mmsDeletable: bool + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + listOfVariable: listOfVariable_TYPE = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class DeleteNamedVariableList_Response(_Asn1Type): # SEQUENCE + @property + def numberMatched(self) -> Unsigned32: ... + @numberMatched.setter + def numberMatched(self, value: Unsigned32 | int) -> None: ... + @property + def numberDeleted(self) -> Unsigned32: ... + @numberDeleted.setter + def numberDeleted(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + numberMatched: Unsigned32 = ..., + numberDeleted: Unsigned32 = ..., + ) -> None: ... + +class DeleteNamedVariableList_Request(_Asn1Type): # SEQUENCE + class listOfVariableListName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfVariableListName: listOfVariableListName_TYPE | None + + class scopeOfDelete_VALUES(EXT_IntEnum): + V_specific = 0 + V_aa_specific = 1 + V_domain = 2 + V_vmd = 3 + + scopeOfDelete: scopeOfDelete_VALUES | None + @property + def domainName(self) -> Identifier | None: ... + @domainName.setter + def domainName(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + scopeOfDelete: scopeOfDelete_VALUES = ..., + listOfVariableListName: listOfVariableListName_TYPE = ..., + domainName: Identifier = ..., + ) -> None: ... + +class DeleteNamedVariableList_Error(_Asn1BasicType[Unsigned32]): ... + +class DefineNamedType_Request(_Asn1Type): # SEQUENCE + typeName: ObjectName | None + typeSpecification: TypeSpecification | None + def __init__( + self, + /, + *, + typeName: ObjectName = ..., + typeSpecification: TypeSpecification = ..., + ) -> None: ... + +class DefineNamedType_Response(_Asn1BasicType[None]): ... +class GetNamedTypeAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetNamedTypeAttributes_Response(_Asn1Type): # SEQUENCE + mmsDeletable: bool + typeSpecification: TypeSpecification | None + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + meaning: str | None + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + typeSpecification: TypeSpecification = ..., + accessControlList: Identifier = ..., + meaning: str = ..., + ) -> None: ... + +class DeleteNamedType_Request(_Asn1Type): # SEQUENCE + class listOfTypeName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfTypeName: listOfTypeName_TYPE | None + + class scopeOfDelete_VALUES(EXT_IntEnum): + V_specific = 0 + V_aa_specific = 1 + V_domain = 2 + V_vmd = 3 + + scopeOfDelete: scopeOfDelete_VALUES | None + @property + def domainName(self) -> Identifier | None: ... + @domainName.setter + def domainName(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + scopeOfDelete: scopeOfDelete_VALUES = ..., + listOfTypeName: listOfTypeName_TYPE = ..., + domainName: Identifier = ..., + ) -> None: ... + +class DeleteNamedType_Response(_Asn1Type): # SEQUENCE + @property + def numberMatched(self) -> Unsigned32: ... + @numberMatched.setter + def numberMatched(self, value: Unsigned32 | int) -> None: ... + @property + def numberDeleted(self) -> Unsigned32: ... + @numberDeleted.setter + def numberDeleted(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + numberMatched: Unsigned32 = ..., + numberDeleted: Unsigned32 = ..., + ) -> None: ... + +class DeleteNamedType_Error(_Asn1BasicType[Unsigned32]): ... + +class ExchangeData_Request(_Asn1Type): # SEQUENCE + class listOfRequestData_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Data: ... + def __setitem__(self, index: int, value: Data) -> None: ... + def add(self, value: Data) -> None: ... + def extend(self, values: EXT_Iterable[Data]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfRequestData: listOfRequestData_TYPE + dataExchangeName: ObjectName | None + def __init__( + self, + /, + *, + dataExchangeName: ObjectName = ..., + listOfRequestData: listOfRequestData_TYPE = ..., + ) -> None: ... + +class ExchangeData_Response(_Asn1Type): # SEQUENCE + class listOfResponseData_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Data] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Data: ... + def __setitem__(self, index: int, value: Data) -> None: ... + def add(self, value: Data) -> None: ... + def extend(self, values: EXT_Iterable[Data]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfResponseData: listOfResponseData_TYPE + def __init__( + self, + /, + *, + listOfResponseData: listOfResponseData_TYPE = ..., + ) -> None: ... + +class GetDataExchangeAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetDataExchangeAttributes_Response(_Asn1Type): # SEQUENCE + class listOfRequestTypeDescriptions_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[TypeDescription] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> TypeDescription: ... + def __setitem__(self, index: int, value: TypeDescription) -> None: ... + def add(self, value: TypeDescription) -> None: ... + def extend(self, values: EXT_Iterable[TypeDescription]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfRequestTypeDescriptions: listOfRequestTypeDescriptions_TYPE + + class listOfResponseTypeDescriptions_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[TypeDescription] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> TypeDescription: ... + def __setitem__(self, index: int, value: TypeDescription) -> None: ... + def add(self, value: TypeDescription) -> None: ... + def extend(self, values: EXT_Iterable[TypeDescription]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfResponseTypeDescriptions: listOfResponseTypeDescriptions_TYPE + inUse: bool + @property + def programInvocation(self) -> Identifier | None: ... + @programInvocation.setter + def programInvocation(self, value: Identifier | str | None) -> None: ... + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + inUse: bool = ..., + listOfRequestTypeDescriptions: listOfRequestTypeDescriptions_TYPE = ..., + listOfResponseTypeDescriptions: listOfResponseTypeDescriptions_TYPE = ..., + programInvocation: Identifier = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class TakeControl_Request(_Asn1Type): # SEQUENCE + semaphoreName: ObjectName | None + @property + def namedToken(self) -> Identifier | None: ... + @namedToken.setter + def namedToken(self, value: Identifier | str | None) -> None: ... + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + @property + def acceptableDelay(self) -> Unsigned32 | None: ... + @acceptableDelay.setter + def acceptableDelay(self, value: Unsigned32 | int | None) -> None: ... + @property + def controlTimeOut(self) -> Unsigned32 | None: ... + @controlTimeOut.setter + def controlTimeOut(self, value: Unsigned32 | int | None) -> None: ... + abortOnTimeOut: bool | None + relinquishIfConnectionLost: bool | None + applicationToPreempt: ApplicationReference | None + def __init__( + self, + /, + *, + semaphoreName: ObjectName = ..., + namedToken: Identifier = ..., + priority: Priority = ..., + acceptableDelay: Unsigned32 = ..., + controlTimeOut: Unsigned32 = ..., + abortOnTimeOut: bool = ..., + relinquishIfConnectionLost: bool = ..., + applicationToPreempt: ApplicationReference = ..., + ) -> None: ... + +class TakeControl_Response(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_noResult = 1 + PR_namedToken = 2 + + @property + def present(self) -> PRESENT: ... + noResult: None + @property + def namedToken(self) -> Identifier | None: ... + @namedToken.setter + def namedToken(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + noResult: None = ..., + namedToken: Identifier = ..., + ) -> None: ... + +class RelinquishControl_Request(_Asn1Type): # SEQUENCE + semaphoreName: ObjectName | None + @property + def namedToken(self) -> Identifier | None: ... + @namedToken.setter + def namedToken(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + semaphoreName: ObjectName = ..., + namedToken: Identifier = ..., + ) -> None: ... + +class RelinquishControl_Response(_Asn1BasicType[None]): ... + +class DefineSemaphore_Request(_Asn1Type): # SEQUENCE + semaphoreName: ObjectName | None + @property + def numberOfTokens(self) -> Unsigned16: ... + @numberOfTokens.setter + def numberOfTokens(self, value: Unsigned16 | int) -> None: ... + def __init__( + self, + /, + *, + semaphoreName: ObjectName = ..., + numberOfTokens: Unsigned16 = ..., + ) -> None: ... + +class DefineSemaphore_Response(_Asn1BasicType[None]): ... +class DeleteSemaphore_Request(_Asn1BasicType[ObjectName]): ... +class DeleteSemaphore_Response(_Asn1BasicType[None]): ... +class ReportSemaphoreStatus_Request(_Asn1BasicType[ObjectName]): ... + +class ReportSemaphoreStatus_Response(_Asn1Type): # SEQUENCE + mmsDeletable: bool + + class c_l_a_s_s__VALUES(EXT_IntEnum): + V_token = 0 + V_pool = 1 + + c_l_a_s_s_: c_l_a_s_s__VALUES + @property + def numberOfTokens(self) -> Unsigned16: ... + @numberOfTokens.setter + def numberOfTokens(self, value: Unsigned16 | int) -> None: ... + @property + def numberOfOwnedTokens(self) -> Unsigned16: ... + @numberOfOwnedTokens.setter + def numberOfOwnedTokens(self, value: Unsigned16 | int) -> None: ... + @property + def numberOfHungTokens(self) -> Unsigned16: ... + @numberOfHungTokens.setter + def numberOfHungTokens(self, value: Unsigned16 | int) -> None: ... + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + c_l_a_s_s_: c_l_a_s_s__VALUES = ..., + numberOfTokens: Unsigned16 = ..., + numberOfOwnedTokens: Unsigned16 = ..., + numberOfHungTokens: Unsigned16 = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class ReportPoolSemaphoreStatus_Request(_Asn1Type): # SEQUENCE + semaphoreName: ObjectName | None + @property + def nameToStartAfter(self) -> Identifier | None: ... + @nameToStartAfter.setter + def nameToStartAfter(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + semaphoreName: ObjectName = ..., + nameToStartAfter: Identifier = ..., + ) -> None: ... + +class ReportPoolSemaphoreStatus_Response(_Asn1Type): # SEQUENCE + class listOfNamedTokens_TYPE(_Asn1Type): + class Member_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_freeNamedToken = 1 + PR_ownedNamedToken = 2 + PR_hungNamedToken = 3 + + @property + def present(self) -> PRESENT: ... + @property + def freeNamedToken(self) -> Identifier | None: ... + @freeNamedToken.setter + def freeNamedToken(self, value: Identifier | str | None) -> None: ... + @property + def ownedNamedToken(self) -> Identifier | None: ... + @ownedNamedToken.setter + def ownedNamedToken(self, value: Identifier | str | None) -> None: ... + @property + def hungNamedToken(self) -> Identifier | None: ... + @hungNamedToken.setter + def hungNamedToken(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + freeNamedToken: Identifier = ..., + ownedNamedToken: Identifier = ..., + hungNamedToken: Identifier = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfNamedTokens: listOfNamedTokens_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfNamedTokens: listOfNamedTokens_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class ReportSemaphoreEntryStatus_Request(_Asn1Type): # SEQUENCE + semaphoreName: ObjectName | None + + class state_VALUES(EXT_IntEnum): + V_queued = 0 + V_owner = 1 + V_hung = 2 + + state: state_VALUES + entryIDToStartAfter: bytes | None + def __init__( + self, + /, + *, + semaphoreName: ObjectName = ..., + state: state_VALUES = ..., + entryIDToStartAfter: bytes = ..., + ) -> None: ... + +class ReportSemaphoreEntryStatus_Response(_Asn1Type): # SEQUENCE + class listOfSemaphoreEntry_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[SemaphoreEntry] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> SemaphoreEntry: ... + def __setitem__(self, index: int, value: SemaphoreEntry) -> None: ... + def add(self, value: SemaphoreEntry) -> None: ... + def extend(self, values: EXT_Iterable[SemaphoreEntry]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfSemaphoreEntry: listOfSemaphoreEntry_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfSemaphoreEntry: listOfSemaphoreEntry_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class SemaphoreEntry(_Asn1Type): # SEQUENCE + entryID: bytes + + class entryClass_VALUES(EXT_IntEnum): + V_simple = 0 + V_modifier = 1 + + entryClass: entryClass_VALUES + applicationReference: ApplicationReference | None + @property + def namedToken(self) -> Identifier | None: ... + @namedToken.setter + def namedToken(self, value: Identifier | str | None) -> None: ... + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + @property + def remainingTimeOut(self) -> Unsigned32 | None: ... + @remainingTimeOut.setter + def remainingTimeOut(self, value: Unsigned32 | int | None) -> None: ... + abortOnTimeOut: bool | None + relinquishIfConnectionLost: bool | None + def __init__( + self, + /, + *, + entryID: bytes = ..., + entryClass: entryClass_VALUES = ..., + applicationReference: ApplicationReference = ..., + namedToken: Identifier = ..., + priority: Priority = ..., + remainingTimeOut: Unsigned32 = ..., + abortOnTimeOut: bool = ..., + relinquishIfConnectionLost: bool = ..., + ) -> None: ... + +class AttachToSemaphore(_Asn1Type): # SEQUENCE + semaphoreName: ObjectName | None + @property + def namedToken(self) -> Identifier | None: ... + @namedToken.setter + def namedToken(self, value: Identifier | str | None) -> None: ... + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + @property + def acceptableDelay(self) -> Unsigned32 | None: ... + @acceptableDelay.setter + def acceptableDelay(self, value: Unsigned32 | int | None) -> None: ... + @property + def controlTimeOut(self) -> Unsigned32 | None: ... + @controlTimeOut.setter + def controlTimeOut(self, value: Unsigned32 | int | None) -> None: ... + abortOnTimeOut: bool | None + relinquishIfConnectionLost: bool | None + def __init__( + self, + /, + *, + semaphoreName: ObjectName = ..., + namedToken: Identifier = ..., + priority: Priority = ..., + acceptableDelay: Unsigned32 = ..., + controlTimeOut: Unsigned32 = ..., + abortOnTimeOut: bool = ..., + relinquishIfConnectionLost: bool = ..., + ) -> None: ... + +class Input_Request(_Asn1Type): # SEQUENCE + class listOfPromptData_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfPromptData: listOfPromptData_TYPE | None + @property + def operatorStationName(self) -> Identifier: ... + @operatorStationName.setter + def operatorStationName(self, value: Identifier | str) -> None: ... + echo: bool | None + @property + def inputTimeOut(self) -> Unsigned32 | None: ... + @inputTimeOut.setter + def inputTimeOut(self, value: Unsigned32 | int | None) -> None: ... + def __init__( + self, + /, + *, + operatorStationName: Identifier = ..., + echo: bool = ..., + listOfPromptData: listOfPromptData_TYPE = ..., + inputTimeOut: Unsigned32 = ..., + ) -> None: ... + +class Input_Response(_Asn1BasicType[MMSString]): ... + +class Output_Request(_Asn1Type): # SEQUENCE + class listOfOutputData_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[MMSString] | None = ...) -> None: ... + def __getitem__(self, index: int) -> MMSString: ... + def __setitem__(self, index: int, value: MMSString) -> None: ... + def add(self, value: MMSString) -> None: ... + def extend(self, values: EXT_Iterable[MMSString]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfOutputData: listOfOutputData_TYPE + @property + def operatorStationName(self) -> Identifier: ... + @operatorStationName.setter + def operatorStationName(self, value: Identifier | str) -> None: ... + def __init__( + self, + /, + *, + operatorStationName: Identifier = ..., + listOfOutputData: listOfOutputData_TYPE = ..., + ) -> None: ... + +class Output_Response(_Asn1BasicType[None]): ... + +class TriggerEvent_Request(_Asn1Type): # SEQUENCE + eventConditionName: ObjectName | None + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + def __init__( + self, + /, + *, + eventConditionName: ObjectName = ..., + priority: Priority = ..., + ) -> None: ... + +class TriggerEvent_Response(_Asn1BasicType[None]): ... + +class EventNotification(_Asn1Type): # SEQUENCE + class actionResult_TYPE(_Asn1Type): # SEQUENCE + class successOrFailure_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_success = 1 + PR_failure = 2 + + @property + def present(self) -> PRESENT: ... + + class success_TYPE(_Asn1Type): # SEQUENCE + confirmedServiceResponse: ConfirmedServiceResponse | None + cs_Response_Detail: Response_Detail | None + def __init__( + self, + /, + *, + confirmedServiceResponse: ConfirmedServiceResponse = ..., + cs_Response_Detail: Response_Detail = ..., + ) -> None: ... + + success: success_TYPE + + class failure_TYPE(_Asn1Type): # SEQUENCE + @property + def modifierPosition(self) -> Unsigned32 | None: ... + @modifierPosition.setter + def modifierPosition(self, value: Unsigned32 | int | None) -> None: ... + serviceError: ServiceError + def __init__( + self, + /, + *, + modifierPosition: Unsigned32 = ..., + serviceError: ServiceError = ..., + ) -> None: ... + + failure: failure_TYPE + def __init__( + self, + /, + *, + success: success_TYPE = ..., + failure: failure_TYPE = ..., + ) -> None: ... + + successOrFailure: successOrFailure_TYPE + eventActionName: ObjectName + def __init__( + self, + /, + *, + eventActionName: ObjectName = ..., + successOrFailure: successOrFailure_TYPE = ..., + ) -> None: ... + + actionResult: actionResult_TYPE | None + eventEnrollmentName: ObjectName | None + eventConditionName: ObjectName | None + @property + def severity(self) -> Severity: ... + @severity.setter + def severity(self, value: Severity | int) -> None: ... + @property + def currentState(self) -> EC_State | None: ... + @currentState.setter + def currentState(self, value: EC_State | int | None) -> None: ... + transitionTime: EventTime | None + notificationLost: bool | None + @property + def alarmAcknowledgmentRule(self) -> AlarmAckRule | None: ... + @alarmAcknowledgmentRule.setter + def alarmAcknowledgmentRule(self, value: AlarmAckRule | int | None) -> None: ... + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + eventConditionName: ObjectName = ..., + severity: Severity = ..., + currentState: EC_State = ..., + transitionTime: EventTime = ..., + notificationLost: bool = ..., + alarmAcknowledgmentRule: AlarmAckRule = ..., + actionResult: actionResult_TYPE = ..., + ) -> None: ... + +class CS_EventNotification(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + +class AcknowledgeEventNotification_Request(_Asn1Type): # SEQUENCE + eventEnrollmentName: ObjectName | None + @property + def acknowledgedState(self) -> EC_State: ... + @acknowledgedState.setter + def acknowledgedState(self, value: EC_State | int) -> None: ... + timeOfAcknowledgedTransition: EventTime | None + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + acknowledgedState: EC_State = ..., + timeOfAcknowledgedTransition: EventTime = ..., + ) -> None: ... + +class AcknowledgeEventNotification_Response(_Asn1BasicType[None]): ... + +class GetAlarmSummary_Request(_Asn1Type): # SEQUENCE + class severityFilter_TYPE(_Asn1Type): # SEQUENCE + @property + def mostSevere(self) -> Unsigned8: ... + @mostSevere.setter + def mostSevere(self, value: Unsigned8 | int) -> None: ... + @property + def leastSevere(self) -> Unsigned8: ... + @leastSevere.setter + def leastSevere(self, value: Unsigned8 | int) -> None: ... + def __init__( + self, + /, + *, + mostSevere: Unsigned8 = ..., + leastSevere: Unsigned8 = ..., + ) -> None: ... + + severityFilter: severityFilter_TYPE | None + enrollmentsOnly: bool | None + activeAlarmsOnly: bool | None + + class acknowledgementFilter_VALUES(EXT_IntEnum): + V_not_acked = 0 + V_acked = 1 + V_all = 2 + + acknowledgementFilter: acknowledgementFilter_VALUES | None + continueAfter: ObjectName | None + def __init__( + self, + /, + *, + enrollmentsOnly: bool = ..., + activeAlarmsOnly: bool = ..., + acknowledgementFilter: acknowledgementFilter_VALUES = ..., + severityFilter: severityFilter_TYPE = ..., + continueAfter: ObjectName = ..., + ) -> None: ... + +class GetAlarmSummary_Response(_Asn1Type): # SEQUENCE + class listOfAlarmSummary_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[AlarmSummary] | None = ...) -> None: ... + def __getitem__(self, index: int) -> AlarmSummary: ... + def __setitem__(self, index: int, value: AlarmSummary) -> None: ... + def add(self, value: AlarmSummary) -> None: ... + def extend(self, values: EXT_Iterable[AlarmSummary]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfAlarmSummary: listOfAlarmSummary_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfAlarmSummary: listOfAlarmSummary_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class AlarmSummary(_Asn1Type): # SEQUENCE + eventConditionName: ObjectName | None + @property + def severity(self) -> Unsigned8: ... + @severity.setter + def severity(self, value: Unsigned8 | int) -> None: ... + @property + def currentState(self) -> EC_State: ... + @currentState.setter + def currentState(self, value: EC_State | int) -> None: ... + + class unacknowledgedState_VALUES(EXT_IntEnum): + V_none = 0 + V_active = 1 + V_idle = 2 + V_both = 3 + + unacknowledgedState: unacknowledgedState_VALUES + displayEnhancement: EN_Additional_Detail | None + timeOfLastTransitionToActive: EventTime | None + timeOfLastTransitionToIdle: EventTime | None + def __init__( + self, + /, + *, + eventConditionName: ObjectName = ..., + severity: Unsigned8 = ..., + currentState: EC_State = ..., + unacknowledgedState: unacknowledgedState_VALUES = ..., + displayEnhancement: EN_Additional_Detail = ..., + timeOfLastTransitionToActive: EventTime = ..., + timeOfLastTransitionToIdle: EventTime = ..., + ) -> None: ... + +class EN_Additional_Detail(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + +class GetAlarmEnrollmentSummary_Request(_Asn1Type): # SEQUENCE + class severityFilter_TYPE(_Asn1Type): # SEQUENCE + @property + def mostSevere(self) -> Unsigned8: ... + @mostSevere.setter + def mostSevere(self, value: Unsigned8 | int) -> None: ... + @property + def leastSevere(self) -> Unsigned8: ... + @leastSevere.setter + def leastSevere(self, value: Unsigned8 | int) -> None: ... + def __init__( + self, + /, + *, + mostSevere: Unsigned8 = ..., + leastSevere: Unsigned8 = ..., + ) -> None: ... + + severityFilter: severityFilter_TYPE | None + enrollmentsOnly: bool | None + activeAlarmsOnly: bool | None + + class acknowledgementFilter_VALUES(EXT_IntEnum): + V_not_acked = 0 + V_acked = 1 + V_all = 2 + + acknowledgementFilter: acknowledgementFilter_VALUES | None + continueAfter: ObjectName | None + def __init__( + self, + /, + *, + enrollmentsOnly: bool = ..., + activeAlarmsOnly: bool = ..., + acknowledgementFilter: acknowledgementFilter_VALUES = ..., + severityFilter: severityFilter_TYPE = ..., + continueAfter: ObjectName = ..., + ) -> None: ... + +class GetAlarmEnrollmentSummary_Response(_Asn1Type): # SEQUENCE + class listOfAlarmEnrollmentSummary_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[AlarmEnrollmentSummary] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> AlarmEnrollmentSummary: ... + def __setitem__(self, index: int, value: AlarmEnrollmentSummary) -> None: ... + def add(self, value: AlarmEnrollmentSummary) -> None: ... + def extend(self, values: EXT_Iterable[AlarmEnrollmentSummary]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfAlarmEnrollmentSummary: listOfAlarmEnrollmentSummary_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfAlarmEnrollmentSummary: listOfAlarmEnrollmentSummary_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class AlarmEnrollmentSummary(_Asn1Type): # SEQUENCE + eventEnrollmentName: ObjectName | None + clientApplication: ApplicationReference | None + @property + def severity(self) -> Unsigned8: ... + @severity.setter + def severity(self, value: Unsigned8 | int) -> None: ... + @property + def currentState(self) -> EC_State: ... + @currentState.setter + def currentState(self, value: EC_State | int) -> None: ... + displayEnhancement: EN_Additional_Detail | None + notificationLost: bool | None + @property + def alarmAcknowledgmentRule(self) -> AlarmAckRule: ... + @alarmAcknowledgmentRule.setter + def alarmAcknowledgmentRule(self, value: AlarmAckRule | int) -> None: ... + @property + def enrollmentState(self) -> EE_State | None: ... + @enrollmentState.setter + def enrollmentState(self, value: EE_State | int | None) -> None: ... + timeOfLastTransitionToActive: EventTime | None + timeActiveAcknowledged: EventTime | None + timeOfLastTransitionToIdle: EventTime | None + timeIdleAcknowledged: EventTime | None + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + clientApplication: ApplicationReference = ..., + severity: Unsigned8 = ..., + currentState: EC_State = ..., + displayEnhancement: EN_Additional_Detail = ..., + notificationLost: bool = ..., + alarmAcknowledgmentRule: AlarmAckRule = ..., + enrollmentState: EE_State = ..., + timeOfLastTransitionToActive: EventTime = ..., + timeActiveAcknowledged: EventTime = ..., + timeOfLastTransitionToIdle: EventTime = ..., + timeIdleAcknowledged: EventTime = ..., + ) -> None: ... + +class AttachToEventCondition(_Asn1Type): # SEQUENCE + eventEnrollmentName: ObjectName | None + eventConditionName: ObjectName | None + @property + def causingTransitions(self) -> Transitions: ... + @causingTransitions.setter + def causingTransitions( + self, value: Transitions | EXT_bitarray | int | bytes + ) -> None: ... + @property + def acceptableDelay(self) -> Unsigned32 | None: ... + @acceptableDelay.setter + def acceptableDelay(self, value: Unsigned32 | int | None) -> None: ... + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + eventConditionName: ObjectName = ..., + causingTransitions: Transitions = ..., + acceptableDelay: Unsigned32 = ..., + ) -> None: ... + +class DefineEventCondition_Request(_Asn1Type): # SEQUENCE + eventConditionName: ObjectName | None + @property + def c_l_a_s_s_(self) -> EC_Class: ... + @c_l_a_s_s_.setter + def c_l_a_s_s_(self, value: EC_Class | int) -> None: ... + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + @property + def severity(self) -> Unsigned8 | None: ... + @severity.setter + def severity(self, value: Unsigned8 | int | None) -> None: ... + alarmSummaryReports: bool | None + monitoredVariable: VariableSpecification | None + @property + def evaluationInterval(self) -> Unsigned32 | None: ... + @evaluationInterval.setter + def evaluationInterval(self, value: Unsigned32 | int | None) -> None: ... + def __init__( + self, + /, + *, + eventConditionName: ObjectName = ..., + c_l_a_s_s_: EC_Class = ..., + priority: Priority = ..., + severity: Unsigned8 = ..., + alarmSummaryReports: bool = ..., + monitoredVariable: VariableSpecification = ..., + evaluationInterval: Unsigned32 = ..., + ) -> None: ... + +class DefineEventCondition_Response(_Asn1BasicType[None]): ... + +class CS_DefineEventCondition_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + +class DeleteEventCondition_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_specific = 1 + PR_aa_specific = 2 + PR_domain = 3 + PR_vmd = 4 + + @property + def present(self) -> PRESENT: ... + + class specific_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + specific: specific_TYPE + aa_specific: None + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + vmd: None + def __init__( + self, + /, + *, + specific: specific_TYPE = ..., + aa_specific: None = ..., + domain: Identifier = ..., + vmd: None = ..., + ) -> None: ... + +class DeleteEventCondition_Response(_Asn1BasicType[Unsigned32]): ... +class GetEventConditionAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetEventConditionAttributes_Response(_Asn1Type): # SEQUENCE + class monitoredVariable_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_variableReference = 1 + PR_undefined = 2 + + @property + def present(self) -> PRESENT: ... + variableReference: VariableSpecification | None + undefined: None + def __init__( + self, + /, + *, + variableReference: VariableSpecification = ..., + undefined: None = ..., + ) -> None: ... + + monitoredVariable: monitoredVariable_TYPE | None + mmsDeletable: bool | None + @property + def c_l_a_s_s_(self) -> EC_Class: ... + @c_l_a_s_s_.setter + def c_l_a_s_s_(self, value: EC_Class | int) -> None: ... + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + @property + def severity(self) -> Unsigned8 | None: ... + @severity.setter + def severity(self, value: Unsigned8 | int | None) -> None: ... + alarmSummaryReports: bool | None + @property + def evaluationInterval(self) -> Unsigned32 | None: ... + @evaluationInterval.setter + def evaluationInterval(self, value: Unsigned32 | int | None) -> None: ... + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + c_l_a_s_s_: EC_Class = ..., + priority: Priority = ..., + severity: Unsigned8 = ..., + alarmSummaryReports: bool = ..., + monitoredVariable: monitoredVariable_TYPE = ..., + evaluationInterval: Unsigned32 = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class CS_GetEventConditionAttributes_Response(_Asn1Type): # SEQUENCE + class groupPriorityOverride_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_priority = 1 + PR_undefined = 2 + + @property + def present(self) -> PRESENT: ... + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + undefined: None + def __init__( + self, + /, + *, + priority: Priority = ..., + undefined: None = ..., + ) -> None: ... + + groupPriorityOverride: groupPriorityOverride_TYPE | None + + class listOfReferencingECL_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfReferencingECL: listOfReferencingECL_TYPE | None + + class displayEnhancement_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + + displayEnhancement: displayEnhancement_TYPE + def __init__( + self, + /, + *, + groupPriorityOverride: groupPriorityOverride_TYPE = ..., + listOfReferencingECL: listOfReferencingECL_TYPE = ..., + displayEnhancement: displayEnhancement_TYPE = ..., + ) -> None: ... + +class ReportEventConditionStatus_Request(_Asn1BasicType[ObjectName]): ... + +class ReportEventConditionStatus_Response(_Asn1Type): # SEQUENCE + @property + def currentState(self) -> EC_State: ... + @currentState.setter + def currentState(self, value: EC_State | int) -> None: ... + @property + def numberOfEventEnrollments(self) -> Unsigned32: ... + @numberOfEventEnrollments.setter + def numberOfEventEnrollments(self, value: Unsigned32 | int) -> None: ... + enabled: bool | None + timeOfLastTransitionToActive: EventTime | None + timeOfLastTransitionToIdle: EventTime | None + def __init__( + self, + /, + *, + currentState: EC_State = ..., + numberOfEventEnrollments: Unsigned32 = ..., + enabled: bool = ..., + timeOfLastTransitionToActive: EventTime = ..., + timeOfLastTransitionToIdle: EventTime = ..., + ) -> None: ... + +class AlterEventConditionMonitoring_Request(_Asn1Type): # SEQUENCE + eventConditionName: ObjectName | None + enabled: bool | None + @property + def priority(self) -> Priority | None: ... + @priority.setter + def priority(self, value: Priority | int | None) -> None: ... + alarmSummaryReports: bool | None + @property + def evaluationInterval(self) -> Unsigned32 | None: ... + @evaluationInterval.setter + def evaluationInterval(self, value: Unsigned32 | int | None) -> None: ... + def __init__( + self, + /, + *, + eventConditionName: ObjectName = ..., + enabled: bool = ..., + priority: Priority = ..., + alarmSummaryReports: bool = ..., + evaluationInterval: Unsigned32 = ..., + ) -> None: ... + +class AlterEventConditionMonitoring_Response(_Asn1BasicType[None]): ... + +class CS_AlterEventConditionMonitoring_Request(_Asn1Type): # SEQUENCE + class changeDisplay_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + + changeDisplay: changeDisplay_TYPE | None + def __init__( + self, + /, + *, + changeDisplay: changeDisplay_TYPE = ..., + ) -> None: ... + +class DefineEventAction_Request(_Asn1Type): # SEQUENCE + class listOfModifier_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Modifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Modifier: ... + def __setitem__(self, index: int, value: Modifier) -> None: ... + def add(self, value: Modifier) -> None: ... + def extend(self, values: EXT_Iterable[Modifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfModifier: listOfModifier_TYPE | None + eventActionName: ObjectName | None + confirmedServiceRequest: ConfirmedServiceRequest | None + cs_extension: Request_Detail | None + def __init__( + self, + /, + *, + eventActionName: ObjectName = ..., + listOfModifier: listOfModifier_TYPE = ..., + confirmedServiceRequest: ConfirmedServiceRequest = ..., + cs_extension: Request_Detail = ..., + ) -> None: ... + +class DefineEventAction_Response(_Asn1BasicType[None]): ... + +class DeleteEventAction_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_specific = 1 + PR_aa_specific = 2 + PR_domain = 3 + PR_vmd = 4 + + @property + def present(self) -> PRESENT: ... + + class specific_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + specific: specific_TYPE + aa_specific: None + @property + def domain(self) -> Identifier | None: ... + @domain.setter + def domain(self, value: Identifier | str | None) -> None: ... + vmd: None + def __init__( + self, + /, + *, + specific: specific_TYPE = ..., + aa_specific: None = ..., + domain: Identifier = ..., + vmd: None = ..., + ) -> None: ... + +class DeleteEventAction_Response(_Asn1BasicType[Unsigned32]): ... +class GetEventActionAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetEventActionAttributes_Response(_Asn1Type): # SEQUENCE + class listOfModifier_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[Modifier] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Modifier: ... + def __setitem__(self, index: int, value: Modifier) -> None: ... + def add(self, value: Modifier) -> None: ... + def extend(self, values: EXT_Iterable[Modifier]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfModifier: listOfModifier_TYPE + mmsDeletable: bool | None + confirmedServiceRequest: ConfirmedServiceRequest | None + cs_extension: Request_Detail | None + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + listOfModifier: listOfModifier_TYPE = ..., + confirmedServiceRequest: ConfirmedServiceRequest = ..., + cs_extension: Request_Detail = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class ReportEventActionStatus_Request(_Asn1BasicType[ObjectName]): ... +class ReportEventActionStatus_Response(_Asn1BasicType[Unsigned32]): ... + +class DefineEventEnrollment_Request(_Asn1Type): # SEQUENCE + eventEnrollmentName: ObjectName | None + eventConditionName: ObjectName | None + @property + def eventConditionTransitions(self) -> Transitions: ... + @eventConditionTransitions.setter + def eventConditionTransitions( + self, value: Transitions | EXT_bitarray | int | bytes + ) -> None: ... + @property + def alarmAcknowledgmentRule(self) -> AlarmAckRule: ... + @alarmAcknowledgmentRule.setter + def alarmAcknowledgmentRule(self, value: AlarmAckRule | int) -> None: ... + eventActionName: ObjectName | None + clientApplication: ApplicationReference | None + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + eventConditionName: ObjectName = ..., + eventConditionTransitions: Transitions = ..., + alarmAcknowledgmentRule: AlarmAckRule = ..., + eventActionName: ObjectName = ..., + clientApplication: ApplicationReference = ..., + ) -> None: ... + +class DefineEventEnrollment_Response(_Asn1BasicType[None]): ... +class DefineEventEnrollment_Error(_Asn1BasicType[ObjectName]): ... + +class CS_DefineEventEnrollment_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + +class DeleteEventEnrollment_Request(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_specific = 1 + PR_ec = 2 + PR_ea = 3 + + @property + def present(self) -> PRESENT: ... + + class specific_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + specific: specific_TYPE + ec: ObjectName | None + ea: ObjectName | None + def __init__( + self, + /, + *, + specific: specific_TYPE = ..., + ec: ObjectName = ..., + ea: ObjectName = ..., + ) -> None: ... + +class DeleteEventEnrollment_Response(_Asn1BasicType[Unsigned32]): ... + +class GetEventEnrollmentAttributes_Request(_Asn1Type): # SEQUENCE + class eventEnrollmentNames_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + eventEnrollmentNames: eventEnrollmentNames_TYPE | None + + class scopeOfRequest_VALUES(EXT_IntEnum): + V_specific = 0 + V_client = 1 + V_ec = 2 + V_ea = 3 + + scopeOfRequest: scopeOfRequest_VALUES | None + clientApplication: ApplicationReference | None + eventConditionName: ObjectName | None + eventActionName: ObjectName | None + continueAfter: ObjectName | None + def __init__( + self, + /, + *, + scopeOfRequest: scopeOfRequest_VALUES = ..., + eventEnrollmentNames: eventEnrollmentNames_TYPE = ..., + clientApplication: ApplicationReference = ..., + eventConditionName: ObjectName = ..., + eventActionName: ObjectName = ..., + continueAfter: ObjectName = ..., + ) -> None: ... + +class GetEventEnrollmentAttributes_Response(_Asn1Type): # SEQUENCE + class listOfEEAttributes_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[EEAttributes] | None = ...) -> None: ... + def __getitem__(self, index: int) -> EEAttributes: ... + def __setitem__(self, index: int, value: EEAttributes) -> None: ... + def add(self, value: EEAttributes) -> None: ... + def extend(self, values: EXT_Iterable[EEAttributes]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEEAttributes: listOfEEAttributes_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfEEAttributes: listOfEEAttributes_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class EEAttributes(_Asn1Type): # SEQUENCE + class eventConditionName_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_eventCondition = 1 + PR_undefined = 2 + + @property + def present(self) -> PRESENT: ... + eventCondition: ObjectName | None + undefined: None + def __init__( + self, + /, + *, + eventCondition: ObjectName = ..., + undefined: None = ..., + ) -> None: ... + + eventConditionName: eventConditionName_TYPE + + class eventActionName_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_eventAction = 1 + PR_undefined = 2 + + @property + def present(self) -> PRESENT: ... + eventAction: ObjectName | None + undefined: None + def __init__( + self, + /, + *, + eventAction: ObjectName = ..., + undefined: None = ..., + ) -> None: ... + + eventActionName: eventActionName_TYPE | None + + class displayEnhancement_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + + displayEnhancement: displayEnhancement_TYPE + eventEnrollmentName: ObjectName | None + clientApplication: ApplicationReference | None + mmsDeletable: bool | None + @property + def enrollmentClass(self) -> EE_Class: ... + @enrollmentClass.setter + def enrollmentClass(self, value: EE_Class | int) -> None: ... + @property + def duration(self) -> EE_Duration | None: ... + @duration.setter + def duration(self, value: EE_Duration | int | None) -> None: ... + @property + def invokeID(self) -> Unsigned32 | None: ... + @invokeID.setter + def invokeID(self, value: Unsigned32 | int | None) -> None: ... + @property + def remainingAcceptableDelay(self) -> Unsigned32 | None: ... + @remainingAcceptableDelay.setter + def remainingAcceptableDelay(self, value: Unsigned32 | int | None) -> None: ... + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + eventConditionName: eventConditionName_TYPE = ..., + eventActionName: eventActionName_TYPE = ..., + clientApplication: ApplicationReference = ..., + mmsDeletable: bool = ..., + enrollmentClass: EE_Class = ..., + duration: EE_Duration = ..., + invokeID: Unsigned32 = ..., + remainingAcceptableDelay: Unsigned32 = ..., + displayEnhancement: displayEnhancement_TYPE = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class ReportEventEnrollmentStatus_Request(_Asn1BasicType[ObjectName]): ... + +class ReportEventEnrollmentStatus_Response(_Asn1Type): # SEQUENCE + @property + def eventConditionTransitions(self) -> Transitions: ... + @eventConditionTransitions.setter + def eventConditionTransitions( + self, value: Transitions | EXT_bitarray | int | bytes + ) -> None: ... + notificationLost: bool | None + @property + def duration(self) -> EE_Duration: ... + @duration.setter + def duration(self, value: EE_Duration | int) -> None: ... + @property + def alarmAcknowledgmentRule(self) -> AlarmAckRule | None: ... + @alarmAcknowledgmentRule.setter + def alarmAcknowledgmentRule(self, value: AlarmAckRule | int | None) -> None: ... + @property + def currentState(self) -> EE_State: ... + @currentState.setter + def currentState(self, value: EE_State | int) -> None: ... + def __init__( + self, + /, + *, + eventConditionTransitions: Transitions = ..., + notificationLost: bool = ..., + duration: EE_Duration = ..., + alarmAcknowledgmentRule: AlarmAckRule = ..., + currentState: EE_State = ..., + ) -> None: ... + +class AlterEventEnrollment_Request(_Asn1Type): # SEQUENCE + eventEnrollmentName: ObjectName | None + @property + def eventConditionTransitions(self) -> Transitions | None: ... + @eventConditionTransitions.setter + def eventConditionTransitions( + self, value: Transitions | EXT_bitarray | int | bytes | None + ) -> None: ... + @property + def alarmAcknowledgmentRule(self) -> AlarmAckRule | None: ... + @alarmAcknowledgmentRule.setter + def alarmAcknowledgmentRule(self, value: AlarmAckRule | int | None) -> None: ... + def __init__( + self, + /, + *, + eventEnrollmentName: ObjectName = ..., + eventConditionTransitions: Transitions = ..., + alarmAcknowledgmentRule: AlarmAckRule = ..., + ) -> None: ... + +class AlterEventEnrollment_Response(_Asn1Type): # SEQUENCE + class currentState_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_state = 1 + PR_undefined = 2 + + @property + def present(self) -> PRESENT: ... + @property + def state(self) -> EE_State | None: ... + @state.setter + def state(self, value: EE_State | int | None) -> None: ... + undefined: None + def __init__( + self, + /, + *, + state: EE_State = ..., + undefined: None = ..., + ) -> None: ... + + currentState: currentState_TYPE + transitionTime: EventTime | None + def __init__( + self, + /, + *, + currentState: currentState_TYPE = ..., + transitionTime: EventTime = ..., + ) -> None: ... + +class CS_AlterEventEnrollment_Request(_Asn1Type): # SEQUENCE + class changeDisplay_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_string = 1 + PR_index = 2 + PR_noEnhancement = 3 + + @property + def present(self) -> PRESENT: ... + string: str | None + index: int | None + noEnhancement: None + def __init__( + self, + /, + *, + string: str = ..., + index: int = ..., + noEnhancement: None = ..., + ) -> None: ... + + changeDisplay: changeDisplay_TYPE | None + def __init__( + self, + /, + *, + changeDisplay: changeDisplay_TYPE = ..., + ) -> None: ... class EE_State(_Asn1Type): - class VALUES(EXT_IntEnum): - V_disabled = 0 - V_idle = 1 - V_active = 2 - V_activeNoAckA = 3 - V_idleNoAckI = 4 - V_idleNoAckA = 5 - V_idleAcked = 6 - V_activeAcked = 7 - V_undefined = 8 - - @property - def value(self) -> EE_State.VALUES: ... - @value.setter - def value(self, value: EE_State.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class DefineEventConditionList_Request(_Asn1Type): # SEQUENCE - - class listOfEventConditionName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionName: listOfEventConditionName_TYPE - - class listOfEventConditionListName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionListName: listOfEventConditionListName_TYPE | None - eventConditionListName: ObjectName - def __init__( - self, /, *, - eventConditionListName: ObjectName = ..., - listOfEventConditionName: listOfEventConditionName_TYPE = ..., - listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., - ) -> None: ... - -class DefineEventConditionList_Response(_Asn1BasicType[None]): - pass - -class DefineEventConditionList_Error(_Asn1BasicType[ObjectName]): - pass - -class DeleteEventConditionList_Request(_Asn1BasicType[ObjectName]): - pass - -class DeleteEventConditionList_Response(_Asn1BasicType[None]): - pass - -class AddEventConditionListReference_Request(_Asn1Type): # SEQUENCE - - class listOfEventConditionName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionName: listOfEventConditionName_TYPE - - class listOfEventConditionListName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionListName: listOfEventConditionListName_TYPE | None - eventConditionListName: ObjectName - def __init__( - self, /, *, - eventConditionListName: ObjectName = ..., - listOfEventConditionName: listOfEventConditionName_TYPE = ..., - listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., - ) -> None: ... - -class AddEventConditionListReference_Response(_Asn1BasicType[None]): - pass - -class AddEventConditionListReference_Error(_Asn1BasicType[ObjectName]): - pass - -class RemoveEventConditionListReference_Request(_Asn1Type): # SEQUENCE - - class listOfEventConditionName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionName: listOfEventConditionName_TYPE - - class listOfEventConditionListName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionListName: listOfEventConditionListName_TYPE - eventConditionListName: ObjectName - def __init__( - self, /, *, - eventConditionListName: ObjectName = ..., - listOfEventConditionName: listOfEventConditionName_TYPE = ..., - listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., - ) -> None: ... - -class RemoveEventConditionListReference_Response(_Asn1BasicType[None]): - pass - -class RemoveEventConditionListReference_Error(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_eventCondition = 1 - PR_eventConditionList = 2 - - @property - def present(self) -> PRESENT: ... - eventCondition: ObjectName | None - eventConditionList: ObjectName | None - def __init__( - self, /, *, - eventCondition: ObjectName = ..., - eventConditionList: ObjectName = ..., - ) -> None: ... - -class GetEventConditionListAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetEventConditionListAttributes_Response(_Asn1Type): # SEQUENCE - - class listOfEventConditionName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionName: listOfEventConditionName_TYPE - - class listOfEventConditionListName_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> ObjectName: ... - def __setitem__(self, index: int, value: ObjectName) -> None: ... - def add(self, value: ObjectName) -> None: ... - def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionListName: listOfEventConditionListName_TYPE | None - def __init__( - self, /, *, - listOfEventConditionName: listOfEventConditionName_TYPE = ..., - listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., - ) -> None: ... - -class ReportEventConditionListStatus_Request(_Asn1Type): # SEQUENCE - eventConditionListName: ObjectName - @property - def continueAfter(self) -> Identifier | None: ... - @continueAfter.setter - def continueAfter(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - eventConditionListName: ObjectName = ..., - continueAfter: Identifier = ..., - ) -> None: ... - -class ReportEventConditionListStatus_Response(_Asn1Type): # SEQUENCE - - class listOfEventConditionStatus_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[EventConditionStatus] | None = ...) -> None: ... - def __getitem__(self, index: int) -> EventConditionStatus: ... - def __setitem__(self, index: int, value: EventConditionStatus) -> None: ... - def add(self, value: EventConditionStatus) -> None: ... - def extend(self, values: EXT_Iterable[EventConditionStatus]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfEventConditionStatus: listOfEventConditionStatus_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfEventConditionStatus: listOfEventConditionStatus_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class EventConditionStatus(_Asn1Type): # SEQUENCE - eventConditionName: ObjectName - @property - def currentState(self) -> EC_State: ... - @currentState.setter - def currentState(self, value: EC_State | int) -> None: ... - @property - def numberOfEventEnrollments(self) -> Unsigned32: ... - @numberOfEventEnrollments.setter - def numberOfEventEnrollments(self, value: Unsigned32 | int) -> None: ... - enabled: bool | None - timeOfLastTransitionToActive: EventTime | None - timeOfLastTransitionToIdle: EventTime | None - def __init__( - self, /, *, - eventConditionName: ObjectName = ..., - currentState: EC_State = ..., - numberOfEventEnrollments: Unsigned32 = ..., - enabled: bool = ..., - timeOfLastTransitionToActive: EventTime = ..., - timeOfLastTransitionToIdle: EventTime = ..., - ) -> None: ... - -class AlterEventConditionListMonitoring_Request(_Asn1Type): # SEQUENCE - - class priorityChange_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_priorityValue = 1 - PR_priorityReset = 2 - - @property - def present(self) -> PRESENT: ... - priorityValue: int | None - priorityReset: None | None - def __init__( - self, /, *, - priorityValue: int = ..., - priorityReset: None = ..., - ) -> None: ... - - priorityChange: priorityChange_TYPE | None - eventConditionListName: ObjectName - enabled: bool - def __init__( - self, /, *, - eventConditionListName: ObjectName = ..., - enabled: bool = ..., - priorityChange: priorityChange_TYPE = ..., - ) -> None: ... - -class AlterEventConditionListMonitoring_Response(_Asn1BasicType[None]): - pass - -class ReadJournal_Request(_Asn1Type): # SEQUENCE - - class rangeStartSpecification_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_startingTime = 1 - PR_startingEntry = 2 - - @property - def present(self) -> PRESENT: ... - @property - def startingTime(self) -> TimeOfDay | None: ... - @startingTime.setter - def startingTime(self, value: TimeOfDay | bytes | None) -> None: ... - startingEntry: bytes | None - def __init__( - self, /, *, - startingTime: TimeOfDay = ..., - startingEntry: bytes = ..., - ) -> None: ... - - rangeStartSpecification: rangeStartSpecification_TYPE | None - - class rangeStopSpecification_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_endingTime = 1 - PR_numberOfEntries = 2 - - @property - def present(self) -> PRESENT: ... - @property - def endingTime(self) -> TimeOfDay | None: ... - @endingTime.setter - def endingTime(self, value: TimeOfDay | bytes | None) -> None: ... - @property - def numberOfEntries(self) -> Integer32 | None: ... - @numberOfEntries.setter - def numberOfEntries(self, value: Integer32 | int | None) -> None: ... - def __init__( - self, /, *, - endingTime: TimeOfDay = ..., - numberOfEntries: Integer32 = ..., - ) -> None: ... - - rangeStopSpecification: rangeStopSpecification_TYPE | None - - class listOfVariables_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[str] | None = ...) -> None: ... - def __getitem__(self, index: int) -> str: ... - def __setitem__(self, index: int, value: str) -> None: ... - def add(self, value: str) -> None: ... - def extend(self, values: EXT_Iterable[str]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfVariables: listOfVariables_TYPE | None - - class entryToStartAfter_TYPE(_Asn1Type): # SEQUENCE - @property - def timeSpecification(self) -> TimeOfDay: ... - @timeSpecification.setter - def timeSpecification(self, value: TimeOfDay | bytes) -> None: ... - entrySpecification: bytes - def __init__( - self, /, *, - timeSpecification: TimeOfDay = ..., - entrySpecification: bytes = ..., - ) -> None: ... - - entryToStartAfter: entryToStartAfter_TYPE | None - journalName: ObjectName - def __init__( - self, /, *, - journalName: ObjectName = ..., - rangeStartSpecification: rangeStartSpecification_TYPE = ..., - rangeStopSpecification: rangeStopSpecification_TYPE = ..., - listOfVariables: listOfVariables_TYPE = ..., - entryToStartAfter: entryToStartAfter_TYPE = ..., - ) -> None: ... - -class ReadJournal_Response(_Asn1Type): # SEQUENCE - - class listOfJournalEntry_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[JournalEntry] | None = ...) -> None: ... - def __getitem__(self, index: int) -> JournalEntry: ... - def __setitem__(self, index: int, value: JournalEntry) -> None: ... - def add(self, value: JournalEntry) -> None: ... - def extend(self, values: EXT_Iterable[JournalEntry]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfJournalEntry: listOfJournalEntry_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfJournalEntry: listOfJournalEntry_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class JournalEntry(_Asn1Type): # SEQUENCE - entryIdentifier: bytes - originatingApplication: ApplicationReference - entryContent: EntryContent - def __init__( - self, /, *, - entryIdentifier: bytes = ..., - originatingApplication: ApplicationReference = ..., - entryContent: EntryContent = ..., - ) -> None: ... - -class WriteJournal_Request(_Asn1Type): # SEQUENCE - - class listOfJournalEntry_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[EntryContent] | None = ...) -> None: ... - def __getitem__(self, index: int) -> EntryContent: ... - def __setitem__(self, index: int, value: EntryContent) -> None: ... - def add(self, value: EntryContent) -> None: ... - def extend(self, values: EXT_Iterable[EntryContent]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfJournalEntry: listOfJournalEntry_TYPE - journalName: ObjectName - def __init__( - self, /, *, - journalName: ObjectName = ..., - listOfJournalEntry: listOfJournalEntry_TYPE = ..., - ) -> None: ... - -class WriteJournal_Response(_Asn1BasicType[None]): - pass - -class InitializeJournal_Request(_Asn1Type): # SEQUENCE - - class limitSpecification_TYPE(_Asn1Type): # SEQUENCE - @property - def limitingTime(self) -> TimeOfDay: ... - @limitingTime.setter - def limitingTime(self, value: TimeOfDay | bytes) -> None: ... - limitingEntry: bytes | None - def __init__( - self, /, *, - limitingTime: TimeOfDay = ..., - limitingEntry: bytes = ..., - ) -> None: ... - - limitSpecification: limitSpecification_TYPE | None - journalName: ObjectName - def __init__( - self, /, *, - journalName: ObjectName = ..., - limitSpecification: limitSpecification_TYPE = ..., - ) -> None: ... - -class InitializeJournal_Response(_Asn1BasicType[Unsigned32]): - pass - -class ReportJournalStatus_Request(_Asn1BasicType[ObjectName]): - pass - -class ReportJournalStatus_Response(_Asn1Type): # SEQUENCE - @property - def currentEntries(self) -> Unsigned32: ... - @currentEntries.setter - def currentEntries(self, value: Unsigned32 | int) -> None: ... - mmsDeletable: bool - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - currentEntries: Unsigned32 = ..., - mmsDeletable: bool = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class CreateJournal_Request(_Asn1Type): # SEQUENCE - journalName: ObjectName - def __init__( - self, /, *, - journalName: ObjectName = ..., - ) -> None: ... - -class CreateJournal_Response(_Asn1BasicType[None]): - pass - -class DeleteJournal_Request(_Asn1Type): # SEQUENCE - journalName: ObjectName - def __init__( - self, /, *, - journalName: ObjectName = ..., - ) -> None: ... - -class DeleteJournal_Response(_Asn1BasicType[None]): - pass - -class EntryContent(_Asn1Type): # SEQUENCE - - class entryForm_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_data = 1 - PR_annotation = 2 - - @property - def present(self) -> PRESENT: ... - - class data_TYPE(_Asn1Type): # SEQUENCE - - class event_TYPE(_Asn1Type): # SEQUENCE - eventConditionName: ObjectName - @property - def currentState(self) -> EC_State: ... - @currentState.setter - def currentState(self, value: EC_State | int) -> None: ... - def __init__( - self, /, *, - eventConditionName: ObjectName = ..., - currentState: EC_State = ..., - ) -> None: ... - - event: event_TYPE | None - - class listOfVariables_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[Journal_Variable] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Journal_Variable: ... - def __setitem__(self, index: int, value: Journal_Variable) -> None: ... - def add(self, value: Journal_Variable) -> None: ... - def extend(self, values: EXT_Iterable[Journal_Variable]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfVariables: listOfVariables_TYPE | None - def __init__( - self, /, *, - event: event_TYPE = ..., - listOfVariables: listOfVariables_TYPE = ..., - ) -> None: ... - - data: data_TYPE - @property - def annotation(self) -> MMSString | None: ... - @annotation.setter - def annotation(self, value: MMSString | str | None) -> None: ... - def __init__( - self, /, *, - data: data_TYPE = ..., - annotation: MMSString = ..., - ) -> None: ... - - entryForm: entryForm_TYPE - @property - def occurrenceTime(self) -> TimeOfDay: ... - @occurrenceTime.setter - def occurrenceTime(self, value: TimeOfDay | bytes) -> None: ... - def __init__( - self, /, *, - occurrenceTime: TimeOfDay = ..., - entryForm: entryForm_TYPE = ..., - ) -> None: ... - -class ApplicationReference(_Asn1Type): # SEQUENCE - ap_title: AP_title | None - @property - def ap_invocation_id(self) -> AP_invocation_identifier | None: ... - @ap_invocation_id.setter - def ap_invocation_id(self, value: AP_invocation_identifier | int | None) -> None: ... - ae_qualifier: AE_qualifier | None - @property - def ae_invocation_id(self) -> AE_invocation_identifier | None: ... - @ae_invocation_id.setter - def ae_invocation_id(self, value: AE_invocation_identifier | int | None) -> None: ... - def __init__( - self, /, *, - ap_title: AP_title = ..., - ap_invocation_id: AP_invocation_identifier = ..., - ae_qualifier: AE_qualifier = ..., - ae_invocation_id: AE_invocation_identifier = ..., - ) -> None: ... - -class ObtainFile_Request(_Asn1Type): # SEQUENCE - sourceFileServer: ApplicationReference | None - @property - def sourceFile(self) -> FileName: ... - @sourceFile.setter - def sourceFile(self, value: FileName | list) -> None: ... - @property - def destinationFile(self) -> FileName: ... - @destinationFile.setter - def destinationFile(self, value: FileName | list) -> None: ... - def __init__( - self, /, *, - sourceFileServer: ApplicationReference = ..., - sourceFile: FileName = ..., - destinationFile: FileName = ..., - ) -> None: ... - -class ObtainFile_Response(_Asn1BasicType[None]): - pass + class VALUES(EXT_IntEnum): + V_disabled = 0 + V_idle = 1 + V_active = 2 + V_activeNoAckA = 3 + V_idleNoAckI = 4 + V_idleNoAckA = 5 + V_idleAcked = 6 + V_activeAcked = 7 + V_undefined = 8 + + @property + def value(self) -> EE_State.VALUES: ... + @value.setter + def value(self, value: EE_State.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class DefineEventConditionList_Request(_Asn1Type): # SEQUENCE + class listOfEventConditionName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionName: listOfEventConditionName_TYPE + + class listOfEventConditionListName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionListName: listOfEventConditionListName_TYPE | None + eventConditionListName: ObjectName | None + def __init__( + self, + /, + *, + eventConditionListName: ObjectName = ..., + listOfEventConditionName: listOfEventConditionName_TYPE = ..., + listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., + ) -> None: ... + +class DefineEventConditionList_Response(_Asn1BasicType[None]): ... +class DefineEventConditionList_Error(_Asn1BasicType[ObjectName]): ... +class DeleteEventConditionList_Request(_Asn1BasicType[ObjectName]): ... +class DeleteEventConditionList_Response(_Asn1BasicType[None]): ... + +class AddEventConditionListReference_Request(_Asn1Type): # SEQUENCE + class listOfEventConditionName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionName: listOfEventConditionName_TYPE + + class listOfEventConditionListName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionListName: listOfEventConditionListName_TYPE | None + eventConditionListName: ObjectName | None + def __init__( + self, + /, + *, + eventConditionListName: ObjectName = ..., + listOfEventConditionName: listOfEventConditionName_TYPE = ..., + listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., + ) -> None: ... + +class AddEventConditionListReference_Response(_Asn1BasicType[None]): ... +class AddEventConditionListReference_Error(_Asn1BasicType[ObjectName]): ... + +class RemoveEventConditionListReference_Request(_Asn1Type): # SEQUENCE + class listOfEventConditionName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionName: listOfEventConditionName_TYPE + + class listOfEventConditionListName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionListName: listOfEventConditionListName_TYPE + eventConditionListName: ObjectName | None + def __init__( + self, + /, + *, + eventConditionListName: ObjectName = ..., + listOfEventConditionName: listOfEventConditionName_TYPE = ..., + listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., + ) -> None: ... + +class RemoveEventConditionListReference_Response(_Asn1BasicType[None]): ... + +class RemoveEventConditionListReference_Error(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_eventCondition = 1 + PR_eventConditionList = 2 + + @property + def present(self) -> PRESENT: ... + eventCondition: ObjectName | None + eventConditionList: ObjectName | None + def __init__( + self, + /, + *, + eventCondition: ObjectName = ..., + eventConditionList: ObjectName = ..., + ) -> None: ... + +class GetEventConditionListAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetEventConditionListAttributes_Response(_Asn1Type): # SEQUENCE + class listOfEventConditionName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionName: listOfEventConditionName_TYPE + + class listOfEventConditionListName_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[ObjectName] | None = ...) -> None: ... + def __getitem__(self, index: int) -> ObjectName: ... + def __setitem__(self, index: int, value: ObjectName) -> None: ... + def add(self, value: ObjectName) -> None: ... + def extend(self, values: EXT_Iterable[ObjectName]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionListName: listOfEventConditionListName_TYPE | None + def __init__( + self, + /, + *, + listOfEventConditionName: listOfEventConditionName_TYPE = ..., + listOfEventConditionListName: listOfEventConditionListName_TYPE = ..., + ) -> None: ... + +class ReportEventConditionListStatus_Request(_Asn1Type): # SEQUENCE + eventConditionListName: ObjectName | None + @property + def continueAfter(self) -> Identifier | None: ... + @continueAfter.setter + def continueAfter(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + eventConditionListName: ObjectName = ..., + continueAfter: Identifier = ..., + ) -> None: ... + +class ReportEventConditionListStatus_Response(_Asn1Type): # SEQUENCE + class listOfEventConditionStatus_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[EventConditionStatus] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> EventConditionStatus: ... + def __setitem__(self, index: int, value: EventConditionStatus) -> None: ... + def add(self, value: EventConditionStatus) -> None: ... + def extend(self, values: EXT_Iterable[EventConditionStatus]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfEventConditionStatus: listOfEventConditionStatus_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfEventConditionStatus: listOfEventConditionStatus_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class EventConditionStatus(_Asn1Type): # SEQUENCE + eventConditionName: ObjectName | None + @property + def currentState(self) -> EC_State: ... + @currentState.setter + def currentState(self, value: EC_State | int) -> None: ... + @property + def numberOfEventEnrollments(self) -> Unsigned32: ... + @numberOfEventEnrollments.setter + def numberOfEventEnrollments(self, value: Unsigned32 | int) -> None: ... + enabled: bool | None + timeOfLastTransitionToActive: EventTime | None + timeOfLastTransitionToIdle: EventTime | None + def __init__( + self, + /, + *, + eventConditionName: ObjectName = ..., + currentState: EC_State = ..., + numberOfEventEnrollments: Unsigned32 = ..., + enabled: bool = ..., + timeOfLastTransitionToActive: EventTime = ..., + timeOfLastTransitionToIdle: EventTime = ..., + ) -> None: ... + +class AlterEventConditionListMonitoring_Request(_Asn1Type): # SEQUENCE + class priorityChange_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_priorityValue = 1 + PR_priorityReset = 2 + + @property + def present(self) -> PRESENT: ... + priorityValue: int | None + priorityReset: None + def __init__( + self, + /, + *, + priorityValue: int = ..., + priorityReset: None = ..., + ) -> None: ... + + priorityChange: priorityChange_TYPE | None + eventConditionListName: ObjectName | None + enabled: bool + def __init__( + self, + /, + *, + eventConditionListName: ObjectName = ..., + enabled: bool = ..., + priorityChange: priorityChange_TYPE = ..., + ) -> None: ... + +class AlterEventConditionListMonitoring_Response(_Asn1BasicType[None]): ... + +class ReadJournal_Request(_Asn1Type): # SEQUENCE + class rangeStartSpecification_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_startingTime = 1 + PR_startingEntry = 2 + + @property + def present(self) -> PRESENT: ... + @property + def startingTime(self) -> TimeOfDay | None: ... + @startingTime.setter + def startingTime(self, value: TimeOfDay | bytes | None) -> None: ... + startingEntry: bytes | None + def __init__( + self, + /, + *, + startingTime: TimeOfDay = ..., + startingEntry: bytes = ..., + ) -> None: ... + + rangeStartSpecification: rangeStartSpecification_TYPE | None + + class rangeStopSpecification_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_endingTime = 1 + PR_numberOfEntries = 2 + + @property + def present(self) -> PRESENT: ... + @property + def endingTime(self) -> TimeOfDay | None: ... + @endingTime.setter + def endingTime(self, value: TimeOfDay | bytes | None) -> None: ... + @property + def numberOfEntries(self) -> Integer32 | None: ... + @numberOfEntries.setter + def numberOfEntries(self, value: Integer32 | int | None) -> None: ... + def __init__( + self, + /, + *, + endingTime: TimeOfDay = ..., + numberOfEntries: Integer32 = ..., + ) -> None: ... + + rangeStopSpecification: rangeStopSpecification_TYPE | None + + class listOfVariables_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[str] | None = ...) -> None: ... + def __getitem__(self, index: int) -> str: ... + def __setitem__(self, index: int, value: str) -> None: ... + def add(self, value: str) -> None: ... + def extend(self, values: EXT_Iterable[str]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfVariables: listOfVariables_TYPE | None + + class entryToStartAfter_TYPE(_Asn1Type): # SEQUENCE + @property + def timeSpecification(self) -> TimeOfDay: ... + @timeSpecification.setter + def timeSpecification(self, value: TimeOfDay | bytes) -> None: ... + entrySpecification: bytes + def __init__( + self, + /, + *, + timeSpecification: TimeOfDay = ..., + entrySpecification: bytes = ..., + ) -> None: ... + + entryToStartAfter: entryToStartAfter_TYPE | None + journalName: ObjectName | None + def __init__( + self, + /, + *, + journalName: ObjectName = ..., + rangeStartSpecification: rangeStartSpecification_TYPE = ..., + rangeStopSpecification: rangeStopSpecification_TYPE = ..., + listOfVariables: listOfVariables_TYPE = ..., + entryToStartAfter: entryToStartAfter_TYPE = ..., + ) -> None: ... + +class ReadJournal_Response(_Asn1Type): # SEQUENCE + class listOfJournalEntry_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[JournalEntry] | None = ...) -> None: ... + def __getitem__(self, index: int) -> JournalEntry: ... + def __setitem__(self, index: int, value: JournalEntry) -> None: ... + def add(self, value: JournalEntry) -> None: ... + def extend(self, values: EXT_Iterable[JournalEntry]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfJournalEntry: listOfJournalEntry_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfJournalEntry: listOfJournalEntry_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class JournalEntry(_Asn1Type): # SEQUENCE + entryIdentifier: bytes + originatingApplication: ApplicationReference | None + entryContent: EntryContent | None + def __init__( + self, + /, + *, + entryIdentifier: bytes = ..., + originatingApplication: ApplicationReference = ..., + entryContent: EntryContent = ..., + ) -> None: ... + +class WriteJournal_Request(_Asn1Type): # SEQUENCE + class listOfJournalEntry_TYPE(_Asn1Type): + def __init__(self, values: EXT_Iterable[EntryContent] | None = ...) -> None: ... + def __getitem__(self, index: int) -> EntryContent: ... + def __setitem__(self, index: int, value: EntryContent) -> None: ... + def add(self, value: EntryContent) -> None: ... + def extend(self, values: EXT_Iterable[EntryContent]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfJournalEntry: listOfJournalEntry_TYPE + journalName: ObjectName | None + def __init__( + self, + /, + *, + journalName: ObjectName = ..., + listOfJournalEntry: listOfJournalEntry_TYPE = ..., + ) -> None: ... + +class WriteJournal_Response(_Asn1BasicType[None]): ... + +class InitializeJournal_Request(_Asn1Type): # SEQUENCE + class limitSpecification_TYPE(_Asn1Type): # SEQUENCE + @property + def limitingTime(self) -> TimeOfDay: ... + @limitingTime.setter + def limitingTime(self, value: TimeOfDay | bytes) -> None: ... + limitingEntry: bytes | None + def __init__( + self, + /, + *, + limitingTime: TimeOfDay = ..., + limitingEntry: bytes = ..., + ) -> None: ... + + limitSpecification: limitSpecification_TYPE | None + journalName: ObjectName | None + def __init__( + self, + /, + *, + journalName: ObjectName = ..., + limitSpecification: limitSpecification_TYPE = ..., + ) -> None: ... + +class InitializeJournal_Response(_Asn1BasicType[Unsigned32]): ... +class ReportJournalStatus_Request(_Asn1BasicType[ObjectName]): ... + +class ReportJournalStatus_Response(_Asn1Type): # SEQUENCE + @property + def currentEntries(self) -> Unsigned32: ... + @currentEntries.setter + def currentEntries(self, value: Unsigned32 | int) -> None: ... + mmsDeletable: bool + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + currentEntries: Unsigned32 = ..., + mmsDeletable: bool = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class CreateJournal_Request(_Asn1Type): # SEQUENCE + journalName: ObjectName | None + def __init__( + self, + /, + *, + journalName: ObjectName = ..., + ) -> None: ... + +class CreateJournal_Response(_Asn1BasicType[None]): ... + +class DeleteJournal_Request(_Asn1Type): # SEQUENCE + journalName: ObjectName | None + def __init__( + self, + /, + *, + journalName: ObjectName = ..., + ) -> None: ... + +class DeleteJournal_Response(_Asn1BasicType[None]): ... + +class EntryContent(_Asn1Type): # SEQUENCE + class entryForm_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_data = 1 + PR_annotation = 2 + + @property + def present(self) -> PRESENT: ... + + class data_TYPE(_Asn1Type): # SEQUENCE + class event_TYPE(_Asn1Type): # SEQUENCE + eventConditionName: ObjectName + @property + def currentState(self) -> EC_State: ... + @currentState.setter + def currentState(self, value: EC_State | int) -> None: ... + def __init__( + self, + /, + *, + eventConditionName: ObjectName = ..., + currentState: EC_State = ..., + ) -> None: ... + + event: event_TYPE | None + + class listOfVariables_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[Journal_Variable] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Journal_Variable: ... + def __setitem__(self, index: int, value: Journal_Variable) -> None: ... + def add(self, value: Journal_Variable) -> None: ... + def extend(self, values: EXT_Iterable[Journal_Variable]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfVariables: listOfVariables_TYPE | None + def __init__( + self, + /, + *, + event: event_TYPE = ..., + listOfVariables: listOfVariables_TYPE = ..., + ) -> None: ... + + data: data_TYPE + @property + def annotation(self) -> MMSString | None: ... + @annotation.setter + def annotation(self, value: MMSString | str | None) -> None: ... + def __init__( + self, + /, + *, + data: data_TYPE = ..., + annotation: MMSString = ..., + ) -> None: ... + + entryForm: entryForm_TYPE + @property + def occurrenceTime(self) -> TimeOfDay: ... + @occurrenceTime.setter + def occurrenceTime(self, value: TimeOfDay | bytes) -> None: ... + def __init__( + self, + /, + *, + occurrenceTime: TimeOfDay = ..., + entryForm: entryForm_TYPE = ..., + ) -> None: ... + +class ApplicationReference(_Asn1Type): # SEQUENCE + ap_title: AP_title | None + @property + def ap_invocation_id(self) -> AP_invocation_identifier | None: ... + @ap_invocation_id.setter + def ap_invocation_id( + self, value: AP_invocation_identifier | int | None + ) -> None: ... + ae_qualifier: AE_qualifier | None + @property + def ae_invocation_id(self) -> AE_invocation_identifier | None: ... + @ae_invocation_id.setter + def ae_invocation_id( + self, value: AE_invocation_identifier | int | None + ) -> None: ... + def __init__( + self, + /, + *, + ap_title: AP_title = ..., + ap_invocation_id: AP_invocation_identifier = ..., + ae_qualifier: AE_qualifier = ..., + ae_invocation_id: AE_invocation_identifier = ..., + ) -> None: ... + +class ObtainFile_Request(_Asn1Type): # SEQUENCE + sourceFileServer: ApplicationReference | None + @property + def sourceFile(self) -> FileName | None: ... + @sourceFile.setter + def sourceFile(self, value: FileName | list | None) -> None: ... + @property + def destinationFile(self) -> FileName | None: ... + @destinationFile.setter + def destinationFile(self, value: FileName | list | None) -> None: ... + def __init__( + self, + /, + *, + sourceFileServer: ApplicationReference = ..., + sourceFile: FileName = ..., + destinationFile: FileName = ..., + ) -> None: ... + +class ObtainFile_Response(_Asn1BasicType[None]): ... class ObtainFile_Error(_Asn1Type): - class VALUES(EXT_IntEnum): - V_source_file = 0 - V_destination_file = 1 - - @property - def value(self) -> ObtainFile_Error.VALUES: ... - @value.setter - def value(self, value: ObtainFile_Error.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class FileOpen_Request(_Asn1Type): # SEQUENCE - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - @property - def initialPosition(self) -> Unsigned32: ... - @initialPosition.setter - def initialPosition(self, value: Unsigned32 | int) -> None: ... - def __init__( - self, /, *, - fileName: FileName = ..., - initialPosition: Unsigned32 = ..., - ) -> None: ... - -class FileOpen_Response(_Asn1Type): # SEQUENCE - @property - def frsmID(self) -> Integer32: ... - @frsmID.setter - def frsmID(self, value: Integer32 | int) -> None: ... - fileAttributes: FileAttributes - def __init__( - self, /, *, - frsmID: Integer32 = ..., - fileAttributes: FileAttributes = ..., - ) -> None: ... - -class FileRead_Request(_Asn1BasicType[Integer32]): - pass - -class FileRead_Response(_Asn1Type): # SEQUENCE - fileData: bytes - moreFollows: bool | None - def __init__( - self, /, *, - fileData: bytes = ..., - moreFollows: bool = ..., - ) -> None: ... - -class FileRename_Request(_Asn1Type): # SEQUENCE - @property - def currentFileName(self) -> FileName: ... - @currentFileName.setter - def currentFileName(self, value: FileName | list) -> None: ... - @property - def newFileName(self) -> FileName: ... - @newFileName.setter - def newFileName(self, value: FileName | list) -> None: ... - def __init__( - self, /, *, - currentFileName: FileName = ..., - newFileName: FileName = ..., - ) -> None: ... - -class FileRename_Response(_Asn1BasicType[None]): - pass + class VALUES(EXT_IntEnum): + V_source_file = 0 + V_destination_file = 1 + + @property + def value(self) -> ObtainFile_Error.VALUES: ... + @value.setter + def value(self, value: ObtainFile_Error.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class FileOpen_Request(_Asn1Type): # SEQUENCE + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + @property + def initialPosition(self) -> Unsigned32: ... + @initialPosition.setter + def initialPosition(self, value: Unsigned32 | int) -> None: ... + def __init__( + self, + /, + *, + fileName: FileName = ..., + initialPosition: Unsigned32 = ..., + ) -> None: ... + +class FileOpen_Response(_Asn1Type): # SEQUENCE + @property + def frsmID(self) -> Integer32: ... + @frsmID.setter + def frsmID(self, value: Integer32 | int) -> None: ... + fileAttributes: FileAttributes | None + def __init__( + self, + /, + *, + frsmID: Integer32 = ..., + fileAttributes: FileAttributes = ..., + ) -> None: ... + +class FileRead_Request(_Asn1BasicType[Integer32]): ... + +class FileRead_Response(_Asn1Type): # SEQUENCE + fileData: bytes + moreFollows: bool | None + def __init__( + self, + /, + *, + fileData: bytes = ..., + moreFollows: bool = ..., + ) -> None: ... + +class FileRename_Request(_Asn1Type): # SEQUENCE + @property + def currentFileName(self) -> FileName | None: ... + @currentFileName.setter + def currentFileName(self, value: FileName | list | None) -> None: ... + @property + def newFileName(self) -> FileName | None: ... + @newFileName.setter + def newFileName(self, value: FileName | list | None) -> None: ... + def __init__( + self, + /, + *, + currentFileName: FileName = ..., + newFileName: FileName = ..., + ) -> None: ... + +class FileRename_Response(_Asn1BasicType[None]): ... class FileRename_Error(_Asn1Type): - class VALUES(EXT_IntEnum): - V_source_file = 0 - V_destination_file = 1 - - @property - def value(self) -> FileRename_Error.VALUES: ... - @value.setter - def value(self, value: FileRename_Error.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class FileDelete_Request(_Asn1BasicType[FileName]): - pass - -class FileDelete_Response(_Asn1BasicType[None]): - pass - -class FileClose_Request(_Asn1BasicType[Integer32]): - pass - -class FileClose_Response(_Asn1BasicType[None]): - pass - -class FileDirectory_Request(_Asn1Type): # SEQUENCE - @property - def fileSpecification(self) -> FileName | None: ... - @fileSpecification.setter - def fileSpecification(self, value: FileName | list | None) -> None: ... - @property - def continueAfter(self) -> FileName | None: ... - @continueAfter.setter - def continueAfter(self, value: FileName | list | None) -> None: ... - def __init__( - self, /, *, - fileSpecification: FileName = ..., - continueAfter: FileName = ..., - ) -> None: ... - -class FileDirectory_Response(_Asn1Type): # SEQUENCE - - class listOfDirectoryEntry_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[DirectoryEntry] | None = ...) -> None: ... - def __getitem__(self, index: int) -> DirectoryEntry: ... - def __setitem__(self, index: int, value: DirectoryEntry) -> None: ... - def add(self, value: DirectoryEntry) -> None: ... - def extend(self, values: EXT_Iterable[DirectoryEntry]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - listOfDirectoryEntry: listOfDirectoryEntry_TYPE - moreFollows: bool | None - def __init__( - self, /, *, - listOfDirectoryEntry: listOfDirectoryEntry_TYPE = ..., - moreFollows: bool = ..., - ) -> None: ... - -class DirectoryEntry(_Asn1Type): # SEQUENCE - @property - def fileName(self) -> FileName: ... - @fileName.setter - def fileName(self, value: FileName | list) -> None: ... - fileAttributes: FileAttributes - def __init__( - self, /, *, - fileName: FileName = ..., - fileAttributes: FileAttributes = ..., - ) -> None: ... - -class FileAttributes(_Asn1Type): # SEQUENCE - @property - def sizeOfFile(self) -> Unsigned32: ... - @sizeOfFile.setter - def sizeOfFile(self, value: Unsigned32 | int) -> None: ... - lastModified: bytes | None - def __init__( - self, /, *, - sizeOfFile: Unsigned32 = ..., - lastModified: bytes = ..., - ) -> None: ... + class VALUES(EXT_IntEnum): + V_source_file = 0 + V_destination_file = 1 + + @property + def value(self) -> FileRename_Error.VALUES: ... + @value.setter + def value(self, value: FileRename_Error.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class FileDelete_Request(_Asn1BasicType[FileName]): ... +class FileDelete_Response(_Asn1BasicType[None]): ... +class FileClose_Request(_Asn1BasicType[Integer32]): ... +class FileClose_Response(_Asn1BasicType[None]): ... + +class FileDirectory_Request(_Asn1Type): # SEQUENCE + @property + def fileSpecification(self) -> FileName | None: ... + @fileSpecification.setter + def fileSpecification(self, value: FileName | list | None) -> None: ... + @property + def continueAfter(self) -> FileName | None: ... + @continueAfter.setter + def continueAfter(self, value: FileName | list | None) -> None: ... + def __init__( + self, + /, + *, + fileSpecification: FileName = ..., + continueAfter: FileName = ..., + ) -> None: ... + +class FileDirectory_Response(_Asn1Type): # SEQUENCE + class listOfDirectoryEntry_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[DirectoryEntry] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> DirectoryEntry: ... + def __setitem__(self, index: int, value: DirectoryEntry) -> None: ... + def add(self, value: DirectoryEntry) -> None: ... + def extend(self, values: EXT_Iterable[DirectoryEntry]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + listOfDirectoryEntry: listOfDirectoryEntry_TYPE + moreFollows: bool | None + def __init__( + self, + /, + *, + listOfDirectoryEntry: listOfDirectoryEntry_TYPE = ..., + moreFollows: bool = ..., + ) -> None: ... + +class DirectoryEntry(_Asn1Type): # SEQUENCE + @property + def fileName(self) -> FileName | None: ... + @fileName.setter + def fileName(self, value: FileName | list | None) -> None: ... + fileAttributes: FileAttributes | None + def __init__( + self, + /, + *, + fileName: FileName = ..., + fileAttributes: FileAttributes = ..., + ) -> None: ... + +class FileAttributes(_Asn1Type): # SEQUENCE + @property + def sizeOfFile(self) -> Unsigned32: ... + @sizeOfFile.setter + def sizeOfFile(self, value: Unsigned32 | int) -> None: ... + lastModified: bytes | None + def __init__( + self, + /, + *, + sizeOfFile: Unsigned32 = ..., + lastModified: bytes = ..., + ) -> None: ... class ScatteredAccessDescription(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - @property - def componentName(self) -> Identifier | None: ... - @componentName.setter - def componentName(self, value: Identifier | str | None) -> None: ... - variableSpecification: VariableSpecification | None - @property - def alternateAccess(self) -> AlternateAccess | None: ... - @alternateAccess.setter - def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... - def __init__( - self, /, *, - componentName: Identifier = ..., - variableSpecification: VariableSpecification = ..., - alternateAccess: AlternateAccess = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class DefineScatteredAccess_Request(_Asn1Type): # SEQUENCE - scatteredAccessName: ObjectName - @property - def scatteredAccessDescription(self) -> ScatteredAccessDescription: ... - @scatteredAccessDescription.setter - def scatteredAccessDescription(self, value: ScatteredAccessDescription | list) -> None: ... - def __init__( - self, /, *, - scatteredAccessName: ObjectName = ..., - scatteredAccessDescription: ScatteredAccessDescription = ..., - ) -> None: ... - -class DefineScatteredAccess_Response(_Asn1BasicType[None]): - pass - -class GetScatteredAccessAttributes_Request(_Asn1BasicType[ObjectName]): - pass - -class GetScatteredAccessAttributes_Response(_Asn1Type): # SEQUENCE - mmsDeletable: bool - @property - def scatteredAccessDescription(self) -> ScatteredAccessDescription: ... - @scatteredAccessDescription.setter - def scatteredAccessDescription(self, value: ScatteredAccessDescription | list) -> None: ... - @property - def accessControlList(self) -> Identifier | None: ... - @accessControlList.setter - def accessControlList(self, value: Identifier | str | None) -> None: ... - def __init__( - self, /, *, - mmsDeletable: bool = ..., - scatteredAccessDescription: ScatteredAccessDescription = ..., - accessControlList: Identifier = ..., - ) -> None: ... - -class Modifier(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_eventModifier = 1 - PR_semaphoreModifier = 2 - - @property - def present(self) -> PRESENT: ... - eventModifier: AttachToEventCondition | None - semaphoreModifier: AttachToSemaphore | None - def __init__( - self, /, *, - eventModifier: AttachToEventCondition = ..., - semaphoreModifier: AttachToSemaphore = ..., - ) -> None: ... - -class ModifierStep(_Asn1Type): # SEQUENCE - modifierID: int - modifier: Modifier - def __init__( - self, /, *, - modifierID: int = ..., - modifier: Modifier = ..., - ) -> None: ... + class Member_TYPE(_Asn1Type): # SEQUENCE + @property + def componentName(self) -> Identifier | None: ... + @componentName.setter + def componentName(self, value: Identifier | str | None) -> None: ... + variableSpecification: VariableSpecification | None + @property + def alternateAccess(self) -> AlternateAccess | None: ... + @alternateAccess.setter + def alternateAccess(self, value: AlternateAccess | list | None) -> None: ... + def __init__( + self, + /, + *, + componentName: Identifier = ..., + variableSpecification: VariableSpecification = ..., + alternateAccess: AlternateAccess = ..., + ) -> None: ... + + def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + +class DefineScatteredAccess_Request(_Asn1Type): # SEQUENCE + scatteredAccessName: ObjectName | None + @property + def scatteredAccessDescription(self) -> ScatteredAccessDescription | None: ... + @scatteredAccessDescription.setter + def scatteredAccessDescription( + self, value: ScatteredAccessDescription | list | None + ) -> None: ... + def __init__( + self, + /, + *, + scatteredAccessName: ObjectName = ..., + scatteredAccessDescription: ScatteredAccessDescription = ..., + ) -> None: ... + +class DefineScatteredAccess_Response(_Asn1BasicType[None]): ... +class GetScatteredAccessAttributes_Request(_Asn1BasicType[ObjectName]): ... + +class GetScatteredAccessAttributes_Response(_Asn1Type): # SEQUENCE + mmsDeletable: bool + @property + def scatteredAccessDescription(self) -> ScatteredAccessDescription | None: ... + @scatteredAccessDescription.setter + def scatteredAccessDescription( + self, value: ScatteredAccessDescription | list | None + ) -> None: ... + @property + def accessControlList(self) -> Identifier | None: ... + @accessControlList.setter + def accessControlList(self, value: Identifier | str | None) -> None: ... + def __init__( + self, + /, + *, + mmsDeletable: bool = ..., + scatteredAccessDescription: ScatteredAccessDescription = ..., + accessControlList: Identifier = ..., + ) -> None: ... + +class Modifier(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_eventModifier = 1 + PR_semaphoreModifier = 2 + + @property + def present(self) -> PRESENT: ... + eventModifier: AttachToEventCondition | None + semaphoreModifier: AttachToSemaphore | None + def __init__( + self, + /, + *, + eventModifier: AttachToEventCondition = ..., + semaphoreModifier: AttachToSemaphore = ..., + ) -> None: ... + +class ModifierStep(_Asn1Type): # SEQUENCE + modifierID: int + modifier: Modifier | None + def __init__( + self, + /, + *, + modifierID: int = ..., + modifier: Modifier = ..., + ) -> None: ... class ServiceSupportOptions(_Asn1BitStrType): - V_status: bool # bit 0 - V_getNameList: bool # bit 1 - V_identify: bool # bit 2 - V_rename: bool # bit 3 - V_read: bool # bit 4 - V_write: bool # bit 5 - V_getVariableAccessAttributes: bool # bit 6 - V_defineNamedVariable: bool # bit 7 - V_defineScatteredAccess: bool # bit 8 - V_getScatteredAccessAttributes: bool # bit 9 - V_deleteVariableAccess: bool # bit 10 - V_defineNamedVariableList: bool # bit 11 - V_getNamedVariableListAttributes: bool # bit 12 - V_deleteNamedVariableList: bool # bit 13 - V_defineNamedType: bool # bit 14 - V_getNamedTypeAttributes: bool # bit 15 - V_deleteNamedType: bool # bit 16 - V_input: bool # bit 17 - V_output: bool # bit 18 - V_takeControl: bool # bit 19 - V_relinquishControl: bool # bit 20 - V_defineSemaphore: bool # bit 21 - V_deleteSemaphore: bool # bit 22 - V_reportSemaphoreStatus: bool # bit 23 - V_reportPoolSemaphoreStatus: bool # bit 24 - V_reportSemaphoreEntryStatus: bool # bit 25 - V_initiateDownloadSequence: bool # bit 26 - V_downloadSegment: bool # bit 27 - V_terminateDownloadSequence: bool # bit 28 - V_initiateUploadSequence: bool # bit 29 - V_uploadSegment: bool # bit 30 - V_terminateUploadSequence: bool # bit 31 - V_requestDomainDownload: bool # bit 32 - V_requestDomainUpload: bool # bit 33 - V_loadDomainContent: bool # bit 34 - V_storeDomainContent: bool # bit 35 - V_deleteDomain: bool # bit 36 - V_getDomainAttributes: bool # bit 37 - V_createProgramInvocation: bool # bit 38 - V_deleteProgramInvocation: bool # bit 39 - V_start: bool # bit 40 - V_stop: bool # bit 41 - V_resume: bool # bit 42 - V_reset: bool # bit 43 - V_kill: bool # bit 44 - V_getProgramInvocationAttributes: bool # bit 45 - V_obtainFile: bool # bit 46 - V_defineEventCondition: bool # bit 47 - V_deleteEventCondition: bool # bit 48 - V_getEventConditionAttributes: bool # bit 49 - V_reportEventConditionStatus: bool # bit 50 - V_alterEventConditionMonitoring: bool # bit 51 - V_triggerEvent: bool # bit 52 - V_defineEventAction: bool # bit 53 - V_deleteEventAction: bool # bit 54 - V_getEventActionAttributes: bool # bit 55 - V_reportEventActionStatus: bool # bit 56 - V_defineEventEnrollment: bool # bit 57 - V_deleteEventEnrollment: bool # bit 58 - V_alterEventEnrollment: bool # bit 59 - V_reportEventEnrollmentStatus: bool # bit 60 - V_getEventEnrollmentAttributes: bool # bit 61 - V_acknowledgeEventNotification: bool # bit 62 - V_getAlarmSummary: bool # bit 63 - V_getAlarmEnrollmentSummary: bool # bit 64 - V_readJournal: bool # bit 65 - V_writeJournal: bool # bit 66 - V_initializeJournal: bool # bit 67 - V_reportJournalStatus: bool # bit 68 - V_createJournal: bool # bit 69 - V_deleteJournal: bool # bit 70 - V_getCapabilityList: bool # bit 71 - V_fileOpen: bool # bit 72 - V_fileRead: bool # bit 73 - V_fileClose: bool # bit 74 - V_fileRename: bool # bit 75 - V_fileDelete: bool # bit 76 - V_fileDirectory: bool # bit 77 - V_unsolicitedStatus: bool # bit 78 - V_informationReport: bool # bit 79 - V_eventNotification: bool # bit 80 - V_attachToEventCondition: bool # bit 81 - V_attachToSemaphore: bool # bit 82 - V_conclude: bool # bit 83 - V_cancel: bool # bit 84 - V_getDataExchangeAttributes: bool # bit 85 - V_exchangeData: bool # bit 86 - V_defineAccessControlList: bool # bit 87 - V_getAccessControlListAttributes: bool # bit 88 - V_reportAccessControlledObjects: bool # bit 89 - V_deleteAccessControlList: bool # bit 90 - V_alterAccessControl: bool # bit 91 - V_reconfigureProgramInvocation: bool # bit 92 - + V_status: bool # bit 0 + V_getNameList: bool # bit 1 + V_identify: bool # bit 2 + V_rename: bool # bit 3 + V_read: bool # bit 4 + V_write: bool # bit 5 + V_getVariableAccessAttributes: bool # bit 6 + V_defineNamedVariable: bool # bit 7 + V_defineScatteredAccess: bool # bit 8 + V_getScatteredAccessAttributes: bool # bit 9 + V_deleteVariableAccess: bool # bit 10 + V_defineNamedVariableList: bool # bit 11 + V_getNamedVariableListAttributes: bool # bit 12 + V_deleteNamedVariableList: bool # bit 13 + V_defineNamedType: bool # bit 14 + V_getNamedTypeAttributes: bool # bit 15 + V_deleteNamedType: bool # bit 16 + V_input: bool # bit 17 + V_output: bool # bit 18 + V_takeControl: bool # bit 19 + V_relinquishControl: bool # bit 20 + V_defineSemaphore: bool # bit 21 + V_deleteSemaphore: bool # bit 22 + V_reportSemaphoreStatus: bool # bit 23 + V_reportPoolSemaphoreStatus: bool # bit 24 + V_reportSemaphoreEntryStatus: bool # bit 25 + V_initiateDownloadSequence: bool # bit 26 + V_downloadSegment: bool # bit 27 + V_terminateDownloadSequence: bool # bit 28 + V_initiateUploadSequence: bool # bit 29 + V_uploadSegment: bool # bit 30 + V_terminateUploadSequence: bool # bit 31 + V_requestDomainDownload: bool # bit 32 + V_requestDomainUpload: bool # bit 33 + V_loadDomainContent: bool # bit 34 + V_storeDomainContent: bool # bit 35 + V_deleteDomain: bool # bit 36 + V_getDomainAttributes: bool # bit 37 + V_createProgramInvocation: bool # bit 38 + V_deleteProgramInvocation: bool # bit 39 + V_start: bool # bit 40 + V_stop: bool # bit 41 + V_resume: bool # bit 42 + V_reset: bool # bit 43 + V_kill: bool # bit 44 + V_getProgramInvocationAttributes: bool # bit 45 + V_obtainFile: bool # bit 46 + V_defineEventCondition: bool # bit 47 + V_deleteEventCondition: bool # bit 48 + V_getEventConditionAttributes: bool # bit 49 + V_reportEventConditionStatus: bool # bit 50 + V_alterEventConditionMonitoring: bool # bit 51 + V_triggerEvent: bool # bit 52 + V_defineEventAction: bool # bit 53 + V_deleteEventAction: bool # bit 54 + V_getEventActionAttributes: bool # bit 55 + V_reportEventActionStatus: bool # bit 56 + V_defineEventEnrollment: bool # bit 57 + V_deleteEventEnrollment: bool # bit 58 + V_alterEventEnrollment: bool # bit 59 + V_reportEventEnrollmentStatus: bool # bit 60 + V_getEventEnrollmentAttributes: bool # bit 61 + V_acknowledgeEventNotification: bool # bit 62 + V_getAlarmSummary: bool # bit 63 + V_getAlarmEnrollmentSummary: bool # bit 64 + V_readJournal: bool # bit 65 + V_writeJournal: bool # bit 66 + V_initializeJournal: bool # bit 67 + V_reportJournalStatus: bool # bit 68 + V_createJournal: bool # bit 69 + V_deleteJournal: bool # bit 70 + V_getCapabilityList: bool # bit 71 + V_fileOpen: bool # bit 72 + V_fileRead: bool # bit 73 + V_fileClose: bool # bit 74 + V_fileRename: bool # bit 75 + V_fileDelete: bool # bit 76 + V_fileDirectory: bool # bit 77 + V_unsolicitedStatus: bool # bit 78 + V_informationReport: bool # bit 79 + V_eventNotification: bool # bit 80 + V_attachToEventCondition: bool # bit 81 + V_attachToSemaphore: bool # bit 82 + V_conclude: bool # bit 83 + V_cancel: bool # bit 84 + V_getDataExchangeAttributes: bool # bit 85 + V_exchangeData: bool # bit 86 + V_defineAccessControlList: bool # bit 87 + V_getAccessControlListAttributes: bool # bit 88 + V_reportAccessControlledObjects: bool # bit 89 + V_deleteAccessControlList: bool # bit 90 + V_alterAccessControl: bool # bit 91 + V_reconfigureProgramInvocation: bool # bit 92 class ParameterSupportOptions(_Asn1BitStrType): - V_str1: bool # bit 0 - V_str2: bool # bit 1 - V_vnam: bool # bit 2 - V_valt: bool # bit 3 - V_vadr: bool # bit 4 - V_vsca: bool # bit 5 - V_tpy: bool # bit 6 - V_vlis: bool # bit 7 - V_cei: bool # bit 10 - V_aco: bool # bit 11 - V_sem: bool # bit 12 - V_csr: bool # bit 13 - V_csnc: bool # bit 14 - V_csplc: bool # bit 15 - V_cspi: bool # bit 16 - V_Char: bool # bit 17 - + V_str1: bool # bit 0 + V_str2: bool # bit 1 + V_vnam: bool # bit 2 + V_valt: bool # bit 3 + V_vadr: bool # bit 4 + V_vsca: bool # bit 5 + V_tpy: bool # bit 6 + V_vlis: bool # bit 7 + V_cei: bool # bit 10 + V_aco: bool # bit 11 + V_sem: bool # bit 12 + V_csr: bool # bit 13 + V_csnc: bool # bit 14 + V_csplc: bool # bit 15 + V_cspi: bool # bit 16 + V_Char: bool # bit 17 class AdditionalSupportOptions(_Asn1BitStrType): - V_vMDStop: bool # bit 0 - V_vMDReset: bool # bit 1 - V_select: bool # bit 2 - V_alterProgramInvocationAttributes: bool # bit 3 - V_initiateUnitControlLoad: bool # bit 4 - V_unitControlLoadSegment: bool # bit 5 - V_unitControlUpload: bool # bit 6 - V_startUnitControl: bool # bit 7 - V_stopUnitControl: bool # bit 8 - V_createUnitControl: bool # bit 9 - V_addToUnitControl: bool # bit 10 - V_removeFromUnitControl: bool # bit 11 - V_getUnitControlAttributes: bool # bit 12 - V_loadUnitControlFromFile: bool # bit 13 - V_storeUnitControlToFile: bool # bit 14 - V_deleteUnitControl: bool # bit 15 - V_defineEventConditionList: bool # bit 16 - V_deleteEventConditionList: bool # bit 17 - V_addEventConditionListReference: bool # bit 18 - V_removeEventConditionListReference: bool # bit 19 - V_getEventConditionListAttributes: bool # bit 20 - V_reportEventConditionListStatus: bool # bit 21 - V_alterEventConditionListMonitoring: bool # bit 22 - + V_vMDStop: bool # bit 0 + V_vMDReset: bool # bit 1 + V_select: bool # bit 2 + V_alterProgramInvocationAttributes: bool # bit 3 + V_initiateUnitControlLoad: bool # bit 4 + V_unitControlLoadSegment: bool # bit 5 + V_unitControlUpload: bool # bit 6 + V_startUnitControl: bool # bit 7 + V_stopUnitControl: bool # bit 8 + V_createUnitControl: bool # bit 9 + V_addToUnitControl: bool # bit 10 + V_removeFromUnitControl: bool # bit 11 + V_getUnitControlAttributes: bool # bit 12 + V_loadUnitControlFromFile: bool # bit 13 + V_storeUnitControlToFile: bool # bit 14 + V_deleteUnitControl: bool # bit 15 + V_defineEventConditionList: bool # bit 16 + V_deleteEventConditionList: bool # bit 17 + V_addEventConditionListReference: bool # bit 18 + V_removeEventConditionListReference: bool # bit 19 + V_getEventConditionListAttributes: bool # bit 20 + V_reportEventConditionListStatus: bool # bit 21 + V_alterEventConditionListMonitoring: bool # bit 22 class AdditionalCBBOptions(_Asn1BitStrType): - V_des: bool # bit 0 - V_dei: bool # bit 1 - V_recl: bool # bit 2 - - -class AccessCondition(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_never = 1 - PR_semaphore = 2 - PR_user = 3 - PR_password = 4 - PR_joint = 5 - PR_alternate = 6 - - @property - def present(self) -> PRESENT: ... - - class user_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_association = 1 - PR_none = 2 - - @property - def present(self) -> PRESENT: ... - association: ApplicationReference | None - none: None | None - def __init__( - self, /, *, - association: ApplicationReference = ..., - none: None = ..., - ) -> None: ... - - user: user_TYPE - - class joint_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[AccessCondition] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AccessCondition: ... - def __setitem__(self, index: int, value: AccessCondition) -> None: ... - def add(self, value: AccessCondition) -> None: ... - def extend(self, values: EXT_Iterable[AccessCondition]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - joint: joint_TYPE - - class alternate_TYPE(_Asn1Type): - def __init__(self, values: EXT_Iterable[AccessCondition] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AccessCondition: ... - def __setitem__(self, index: int, value: AccessCondition) -> None: ... - def add(self, value: AccessCondition) -> None: ... - def extend(self, values: EXT_Iterable[AccessCondition]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - alternate: alternate_TYPE - never: None | None - @property - def semaphore(self) -> Identifier | None: ... - @semaphore.setter - def semaphore(self, value: Identifier | str | None) -> None: ... - password: Authentication_value | None - def __init__( - self, /, *, - never: None = ..., - semaphore: Identifier = ..., - user: user_TYPE = ..., - password: Authentication_value = ..., - joint: joint_TYPE = ..., - alternate: alternate_TYPE = ..., - ) -> None: ... + V_des: bool # bit 0 + V_dei: bool # bit 1 + V_recl: bool # bit 2 + +class AccessCondition(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_never = 1 + PR_semaphore = 2 + PR_user = 3 + PR_password = 4 + PR_joint = 5 + PR_alternate = 6 + + @property + def present(self) -> PRESENT: ... + + class user_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_association = 1 + PR_none = 2 + + @property + def present(self) -> PRESENT: ... + association: ApplicationReference | None + none: None + def __init__( + self, + /, + *, + association: ApplicationReference = ..., + none: None = ..., + ) -> None: ... + + user: user_TYPE + + class joint_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[AccessCondition] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> AccessCondition: ... + def __setitem__(self, index: int, value: AccessCondition) -> None: ... + def add(self, value: AccessCondition) -> None: ... + def extend(self, values: EXT_Iterable[AccessCondition]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + joint: joint_TYPE + + class alternate_TYPE(_Asn1Type): + def __init__( + self, values: EXT_Iterable[AccessCondition] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> AccessCondition: ... + def __setitem__(self, index: int, value: AccessCondition) -> None: ... + def add(self, value: AccessCondition) -> None: ... + def extend(self, values: EXT_Iterable[AccessCondition]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + alternate: alternate_TYPE + never: None + @property + def semaphore(self) -> Identifier | None: ... + @semaphore.setter + def semaphore(self, value: Identifier | str | None) -> None: ... + password: Authentication_value | None + def __init__( + self, + /, + *, + never: None = ..., + semaphore: Identifier = ..., + user: user_TYPE = ..., + password: Authentication_value = ..., + joint: joint_TYPE = ..., + alternate: alternate_TYPE = ..., + ) -> None: ... class DomainState(_Asn1Type): - class VALUES(EXT_IntEnum): - V_non_existent = 0 - V_loading = 1 - V_ready = 2 - V_in_use = 3 - V_complete = 4 - V_incomplete = 5 - V_d1 = 7 - V_d2 = 8 - V_d3 = 9 - V_d4 = 10 - V_d5 = 11 - V_d6 = 12 - V_d7 = 13 - V_d8 = 14 - V_d9 = 15 - - @property - def value(self) -> DomainState.VALUES: ... - @value.setter - def value(self, value: DomainState.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + class VALUES(EXT_IntEnum): + V_non_existent = 0 + V_loading = 1 + V_ready = 2 + V_in_use = 3 + V_complete = 4 + V_incomplete = 5 + V_d1 = 7 + V_d2 = 8 + V_d3 = 9 + V_d4 = 10 + V_d5 = 11 + V_d6 = 12 + V_d7 = 13 + V_d8 = 14 + V_d9 = 15 + + @property + def value(self) -> DomainState.VALUES: ... + @value.setter + def value(self, value: DomainState.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class ProgramInvocationState(_Asn1Type): - class VALUES(EXT_IntEnum): - V_non_existent = 0 - V_unrunnable = 1 - V_idle = 2 - V_running = 3 - V_stopped = 4 - V_starting = 5 - V_stopping = 6 - V_resuming = 7 - V_resetting = 8 - - @property - def value(self) -> ProgramInvocationState.VALUES: ... - @value.setter - def value(self, value: ProgramInvocationState.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class TypeDescription(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_array = 1 - PR_structure = 2 - PR_boolean = 3 - PR_bit_string = 4 - PR_integer = 5 - PR_unsigned = 6 - PR_floating_point = 7 - PR_octet_string = 8 - PR_visible_string = 9 - PR_generalized_time = 10 - PR_binary_time = 11 - PR_bcd = 12 - PR_objId = 13 - PR_mMSString = 14 - PR_utc_time = 15 - - @property - def present(self) -> PRESENT: ... - - class array_TYPE(_Asn1Type): # SEQUENCE - packed: bool | None - @property - def numberOfElements(self) -> Unsigned32: ... - @numberOfElements.setter - def numberOfElements(self, value: Unsigned32 | int) -> None: ... - elementType: TypeSpecification | None - def __init__( - self, /, *, - packed: bool = ..., - numberOfElements: Unsigned32 = ..., - elementType: TypeSpecification = ..., - ) -> None: ... - - array: array_TYPE - - class structure_TYPE(_Asn1Type): # SEQUENCE - - class components_TYPE(_Asn1Type): - - class Member_TYPE(_Asn1Type): # SEQUENCE - @property - def componentName(self) -> Identifier | None: ... - @componentName.setter - def componentName(self, value: Identifier | str | None) -> None: ... - componentType: TypeSpecification | None - def __init__( - self, /, *, - componentName: Identifier = ..., - componentType: TypeSpecification = ..., - ) -> None: ... - - def __init__(self, values: EXT_Iterable[Member_TYPE] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Member_TYPE: ... - def __setitem__(self, index: int, value: Member_TYPE) -> None: ... - def add(self, value: Member_TYPE) -> None: ... - def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - - components: components_TYPE - packed: bool | None - def __init__( - self, /, *, - packed: bool = ..., - components: components_TYPE = ..., - ) -> None: ... - - structure: structure_TYPE - - class floating_point_TYPE(_Asn1Type): # SEQUENCE - @property - def format_width(self) -> Unsigned8: ... - @format_width.setter - def format_width(self, value: Unsigned8 | int) -> None: ... - @property - def exponent_width(self) -> Unsigned8: ... - @exponent_width.setter - def exponent_width(self, value: Unsigned8 | int) -> None: ... - def __init__( - self, /, *, - format_width: Unsigned8 = ..., - exponent_width: Unsigned8 = ..., - ) -> None: ... - - floating_point: floating_point_TYPE - boolean: None | None - @property - def bit_string(self) -> Integer32 | None: ... - @bit_string.setter - def bit_string(self, value: Integer32 | int | None) -> None: ... - @property - def integer(self) -> Unsigned8 | None: ... - @integer.setter - def integer(self, value: Unsigned8 | int | None) -> None: ... - @property - def unsigned(self) -> Unsigned8 | None: ... - @unsigned.setter - def unsigned(self, value: Unsigned8 | int | None) -> None: ... - @property - def octet_string(self) -> Integer32 | None: ... - @octet_string.setter - def octet_string(self, value: Integer32 | int | None) -> None: ... - @property - def visible_string(self) -> Integer32 | None: ... - @visible_string.setter - def visible_string(self, value: Integer32 | int | None) -> None: ... - generalized_time: None | None - binary_time: bool | None - @property - def bcd(self) -> Unsigned8 | None: ... - @bcd.setter - def bcd(self, value: Unsigned8 | int | None) -> None: ... - objId: None | None - @property - def mMSString(self) -> Integer32 | None: ... - @mMSString.setter - def mMSString(self, value: Integer32 | int | None) -> None: ... - @property - def utc_time(self) -> UtcTime | None: ... - @utc_time.setter - def utc_time(self, value: UtcTime | bytes | None) -> None: ... - def __init__( - self, /, *, - array: array_TYPE = ..., - structure: structure_TYPE = ..., - boolean: None = ..., - bit_string: Integer32 = ..., - integer: Unsigned8 = ..., - unsigned: Unsigned8 = ..., - floating_point: floating_point_TYPE = ..., - octet_string: Integer32 = ..., - visible_string: Integer32 = ..., - generalized_time: None = ..., - binary_time: bool = ..., - bcd: Unsigned8 = ..., - objId: None = ..., - mMSString: Integer32 = ..., - utc_time: UtcTime = ..., - ) -> None: ... - -class Address(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_numericAddress = 1 - PR_symbolicAddress = 2 - PR_unconstrainedAddress = 3 - - @property - def present(self) -> PRESENT: ... - @property - def numericAddress(self) -> Unsigned32 | None: ... - @numericAddress.setter - def numericAddress(self, value: Unsigned32 | int | None) -> None: ... - @property - def symbolicAddress(self) -> MMSString | None: ... - @symbolicAddress.setter - def symbolicAddress(self, value: MMSString | str | None) -> None: ... - unconstrainedAddress: bytes | None - def __init__( - self, /, *, - numericAddress: Unsigned32 = ..., - symbolicAddress: MMSString = ..., - unconstrainedAddress: bytes = ..., - ) -> None: ... - -class Priority(_Asn1BasicType[int]): - pass - -class Severity(_Asn1BasicType[int]): - pass - -class EventTime(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_timeOfDay = 1 - PR_timeSequenceIdentifier = 2 - PR_undefined = 3 - - @property - def present(self) -> PRESENT: ... - @property - def timeOfDay(self) -> TimeOfDay | None: ... - @timeOfDay.setter - def timeOfDay(self, value: TimeOfDay | bytes | None) -> None: ... - @property - def timeSequenceIdentifier(self) -> Unsigned32 | None: ... - @timeSequenceIdentifier.setter - def timeSequenceIdentifier(self, value: Unsigned32 | int | None) -> None: ... - undefined: None | None - def __init__( - self, /, *, - timeOfDay: TimeOfDay = ..., - timeSequenceIdentifier: Unsigned32 = ..., - undefined: None = ..., - ) -> None: ... + class VALUES(EXT_IntEnum): + V_non_existent = 0 + V_unrunnable = 1 + V_idle = 2 + V_running = 3 + V_stopped = 4 + V_starting = 5 + V_stopping = 6 + V_resuming = 7 + V_resetting = 8 + + @property + def value(self) -> ProgramInvocationState.VALUES: ... + @value.setter + def value(self, value: ProgramInvocationState.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class TypeDescription(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_array = 1 + PR_structure = 2 + PR_boolean = 3 + PR_bit_string = 4 + PR_integer = 5 + PR_unsigned = 6 + PR_floating_point = 7 + PR_octet_string = 8 + PR_visible_string = 9 + PR_generalized_time = 10 + PR_binary_time = 11 + PR_bcd = 12 + PR_objId = 13 + PR_mMSString = 14 + PR_utc_time = 15 + + @property + def present(self) -> PRESENT: ... + + class array_TYPE(_Asn1Type): # SEQUENCE + packed: bool | None + @property + def numberOfElements(self) -> Unsigned32: ... + @numberOfElements.setter + def numberOfElements(self, value: Unsigned32 | int) -> None: ... + elementType: TypeSpecification | None + def __init__( + self, + /, + *, + packed: bool = ..., + numberOfElements: Unsigned32 = ..., + elementType: TypeSpecification = ..., + ) -> None: ... + + array: array_TYPE + + class structure_TYPE(_Asn1Type): # SEQUENCE + class components_TYPE(_Asn1Type): + class Member_TYPE(_Asn1Type): # SEQUENCE + @property + def componentName(self) -> Identifier | None: ... + @componentName.setter + def componentName(self, value: Identifier | str | None) -> None: ... + componentType: TypeSpecification | None + def __init__( + self, + /, + *, + componentName: Identifier = ..., + componentType: TypeSpecification = ..., + ) -> None: ... + + def __init__( + self, values: EXT_Iterable[Member_TYPE] | None = ... + ) -> None: ... + def __getitem__(self, index: int) -> Member_TYPE: ... + def __setitem__(self, index: int, value: Member_TYPE) -> None: ... + def add(self, value: Member_TYPE) -> None: ... + def extend(self, values: EXT_Iterable[Member_TYPE]) -> None: ... + def clear(self) -> None: ... + def __len__(self) -> int: ... + def __delitem__(self, index: int) -> None: ... + + components: components_TYPE + packed: bool | None + def __init__( + self, + /, + *, + packed: bool = ..., + components: components_TYPE = ..., + ) -> None: ... + + structure: structure_TYPE + + class floating_point_TYPE(_Asn1Type): # SEQUENCE + @property + def format_width(self) -> Unsigned8: ... + @format_width.setter + def format_width(self, value: Unsigned8 | int) -> None: ... + @property + def exponent_width(self) -> Unsigned8: ... + @exponent_width.setter + def exponent_width(self, value: Unsigned8 | int) -> None: ... + def __init__( + self, + /, + *, + format_width: Unsigned8 = ..., + exponent_width: Unsigned8 = ..., + ) -> None: ... + + floating_point: floating_point_TYPE + boolean: None + @property + def bit_string(self) -> Integer32 | None: ... + @bit_string.setter + def bit_string(self, value: Integer32 | int | None) -> None: ... + @property + def integer(self) -> Unsigned8 | None: ... + @integer.setter + def integer(self, value: Unsigned8 | int | None) -> None: ... + @property + def unsigned(self) -> Unsigned8 | None: ... + @unsigned.setter + def unsigned(self, value: Unsigned8 | int | None) -> None: ... + @property + def octet_string(self) -> Integer32 | None: ... + @octet_string.setter + def octet_string(self, value: Integer32 | int | None) -> None: ... + @property + def visible_string(self) -> Integer32 | None: ... + @visible_string.setter + def visible_string(self, value: Integer32 | int | None) -> None: ... + generalized_time: None + binary_time: bool | None + @property + def bcd(self) -> Unsigned8 | None: ... + @bcd.setter + def bcd(self, value: Unsigned8 | int | None) -> None: ... + objId: None + @property + def mMSString(self) -> Integer32 | None: ... + @mMSString.setter + def mMSString(self, value: Integer32 | int | None) -> None: ... + @property + def utc_time(self) -> UtcTime | None: ... + @utc_time.setter + def utc_time(self, value: UtcTime | bytes | None) -> None: ... + def __init__( + self, + /, + *, + array: array_TYPE = ..., + structure: structure_TYPE = ..., + boolean: None = ..., + bit_string: Integer32 = ..., + integer: Unsigned8 = ..., + unsigned: Unsigned8 = ..., + floating_point: floating_point_TYPE = ..., + octet_string: Integer32 = ..., + visible_string: Integer32 = ..., + generalized_time: None = ..., + binary_time: bool = ..., + bcd: Unsigned8 = ..., + objId: None = ..., + mMSString: Integer32 = ..., + utc_time: UtcTime = ..., + ) -> None: ... + +class Address(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_numericAddress = 1 + PR_symbolicAddress = 2 + PR_unconstrainedAddress = 3 + + @property + def present(self) -> PRESENT: ... + @property + def numericAddress(self) -> Unsigned32 | None: ... + @numericAddress.setter + def numericAddress(self, value: Unsigned32 | int | None) -> None: ... + @property + def symbolicAddress(self) -> MMSString | None: ... + @symbolicAddress.setter + def symbolicAddress(self, value: MMSString | str | None) -> None: ... + unconstrainedAddress: bytes | None + def __init__( + self, + /, + *, + numericAddress: Unsigned32 = ..., + symbolicAddress: MMSString = ..., + unconstrainedAddress: bytes = ..., + ) -> None: ... + +class Priority(_Asn1BasicType[int]): ... +class Severity(_Asn1BasicType[int]): ... + +class EventTime(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_timeOfDay = 1 + PR_timeSequenceIdentifier = 2 + PR_undefined = 3 + + @property + def present(self) -> PRESENT: ... + @property + def timeOfDay(self) -> TimeOfDay | None: ... + @timeOfDay.setter + def timeOfDay(self, value: TimeOfDay | bytes | None) -> None: ... + @property + def timeSequenceIdentifier(self) -> Unsigned32 | None: ... + @timeSequenceIdentifier.setter + def timeSequenceIdentifier(self, value: Unsigned32 | int | None) -> None: ... + undefined: None + def __init__( + self, + /, + *, + timeOfDay: TimeOfDay = ..., + timeSequenceIdentifier: Unsigned32 = ..., + undefined: None = ..., + ) -> None: ... class EC_State(_Asn1Type): - class VALUES(EXT_IntEnum): - V_disabled = 0 - V_idle = 1 - V_active = 2 + class VALUES(EXT_IntEnum): + V_disabled = 0 + V_idle = 1 + V_active = 2 - @property - def value(self) -> EC_State.VALUES: ... - @value.setter - def value(self, value: EC_State.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + @property + def value(self) -> EC_State.VALUES: ... + @value.setter + def value(self, value: EC_State.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class AlarmAckRule(_Asn1Type): - class VALUES(EXT_IntEnum): - V_none = 0 - V_simple = 1 - V_ack_active = 2 - V_ack_all = 3 - - @property - def value(self) -> AlarmAckRule.VALUES: ... - @value.setter - def value(self, value: AlarmAckRule.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + class VALUES(EXT_IntEnum): + V_none = 0 + V_simple = 1 + V_ack_active = 2 + V_ack_all = 3 + + @property + def value(self) -> AlarmAckRule.VALUES: ... + @value.setter + def value(self, value: AlarmAckRule.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class Transitions(_Asn1BitStrType): - V_idle_to_disabled: bool # bit 0 - V_active_to_disabled: bool # bit 1 - V_disabled_to_idle: bool # bit 2 - V_active_to_idle: bool # bit 3 - V_disabled_to_active: bool # bit 4 - V_idle_to_active: bool # bit 5 - V_any_to_deleted: bool # bit 6 - + V_idle_to_disabled: bool # bit 0 + V_active_to_disabled: bool # bit 1 + V_disabled_to_idle: bool # bit 2 + V_active_to_idle: bool # bit 3 + V_disabled_to_active: bool # bit 4 + V_idle_to_active: bool # bit 5 + V_any_to_deleted: bool # bit 6 class EC_Class(_Asn1Type): - class VALUES(EXT_IntEnum): - V_network_triggered = 0 - V_monitored = 1 + class VALUES(EXT_IntEnum): + V_network_triggered = 0 + V_monitored = 1 - @property - def value(self) -> EC_Class.VALUES: ... - @value.setter - def value(self, value: EC_Class.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + @property + def value(self) -> EC_Class.VALUES: ... + @value.setter + def value(self, value: EC_Class.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class EE_Class(_Asn1Type): - class VALUES(EXT_IntEnum): - V_modifier = 0 - V_notification = 1 + class VALUES(EXT_IntEnum): + V_modifier = 0 + V_notification = 1 - @property - def value(self) -> EE_Class.VALUES: ... - @value.setter - def value(self, value: EE_Class.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... + @property + def value(self) -> EE_Class.VALUES: ... + @value.setter + def value(self, value: EE_Class.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... class EE_Duration(_Asn1Type): - class VALUES(EXT_IntEnum): - V_current = 0 - V_permanent = 1 - - @property - def value(self) -> EE_Duration.VALUES: ... - @value.setter - def value(self, value: EE_Duration.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class Journal_Variable(_Asn1Type): # SEQUENCE - @property - def variableTag(self) -> MMS255String: ... - @variableTag.setter - def variableTag(self, value: MMS255String | str) -> None: ... - valueSpecification: Data - def __init__( - self, /, *, - variableTag: MMS255String = ..., - valueSpecification: Data = ..., - ) -> None: ... - -class Name(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_rdnSequence = 1 - - @property - def present(self) -> PRESENT: ... - @property - def rdnSequence(self) -> RDNSequence | None: ... - @rdnSequence.setter - def rdnSequence(self, value: RDNSequence | list | None) -> None: ... - def __init__( - self, /, *, - rdnSequence: RDNSequence = ..., - ) -> None: ... - -class DomainName(_Asn1BasicType[str]): - pass - -class RDNSequence(_Asn1Type): - def __init__(self, values: EXT_Iterable[RelativeDistinguishedName] | None = ...) -> None: ... - def __getitem__(self, index: int) -> RelativeDistinguishedName: ... - def __setitem__(self, index: int, value: RelativeDistinguishedName) -> None: ... - def add(self, value: RelativeDistinguishedName) -> None: ... - def extend(self, values: EXT_Iterable[RelativeDistinguishedName]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class RelativeDistinguishedName(_Asn1Type): - def __init__(self, values: EXT_Iterable[AttributeTypeAndValue] | None = ...) -> None: ... - def __getitem__(self, index: int) -> AttributeTypeAndValue: ... - def __setitem__(self, index: int, value: AttributeTypeAndValue) -> None: ... - def add(self, value: AttributeTypeAndValue) -> None: ... - def extend(self, values: EXT_Iterable[AttributeTypeAndValue]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class AttributeTypeAndValue(_Asn1Type): # SEQUENCE - type: str - value: bytes - def __init__( - self, /, *, - type: str = ..., - value: bytes = ..., - ) -> None: ... - -class ACSE_apdu(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_aarq = 1 - PR_aare = 2 - PR_rlrq = 3 - PR_rlre = 4 - PR_abrt = 5 - - @property - def present(self) -> PRESENT: ... - aarq: AARQ_apdu | None - aare: AARE_apdu | None - rlrq: RLRQ_apdu | None - rlre: RLRE_apdu | None - abrt: ABRT_apdu | None - def __init__( - self, /, *, - aarq: AARQ_apdu = ..., - aare: AARE_apdu = ..., - rlrq: RLRQ_apdu = ..., - rlre: RLRE_apdu = ..., - abrt: ABRT_apdu = ..., - ) -> None: ... - -class AARQ_apdu(_Asn1Type): # SEQUENCE - - class protocol_version_TYPE(_Asn1BitStrType): - V_version1: bool # bit 0 - - @property - def protocol_version(self) -> protocol_version_TYPE | None: ... - @protocol_version.setter - def protocol_version(self, value: protocol_version_TYPE | EXT_bitarray | bytes | None) -> None: ... - @property - def application_context_name(self) -> Application_context_name: ... - @application_context_name.setter - def application_context_name(self, value: Application_context_name | str) -> None: ... - called_AP_title: AP_title | None - called_AE_qualifier: AE_qualifier | None - @property - def called_AP_invocation_identifier(self) -> AP_invocation_identifier | None: ... - @called_AP_invocation_identifier.setter - def called_AP_invocation_identifier(self, value: AP_invocation_identifier | int | None) -> None: ... - @property - def called_AE_invocation_identifier(self) -> AE_invocation_identifier | None: ... - @called_AE_invocation_identifier.setter - def called_AE_invocation_identifier(self, value: AE_invocation_identifier | int | None) -> None: ... - calling_AP_title: AP_title | None - calling_AE_qualifier: AE_qualifier | None - @property - def calling_AP_invocation_identifier(self) -> AP_invocation_identifier | None: ... - @calling_AP_invocation_identifier.setter - def calling_AP_invocation_identifier(self, value: AP_invocation_identifier | int | None) -> None: ... - @property - def calling_AE_invocation_identifier(self) -> AE_invocation_identifier | None: ... - @calling_AE_invocation_identifier.setter - def calling_AE_invocation_identifier(self, value: AE_invocation_identifier | int | None) -> None: ... - @property - def sender_acse_requirements(self) -> ACSE_requirements | None: ... - @sender_acse_requirements.setter - def sender_acse_requirements(self, value: ACSE_requirements | EXT_bitarray | int | bytes | None) -> None: ... - @property - def mechanism_name(self) -> Mechanism_name | None: ... - @mechanism_name.setter - def mechanism_name(self, value: Mechanism_name | str | None) -> None: ... - calling_authentication_value: Authentication_value | None - @property - def application_context_name_list(self) -> Application_context_name_list | None: ... - @application_context_name_list.setter - def application_context_name_list(self, value: Application_context_name_list | list | None) -> None: ... - @property - def implementation_information(self) -> Implementation_data | None: ... - @implementation_information.setter - def implementation_information(self, value: Implementation_data | str | None) -> None: ... - @property - def user_information(self) -> Association_information | None: ... - @user_information.setter - def user_information(self, value: Association_information | list | None) -> None: ... - def __init__( - self, /, *, - protocol_version: protocol_version_TYPE | EXT_bitarray | bytes = ..., - application_context_name: Application_context_name = ..., - called_AP_title: AP_title = ..., - called_AE_qualifier: AE_qualifier = ..., - called_AP_invocation_identifier: AP_invocation_identifier = ..., - called_AE_invocation_identifier: AE_invocation_identifier = ..., - calling_AP_title: AP_title = ..., - calling_AE_qualifier: AE_qualifier = ..., - calling_AP_invocation_identifier: AP_invocation_identifier = ..., - calling_AE_invocation_identifier: AE_invocation_identifier = ..., - sender_acse_requirements: ACSE_requirements = ..., - mechanism_name: Mechanism_name = ..., - calling_authentication_value: Authentication_value = ..., - application_context_name_list: Application_context_name_list = ..., - implementation_information: Implementation_data = ..., - user_information: Association_information = ..., - ) -> None: ... - -class AARE_apdu(_Asn1Type): # SEQUENCE - - class protocol_version_TYPE(_Asn1BitStrType): - V_version1: bool # bit 0 - - @property - def protocol_version(self) -> protocol_version_TYPE | None: ... - @protocol_version.setter - def protocol_version(self, value: protocol_version_TYPE | EXT_bitarray | bytes | None) -> None: ... - @property - def application_context_name(self) -> Application_context_name: ... - @application_context_name.setter - def application_context_name(self, value: Application_context_name | str) -> None: ... - @property - def result(self) -> Associate_result: ... - @result.setter - def result(self, value: Associate_result | int) -> None: ... - result_source_diagnostic: Associate_source_diagnostic - responding_AP_title: AP_title | None - responding_AE_qualifier: AE_qualifier | None - @property - def responding_AP_invocation_identifier(self) -> AP_invocation_identifier | None: ... - @responding_AP_invocation_identifier.setter - def responding_AP_invocation_identifier(self, value: AP_invocation_identifier | int | None) -> None: ... - @property - def responding_AE_invocation_identifier(self) -> AE_invocation_identifier | None: ... - @responding_AE_invocation_identifier.setter - def responding_AE_invocation_identifier(self, value: AE_invocation_identifier | int | None) -> None: ... - @property - def responder_acse_requirements(self) -> ACSE_requirements | None: ... - @responder_acse_requirements.setter - def responder_acse_requirements(self, value: ACSE_requirements | EXT_bitarray | int | bytes | None) -> None: ... - @property - def mechanism_name(self) -> Mechanism_name | None: ... - @mechanism_name.setter - def mechanism_name(self, value: Mechanism_name | str | None) -> None: ... - responding_authentication_value: Authentication_value | None - @property - def application_context_name_list(self) -> Application_context_name_list | None: ... - @application_context_name_list.setter - def application_context_name_list(self, value: Application_context_name_list | list | None) -> None: ... - @property - def implementation_information(self) -> Implementation_data | None: ... - @implementation_information.setter - def implementation_information(self, value: Implementation_data | str | None) -> None: ... - @property - def user_information(self) -> Association_information | None: ... - @user_information.setter - def user_information(self, value: Association_information | list | None) -> None: ... - def __init__( - self, /, *, - protocol_version: protocol_version_TYPE | EXT_bitarray | bytes = ..., - application_context_name: Application_context_name = ..., - result: Associate_result = ..., - result_source_diagnostic: Associate_source_diagnostic = ..., - responding_AP_title: AP_title = ..., - responding_AE_qualifier: AE_qualifier = ..., - responding_AP_invocation_identifier: AP_invocation_identifier = ..., - responding_AE_invocation_identifier: AE_invocation_identifier = ..., - responder_acse_requirements: ACSE_requirements = ..., - mechanism_name: Mechanism_name = ..., - responding_authentication_value: Authentication_value = ..., - application_context_name_list: Application_context_name_list = ..., - implementation_information: Implementation_data = ..., - user_information: Association_information = ..., - ) -> None: ... - -class RLRQ_apdu(_Asn1Type): # SEQUENCE - @property - def reason(self) -> Release_request_reason | None: ... - @reason.setter - def reason(self, value: Release_request_reason | int | None) -> None: ... - @property - def user_information(self) -> Association_information | None: ... - @user_information.setter - def user_information(self, value: Association_information | list | None) -> None: ... - def __init__( - self, /, *, - reason: Release_request_reason = ..., - user_information: Association_information = ..., - ) -> None: ... - -class RLRE_apdu(_Asn1Type): # SEQUENCE - @property - def reason(self) -> Release_response_reason | None: ... - @reason.setter - def reason(self, value: Release_response_reason | int | None) -> None: ... - @property - def user_information(self) -> Association_information | None: ... - @user_information.setter - def user_information(self, value: Association_information | list | None) -> None: ... - def __init__( - self, /, *, - reason: Release_response_reason = ..., - user_information: Association_information = ..., - ) -> None: ... - -class ABRT_apdu(_Asn1Type): # SEQUENCE - @property - def abort_source(self) -> ABRT_source: ... - @abort_source.setter - def abort_source(self, value: ABRT_source | int) -> None: ... - abort_diagnostic: ABRT_diagnostic | None - @property - def user_information(self) -> Association_information | None: ... - @user_information.setter - def user_information(self, value: Association_information | list | None) -> None: ... - def __init__( - self, /, *, - abort_source: ABRT_source = ..., - abort_diagnostic: ABRT_diagnostic = ..., - user_information: Association_information = ..., - ) -> None: ... - -class ABRT_diagnostic(_Asn1Type): - class VALUES(EXT_IntEnum): - V_no_reason_given = 1 - V_protocol_error = 2 - V_authentication_mechanism_name_not_recognized = 3 - V_authentication_mechanism_name_required = 4 - V_authentication_failure = 5 - V_authentication_required = 6 - - @property - def value(self) -> ABRT_diagnostic.VALUES: ... - @value.setter - def value(self, value: ABRT_diagnostic.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class ABRT_source(_Asn1Type): - class VALUES(EXT_IntEnum): - V_acse_service_user = 0 - V_acse_service_provider = 1 - - @property - def value(self) -> ABRT_source.VALUES: ... - @value.setter - def value(self, value: ABRT_source.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class ACSE_requirements(_Asn1BitStrType): - V_authentication: bool # bit 0 - V_application_context_negotiation: bool # bit 1 - - -class Application_context_name_list(_Asn1Type): - def __init__(self, values: EXT_Iterable[Application_context_name] | None = ...) -> None: ... - def __getitem__(self, index: int) -> Application_context_name: ... - def __setitem__(self, index: int, value: Application_context_name) -> None: ... - def add(self, value: Application_context_name) -> None: ... - def extend(self, values: EXT_Iterable[Application_context_name]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class Application_context_name(_Asn1BasicType[str]): - pass - -class AP_title(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_ap_title_form1 = 1 - PR_ap_title_form2 = 2 - - @property - def present(self) -> PRESENT: ... - ap_title_form1: AP_title_form1 | None - @property - def ap_title_form2(self) -> AP_title_form2 | None: ... - @ap_title_form2.setter - def ap_title_form2(self, value: AP_title_form2 | str | None) -> None: ... - def __init__( - self, /, *, - ap_title_form1: AP_title_form1 = ..., - ap_title_form2: AP_title_form2 = ..., - ) -> None: ... - -class AE_qualifier(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_ae_qualifier_form1 = 1 - PR_ae_qualifier_form2 = 2 - - @property - def present(self) -> PRESENT: ... - ae_qualifier_form1: AE_qualifier_form1 | None - @property - def ae_qualifier_form2(self) -> AE_qualifier_form2 | None: ... - @ae_qualifier_form2.setter - def ae_qualifier_form2(self, value: AE_qualifier_form2 | int | None) -> None: ... - def __init__( - self, /, *, - ae_qualifier_form1: AE_qualifier_form1 = ..., - ae_qualifier_form2: AE_qualifier_form2 = ..., - ) -> None: ... - -class AP_title_form1(_Asn1BasicType[Name]): - pass - -class AE_qualifier_form1(_Asn1BasicType[RelativeDistinguishedName]): - pass - -class AP_title_form2(_Asn1BasicType[str]): - pass - -class AE_qualifier_form2(_Asn1BasicType[int]): - pass - -class AE_title(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_ae_title_form1 = 1 - PR_ae_title_form2 = 2 - - @property - def present(self) -> PRESENT: ... - ae_title_form1: AE_title_form1 | None - @property - def ae_title_form2(self) -> AE_title_form2 | None: ... - @ae_title_form2.setter - def ae_title_form2(self, value: AE_title_form2 | str | None) -> None: ... - def __init__( - self, /, *, - ae_title_form1: AE_title_form1 = ..., - ae_title_form2: AE_title_form2 = ..., - ) -> None: ... - -class AE_title_form1(_Asn1BasicType[Name]): - pass - -class AE_title_form2(_Asn1BasicType[str]): - pass - -class AE_invocation_identifier(_Asn1BasicType[int]): - pass - -class AP_invocation_identifier(_Asn1BasicType[int]): - pass - -class Associate_result(_Asn1Type): - class VALUES(EXT_IntEnum): - V_accepted = 0 - V_rejected_permanent = 1 - V_rejected_transient = 2 - - @property - def value(self) -> Associate_result.VALUES: ... - @value.setter - def value(self, value: Associate_result.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class Associate_source_diagnostic(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_acse_service_user = 1 - PR_acse_service_provider = 2 - - @property - def present(self) -> PRESENT: ... - - class acse_service_user_VALUES(EXT_IntEnum): - V_null = 0 - V_no_reason_given = 1 - V_application_context_name_not_supported = 2 - V_calling_AP_title_not_recognized = 3 - V_calling_AP_invocation_identifier_not_recognized = 4 - V_calling_AE_qualifier_not_recognized = 5 - V_calling_AE_invocation_identifier_not_recognized = 6 - V_called_AP_title_not_recognized = 7 - V_called_AP_invocation_identifier_not_recognized = 8 - V_called_AE_qualifier_not_recognized = 9 - V_called_AE_invocation_identifier_not_recognized = 10 - V_authentication_mechanism_name_not_recognized = 11 - V_authentication_mechanism_name_required = 12 - V_authentication_failure = 13 - V_authentication_required = 14 - - acse_service_user: acse_service_user_VALUES | None - - class acse_service_provider_VALUES(EXT_IntEnum): - V_null = 0 - V_no_reason_given = 1 - V_no_common_acse_version = 2 - - acse_service_provider: acse_service_provider_VALUES | None - def __init__( - self, /, *, - acse_service_user: acse_service_user_VALUES = ..., - acse_service_provider: acse_service_provider_VALUES = ..., - ) -> None: ... - -class Association_information(_Asn1Type): - def __init__(self, values: EXT_Iterable[EXTERNAL] | None = ...) -> None: ... - def __getitem__(self, index: int) -> EXTERNAL: ... - def __setitem__(self, index: int, value: EXTERNAL) -> None: ... - def add(self, value: EXTERNAL) -> None: ... - def extend(self, values: EXT_Iterable[EXTERNAL]) -> None: ... - def clear(self) -> None: ... - def __len__(self) -> int: ... - def __delitem__(self, index: int) -> None: ... - -class Authentication_value(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_charstring = 1 - PR_bitstring = 2 - PR_external = 3 - PR_other = 4 - - @property - def present(self) -> PRESENT: ... - - class other_TYPE(_Asn1Type): # SEQUENCE - @property - def other_mechanism_name(self) -> Mechanism_name: ... - @other_mechanism_name.setter - def other_mechanism_name(self, value: Mechanism_name | str) -> None: ... - other_mechanism_value: bytes - def __init__( - self, /, *, - other_mechanism_name: Mechanism_name = ..., - other_mechanism_value: bytes = ..., - ) -> None: ... - - other: other_TYPE - charstring: str | None - - class bitstring_TYPE(_Asn1BitStrType): - pass - - @property - def bitstring(self) -> bitstring_TYPE | None: ... - @bitstring.setter - def bitstring(self, value: bitstring_TYPE | EXT_bitarray | bytes | None) -> None: ... - external: EXTERNAL | None - def __init__( - self, /, *, - charstring: str = ..., - bitstring: bitstring_TYPE | EXT_bitarray | bytes = ..., - external: EXTERNAL = ..., - other: other_TYPE = ..., - ) -> None: ... - -class Implementation_data(_Asn1BasicType[str]): - pass - -class Mechanism_name(_Asn1BasicType[str]): - pass - -class Release_request_reason(_Asn1Type): - class VALUES(EXT_IntEnum): - V_normal = 0 - V_urgent = 1 - V_user_defined = 30 - - @property - def value(self) -> Release_request_reason.VALUES: ... - @value.setter - def value(self, value: Release_request_reason.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class Release_response_reason(_Asn1Type): - class VALUES(EXT_IntEnum): - V_normal = 0 - V_not_finished = 1 - V_user_defined = 30 - - @property - def value(self) -> Release_response_reason.VALUES: ... - @value.setter - def value(self, value: Release_response_reason.VALUES | int) -> None: ... - def __init__(self, value: VALUES = ...) -> None: ... - -class EXTERNAL(_Asn1Type): # SEQUENCE - - class encoding_TYPE(_Asn1Type): # CHOICE - class PRESENT(EXT_IntEnum): - PR_NOTHING = 0 - PR_single_ASN1_type = 1 - PR_octet_aligned = 2 - PR_arbitrary = 3 - - @property - def present(self) -> PRESENT: ... - single_ASN1_type: bytes | None - octet_aligned: bytes | None - - class arbitrary_TYPE(_Asn1BitStrType): - pass - - @property - def arbitrary(self) -> arbitrary_TYPE | None: ... - @arbitrary.setter - def arbitrary(self, value: arbitrary_TYPE | EXT_bitarray | bytes | None) -> None: ... - def __init__( - self, /, *, - single_ASN1_type: bytes = ..., - octet_aligned: bytes = ..., - arbitrary: arbitrary_TYPE | EXT_bitarray | bytes = ..., - ) -> None: ... - - encoding: encoding_TYPE - direct_reference: str | None - indirect_reference: int | None - data_value_descriptor: str | None - def __init__( - self, /, *, - direct_reference: str = ..., - indirect_reference: int = ..., - data_value_descriptor: str = ..., - encoding: encoding_TYPE = ..., - ) -> None: ... + class VALUES(EXT_IntEnum): + V_current = 0 + V_permanent = 1 + + @property + def value(self) -> EE_Duration.VALUES: ... + @value.setter + def value(self, value: EE_Duration.VALUES | int) -> None: ... + def __init__(self, value: VALUES = ...) -> None: ... + +class Journal_Variable(_Asn1Type): # SEQUENCE + @property + def variableTag(self) -> MMS255String: ... + @variableTag.setter + def variableTag(self, value: MMS255String | str) -> None: ... + valueSpecification: Data | None + def __init__( + self, + /, + *, + variableTag: MMS255String = ..., + valueSpecification: Data = ..., + ) -> None: ... + +class EXTERNAL(_Asn1Type): # SEQUENCE + class encoding_TYPE(_Asn1Type): # CHOICE + class PRESENT(EXT_IntEnum): + PR_NOTHING = 0 + PR_single_ASN1_type = 1 + PR_octet_aligned = 2 + PR_arbitrary = 3 + + @property + def present(self) -> PRESENT: ... + single_ASN1_type: bytes | None + octet_aligned: bytes | None + + class arbitrary_TYPE(_Asn1BitStrType): ... + + @property + def arbitrary(self) -> arbitrary_TYPE | None: ... + @arbitrary.setter + def arbitrary( + self, value: arbitrary_TYPE | EXT_bitarray | bytes | None + ) -> None: ... + def __init__( + self, + /, + *, + single_ASN1_type: bytes = ..., + octet_aligned: bytes = ..., + arbitrary: arbitrary_TYPE | EXT_bitarray | bytes = ..., + ) -> None: ... + + encoding: encoding_TYPE + direct_reference: str | None + indirect_reference: int | None + data_value_descriptor: str | None + def __init__( + self, + /, + *, + direct_reference: str = ..., + indirect_reference: int = ..., + data_value_descriptor: str = ..., + encoding: encoding_TYPE = ..., + ) -> None: ... ### END GENERATED CODE ### From 89250d02b138694c57be421d2624ceffff67f150 Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:51:21 +0200 Subject: [PATCH 8/9] tests: add core package tests --- tests/core/test_connection.py | 84 +++++++++++++++++++++++++++++++++++ tests/core/test_hexdump.py | 75 +++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 tests/core/test_connection.py create mode 100644 tests/core/test_hexdump.py diff --git a/tests/core/test_connection.py b/tests/core/test_connection.py new file mode 100644 index 00000000..54505b00 --- /dev/null +++ b/tests/core/test_connection.py @@ -0,0 +1,84 @@ +# This file is part of icspacket. +# Copyright (C) 2025-present MatrixEditor @ github +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +import pytest + +from icspacket.core.connection import ( + ConnectionClosedError, + ConnectionError, + ConnectionNotEstablished, + ConnectionStateError, + connection, +) + + +def test_initial_state(): + conn = connection() + assert conn.is_connected() is False + assert conn.is_valid() is False + + +def test_connected(): + conn = connection() + conn._connected = True + assert conn.is_connected() is True + conn._assert_connected() # must not raise + + +def test_assert_not_connected(): + conn = connection() + with pytest.raises(ConnectionNotEstablished): + conn._assert_connected() + + +@pytest.mark.parametrize( + "connected,valid", + [ + (False, False), + (True, False), + (False, True), + (True, True), + ], +) +def test_is_valid(connected, valid): + conn = connection() + conn._connected = connected + conn._valid = valid + assert conn.is_connected() is connected + assert conn.is_valid() is valid + + +@pytest.mark.parametrize( + "method,args", + [ + ("connect", (("host", 102),)), + ("close", ()), + ("send_data", (b"data",)), + ("recv_data", ()), + ], +) +def test_not_implemented(method, args): + conn = connection() + with pytest.raises(NotImplementedError): + getattr(conn, method)(*args) + + +@pytest.mark.parametrize( + "exc_type", + [ConnectionClosedError, ConnectionNotEstablished, ConnectionStateError], +) +def test_error_hierarchy(exc_type): + assert issubclass(exc_type, ConnectionError) + assert issubclass(ConnectionError, Exception) diff --git a/tests/core/test_hexdump.py b/tests/core/test_hexdump.py new file mode 100644 index 00000000..586b28df --- /dev/null +++ b/tests/core/test_hexdump.py @@ -0,0 +1,75 @@ +# This file is part of icspacket. +# Copyright (C) 2025-present MatrixEditor @ github +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +import pytest + +from icspacket.core.hexdump import hexdump + + +def test_empty_data(): + assert hexdump(b"") == "" + + +def test_default_width(): + assert hexdump(bytes(range(16))) == ( + "00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n" + ) + + +def test_single_line(): + assert hexdump(b"abcABC012") == ( + "00000000: 61 62 63 41 42 43 30 31 32 abcABC...\n" + ) + + +def test_multiline_offsets(): + result = hexdump(bytes(range(48))) + assert result == ( + "00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n" + "00000010: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................\n" + "00000020: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f ................\n" + ) + + +def test_short_last_line(): + result = hexdump(bytes(range(20))) + assert result == ( + "00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................\n" + "00000010: 10 11 12 13 ....\n" + ) + + +def test_ascii_column(): + data = bytes( + [ord("a"), ord("Z"), ord("0"), ord(" "), ord("."), 0x00, 0xFF, ord("!"), 0x7F] + ) + assert hexdump(data) == ( + "00000000: 61 5a 30 20 2e 00 ff 21 7f aZ.......\n" + ) + + +def test_custom_width(): + result = hexdump(bytes(range(20)), width=8) + assert result == ( + "00000000: 00 01 02 03 04 05 06 07 ........\n" + "00000008: 08 09 0a 0b 0c 0d 0e 0f ........\n" + "00000010: 10 11 12 13 ....\n" + ) + + +@pytest.mark.parametrize("width", [0, -1, -16]) +def test_rejects_bad_width(width: int): + with pytest.raises(ValueError): + _ = hexdump(b"abc", width=width) From ff4786d7cfd2c50d4ae47be9b565c2ad49995ddb Mon Sep 17 00:00:00 2001 From: MatrixEditor <58256046+MatrixEditor@users.noreply.github.com> Date: Sat, 1 Aug 2026 14:59:02 +0200 Subject: [PATCH 9/9] chore: sync deps and asn1 generation script --- .github/workflows/ci-pytest-linux.yml | 2 +- .github/workflows/ci-pytest-macos.yml | 2 +- .github/workflows/ci-pytest-windows.yml | 2 +- scripts/regen-asn1.sh | 67 ++++++++++ uv.lock | 170 ++++++++++++------------ 5 files changed, 155 insertions(+), 88 deletions(-) create mode 100644 scripts/regen-asn1.sh diff --git a/.github/workflows/ci-pytest-linux.yml b/.github/workflows/ci-pytest-linux.yml index c5e053e9..34c02dbd 100644 --- a/.github/workflows/ci-pytest-linux.yml +++ b/.github/workflows/ci-pytest-linux.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] fail-fast: true # all versions must be supported steps: diff --git a/.github/workflows/ci-pytest-macos.yml b/.github/workflows/ci-pytest-macos.yml index 86cd682f..d8259161 100644 --- a/.github/workflows/ci-pytest-macos.yml +++ b/.github/workflows/ci-pytest-macos.yml @@ -12,7 +12,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] fail-fast: true # all versions must be supported steps: diff --git a/.github/workflows/ci-pytest-windows.yml b/.github/workflows/ci-pytest-windows.yml index c8ffedb2..114020f9 100644 --- a/.github/workflows/ci-pytest-windows.yml +++ b/.github/workflows/ci-pytest-windows.yml @@ -12,7 +12,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] fail-fast: true # all versions must be supported steps: diff --git a/scripts/regen-asn1.sh b/scripts/regen-asn1.sh new file mode 100644 index 00000000..dec8e4e6 --- /dev/null +++ b/scripts/regen-asn1.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +# +# Regenerates the C sources/headers, skeletons and Python (.pyi) stubs for +# all icspacket ASN.1 extensions (_iso8823, _mms, _iec61850) using the +# asn1c-bindings compiler (https://github.com/MatrixEditor/asn1c-bindings). +# +# Usage: +# A1C_PATH=/path/to/asn1c-bindings/asn1c/asn1c \ +# A1C_SKELETONS_PATH=/path/to/asn1c-bindings/skeletons \ +# ./scripts/regen-asn1.sh +# +# Env vars: +# A1C_PATH Path to the asn1c-bindings compiler binary. +# Defaults to "asn1c" (looked up on PATH). +# A1C_SKELETONS_PATH Path to the asn1c-bindings skeletons/ directory. +# Required (no sane default exists). +set -euo pipefail + +: "${A1C_PATH:=asn1c}" +if [ -z "${A1C_SKELETONS_PATH:-}" ]; then + echo "error: A1C_SKELETONS_PATH must be set to the asn1c-bindings skeletons/ directory" >&2 + exit 1 +fi + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +PROTO_DIR="$ROOT_DIR/src/icspacket/proto" +SKELETON_OUT_DIR="$ROOT_DIR/src/icspacket/include/skeletons" + +COMMON_FLAGS=( + -no-gen-example + -no-gen-autotools + -fcompound-names + -Wdebug-compiler + -S "$A1C_SKELETONS_PATH" + -out-skeletons="$SKELETON_OUT_DIR" + -out-skip-imports + -no-gen-OER + -no-gen-UPER + -no-gen-APER + -no-gen-CBOR + -no-gen-random-fill +) + +# generate ... +generate() { + local name="$1" dir="$2" + shift 2 + + echo "==> Generating ${name} (sources: $*)" + "$A1C_PATH" "${COMMON_FLAGS[@]}" \ + -M "$name" \ + -out-python-stubs="$(dirname "$dir")" \ + -out-python-sources="$dir" \ + "$@" +} + +generate _iso8823 "$PROTO_DIR/iso_pres/_iso8823" \ + "$PROTO_DIR/iso_pres/_iso8823.asn1" + +generate _mms "$PROTO_DIR/mms/_mms" \ + "$PROTO_DIR/_acse.asn1" "$PROTO_DIR/mms/_mms.asn1" + +generate _iec61850 "$PROTO_DIR/iec61850/_iec61850" \ + "$PROTO_DIR/iec61850/_iec61850.asn1" + +echo +echo "Done." diff --git a/uv.lock b/uv.lock index 3d47adb1..6623c544 100644 --- a/uv.lock +++ b/uv.lock @@ -69,88 +69,88 @@ wheels = [ [[package]] name = "bitarray" -version = "3.9.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/53/71/dd598d2d546d11d7aca6cd25f05875e2dad194df0a663f1892690d4fb90d/bitarray-3.9.2.tar.gz", hash = "sha256:37342f81c8f8e10ee5d1e23d5eda2e8dbd9d8d3a9d90e8285181fad57f21cdc1", size = 160932, upload-time = "2026-07-25T06:39:21.234Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/df/0b/8509a00dc5ab2945e9856582f8a4908a78f15a7a08b425dc067f733299d1/bitarray-3.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a334e162a24c4e85babffb78823d83aa04c882a7dd40c2106b668a8cde3da752", size = 156246, upload-time = "2026-07-25T06:37:14.799Z" }, - { url = "https://files.pythonhosted.org/packages/0a/1e/40d32865af46ff2c8a4ee488c60f1dd3724f3ff2c8405cb6594e75685c7d/bitarray-3.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8855aab242b4865e7ac7e14b6ce80f4cdf213984f260f31d92505d6877c620f9", size = 152874, upload-time = "2026-07-25T06:37:16.141Z" }, - { url = "https://files.pythonhosted.org/packages/12/07/0a646e68fa1fdb73e260474fdca595b93a7ecae6da49ac1d4c34be2b3b08/bitarray-3.9.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cf06a3a5263268a35ed0d5513309791040ec8e8d3089bb5af12f51979dbf0a2a", size = 350232, upload-time = "2026-07-25T06:37:17.071Z" }, - { url = "https://files.pythonhosted.org/packages/38/5c/c1926f34269fb112d4b8b2b4fb0b84fc47b02268c30b300d237cccf07060/bitarray-3.9.2-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b82130cfba659e6a9da81298f43be678e99c598e64d814cfa86f0df8c1e230aa", size = 372334, upload-time = "2026-07-25T06:37:18.165Z" }, - { url = "https://files.pythonhosted.org/packages/42/b8/9937340228a814d72194543a1d452d552e3ea45d1537e27914deff41bbe0/bitarray-3.9.2-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ebc32a4fd8659a848d2c92ca5d75a1029cff9711bedbf3a32c515a19d4b3868", size = 384431, upload-time = "2026-07-25T06:37:19.251Z" }, - { url = "https://files.pythonhosted.org/packages/cd/f1/311991e38cae3aa2b0f48726578e98aa584157c1f5bf4c8df51ed5a273d0/bitarray-3.9.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:047e6ad06ffe606cdc9d75b83effc5f14ab11f30bf6ca38fd98553410e23880b", size = 353328, upload-time = "2026-07-25T06:37:20.383Z" }, - { url = "https://files.pythonhosted.org/packages/2f/e0/7087f78801ad89fedf4812bd9cf46c204e48c1cfbf83bd0d8eede7dbd076/bitarray-3.9.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:42e7735c20e3e8e8044bd566ffa8461ad4870a8459c5d3fe9d43984eaa2d6104", size = 348330, upload-time = "2026-07-25T06:37:21.579Z" }, - { url = "https://files.pythonhosted.org/packages/71/b9/42b7265266ceee164942e34c278e3982618ff022b40771004693c6a64055/bitarray-3.9.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:23aa70b05518ee20d965a8cbd1e168ba4085647f12d7bdb654412a253c476652", size = 370012, upload-time = "2026-07-25T06:37:22.584Z" }, - { url = "https://files.pythonhosted.org/packages/11/11/a80fde6c902cdef198a20e218a1005f09d9bc5266a8db310cfd2468d0e7b/bitarray-3.9.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:0197a8970233d65e04357308d52e5310ea8219e07587f8db8a98d7ac21b7de50", size = 365747, upload-time = "2026-07-25T06:37:23.791Z" }, - { url = "https://files.pythonhosted.org/packages/30/6b/01ae2bfc9778ff2bc78c20c1fe5a80b7290baa1b57e98f04435eafa09a68/bitarray-3.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ac1a5b7919ab373df270f268ab35c49aa311ed06412290313cecfae9406003ee", size = 350281, upload-time = "2026-07-25T06:37:25.015Z" }, - { url = "https://files.pythonhosted.org/packages/c7/ec/1ccde07e363791274c6f4f376d1e844254d97ea762fd25a2372a1e56f92a/bitarray-3.9.2-cp310-cp310-win32.whl", hash = "sha256:3aba64f5b449f50498185c81ba16dc9b819b06d985630f1b630e836081cf5051", size = 148006, upload-time = "2026-07-25T06:37:26.138Z" }, - { url = "https://files.pythonhosted.org/packages/85/26/ee9cbd0b3df4cb9939bbbe41b0e9fca5185c33b0788eb5129a432784bf58/bitarray-3.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:3a6bda7bd4a77926a18dc9890acad77ae96c2e4d9ff163a20438a67a23d7d956", size = 157184, upload-time = "2026-07-25T06:37:27.093Z" }, - { url = "https://files.pythonhosted.org/packages/bd/ae/04a86f8fc6a57205b27bad5e201aaa3bdafd70324eb4407c764018b712a2/bitarray-3.9.2-cp310-cp310-win_arm64.whl", hash = "sha256:4f9576e2e417eb4b45257c135b40d5e465969382dbf4291377f4b7327ca74603", size = 153173, upload-time = "2026-07-25T06:37:28.061Z" }, - { url = "https://files.pythonhosted.org/packages/61/cf/1c8efde1c873445d7609e2b1576edb29a7b946a8135a8a5f60b5e775fb79/bitarray-3.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38c850db9ae8602e21c5c29193546a7ac85f1a70adfd4d65853154825675fce2", size = 156241, upload-time = "2026-07-25T06:37:29.185Z" }, - { url = "https://files.pythonhosted.org/packages/bb/2e/21ebb66fb272295c1e90ee04245e00f3655109b95881cf014485fae35526/bitarray-3.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:06df682d5b9ef233a21fab71912f131b2c295913202f2ad5370e44b0e0b26241", size = 152869, upload-time = "2026-07-25T06:37:30.329Z" }, - { url = "https://files.pythonhosted.org/packages/e7/db/4af8e55d377c25ca37a1da550d1852e44fd280ce5b550bef91d5aa52d2e9/bitarray-3.9.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d0c064263c54fffe8fdfe8e20074816c67ec70608b0efb42a7d9fdf35ef67271", size = 359514, upload-time = "2026-07-25T06:37:31.384Z" }, - { url = "https://files.pythonhosted.org/packages/b6/20/464b03e4388d2093998bb355de1396d318728f9d8e1cc715770295babda7/bitarray-3.9.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0a61eac6a5a47cc7bc458b1f0737a701767543949580605cd85272c48121fb0a", size = 381209, upload-time = "2026-07-25T06:37:32.499Z" }, - { url = "https://files.pythonhosted.org/packages/02/fd/f24ec964e5737180957366473b664f8587a34dc7792e674a9d6c839db2e6/bitarray-3.9.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b62d7de8e4dc4ffbff407e1c7f868b84a00ac4a9919e28755fd299e86740fced", size = 393701, upload-time = "2026-07-25T06:37:33.501Z" }, - { url = "https://files.pythonhosted.org/packages/f4/c2/0ac619df1eb86593c7b7d833325cfa6cf5a3bcd55f3fa0871e30e1d6036d/bitarray-3.9.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8ea75f495073f95e96e3f3049411854b5db1693901d8b324439a170ef45088fa", size = 362278, upload-time = "2026-07-25T06:37:34.691Z" }, - { url = "https://files.pythonhosted.org/packages/23/6b/3325564d17cebb71f6beca6b41d463d1083acc68ae06abb3ef2729f78b46/bitarray-3.9.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1f3eb99f3cc4ef93b4830e8532ba506be4105f15daddba9302bbd96f24b1cf72", size = 357205, upload-time = "2026-07-25T06:37:35.764Z" }, - { url = "https://files.pythonhosted.org/packages/16/37/6253ca3aa44d257c8a70ce9bb98c0d05302bff586979c22b2264c9ae4457/bitarray-3.9.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e22236531f0193457277a7340d8bdd006f202f563f22f29abb873dc0850eb472", size = 378079, upload-time = "2026-07-25T06:37:36.958Z" }, - { url = "https://files.pythonhosted.org/packages/04/4f/e7595cb740e1b296f601b0d1292702b867292204e8f4ff010772f3a75c02/bitarray-3.9.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:92a438122d35d5e5703983c7dda7de90fc25c50282ce60f73ad61a6ced3ce0bc", size = 374941, upload-time = "2026-07-25T06:37:38.021Z" }, - { url = "https://files.pythonhosted.org/packages/87/61/135e3b0b42d65577725f2ddada426fce35cf816bc7d07e954ff6194b1193/bitarray-3.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:47ec58fceafd38d5839bb9d8262ca6150e222f81d1e4adc8feafda6caf360334", size = 359249, upload-time = "2026-07-25T06:37:39.079Z" }, - { url = "https://files.pythonhosted.org/packages/a1/7e/9b7a01e4d5d634f36fc1151854fdc61c09678b53dfd667f66baaff7efbff/bitarray-3.9.2-cp311-cp311-win32.whl", hash = "sha256:e8ec38401d9370684709f8cc3a0febbb742edf9fbacb1e432bcad8d023990e6d", size = 148130, upload-time = "2026-07-25T06:37:40.15Z" }, - { url = "https://files.pythonhosted.org/packages/fe/be/ee0813622d5fc2c6419aa5ec8e12407593f56c41a6e70fe1b8092b158c82/bitarray-3.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:30e2516878f7745957948e1a2d877f56ceda13b5f6b51d92d2174ef1756ab473", size = 157489, upload-time = "2026-07-25T06:37:41.158Z" }, - { url = "https://files.pythonhosted.org/packages/26/4c/1ad11f39eb6b1851777fb25185e839d19d273f2350c5e1bcbf0e014a7fda/bitarray-3.9.2-cp311-cp311-win_arm64.whl", hash = "sha256:89c87ffdb399a53821cb0f5566a7d04e0f2870096a4964b038866a894b40c9c6", size = 153465, upload-time = "2026-07-25T06:37:42.151Z" }, - { url = "https://files.pythonhosted.org/packages/73/c3/6d33775d73e22cfe3fe23dae2ed50dbabdb38ea651e8b5c983262c39ce26/bitarray-3.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c967be9bd2fadd58e0d2c4e139e6e7443b5dd9162e52e43ef5e2489218c4fecb", size = 156385, upload-time = "2026-07-25T06:37:43.505Z" }, - { url = "https://files.pythonhosted.org/packages/9c/9f/24b22bfa3016fdd50966966f7dec0ecf11a911429be5178880228068e108/bitarray-3.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3c17c918e569a81a2dd87794e15991c9643accf72b5c005e8791cdedcb2d6189", size = 152941, upload-time = "2026-07-25T06:37:44.64Z" }, - { url = "https://files.pythonhosted.org/packages/48/61/affb7fd0ce338529b57eea7d1fda983b4f4adde89eb7ea8e4201c4aa4e47/bitarray-3.9.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eea0dc21749eeb53b163d45c3dd0524e62c0301dd512bfb4f5ef34ccce7be6ad", size = 362020, upload-time = "2026-07-25T06:37:45.687Z" }, - { url = "https://files.pythonhosted.org/packages/31/e1/43f6eed3ae86d08c11eb424ad0c7ffd40bb081eb50c682c76adeead3ed0d/bitarray-3.9.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:64fb672905884fc236ef200b9fbde529c6673a8217c62bf8651bdce4842ba366", size = 382732, upload-time = "2026-07-25T06:37:47.212Z" }, - { url = "https://files.pythonhosted.org/packages/12/f1/cf664f54fef3c5c921e7133a2795201e508c2c984ffe7c0f3f851f2b976d/bitarray-3.9.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:be25330b9da322a806b29bae0147e6ea3730b6f85a5036e25f8e50247fee013a", size = 396696, upload-time = "2026-07-25T06:37:48.309Z" }, - { url = "https://files.pythonhosted.org/packages/35/fc/6d6409ec30dabd388b6f3ee6c461eae353f04d95dc287f7be19fffff8fcc/bitarray-3.9.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b7e14fd457ccea13e0adca60d93ffcd17b70184e7f485a986523241a077f3ac9", size = 366507, upload-time = "2026-07-25T06:37:49.671Z" }, - { url = "https://files.pythonhosted.org/packages/37/47/d241a6dde522a213cd624a820e0be998b0e5548d141098e990bba03913cd/bitarray-3.9.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5f719003b0d692d3088e8f783ec684bf7caf00bddb5392efbe7842ba1ff15e8e", size = 359937, upload-time = "2026-07-25T06:37:50.725Z" }, - { url = "https://files.pythonhosted.org/packages/d3/a6/0f4dd5a813f87b79e07e4bece697e872f4836486fca92903c63cc75c42db/bitarray-3.9.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a72e6b82f1800a08dff90a9d401ffd3f8c278644e4f6711a7458c9f16ee9446e", size = 379627, upload-time = "2026-07-25T06:37:51.884Z" }, - { url = "https://files.pythonhosted.org/packages/cc/27/cbc55ea191b52710c19702cbbae7814ff55082b02a4c23aba11c23dd1990/bitarray-3.9.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:d043ef192ae741f0524b3d3404a2e6e8dbb6affeda421d40d46456cf6cfa1064", size = 378404, upload-time = "2026-07-25T06:37:53.43Z" }, - { url = "https://files.pythonhosted.org/packages/fc/70/20179544538444c0896099a10a035d857c2f4ce707a950834aa62d645714/bitarray-3.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23fe97bfed91ae4c927871b779caa159000da958fe5521d92420a09ed524efdf", size = 363092, upload-time = "2026-07-25T06:37:54.796Z" }, - { url = "https://files.pythonhosted.org/packages/fc/97/c9b206363aad0239cf966ea4eefaaa0da2717cd695ac11af1effbe3819bb/bitarray-3.9.2-cp312-cp312-win32.whl", hash = "sha256:ff72bbdd7c01ca661cb6712e706c0e0f0bc45a6b2426f69e9517cf7508b8d294", size = 148523, upload-time = "2026-07-25T06:37:55.915Z" }, - { url = "https://files.pythonhosted.org/packages/b5/2a/67f161485ba266ad76064405cd19dda50057f466d796b4ad9d9e2645b877/bitarray-3.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:12c2e7556f7d7f3d2a2017d66159790ed6cadf849a3aa436d9c3541dd3facd6c", size = 157829, upload-time = "2026-07-25T06:37:57.285Z" }, - { url = "https://files.pythonhosted.org/packages/58/cc/aefdf64e5c3b057538ed6e5f244fa055bc825b10cb3a08ead0895ba9ff67/bitarray-3.9.2-cp312-cp312-win_arm64.whl", hash = "sha256:76c0a98d85b2ed7090ff6c0fff9917a2ddffaffb82c2d0ce7d424f0830dc8dee", size = 153677, upload-time = "2026-07-25T06:37:58.332Z" }, - { url = "https://files.pythonhosted.org/packages/9f/33/a15849ec7ca05b55835b52baa4f226ee1d75cffd0943cf0a648c52bf9048/bitarray-3.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5156ae1fb0d56238b2ba64b8c0da9a14dbc2e16c9d79114ad3850b7aff513b0a", size = 156131, upload-time = "2026-07-25T06:37:59.76Z" }, - { url = "https://files.pythonhosted.org/packages/53/98/f097b0e50c31c4e1cc8f8612e21b8d193a66c0d14ca07f06eba376c5f090/bitarray-3.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:054fc478842a95d8e9e200117a7e170cd8ec17608e3cfa451e44fc78e5ab5007", size = 152618, upload-time = "2026-07-25T06:38:00.769Z" }, - { url = "https://files.pythonhosted.org/packages/f2/c2/ea3786bb4231564482f23f1aaf478a1ddf8e8d08cfb90167c17cca89623d/bitarray-3.9.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1d5e428a70d6e395b9fd415bba70bfb463d2b9e8010d471cb99eb0f82e91d179", size = 360335, upload-time = "2026-07-25T06:38:01.829Z" }, - { url = "https://files.pythonhosted.org/packages/fd/93/5772f7c4ffa4d6a1e9e486e8623f4f89041268e8c91b5761ad0920fc53e8/bitarray-3.9.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a34d717b362f96a767b03f350cefecd0f613a44ce774868d3635423eec1e5d75", size = 381029, upload-time = "2026-07-25T06:38:03.1Z" }, - { url = "https://files.pythonhosted.org/packages/ec/6b/e84a9a61cbf7db68703f6ebeb853c4d323c9b1d83bd4d863ceb424575785/bitarray-3.9.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:068a100b2d3507e1ebd6f0cb3515551ddf3c7db1c98426dc854ddff985508eb8", size = 394606, upload-time = "2026-07-25T06:38:04.149Z" }, - { url = "https://files.pythonhosted.org/packages/1a/3c/127d48763eaf8941556486fc7883096d9024139276dfc19150523bfc6e31/bitarray-3.9.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3a797165662ce08029a5975e05e928b77f979d8322cc719ba46eb8b3d9ab5c9b", size = 364341, upload-time = "2026-07-25T06:38:05.401Z" }, - { url = "https://files.pythonhosted.org/packages/1e/9b/d58b96fc10bec25fa59aa894964dadb5cbfb150fe4b30aeecea162c2cda4/bitarray-3.9.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6468d775054cb4fe777d585c661df89e99f9398fa9cb31e428a9b42105e6ce48", size = 358005, upload-time = "2026-07-25T06:38:06.464Z" }, - { url = "https://files.pythonhosted.org/packages/61/5f/25989fb53e1e4f079b2c75b24d0bcb500b407cb0be2c35953fee092a872a/bitarray-3.9.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:9bd26caa42d12c747af2c3a3995b08db32ac7afa0c5262c0b6c6931293067805", size = 378038, upload-time = "2026-07-25T06:38:07.818Z" }, - { url = "https://files.pythonhosted.org/packages/fa/42/e80c45b496d60e216af776ed284c65cc55434cfbe39cd459975f1fb6a0ca/bitarray-3.9.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:11574711bae2b501141f64cf6d7a9819c9f45e7d8edcd2d9fe282b377dadb900", size = 376295, upload-time = "2026-07-25T06:38:09.079Z" }, - { url = "https://files.pythonhosted.org/packages/04/84/8bc4a8e12a802199b20912f57427e3ba6b8cc3649190fecb7c97bb35a69d/bitarray-3.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:c6e16d6a8d93362f65336fc57e76fb1fe94f257bb54a843cf1a83c86887ac1ca", size = 360959, upload-time = "2026-07-25T06:38:10.299Z" }, - { url = "https://files.pythonhosted.org/packages/34/ca/3ebd885ae0df8f9ec508315361e602fada65c5c75d8b1d1660c81659cce0/bitarray-3.9.2-cp313-cp313-win32.whl", hash = "sha256:7fd8d649b10ba26c032c76ffb2610385496ebf5e52c44c26864e9b16ac8102b3", size = 148350, upload-time = "2026-07-25T06:38:11.473Z" }, - { url = "https://files.pythonhosted.org/packages/6b/92/7ecff07e9bbf6f51092bc3a01361bd5bae5814cd3326abc8423a2ae637a0/bitarray-3.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:0df2bd4b5fea65be332cf9c17351d4c68d3eb442c0e13a5bda8019554cb36ce1", size = 157627, upload-time = "2026-07-25T06:38:12.591Z" }, - { url = "https://files.pythonhosted.org/packages/7c/c4/28122fd875b6bdbebfc15bf60ea3704149540b0f3f43e15f247a7e9604ba/bitarray-3.9.2-cp313-cp313-win_arm64.whl", hash = "sha256:94278c9d37a6f4316ae1f100e98e6582369f25b1f8186bb595ee1578fbc5c52e", size = 153528, upload-time = "2026-07-25T06:38:13.863Z" }, - { url = "https://files.pythonhosted.org/packages/5c/b2/307b9857295d37489b3269eb3cbcf62ab55d19e17c6c567602a2fbf3a589/bitarray-3.9.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:b0debddd2eb7d1a0417f602b2520dd6fb6897ab140c1d69b8c42a69d164ef61b", size = 156152, upload-time = "2026-07-25T06:38:14.92Z" }, - { url = "https://files.pythonhosted.org/packages/95/55/3d13cb858176c2a9189c35becccef29b45c32720e7a1f36c57af431ff7c0/bitarray-3.9.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:5d0387459ac35f6be40c4b809c34f34afe14aa930493e0b06f6df5d327f405c3", size = 152690, upload-time = "2026-07-25T06:38:16.096Z" }, - { url = "https://files.pythonhosted.org/packages/59/1f/7d01c3130fac3d7cd9f52697019e4dbf992fc67befb7c915faf456bc1c1c/bitarray-3.9.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5bde034041875a48ea8c0a4b272e9a6e29174b234bd4905c86a65484f34cd140", size = 360268, upload-time = "2026-07-25T06:38:17.27Z" }, - { url = "https://files.pythonhosted.org/packages/25/61/2b6f05eb6c855727799dd3092b70e933ff433e9464740245042c2bfc68f7/bitarray-3.9.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:37c76ff084118ab1db8b826e35c01ce4d0137e66b611542e16b1f296c96e6aa6", size = 381244, upload-time = "2026-07-25T06:38:18.462Z" }, - { url = "https://files.pythonhosted.org/packages/ee/b0/72d15249f41ffcfad56b4cea7d2a518d936c33c3548f6f474de96ae9da88/bitarray-3.9.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d12c7b574e2903477124a0d77bbc903fd4c3beaefa841f4a63c199014192447b", size = 393965, upload-time = "2026-07-25T06:38:19.823Z" }, - { url = "https://files.pythonhosted.org/packages/0f/6c/e880b52ebed9441a423afdb9f8f3b71186b689cefdcdc6fcb434ca4775ee/bitarray-3.9.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bbff5cccf3a1f4129c8ad43b2bcb789882fba47c87422b30a74bc3bee98a292", size = 363960, upload-time = "2026-07-25T06:38:21.06Z" }, - { url = "https://files.pythonhosted.org/packages/5e/39/2fb0d14bc884de3dda42a6cfbe2325d76af45733e6f97709924352db2bf8/bitarray-3.9.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c374884716ab641c36ee4f51859fa4274fbdf0355ae7242290a29af3cf49381d", size = 357843, upload-time = "2026-07-25T06:38:22.263Z" }, - { url = "https://files.pythonhosted.org/packages/af/ca/5f7fe5898ea35e34ce79b653ae513d4c67bc0ae607229c51a09d8278195e/bitarray-3.9.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:2fe1d36b6d816512af098699c85e9237ce5978863a336a2833ebc03f59545781", size = 378105, upload-time = "2026-07-25T06:38:23.436Z" }, - { url = "https://files.pythonhosted.org/packages/3e/c9/c6b3121421783f10481836140ab976cba7b73bceb9f58216eabf1cee073b/bitarray-3.9.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:4f719595fde8bdf030282c8221c738248a3a73928db3087ea62db2c29de5342d", size = 375952, upload-time = "2026-07-25T06:38:24.695Z" }, - { url = "https://files.pythonhosted.org/packages/30/95/05f50342d799d7f49688371ebd3695b79c6fa65db4eeb9fc335c72aa755e/bitarray-3.9.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:28c4edee03ece6768ee51c1889c5d4df05764f8ad956fed6295912dbe4aef729", size = 360654, upload-time = "2026-07-25T06:38:25.944Z" }, - { url = "https://files.pythonhosted.org/packages/30/88/836ad7a1421cd4dd888ed602eb7e7fb297de866e64dab19150be596e9abf/bitarray-3.9.2-cp314-cp314-win32.whl", hash = "sha256:f01b94e8bd0229c214f0873f8d19cf4db4602a230064317a8be00428922f7987", size = 147264, upload-time = "2026-07-25T06:38:27.106Z" }, - { url = "https://files.pythonhosted.org/packages/2a/cd/ca5feb145af0ad602c88a2bb43ff3c44067846324c58e8c972a397adf2ee/bitarray-3.9.2-cp314-cp314-win_amd64.whl", hash = "sha256:7892775de516287fbc850cfb9476599bc399b971105fbbe216513ac4cb67d6bf", size = 156687, upload-time = "2026-07-25T06:38:28.268Z" }, - { url = "https://files.pythonhosted.org/packages/5e/f4/8d9516a9aa91b18c9c0075451386b09c342acf3cca536331438d38e8c955/bitarray-3.9.2-cp314-cp314-win_arm64.whl", hash = "sha256:7dcbf363dce364722a3cd3875be5453a36db8c476af551bc5b194ea9960c591f", size = 153104, upload-time = "2026-07-25T06:38:29.357Z" }, - { url = "https://files.pythonhosted.org/packages/38/ac/62db07d42f4713d8032acb2c5776550f99da74ead726d3ab49845ac2b768/bitarray-3.9.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:732fc6464eebdfbbdb28e7a2e98424ba7633619665fb065cb6d756ffef5f6b08", size = 159619, upload-time = "2026-07-25T06:38:30.939Z" }, - { url = "https://files.pythonhosted.org/packages/e7/4a/7ddb362b4dc3f7beb428e96c129fbc96196c7a716658d5d677dffe8fffbd/bitarray-3.9.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c23f1dc6f118c3a885ee2a281261da37e98c35b4361dcf2c9a9d3d70370b32e6", size = 155980, upload-time = "2026-07-25T06:38:32.085Z" }, - { url = "https://files.pythonhosted.org/packages/0f/78/08b2ac57ff404a33e98193481d1a4fe716999ed2255335fbd56ddda7737d/bitarray-3.9.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ada39b08677af76c48a64f1f14e8e518315cf478004ddf4b6c580ce3625c1a9d", size = 378321, upload-time = "2026-07-25T06:38:33.376Z" }, - { url = "https://files.pythonhosted.org/packages/e5/79/5a0734dbc080748b11680483d74f29469c85b56ff6b490028c301732c658/bitarray-3.9.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:70e5a48906a8cab0b8d84ad356d8cf8f0fb533b93475da26437a4a3aed8a9a4b", size = 397775, upload-time = "2026-07-25T06:38:34.619Z" }, - { url = "https://files.pythonhosted.org/packages/c7/2f/a4d87cc0a1a01851fb76cb13633413fc8d2187cfbf00d9f85397edba301c/bitarray-3.9.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4b14351e75d76662d10c1479c8864f4076ab393a297323b85277d2253ccfb96e", size = 411104, upload-time = "2026-07-25T06:38:35.945Z" }, - { url = "https://files.pythonhosted.org/packages/0e/df/5b2d12198c9403a8b757dfc54fee1199e202ec361ad7fb4cb84f295e917e/bitarray-3.9.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:920edc84385932401ddabe62e244774acaa69e991072768fcf7e621c29599f6f", size = 380204, upload-time = "2026-07-25T06:38:37.14Z" }, - { url = "https://files.pythonhosted.org/packages/ee/5f/b6daaa21059439703d53349d9e9158860fa04d31b8a5613dfdc45c8f4b9c/bitarray-3.9.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:3d6dd06fd0e1c88e6da86e4c0479457c74f03f66a2dc16c0c60ecce12c5dee1d", size = 374273, upload-time = "2026-07-25T06:38:38.435Z" }, - { url = "https://files.pythonhosted.org/packages/1f/4f/625e820bdc9235f56ef9644892c7b6b89a96cb7f5a0823748e9a912f1d1a/bitarray-3.9.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:ee339e8f9a763499c5fc855927c8174680183e8751f03f797234a0bd1223c3ff", size = 394096, upload-time = "2026-07-25T06:38:39.785Z" }, - { url = "https://files.pythonhosted.org/packages/02/27/04ee7179dd670781a3c457969e94503a10c516e43340faf04f6862c7c0ef/bitarray-3.9.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:50f0ff3b5e5cfa7ca42e2469418a26d098a42e47b0e171adf9c6c69ea800d055", size = 391958, upload-time = "2026-07-25T06:38:41.011Z" }, - { url = "https://files.pythonhosted.org/packages/b8/7d/ef4ce2906e6c3056021196d11efb220f351f7db74783882e802c8f81c17f/bitarray-3.9.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c898478e6dde8ca75970b91a602b1f48ebedff49841b89cb8495c1949b6d762c", size = 376178, upload-time = "2026-07-25T06:38:42.535Z" }, - { url = "https://files.pythonhosted.org/packages/b4/63/ff961878f0671e921d03a498705b4a15bb96b53474685f2d04abb79204f4/bitarray-3.9.2-cp314-cp314t-win32.whl", hash = "sha256:415675dbae4d1c58a5ae31550db6224e0785443e41d9ed74cf4371aec38d61d3", size = 150524, upload-time = "2026-07-25T06:38:43.939Z" }, - { url = "https://files.pythonhosted.org/packages/e0/ec/a3eb15a4a9730e3f48315f8d510867944f9051b82a465f4fe1d28b9a9e76/bitarray-3.9.2-cp314-cp314t-win_amd64.whl", hash = "sha256:de17695646139d2a9863cf1d8ff83f1335aa3d593f2730c9ae442fb08ef80241", size = 160476, upload-time = "2026-07-25T06:38:45.145Z" }, - { url = "https://files.pythonhosted.org/packages/c9/81/73c274307ec6f74fb072623ec2644e6467f36b24f7464f0be2ed236c183c/bitarray-3.9.2-cp314-cp314t-win_arm64.whl", hash = "sha256:19105d5ff84450b341a0dc1021c7f8d63cb1ffedcdc78b46e62f4cd76f28a7f1", size = 156219, upload-time = "2026-07-25T06:38:46.274Z" }, +version = "3.10.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/c9/df9a5450b54e6dcbb6e8f3fd95631ab849ba1ed8e7899844c0d71bab576c/bitarray-3.10.0.tar.gz", hash = "sha256:d8f8dbcda062ea59b3a6d5233b5a9b67f6bf58c1418ad8f418c5138361f9f068", size = 168648, upload-time = "2026-07-31T07:30:25.155Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9c/d4/6328210390d02229ea6baaf21e8151c9e5163b7fca3a96c855e8d3af44b6/bitarray-3.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:10d4c7ec4ce13852ccea9410c9bb139a8d614439be49d3ec4f13706da8d02867", size = 164212, upload-time = "2026-07-31T07:28:09.76Z" }, + { url = "https://files.pythonhosted.org/packages/ab/b3/838641bebbb65000fe6957366f09026cec17cc9b5326bb37db40b03ddfc3/bitarray-3.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6581ac6c78ce54939fd1234efae3f59904328b45c51716d44c3a492cb420bb45", size = 160651, upload-time = "2026-07-31T07:28:11.367Z" }, + { url = "https://files.pythonhosted.org/packages/9f/80/e5e7ce246016f91e2b44449ce523998a0ac325db1d7c12ef85551213feb0/bitarray-3.10.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77135603f000f6a4da637aef4035bceb865ba1fedd480e6879902e5a20b8ddfc", size = 358089, upload-time = "2026-07-31T07:28:12.452Z" }, + { url = "https://files.pythonhosted.org/packages/68/6b/ecd041cb41d544e29da2b69900b11e7adb3ec3274e094ba3a6c6491a7f18/bitarray-3.10.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e50e50ce22c4e93a5e8205020b815c735707ffd623dd50a2af7627da2658c3c6", size = 379631, upload-time = "2026-07-31T07:28:13.758Z" }, + { url = "https://files.pythonhosted.org/packages/e3/57/af4554a243b8649d997071dcb862f0956b7b9420245663b2a7d095cbc89f/bitarray-3.10.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c8d24867c62db464410dcb4c04d1f6c341127da14f339bbcb428bdecf2e1a2f7", size = 392429, upload-time = "2026-07-31T07:28:15.017Z" }, + { url = "https://files.pythonhosted.org/packages/0e/b4/29483f759c421b0c78fbc7a152981af77cd9b72b975ae60a9d85740bebc3/bitarray-3.10.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c175f85b69b1a71af4f8732caa18e90086f494d4d23630960a821ba3c38bad29", size = 360781, upload-time = "2026-07-31T07:28:16.229Z" }, + { url = "https://files.pythonhosted.org/packages/0d/b6/f1d7fca50e5270b1f962419e57ed1cc72a8c28435dd49f0c7475af35d730/bitarray-3.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:c5d647bbb4a0369333a74c437036e96cfa1964efc7a0bb421cb830e12c3b8e55", size = 355859, upload-time = "2026-07-31T07:28:17.534Z" }, + { url = "https://files.pythonhosted.org/packages/7f/84/a631be6a27cec89b8bb4bbf4d41a122913631b21a13d5884c72946173e4d/bitarray-3.10.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:28972a8e9e3596f93befd5d6c4364a22ca3d060a1fcfafe15ad540f00920819b", size = 377363, upload-time = "2026-07-31T07:28:18.811Z" }, + { url = "https://files.pythonhosted.org/packages/5a/94/ec19f76da96a545ed8422c8b7c1e134f554983b526174e32e19d4c71919d/bitarray-3.10.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:2e2078e41451d7bee01addebf332a2e4cb49a10e27c4127911a9878c1578d426", size = 373407, upload-time = "2026-07-31T07:28:19.855Z" }, + { url = "https://files.pythonhosted.org/packages/12/0e/d5c89e6feb542ab3488264f0592a6a12945ce1ca1a77aedceb11df15b371/bitarray-3.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:a9bea731f0e3bf2ef480d6db771bf515d1b535cb00fcde55ec9306a1f6f5f0dc", size = 357764, upload-time = "2026-07-31T07:28:21.22Z" }, + { url = "https://files.pythonhosted.org/packages/5d/19/df6fca472b2ccb124c7ad6abbaf0915c09ada621d6f3a36f9d84bccb859d/bitarray-3.10.0-cp310-cp310-win32.whl", hash = "sha256:661cbdf8a4c47af61d30f8b11a2c19c8ab0e666976b87f26f0d7e2c70edfa40c", size = 155863, upload-time = "2026-07-31T07:28:22.539Z" }, + { url = "https://files.pythonhosted.org/packages/81/92/cde15628dd99fcc1f3e5c198e34f2ba9865cdf5e391ff0505a2fd35cd392/bitarray-3.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:bfd975d09c2b43ea4ac5325b844fdcc2b9630220177f08ac60b68f8189b2a6b6", size = 165094, upload-time = "2026-07-31T07:28:23.54Z" }, + { url = "https://files.pythonhosted.org/packages/bd/67/984afe224f009424e4f5ff7c5aa9720556054a01b4782121bf820013be29/bitarray-3.10.0-cp310-cp310-win_arm64.whl", hash = "sha256:7587fb84e37c97029c33b11a8af8fe266e9a6664911d0d0747e5f744d2fa1d10", size = 161026, upload-time = "2026-07-31T07:28:24.486Z" }, + { url = "https://files.pythonhosted.org/packages/d2/3e/5f40ec0668b2a5af4541a85f84cf6712408b84d43c452ae3c13245096509/bitarray-3.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c63b721e6cbc638a0fef5ad55871c3ea9c0740f21ebc363b7987f13459d290ce", size = 164212, upload-time = "2026-07-31T07:28:25.586Z" }, + { url = "https://files.pythonhosted.org/packages/7f/2f/2189dcd9e7cc2b02098ae903b3a5dadda0d41a9e426b1e8ed667d4804baa/bitarray-3.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:05bd497036fefa4653bc73875ca62b22e3ce2d1619aac0ab989235374ad2623c", size = 160643, upload-time = "2026-07-31T07:28:26.831Z" }, + { url = "https://files.pythonhosted.org/packages/93/55/832637779d153bab64b53244a1dd33ed6ae90ecc28adc0c42ddb0ae9a095/bitarray-3.10.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d155b99dfce09cca080eda2fa1faa867d37b5372fffa2acc963bab254777552b", size = 367323, upload-time = "2026-07-31T07:28:27.901Z" }, + { url = "https://files.pythonhosted.org/packages/86/70/75f4af9d6f78887213b920956288e5b78307b24e2475d8ea440a2f0b9975/bitarray-3.10.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7cf4c368d960ea79b93948b0d704d38d73888f725821799c5eac6e3b93469234", size = 388482, upload-time = "2026-07-31T07:28:29.055Z" }, + { url = "https://files.pythonhosted.org/packages/23/47/042cb61371e0448e63e1d314d925a90db78f8fffb2665b4666af56a2a223/bitarray-3.10.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6d0f1c8f551493eedd8b349b5a208e1ece830e7d9ff9b5e5fa8fdd0c66cc69b6", size = 401774, upload-time = "2026-07-31T07:28:30.239Z" }, + { url = "https://files.pythonhosted.org/packages/4b/fa/4d5dec87494432c0be0a936bf7ed6ce7cee9c4af3ec56a983265809275cc/bitarray-3.10.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f011f2d585844bd96280db5c5ec20493ff80cbcb5c4bcd6bede05bb0d0b83697", size = 369697, upload-time = "2026-07-31T07:28:31.54Z" }, + { url = "https://files.pythonhosted.org/packages/30/c4/a2418a2ae44ced1e7435de3faf6be06258aa30677083a248b62f8380d2d5/bitarray-3.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b1139cd64b8c8a6efa6434fd3f070e44328b6462a00b6d1f878cc41bdad9cd1b", size = 364861, upload-time = "2026-07-31T07:28:32.764Z" }, + { url = "https://files.pythonhosted.org/packages/3a/cf/bba63bf50cae3d4741b91c4b498e5a9cc16035bf277136053c5cf813b347/bitarray-3.10.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:0e847fc2cb6f39ce63ba76b27649d7ff95b4e34873271e3a67d267bc5f307fab", size = 385443, upload-time = "2026-07-31T07:28:33.915Z" }, + { url = "https://files.pythonhosted.org/packages/b1/4a/fdd686ac423545e9443a47690d6df6844bc3dcdef2b4d1e512eeca81ffea/bitarray-3.10.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a5a8eab867951748694e59f96530e8c582d22c331f7079c1b82ccfe06fcc18cf", size = 382408, upload-time = "2026-07-31T07:28:34.969Z" }, + { url = "https://files.pythonhosted.org/packages/b3/35/adf8481a6899f35ac615337ab441cc00ac9bf559365a180a7854aaabc16b/bitarray-3.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:110a884f27c8151e4358bcc3db65598f3f53fc59a537b86f6db37b6d6ea2ebc8", size = 366737, upload-time = "2026-07-31T07:28:36.195Z" }, + { url = "https://files.pythonhosted.org/packages/6f/e6/05064dbb6ed2e48eb693f976735c540ce83d5237cf8a164cf49d5c61fef6/bitarray-3.10.0-cp311-cp311-win32.whl", hash = "sha256:47b89e7896ec01c6d89b85c89fa492cc1264f7f7667cb959e98f6050324df484", size = 156022, upload-time = "2026-07-31T07:28:37.265Z" }, + { url = "https://files.pythonhosted.org/packages/b4/95/fd8d0ec02edf2a4d8e46b5351ba9b4369148d3c51973bcdfce3c9b69f21c/bitarray-3.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:d2849c25f4f6d8ab61f1587e5914734d7eb2ad4fb0c026b96ecacd0bc1b92e33", size = 165521, upload-time = "2026-07-31T07:28:38.285Z" }, + { url = "https://files.pythonhosted.org/packages/c9/51/72f5e814fea57e600f99d3f8e8c482dc659fc6d72f41c0eb366a51a6d434/bitarray-3.10.0-cp311-cp311-win_arm64.whl", hash = "sha256:25369533c63c2602b947b764f82af90720857ad876a4047f9bf1a87f1b3fc051", size = 161397, upload-time = "2026-07-31T07:28:39.378Z" }, + { url = "https://files.pythonhosted.org/packages/81/23/6970115c501b8b2dfa9b9ab3f25c07351e5dbc8b28321796bbf2a4289428/bitarray-3.10.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d7bce4104be674de03bb0323504f02dc7a2e41507180c3484af2a11fd38be431", size = 164496, upload-time = "2026-07-31T07:28:40.584Z" }, + { url = "https://files.pythonhosted.org/packages/03/05/51d52f01c86d719ef3de1ba59a73f3589fa156ab068841959a726b4dd3c9/bitarray-3.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b1b2fae594370b7b54a4bdeb92389bfbfb6481ca27b3fbe607fe67f92bdebe40", size = 160609, upload-time = "2026-07-31T07:28:41.686Z" }, + { url = "https://files.pythonhosted.org/packages/86/fe/ab7deb5cbc795dc2697f4b2ad0411d540d876204d55cbdd83ad768288603/bitarray-3.10.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6f8a98a70e51bc27691df0640e363a743d722439bcdc5d0da6906340b2e10477", size = 369750, upload-time = "2026-07-31T07:28:42.768Z" }, + { url = "https://files.pythonhosted.org/packages/49/57/1a3fc6098262583e235ce0c93e662b2a4a62f9638af72599d6df64fdd006/bitarray-3.10.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:977d12432040d2db9d9e4ebf64b8c5fa5b8e7127f4d37018280bf45bb1403d9b", size = 390203, upload-time = "2026-07-31T07:28:43.999Z" }, + { url = "https://files.pythonhosted.org/packages/66/57/e9ae1ff4bba6f25debbfc29b652099e1bd9fe1cf13f49e5ba1971e2c56e6/bitarray-3.10.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4b809cdfab0ae2680101f0cfda8316b61055d9478cc224a61b4c682318971bf9", size = 404595, upload-time = "2026-07-31T07:28:45.038Z" }, + { url = "https://files.pythonhosted.org/packages/49/61/5dd152a8cff75e6ba6050126568696c7dc2ce401b47e9016ceef0b441595/bitarray-3.10.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:326f7fb7843e00c5fef9fca4c0055b475589c5a8d5aa57ac0b2e3ffa2d921454", size = 374052, upload-time = "2026-07-31T07:28:46.573Z" }, + { url = "https://files.pythonhosted.org/packages/83/1d/5107d2fc38af58a6f14a67979d7a1cae485372032df53b5249cfad3fcad5/bitarray-3.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b1faa9a34142ee424dbe46c653e5558ac258a7d42423c58566e79d9966997897", size = 367445, upload-time = "2026-07-31T07:28:47.741Z" }, + { url = "https://files.pythonhosted.org/packages/7b/91/85c2c7f997eab94362e9e410ef68b00fdc34d1e9d99fb5321f7af7331030/bitarray-3.10.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:73c9d91ade5e642f7d9eb50d4c324268e04c413c117dec40bffb8447d746fd74", size = 387606, upload-time = "2026-07-31T07:28:48.911Z" }, + { url = "https://files.pythonhosted.org/packages/75/c1/86883df78495d44e3adbd139aef21e693b53a5b1ace4accf17097991c6ac/bitarray-3.10.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:e6ee87ef8ffa82553e7b9ff33b243125b2e3efdc5bfa7a5f883bc93f6297a3f9", size = 386037, upload-time = "2026-07-31T07:28:50.235Z" }, + { url = "https://files.pythonhosted.org/packages/5c/ad/3a746ceb4e47a8ceb6db330c84b58152c33d05985143ba5cd219135528e9/bitarray-3.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:934c77709aee789742c2de7e61e9c287cf9742c3e412a3f1177f6d5a65b8c910", size = 370532, upload-time = "2026-07-31T07:28:51.654Z" }, + { url = "https://files.pythonhosted.org/packages/0f/be/49b3f30264353724970b84a3aa65338308983c4feecfae9839879e01cedb/bitarray-3.10.0-cp312-cp312-win32.whl", hash = "sha256:440cd0dd0b6df6557eea3628af7a3db71ce98ff3ce81b8b424281b64e4cecabc", size = 156328, upload-time = "2026-07-31T07:28:52.848Z" }, + { url = "https://files.pythonhosted.org/packages/22/60/b4a77a00d2c0a9a08a2bd434ce04398eae1ca036f8abc1cac22b9fb7f27d/bitarray-3.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:1182b27142dbdb954a5231b6b364bfca943f2b9a7c432cea710eb5e84fcc0820", size = 165865, upload-time = "2026-07-31T07:28:53.92Z" }, + { url = "https://files.pythonhosted.org/packages/b2/5b/0061d8bde5fb47c40c1da8537108d2bc798dcedaef095d1516c36b119c1c/bitarray-3.10.0-cp312-cp312-win_arm64.whl", hash = "sha256:bf92d9a79b1b42cc1299b7a3c097386ab86c7101fefacab2f1cd6bfd3848bd43", size = 161554, upload-time = "2026-07-31T07:28:55.006Z" }, + { url = "https://files.pythonhosted.org/packages/1d/11/eff3ce329a0793504e7b045ed349f7b4f3fce51149fe5496bbec153c8041/bitarray-3.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:228c2b850164740133c6dd7a0cda4094b630eb74675a91ce62ec23db3db5fdfd", size = 164207, upload-time = "2026-07-31T07:28:56.107Z" }, + { url = "https://files.pythonhosted.org/packages/b9/65/3ab717eed012fbfceae0d874032a76c11b1bd0c8c8826bd0f8085cd33062/bitarray-3.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8029e7c4a60ab349299b47569d1d77b5481f916c794d5c1a9f4ec87460c836c8", size = 160355, upload-time = "2026-07-31T07:28:57.237Z" }, + { url = "https://files.pythonhosted.org/packages/f1/2f/f466070463df9ec6127d60669ea307e31aacb3659efc7b52b664765e6b2f/bitarray-3.10.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7c15d4e6fe0c10f225c634d4f02bf06485cc6045a23a9a09a326c28f396af5e0", size = 368126, upload-time = "2026-07-31T07:28:58.367Z" }, + { url = "https://files.pythonhosted.org/packages/0c/dd/b987ddd6d57971dfb906dc3c5fd80db67cbb5a82c7e5689a0ab10b31c80e/bitarray-3.10.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:07aa015f165d8c633a51e6f011d979f5a0ddcb518dcd5ec4ffe2fcbf389ab9cc", size = 388674, upload-time = "2026-07-31T07:28:59.549Z" }, + { url = "https://files.pythonhosted.org/packages/68/b6/c4750851d2756bf7929ab8ad410488cf56fe4700ed8d1ba9351b7e0d8488/bitarray-3.10.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:208ead5ca415b8298b04ac92eebde116aaa57ce8ec892a866760a6ffb667ed5f", size = 402574, upload-time = "2026-07-31T07:29:00.822Z" }, + { url = "https://files.pythonhosted.org/packages/83/60/d5fd73f891deb3c436e52ce14640020deae972dbe6ee992cc186f56fc843/bitarray-3.10.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f339b61b586a49309def0c97e210cd853c03babb405e53d4d4d76ff0a7b3e21c", size = 371909, upload-time = "2026-07-31T07:29:02.128Z" }, + { url = "https://files.pythonhosted.org/packages/00/5b/b5beee3f6eb2d614192aa5409033f545910307b3c2b8cc78a1c846a86047/bitarray-3.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:67ce4fc3b78124c15e2c2c91a9e151330026e941916a1565d0f033719b374148", size = 365518, upload-time = "2026-07-31T07:29:03.349Z" }, + { url = "https://files.pythonhosted.org/packages/81/b6/3613bb59f83598340d5cc35a88b9556a8870e9a2eae578fb812d41d2f0fd/bitarray-3.10.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:9775fefaeeb9846f8eab8ace7309caaae206d2057be024b861b5cce60169d7c0", size = 385394, upload-time = "2026-07-31T07:29:04.579Z" }, + { url = "https://files.pythonhosted.org/packages/8e/a0/e069fc9bb450804a7ce9fd933d287f1b9b1278e9b3bc3c3b2685e09dbcb0/bitarray-3.10.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:6f76c4163b4b4862bb47b53ccc747604ef1691766abeee6eeba456bca2787b5d", size = 384015, upload-time = "2026-07-31T07:29:06.306Z" }, + { url = "https://files.pythonhosted.org/packages/5d/e6/5bb06128d3be3b694a7d7a3d3ae9f872b51e5954e279cb5a4eb6cc7b9bfd/bitarray-3.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:c66fe76ed2006fba1fe5c3627787b6d2aa1fff3e44da589ce268180aab5e1b83", size = 368473, upload-time = "2026-07-31T07:29:07.976Z" }, + { url = "https://files.pythonhosted.org/packages/71/49/a8610c69dd06521e6110f21c7491ca0a3194312a7ab4de84c8718c51c1da/bitarray-3.10.0-cp313-cp313-win32.whl", hash = "sha256:08b5fc5e0483c68e7c52b8553f7ed5c303dc84e4ae92fc4c76efd95fe700671f", size = 156186, upload-time = "2026-07-31T07:29:09.193Z" }, + { url = "https://files.pythonhosted.org/packages/81/c8/1f9c448a80c8403f3444436e37dfc377e11e8aac1713b391aebac67ddd35/bitarray-3.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:f60b7bce85754890e630872887006a10cbd035bf72bf7b8c9346b6e490a3139c", size = 165726, upload-time = "2026-07-31T07:29:10.955Z" }, + { url = "https://files.pythonhosted.org/packages/eb/2b/5e25c3d84c678ddfd41724af56f7ed11856ae08c38f3138639971dce6657/bitarray-3.10.0-cp313-cp313-win_arm64.whl", hash = "sha256:30096ea0fed5339cbb8466d5d2c21afbc1bfea074e8ff8fc70c05c6fe3e6effb", size = 161330, upload-time = "2026-07-31T07:29:12.337Z" }, + { url = "https://files.pythonhosted.org/packages/c4/3f/1124e6e78511dce37a2ac91d6eff58af5e9e3b27ecfbdb99d1e4f5b12b57/bitarray-3.10.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fa0af67f68964f6a0b510f3e2a6aef3f66872767c5fd3848b4e80488c21121db", size = 164199, upload-time = "2026-07-31T07:29:13.408Z" }, + { url = "https://files.pythonhosted.org/packages/6c/41/4cf54756e8edd020bbc882c266b0bcaa048dde4eace108c97cf1b26cd2dc/bitarray-3.10.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:18b323f5f7e27e5d8c45c8b529c3557df2127fca6af54b77524761091d483c6c", size = 160592, upload-time = "2026-07-31T07:29:14.574Z" }, + { url = "https://files.pythonhosted.org/packages/50/0f/806ec358b1e443104d9f4b45d0b9612022d938c7632302e273e7411b6b3d/bitarray-3.10.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:52d1aa7daa6708ba256513916caa564895bcee1d687fc1d3d00efca82925bb03", size = 367954, upload-time = "2026-07-31T07:29:15.676Z" }, + { url = "https://files.pythonhosted.org/packages/e3/03/a9e6c0a4378d8288cc7f1eec8bd86e9634af519521178fe475bea76f9119/bitarray-3.10.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:432ea140915124472a89fdacd622c42e041ba6c9a155be0d614d3a29378e6c2f", size = 388812, upload-time = "2026-07-31T07:29:16.822Z" }, + { url = "https://files.pythonhosted.org/packages/73/b7/ac5adfc24ac6d40cae960404e70a9f851292678ce98701b3db165427e613/bitarray-3.10.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6cc1273f52c760f73e7734bde66b966bcbbff31706f92425a6926c7d65f7cd63", size = 402014, upload-time = "2026-07-31T07:29:18.335Z" }, + { url = "https://files.pythonhosted.org/packages/99/0f/dd564e72a566f86197f91320d7753af099e260f17d7fcfb7e3c000378523/bitarray-3.10.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b31ffe9679e364dacdc3cc8a3de151b4da4ccb9b18685408add662e4fedcf57c", size = 371505, upload-time = "2026-07-31T07:29:19.726Z" }, + { url = "https://files.pythonhosted.org/packages/b8/a4/93754f58446846c56fcb5d6c0396848c556c50968152e3b1a5f8e455e74f/bitarray-3.10.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9a7b618c8c35bb429a58442b1f8bf08fda743163ff5d6404393270012a63442d", size = 365425, upload-time = "2026-07-31T07:29:20.951Z" }, + { url = "https://files.pythonhosted.org/packages/62/54/c8be9f88183b477f161dcd0b09abb75533e30778411ab4bd2a9e4bbe6ed1/bitarray-3.10.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:5a48cc66362ca31935ef98af6ee42d572a636f28cf026c7224950fc1509d2d20", size = 385606, upload-time = "2026-07-31T07:29:22.21Z" }, + { url = "https://files.pythonhosted.org/packages/94/00/8706ab34323cd2fe1fc73c2661af93ebeb33a1501f437b7362f32a269f12/bitarray-3.10.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:ee1cfc520fd097382ceb7d2ca595bef8d55db2d060fdfedacd49e2d239a742c7", size = 383689, upload-time = "2026-07-31T07:29:23.576Z" }, + { url = "https://files.pythonhosted.org/packages/8b/59/82d49b8763237d3971452b75170596edddaef7c35795d7f090d265f19853/bitarray-3.10.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6684bfd43dccc72a1f2c706956b45e14751d299c15c0446886775b4de75b92f4", size = 368138, upload-time = "2026-07-31T07:29:25.172Z" }, + { url = "https://files.pythonhosted.org/packages/08/7a/598957db905357c672de2f6fcf1c2b42a449911630d9cd2fc64c512b7970/bitarray-3.10.0-cp314-cp314-win32.whl", hash = "sha256:e7a24e2c070e55ae3492a47d548d782843adb1d8b9918034fa17fb81a7d7804f", size = 154999, upload-time = "2026-07-31T07:29:26.385Z" }, + { url = "https://files.pythonhosted.org/packages/47/ea/9542b9d40a96d669c21c7a51ce0b56301defdf3547c5ff5e02363902e5a6/bitarray-3.10.0-cp314-cp314-win_amd64.whl", hash = "sha256:f1df2c40bfe739d48dbcb67d506633c8daac380a35029f8bea5124122eaca389", size = 164687, upload-time = "2026-07-31T07:29:27.608Z" }, + { url = "https://files.pythonhosted.org/packages/26/f5/fb5246345d6c177cadab86ba0013c8a3e878ae0677637d7122a0fe504bab/bitarray-3.10.0-cp314-cp314-win_arm64.whl", hash = "sha256:a63a9e0b3b2cbb94bfa8762b823d2680fa9bd1863cce7432a1964aeea2270ac2", size = 160849, upload-time = "2026-07-31T07:29:28.955Z" }, + { url = "https://files.pythonhosted.org/packages/ce/a2/6fcfb12e25109cfd9154a7d3419a9840865402aa61b810d9c685d6e32d81/bitarray-3.10.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:d762e59781fdb6bb80aa9f70150170a8ab8f986ade56b42c6e687a053e354350", size = 167432, upload-time = "2026-07-31T07:29:30.145Z" }, + { url = "https://files.pythonhosted.org/packages/a5/02/41f957c593536f87574f42415151441e407cbc7b5662740b7337e936cb34/bitarray-3.10.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:d085c425434e9f980df63adfdf6e9d20951daf71dcb4722ab135bb2a47cf5095", size = 163928, upload-time = "2026-07-31T07:29:31.39Z" }, + { url = "https://files.pythonhosted.org/packages/03/b4/a8e8034ca242f49c7f157dc7f1a421964025239e1a3d6f4f73ac30596d39/bitarray-3.10.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9cec6e9b1a21153fba768e9e4cd9313fdc272a93538892288d8ba5ac56bd558f", size = 386588, upload-time = "2026-07-31T07:29:32.671Z" }, + { url = "https://files.pythonhosted.org/packages/ae/e4/a24790faf328d29c5c076d75301a345637ff260916e107a96193e5f9d440/bitarray-3.10.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c46d56e8c5aba09ddac7bb51792ae3c580d23ee4f99e18c9ee9106fa657ae264", size = 405764, upload-time = "2026-07-31T07:29:34.143Z" }, + { url = "https://files.pythonhosted.org/packages/a7/3f/61179230c59b41affac54fe1bcbe85628179f4698f5a20bdc24b4032710a/bitarray-3.10.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:88494ff66e5c1133293c26924698ccd7aa921397ca0d48dd1e271ae81d2afe5c", size = 419274, upload-time = "2026-07-31T07:29:35.789Z" }, + { url = "https://files.pythonhosted.org/packages/a2/49/8933bc31ca6a019e22943beb70764ffa9a0dc7a3022be4e782d15ce0f391/bitarray-3.10.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8241925a21313a38d88fcec9f6f4a928ab24b9ee85af570025d955c76603552d", size = 388192, upload-time = "2026-07-31T07:29:37.355Z" }, + { url = "https://files.pythonhosted.org/packages/31/a3/13fe11474500c1bf875c597599e2ce1ccab405634c2c8fe8801d8362f0a9/bitarray-3.10.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d989d1bf51a5af1fc96fa06781a3966ba25fbe6ba522a018ac244be286172416", size = 382375, upload-time = "2026-07-31T07:29:38.954Z" }, + { url = "https://files.pythonhosted.org/packages/4a/8d/f927c1ddab3dad7978b484a115227fab17f3e59f3efea797ff07013d7875/bitarray-3.10.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:1291ac954db1c74ac834c40c6da712dd5773806ebb2926443c1cf6454f6aac70", size = 401798, upload-time = "2026-07-31T07:29:40.286Z" }, + { url = "https://files.pythonhosted.org/packages/e4/b0/692b04525ab435592fb2b4ecb10a86c44a71788107b3468f83e1bf4b62dc/bitarray-3.10.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:bc82f3205a04e8b992830b218660291f9acfd2890048049b949ff21797330fb2", size = 399891, upload-time = "2026-07-31T07:29:42.03Z" }, + { url = "https://files.pythonhosted.org/packages/09/13/ac3bc03b2a00492486e8b5f7d8bf9f9df59bdf8aa8ea6917b275a7a4d3da/bitarray-3.10.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:4e633e6f3f817ba2aa738ca06d87d0cd2379c39b776ade63997ab47a2c924f34", size = 384197, upload-time = "2026-07-31T07:29:43.566Z" }, + { url = "https://files.pythonhosted.org/packages/26/d5/7b41d1df09fa719dadf5cbd6061dda60a0b1f5af69eb4944fb923f33fa43/bitarray-3.10.0-cp314-cp314t-win32.whl", hash = "sha256:c2f8e715d1d41f0d66e60229030ab2e81e41560d71a5582544ec34f360bbf3e3", size = 158353, upload-time = "2026-07-31T07:29:44.91Z" }, + { url = "https://files.pythonhosted.org/packages/3c/75/c66d5fcee700677fef02436bd8cd7f896f86a875a154746165bd846b203f/bitarray-3.10.0-cp314-cp314t-win_amd64.whl", hash = "sha256:a5ef997342f959f1534ae8d3e84f51b8343d503b711a1f3bafc2373c15ad3658", size = 168236, upload-time = "2026-07-31T07:29:46.142Z" }, + { url = "https://files.pythonhosted.org/packages/67/35/343cea7eb00d73ba5656f6b1b8e3d995a580cb12616bfe37ea98fe0cc2a4/bitarray-3.10.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0b9ad9ef026a7b9021b54a19152027c64499320c36f64be7c584db760854283f", size = 164050, upload-time = "2026-07-31T07:29:47.435Z" }, ] [[package]] @@ -518,14 +518,14 @@ wheels = [ [[package]] name = "prompt-toolkit" -version = "3.0.52" +version = "3.0.53" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "wcwidth", marker = "python_full_version >= '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a1/96/06e01a7b38dce6fe1db213e061a4602dd6032a8a97ef6c1a862537732421/prompt_toolkit-3.0.52.tar.gz", hash = "sha256:28cde192929c8e7321de85de1ddbe736f1375148b02f2e17edd840042b1be855", size = 434198, upload-time = "2025-08-27T15:24:02.057Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/ea/39b988c938f75cb75d7045b5c69f8bfed47ee2152c8837fb403de29d6fb8/prompt_toolkit-3.0.53.tar.gz", hash = "sha256:9ec8a0ad96d5c56148b3f914aa79c1564c3fde5d2e6b876e7bc327e353cf8fa6", size = 435492, upload-time = "2026-07-26T20:56:14.758Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/84/03/0d3ce49e2505ae70cf43bc5bb3033955d2fc9f932163e84dc0779cc47f48/prompt_toolkit-3.0.52-py3-none-any.whl", hash = "sha256:9aac639a3bbd33284347de5ad8d68ecc044b91a762dc39b7c21095fcd6a19955", size = 391431, upload-time = "2025-08-27T15:23:59.498Z" }, + { url = "https://files.pythonhosted.org/packages/54/6f/84908cad2d6aa5144abcf7b42709fe4fdb459bc640ec7ac5786e7693dabc/prompt_toolkit-3.0.53-py3-none-any.whl", hash = "sha256:01c0891d7f9237d5e339f7d3e42cdae80b7534abb1c7c0e3352efba6231492f2", size = 392288, upload-time = "2026-07-26T20:56:12.512Z" }, ] [[package]]