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

📄 ospdatatypes.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.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * ospdatatypes.h - Structures and defines for OSP api. */#ifndef _OSP_DATATYPES_H#define _OSP_DATATYPES_H#include "osposincl.h"#include "osplist.h"#include "osptoken.h"/* NOTE: ospcallid.h is included at the end of this file. *//*-------------------------------------------*//* common data type typedefs                 *//*-------------------------------------------*/               #ifndef _WIN32#ifdef __alpha__typedef unsigned long       OSPTUINT64;#elsetypedef unsigned long long  OSPTUINT64;#endif /* __alpha__*/#ifdef _POSIX_THREADS/* POSIX thread typedefs */typedef pthread_t           OSPTTHREADID;typedef pthread_attr_t      OSPTTHRATTR;typedef pthread_cond_t      OSPTCONDVAR;typedef pthread_mutex_t     OSPTMUTEX;#else/* SVR4 thread typedefs */typedef thread_t            OSPTTHREADID;typedef long                OSPTTHRATTR;typedef cond_t              OSPTCONDVAR;typedef mutex_t             OSPTMUTEX;#endif /* _POSIX_THREADS */typedef void *              OSPTTHREADRETURN;typedef ssize_t             OSPTSSIZE_T;typedef int                 OSPTSOCKET;#else /* _WIN32 */typedef unsigned            OSPTSSIZE_T;typedef void                OSPTTHREADRETURN;typedef unsigned __int64    OSPTUINT64;typedef unsigned long       OSPTTHREADID;typedef unsigned            OSPTTHRATTR;typedef HANDLE              OSPTMUTEX;typedef struct{    HANDLE     Semaphore;    int        SemaCount;    unsigned   WaitLimit;} OSPTCONDVAR;typedef SOCKET              OSPTSOCKET;#endif /* _WIN32 */typedef long            OSPTIPADDR;typedef unsigned char   OSPTBOOL;#define OSPC_OSNULL     NULL#define OSPTTIME        time_t#define OSPC_TRUE       1#define OSPC_FALSE      0typedef int OSPTPROVHANDLE;typedef int OSPTTRANHANDLE;/* wbr: rename min to osp_min() to avoid conflicts in limits.h *//* #ifndef min */#define osp_min(a,b) (a < b ? a : b) /* #endif *//*-------------------------------------------*//* Transaction Id typedef                    *//*-------------------------------------------*/ typedef OSPTUINT64 OSPTTRXID;/*-------------------------------------------*//* transaction id tracking typedef           *//*-------------------------------------------*/ typedef struct _OSPTTXID{    OSPTUINT64          TransId;    struct _OSPTIDTRACK *Next;} OSPTTXID;/*-------------------------------------------*//* call delay typedef                        *//*-------------------------------------------*/ typedef struct _OSPTDELAY{    unsigned    HasValue;    unsigned    NumberOfSamples;    unsigned    Minimum;    unsigned    Mean;    float       Variance;    double      SumOfSampSquares;} OSPTDELAY;/*-------------------------------------------*//* collection index typedef                  *//*-------------------------------------------*/ typedef struct  _OSPTCOLLECTIONINDEX{    int Index;} OSPTCOLLECTIONINDEX;/*-------------------------------------------*//* Security - Private Key                    *//*-------------------------------------------*/typedef struct _OSPTPRIVATEKEY{    unsigned char *PrivateKeyData;    unsigned PrivateKeyLength;} OSPTPRIVATEKEY;/*-------------------------------------------*//* Misc Lock Modes                           *//*-------------------------------------------*/typedef enum _OSPELOCKMODE{    OSPE_LOCK_WRITE,    OSPE_LOCK_READ,    OSPE_LOCK_TRY} OSPELOCKMODE;/*-------------------------------------------*//* Enumerated Data Types for Auditing        *//*-------------------------------------------*/typedef enum {    OSPC_AUDIT_LOWER_BOUND=10,    OSPC_AUDIT_INIT,    OSPC_AUDIT_FLUSH_BUFFER,    OSPC_AUDIT_OK,    OSPC_AUDIT_UPPER_BOUND} OSPE_AUDIT_STATE;#include "ospcallid.h"#endif

⌨️ 快捷键说明

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