📄 ospmsgelem.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. * *******#########################################################################*#########################################################################*#########################################################################*//* * ospmsgelem.h - Definitions for OSP message elements. */#ifndef _OSPMSGELEM_H#define _OSPMSGELEM_H#include "ospmsgpart.h"#include "ospmsgdesc.h"/* the elements defined by the Open Settlement Protocol */typedef enum{ ospeElemUnknown = OSPC_MSGPARTUNKNOWN, ospeElemAmount, ospeElemAuthCnf, ospeElemAuthInd, ospeElemAuthReq, ospeElemAuthRsp, ospeElemAuthRzp, ospeElemAuthURL, ospeElemCallId, ospeElemCode, ospeElemCurrency, ospeElemDesc, ospeElemDest, ospeElemDestAlt, ospeElemDestInfo, ospeElemDestSigAddr, ospeElemEndPoint, ospeElemIncrement, ospeElemMaxDest, ospeElemMessage, ospeElemPricingCnf, ospeElemPricingInd, ospeElemReauthReq, ospeElemReauthRsp, ospeElemRole, ospeElemService, ospeElemSrcAlt, ospeElemSrcInfo, ospeElemSrcSigAddr, ospeElemStatus, ospeElemTimestamp, ospeElemToken, ospeElemTokenInfo, ospeElemTransId, ospeElemUnit, ospeElemUsageCnf, ospeElemUsageDetail, ospeElemUsageInd, ospeElemValidAfter, ospeElemValidUntil, ospeElemTNCustId, ospeElemTNDelayLimit, ospeElemTNDelayPref, ospeElemTNDeviceId, ospeElemTNFailReason, ospeElemTNFraction, ospeElemTNLossRcvd, ospeElemTNLossSent, ospeElemTNMean, ospeElemTNMinimum, ospeElemTNOneWayDelay, ospeElemTNPackets, ospeElemTNRoundTripDelay, ospeElemTNSamples, ospeElemTNStatistics, ospeElemTNVariance, ospeElemTNAudit, ospeElemTNAuditURL, ospeElemTNAuditState, ospeElemTNAuditTimeLimit, ospeElemTNAuditMaxMessages, ospeElemCSAuditTrigger}OSPTMSGELEMPART;/**//*-----------------------------------------------------------------------* * externally declared global variables *-----------------------------------------------------------------------*/extern const OSPTMSGDESC OSPVElemDescs[];extern const unsigned OSPVNumElemDesc;/**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*//* * Note: all macros are also implemented as functions in ospmsgelem.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 OSPPMsgGetElemName(ospvPart) \ OSPPMsgDescGetName((OSPTMSGPART)(ospvPart), OSPVElemDescs, \ OSPVNumElemDesc)#define OSPPMsgGetElemPart(ospvName) \ ((OSPTMSGELEMPART) OSPPMsgDescGetPart((ospvName), OSPVElemDescs, \ OSPVNumElemDesc))#endif /* OSPC_DEBUG *//**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/#ifdef OSPC_DEBUGconst char *OSPPMsgGetElemName(OSPTMSGELEMPART);OSPTMSGELEMPART OSPPMsgGetElemPart(const char *);#endif /* OSPC_DEBUG */#endif /* _OSPMSGELEM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -