ammdescriptor.c
来自「H.248协议编解码协议栈」· C语言 代码 · 共 108 行
C
108 行
/* * 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 "AmmDescriptor.h"static asn_TYPE_member_t asn_MBR_AmmDescriptor_1[] = { { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.mediaDescriptor), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_MediaDescriptor, 0, /* Defer constraints checking to the member type */ "mediaDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.modemDescriptor), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_ModemDescriptor, 0, /* Defer constraints checking to the member type */ "modemDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.muxDescriptor), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_MuxDescriptor, 0, /* Defer constraints checking to the member type */ "muxDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.eventsDescriptor), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_EventsDescriptor, 0, /* Defer constraints checking to the member type */ "eventsDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.eventBufferDescriptor), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_EventBufferDescriptor, 0, /* Defer constraints checking to the member type */ "eventBufferDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.signalsDescriptor), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_SignalsDescriptor, 0, /* Defer constraints checking to the member type */ "signalsDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.digitMapDescriptor), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_DigitMapDescriptor, 0, /* Defer constraints checking to the member type */ "digitMapDescriptor" }, { ATF_NOFLAGS, 0, offsetof(struct AmmDescriptor, choice.auditDescriptor), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ (void *)&asn_DEF_AuditDescriptor, 0, /* Defer constraints checking to the member type */ "auditDescriptor" },};static asn_TYPE_tag2member_t asn_MAP_AmmDescriptor_1_tag2el[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mediaDescriptor at 233 */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* modemDescriptor at 234 */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* muxDescriptor at 235 */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* eventsDescriptor at 236 */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eventBufferDescriptor at 237 */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* signalsDescriptor at 238 */ { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* digitMapDescriptor at 239 */ { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* auditDescriptor at 240 */};static asn_CHOICE_specifics_t asn_SPC_AmmDescriptor_1_specs = { sizeof(struct AmmDescriptor), offsetof(struct AmmDescriptor, _asn_ctx), offsetof(struct AmmDescriptor, present), sizeof(((struct AmmDescriptor *)0)->present), asn_MAP_AmmDescriptor_1_tag2el, 8, /* Count of tags in the map */ 1 /* Whether extensible */};asn_TYPE_descriptor_t asn_DEF_AmmDescriptor = { "AmmDescriptor", "AmmDescriptor", CHOICE_free, CHOICE_print, CHOICE_constraint, CHOICE_decode_ber, CHOICE_encode_der, CHOICE_decode_xer, CHOICE_encode_xer, CHOICE_outmost_tag, 0, /* No effective tags (pointer) */ 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ asn_MBR_AmmDescriptor_1, 8, /* Elements count */ &asn_SPC_AmmDescriptor_1_specs /* Additional specs */};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?