command.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 "Command.h"static asn_TYPE_member_t asn_MBR_Command_1[] = {	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.addReq),		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_AmmRequest,		0,	/* Defer constraints checking to the member type */		"addReq"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.moveReq),		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_AmmRequest,		0,	/* Defer constraints checking to the member type */		"moveReq"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.modReq),		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_AmmRequest,		0,	/* Defer constraints checking to the member type */		"modReq"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.subtractReq),		(ASN_TAG_CLASS_CONTEXT | (3 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_SubtractRequest,		0,	/* Defer constraints checking to the member type */		"subtractReq"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.auditCapRequest),		(ASN_TAG_CLASS_CONTEXT | (4 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_AuditRequest,		0,	/* Defer constraints checking to the member type */		"auditCapRequest"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.auditValueRequest),		(ASN_TAG_CLASS_CONTEXT | (5 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_AuditRequest,		0,	/* Defer constraints checking to the member type */		"auditValueRequest"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.notifyReq),		(ASN_TAG_CLASS_CONTEXT | (6 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_NotifyRequest,		0,	/* Defer constraints checking to the member type */		"notifyReq"		},	{ ATF_NOFLAGS, 0, offsetof(struct Command, choice.serviceChangeReq),		(ASN_TAG_CLASS_CONTEXT | (7 << 2)),		-1,	/* IMPLICIT tag at current level */		(void *)&asn_DEF_ServiceChangeRequest,		0,	/* Defer constraints checking to the member type */		"serviceChangeReq"		},};static asn_TYPE_tag2member_t asn_MAP_Command_1_tag2el[] = {    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* addReq at 181 */    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* moveReq at 182 */    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* modReq at 183 */    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* subtractReq at 185 */    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* auditCapRequest at 186 */    { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* auditValueRequest at 187 */    { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* notifyReq at 188 */    { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* serviceChangeReq at 189 */};static asn_CHOICE_specifics_t asn_SPC_Command_1_specs = {	sizeof(struct Command),	offsetof(struct Command, _asn_ctx),	offsetof(struct Command, present),	sizeof(((struct Command *)0)->present),	asn_MAP_Command_1_tag2el,	8,	/* Count of tags in the map */	1	/* Whether extensible */};asn_TYPE_descriptor_t asn_DEF_Command = {	"Command",	"Command",	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_Command_1,	8,	/* Elements count */	&asn_SPC_Command_1_specs	/* Additional specs */};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?