ospmsgattr.h
来自「mgcp协议源代码。支持多种编码:g711」· C头文件 代码 · 共 94 行
H
94 行
/**########################################################################*########################################################################*########################################################################* * COPYRIGHT (c) 1998, 1999 by TransNexus, LLC * * This software contains proprietary and confidential information * of TransNexus, LLC. Except as may be set forth in the license * agreement under which this software is supplied, use, disclosure, * or reproduction is prohibited without the prior, express, written* consent of TransNexus, LLC. * *******#########################################################################*#########################################################################*#########################################################################*//* * ospmsgattr.h - Definitions for OSP message attributes. */#ifndef _OSPMSGATTR_H#define _OSPMSGATTR_H#include "ospmsgdesc.h"#include "ospmsgpart.h"/* attributes defined by the Open Settlement Protocol */typedef enum{ ospeAttrUnknown = OSPC_MSGPARTUNKNOWN, ospeAttrComponentId, ospeAttrCritical, ospeAttrEncoding, ospeAttrMessageId, ospeAttrType, ospeAttrVersion, ospeAttrRandom}OSPTMSGATTRPART;/**//*-----------------------------------------------------------------------* * externally declared global variables *-----------------------------------------------------------------------*/extern const OSPTMSGDESC OSPVAttrDescs[];extern const unsigned OSPVNumAttrDesc;/**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*/#ifndef OSPC_DEBUG/* * Note: all macros are also implemented as functions in ospmsgattr.c. * For implementation details, see the comments in that file. To replace * a macro with a true function, simply comment out the macro definition * below. */#define OSPPMsgGetAttrName(ospvPart) \ OSPPMsgDescGetName((OSPTMSGPART)(ospvPart), OSPVAttrDescs, \ OSPVNumAttrDesc)#define OSPPMsgGetAttrPart(ospvName) \ ((OSPTMSGATTRPART) OSPPMsgDescGetPart((ospvName), OSPVAttrDescs, \ OSPVNumAttrDesc))#endif /* OSPC_DEBUG *//**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/#ifdef OSPC_DEBUGconst char *OSPPMsgGetAttrName(OSPTMSGATTRPART);OSPTMSGATTRPART OSPPMsgGetAttrPart(const char *);#endif /* OSPC_DEBUG */#endif /* _OSPMSGATTR_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?