⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospcallid.h

📁 mgcp协议源代码。支持多种编码:g711
💻 H
字号:
/**########################################################################*########################################################################*########################################################################*                                                               *   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.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * ospcallid.h - OSP call identifier objects */#ifndef _OSPCALLID_H#define _OSPCALLID_H#include "osp.h"#include "osplist.h"#include "ospxmlelem.h"/* max size of a call ID (bytes) */#define OSPC_CALLID_MAXSIZE        256/* the basic call identifier structure */typedef struct{    OSPTLISTLINK   ospmCallIdLink;    unsigned       ospmCallIdLen;    unsigned char *ospmCallIdVal;}OSPTCALLID;/**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*/#ifndef OSPC_DEBUG/* * Note: all macros are also implemented as functions in ospcallid.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 OSPPCallIdGetSize(ospvCallId)  (ospvCallId)?((ospvCallId)->ospmCallIdLen):0#define OSPPCallIdGetValue(ospvCallId) (ospvCallId)?((ospvCallId)->ospmCallIdVal):OSPC_OSNULL#endif /* OSPC_DEBUG *//**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/#ifdef __cplusplusextern "C"{#endif    OSPTCALLID    *OSPPCallIdNew(unsigned, const unsigned char *);    void           OSPPCallIdDelete(OSPTCALLID **);    unsigned       OSPPCallIdFromElement(OSPTXMLELEM *, OSPTCALLID  **);    unsigned       OSPPCallIdToElement(OSPTCALLID *, OSPTXMLELEM **, OSPTBOOL);#ifdef OSPC_DEBUG    unsigned       OSPPCallIdGetSize(OSPTCALLID *);    unsigned char *OSPPCallIdGetValue(OSPTCALLID *);#endif /* OSPC_DEBUG */#ifdef __cplusplus}#endif#endif /* _OSPCALLID_H */

⌨️ 快捷键说明

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