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

📄 ospreauthrsp.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.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * ospreauthrsp.h - OSP reauthorisation response objects */#ifndef _OSPREAUTHRSP_H#define _OSPREAUTHRSP_H#include "osp.h"#include "ospxmlelem.h"#include "ospmsg.h"#include "ospcallid.h"#include "osptoken.h"#include "ospdest.h"#include "ospstatus.h"#include "osptnaudit.h"typedef struct{    OSPTTIME          ospmReauthRspTimestamp;    unsigned char    *ospmReauthRspMessageId;    unsigned char    *ospmReauthRspComponentId;    OSPTSTATUS       *ospmReauthRspStatus;    OSPTTRXID         ospmReauthRspTrxId;    OSPTDEST         *ospmReauthRspDest;    OSPTTNAUDIT      *ospmReauthRspTNAudit;}OSPTREAUTHRSP;/**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*//* * Note: all macros are also implemented as functions in ospreauthrsp.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. */#ifndef OSPC_DEBUG#define OSPPReauthRspSetTimestamp(ospvReauthRsp,ospvTime) \    (ospvReauthRsp)->ospmReauthRspTimestamp = (ospvTime)/* ComponentId */#define OSPPReauthRspHasComponentId(ospvReauthRsp) \    ((ospvReauthRsp)->ospmReauthRspComponentId != OSPC_OSNULL)#define OSPPReauthRspHasStatus(ospvReauthRsp) \    (ospvReauthRsp)?((ospvReauthRsp)->ospmReauthRspStatus != OSPC_OSNULL):OSPC_FALSE#define OSPPReauthRspGetStatus(ospvReauthRsp) ((ospvReauthRsp)->ospmReauthRspStatus)#define OSPPReauthRspSetTrxId(ospvReauthRsp, ospvNum) \    (ospvReauthRsp)->ospmReauthRspTrxId = ospvNum#define OSPPReauthRspHasDest(ospvReauthRsp) \    (ospvReauthRsp)?((ospvReauthRsp)->ospmReauthRspDest != OSPC_OSNULL):OSPC_FALSE#define OSPPReauthRspSetDest(ospvReauthRsp,ospvDest) \    (ospvReauthRsp)->ospmReauthRspDest = (ospvDest)#endif/**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/#ifdef __cplusplusextern "C"{#endif    OSPTREAUTHRSP   *OSPPReauthRspNew(void);    void            OSPPReauthRspDelete(OSPTREAUTHRSP **);    int             OSPPReauthRspFromElement(OSPTXMLELEM *, OSPTREAUTHRSP **);    void            OSPPReauthRspSetComponentId(OSPTREAUTHRSP *, unsigned char *);    unsigned        OSPPReauthRspHasMessageId(OSPTREAUTHRSP *);    void            OSPPReauthRspSetMessageId(OSPTREAUTHRSP *, unsigned char *);    void            OSPPReauthRspMessageIdFromElement(OSPTXMLELEM *, unsigned char **);    void            OSPPReauthRspComponentIdFromElement(OSPTXMLELEM *, unsigned char **);#ifdef OSPC_DEBUG    void            OSPPReauthRspSetTimestamp(OSPTREAUTHRSP *, OSPTTIME);    unsigned        OSPPReauthRspHasComponentId(OSPTREAUTHRSP *);    unsigned        OSPPReauthRspHasStatus(OSPTREAUTHRSP *ospvReauthRsp);    OSPTSTATUS      *OSPPReauthRspGetStatus(OSPTREAUTHRSP *);    void            OSPPReauthRspSetTrxId(OSPTREAUTHRSP *, OSPTTRXID);    unsigned        OSPPReauthRspHasDest(OSPTREAUTHRSP *ospvReauthRsp);    void            OSPPReauthRspSetDest(OSPTREAUTHRSP *, OSPTDEST *);#endif    OSPTTNAUDIT     *OSPPReauthRspGetTNAudit(OSPTREAUTHRSP *);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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