123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- /******************************************************************************
- ** types.h : Data types
- **
- ** Author :
- **
- ** $Id: $
- ******************************************************************************/
- #ifndef _ENGTYPES_H_
- #define _ENGTYPES_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef BYTE
- typedef unsigned char BYTE;
- #endif
- #ifndef UINT8
- typedef unsigned char UINT8;
- #endif
- #ifndef UINT16
- typedef unsigned short UINT16;
- #endif
- #ifndef UINT32
- typedef unsigned int UINT32;
- #endif
- #ifndef UINT64
- typedef unsigned long long UINT64;
- #endif
- #ifndef INT8
- typedef char INT8;
- #endif
- #ifndef INT16
- typedef short INT16;
- #endif
- #ifndef INT32
- typedef int INT32;
- #endif
- #ifndef INT64
- typedef long long INT64;
- #endif
- #ifndef BOOLEAN
- typedef unsigned char BOOLEAN;
- #endif
- #ifndef BOOL
- typedef unsigned char BOOL;
- #endif
- #ifndef bool
- #ifndef _CCOPTS_
- typedef unsigned char bool;
- #endif
- #endif
- #ifndef Boolean
- typedef unsigned char Boolean;
- #endif
- #ifndef TRUE
- #define TRUE (1)
- #endif
- #ifndef FALSE
- #define FALSE (0)
- #endif
- #ifndef true
- #define true (1)
- #endif
- #ifndef false
- #define false (0)
- #endif
- #define NULL ((void *)0)
- enum {
- /* common status values */
- SP_SUCCESS = 0, /*!< successful outcome */
- SP_ERR_FAILURE, /*!< operation failed */
- SP_ERR_INVALID_HANDLE, /*!< invalid handle */
- SP_ERR_INVALID_ID, /*!< invalid identifier */
- SP_ERR_INVALID_PARAM, /*!< invalid parameter */
- SP_ERR_INVALID_OP, /*!< requested operation is invalid */
- SP_ERR_MEMORY_ALLOC, /*!< problem allocating memory */
- SP_ERR_MEMORY_SIZE, /*!< problem with the size of memory */
- SP_ERR_RESOURCE_UNAVAILABLE,
- SP_ERR_TIMEOUT, /*!< timeout */
- };
- enum{
- ERR_CMTNOTFOUND = 1,
- ERR_SETCHPATCHANGE = 2,
- ERR_TUNERNOTLOCKED = 3,
- ERR_SETCHDEMUXPMTFAIL = 4
- };
- enum
- {
- S_OK,
- S_NOTHANDLE,
- E_FAIL = -1,
- E_OPENFAIL = -2
- };
- #ifdef __cplusplus
- }
- #endif
- #endif //_ENGTYPES_H_
|