📄 signal.c
字号:
/* * Generated by asn1c-0.9.16 (http://lionet.info/asn1c) * From ASN.1 module "MEDIA-GATEWAY-CONTROL" * found in "h248_2.asn" */#include <asn_internal.h>#include "Signal.h"static intmemb_duration_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_consume_bytes_f *app_errlog, void *app_key) { const INTEGER_t *st = (const INTEGER_t *)sptr; long value; if(!sptr) { _ASN_ERRLOG(app_errlog, app_key, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } if(asn_INTEGER2long(st, &value)) { _ASN_ERRLOG(app_errlog, app_key, "%s: value too large (%s:%d)", td->name, __FILE__, __LINE__); return -1; } if((value >= 0 && value <= 65535)) { /* Constraint check succeeded */ return 0; } else { _ASN_ERRLOG(app_errlog, app_key, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; }}static asn_TYPE_member_t asn_MBR_sigParList_8[] = { { ATF_NOFLAGS, 0, 0, (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, (void *)&asn_DEF_SigParameter, 0, /* Defer constraints checking to the member type */ "" },};static ber_tlv_tag_t asn_DEF_sigParList_8_tags[] = { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};static asn_SET_OF_specifics_t asn_SPC_sigParList_8_specs = { sizeof(struct sigParList), offsetof(struct sigParList, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */};static /* Use -fall-defs-global to expose */asn_TYPE_descriptor_t asn_DEF_sigParList_8 = { "sigParList", "sigParList", SEQUENCE_OF_free, SEQUENCE_OF_print, SEQUENCE_OF_constraint, SEQUENCE_OF_decode_ber, SEQUENCE_OF_encode_der, SEQUENCE_OF_decode_xer, SEQUENCE_OF_encode_xer, 0, /* Use generic outmost tag fetcher */ asn_DEF_sigParList_8_tags, sizeof(asn_DEF_sigParList_8_tags) /sizeof(asn_DEF_sigParList_8_tags[0]) - 1, /* 1 */ asn_DEF_sigParList_8_tags, /* Same as above */ sizeof(asn_DEF_sigParList_8_tags) /sizeof(asn_DEF_sigParList_8_tags[0]), /* 2 */ asn_MBR_sigParList_8, 1, /* Single element */ &asn_SPC_sigParList_8_specs /* Additional specs */};static asn_TYPE_member_t asn_MBR_Signal_1[] = { { ATF_NOFLAGS, 0, offsetof(struct Signal, signalName), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_SignalName, 0, /* Defer constraints checking to the member type */ "signalName" }, { ATF_POINTER, 5, offsetof(struct Signal, streamID), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_StreamID, 0, /* Defer constraints checking to the member type */ "streamID" }, { ATF_POINTER, 4, offsetof(struct Signal, sigType), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_SignalType, 0, /* Defer constraints checking to the member type */ "sigType" }, { ATF_POINTER, 3, offsetof(struct Signal, duration), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_INTEGER, memb_duration_1_constraint, "duration" }, { ATF_POINTER, 2, offsetof(struct Signal, notifyCompletion), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_NotifyCompletion, 0, /* Defer constraints checking to the member type */ "notifyCompletion" }, { ATF_POINTER, 1, offsetof(struct Signal, keepActive), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_BOOLEAN, 0, /* Defer constraints checking to the member type */ "keepActive" }, { ATF_NOFLAGS, 0, offsetof(struct Signal, sigParList), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_sigParList_8, 0, /* Defer constraints checking to the member type */ "sigParList" },};static ber_tlv_tag_t asn_DEF_Signal_1_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))};static asn_TYPE_tag2member_t asn_MAP_Signal_1_tag2el[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* signalName at 759 */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* streamID at 760 */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sigType at 761 */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* duration at 762 */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* notifyCompletion at 763 */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* keepActive at 764 */ { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* sigParList at 765 */};static asn_SEQUENCE_specifics_t asn_SPC_Signal_1_specs = { sizeof(struct Signal), offsetof(struct Signal, _asn_ctx), asn_MAP_Signal_1_tag2el, 7, /* Count of tags in the map */ 6, /* Start extensions */ 8 /* Stop extensions */};asn_TYPE_descriptor_t asn_DEF_Signal = { "Signal", "Signal", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, SEQUENCE_decode_ber, SEQUENCE_encode_der, SEQUENCE_decode_xer, SEQUENCE_encode_xer, 0, /* Use generic outmost tag fetcher */ asn_DEF_Signal_1_tags, sizeof(asn_DEF_Signal_1_tags) /sizeof(asn_DEF_Signal_1_tags[0]), /* 1 */ asn_DEF_Signal_1_tags, /* Same as above */ sizeof(asn_DEF_Signal_1_tags) /sizeof(asn_DEF_Signal_1_tags[0]), /* 1 */ asn_MBR_Signal_1, 7, /* Elements count */ &asn_SPC_Signal_1_specs /* Additional specs */};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -