ospcallid.h
来自「mgcp协议源代码。支持多种编码:g711」· C头文件 代码 · 共 97 行
H
97 行
/**########################################################################*########################################################################*########################################################################* * 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 + =
减小字号Ctrl + -
显示快捷键?