📄 ospmsg.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. * *******#########################################################################*#########################################################################*#########################################################################*//* * ospmsg.h - Main OSP message definitions */#ifndef _OSPMSG_H#define _OSPMSG_H#include "osp.h"#include "ospostime.h"#include "osplist.h"typedef enum { OSPC_MSG_LOWER_BOUND=10, OSPC_MSG_AREQ, OSPC_MSG_ARESP, OSPC_MSG_AREZP, OSPC_MSG_AIND, OSPC_MSG_ACNF, OSPC_MSG_UIND, OSPC_MSG_UCNF, OSPC_MSG_REAREQ, OSPC_MSG_REARESP, OSPC_MSG_TOKINFO, OSPC_MSG_UPPER_BOUND} OSPE_MSG_DATATYPES;typedef enum { OSPC_UNDEFINED_ROLE=0, /* Not a known role */ OSPC_DESTINATION, OSPC_SOURCE, OSPC_OTHER} OSPE_MSG_ROLETYPES;/* general constants */#define OSPC_E164NUMSIZE 132 /* max digits in E.164 number */#define OSPC_SIGNALADDRSIZE 262 /* max characters in [name]:port */#define OSPC_URLSIZE 512 /* max characters in URL */#define OSPC_ROLESTRSZ 12 /* max characters in role string *//**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*/#ifndef OSPC_DEBUG/* * Note: all macros are also implemented as functions in ospmsg.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 OSPPMsgTimeFromElement(ospvElem, ospvTime) \ OSPPOSTimeStringToCal(OSPPXMLElemGetValue(ospvElem), (ospvTime))#endif/**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/#ifdef __cplusplusextern "C" {#endif unsigned OSPPMsgBinFromElement(OSPTXMLELEM *, unsigned *, unsigned char *);unsigned OSPPMsgBinToElement(unsigned, unsigned char *, const unsigned char *, OSPTXMLELEM **, OSPTBOOL);unsigned OSPPMsgNumFromElement(OSPTXMLELEM *, unsigned long *);unsigned OSPPMsgNumToElement(unsigned long, const unsigned char *, OSPTXMLELEM **);int OSPPMsgFloatFromElement(OSPTXMLELEM *, float *);int OSPPMsgFloatToElement(float, const unsigned char *, OSPTXMLELEM **);unsigned OSPPMsgCodeFromElement(OSPTXMLELEM *, unsigned long *);unsigned OSPPMsgCodeToElement(unsigned long, const unsigned char *, OSPTXMLELEM **);unsigned OSPPMsgTXToElement(OSPTTRXID, const unsigned char *, OSPTXMLELEM **);unsigned OSPPMsgTXFromElement(OSPTXMLELEM *, OSPTTRXID *);unsigned OSPPMsgTimeToElement(OSPTTIME, const unsigned char *, OSPTXMLELEM **);unsigned OSPPMsgElemIsCritical(OSPTXMLELEM *);unsigned OSPPMsgRoleToElement(unsigned, const unsigned char *, OSPTXMLELEM **);int OSPPOSRoleValToString(unsigned, char *ospvRolestr);int OSPPBase64DecodeWrap(const unsigned char *, unsigned *, unsigned char *);#ifdef OSPC_DEBUGunsigned OSPPMsgTimeFromElement(OSPTXMLELEM *, OSPTTIME *);#endif#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -