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

📄 au.h

📁 map协议源代码
💻 H
字号:
/**********************************************************
 * Copyright(c) 2006 Beijing Xinwei Telecom Technology Inc.
 * 
 *
 *
 *
 *
 * Author : xingzhou.xu
 * Date   : 05/11/2006
 **********************************************************/
#ifndef AU_H
#define AU_H
/*-----------------------------Macro Define -------------------------------*/

/* defines */

#define AULOGERROR(errCls, errCode, errVal, errDesc) \
    SLogError(ENTAU, AU_INST_0, SFndProcId(), __FILE__, __LINE__, \
              errCls, errCode, errVal, errDesc) 

#define IS_VER_EQUAL(pSwtch,ver) \
            ( ( (pSwtch == LMA_VER1) && (IS_EQUAL_VER1(ver))) ||\
              ( (pSwtch == LMA_VER2) && (IS_EQUAL_VER2(ver))) ||\
              ( (pSwtch == LMA_VER2P) && (IS_EQUAL_VER2P(ver))) ||\
              ( (pSwtch == LMA_VER4) && (IS_EQUAL_VER4(ver))))


/* Print Buffer size */
#define MA_PRNTBUF_SIZE		128

/* Define for Dialog ID */
#define MIN_AU_DLG_ID		1
#define MAX_AU_DLG_ID		10000
#define MAX_DLG_NUM			10000
#define AU_ID_NULL			0
#define AU_HASH_SIZE			64

#define AU_REG				0
#define AU_POOL			0
#define MA_INST_0			0
#define MA_INST_1			1
#define AU_INST_0			0
#define AU_INST_1			1
#define SM_INST_0			0
#define SM_INST_1			1

#define AU_ACC_SAP_0        0
#define AU_ACC_SAP_1        1

/* Define for Tmr */
#define AU_GUARD_TMR_VAL	5

/* Define for AU PST */
#define AU_SEL_LC				0
#define AU_SEL_TC				1

#define CLI_INST                   0

/* Define for command line PST */
#define CLI_SEL_LC               0
#define CLI_SEL_TC               1

/* Define for AU User */
#define UU_INST 0

/* Define for AU timer event */
#define AU_GAURD_TMR		0
#define AU_MAX_TMRS             5        /* Count of timers */

/* Define for Dialogure State */
#define AU_DLG_IDLE			0
#define AU_WF_DLG_CFM		1
#define AU_WF_OPEN_CFM		2
#define AU_WF_OPR_CFM		3
#define AU_WF_CLOSE_IND		4
#define AU_WF_OPR_IND		5
#define AU_WF_DELIM_IND		6

#define MA_INTVLRINFO_RET_AC     15   /* Inter Vlr Info Retrieval   */

#ifdef WIN32
#define OS_SLEEP(nsec) Sleep(nsec)
#endif

#ifdef __CYGWIN__
/* In CYGWIN, usleep is used */
#define MICRO_SLEEP(microsec)   usleep(microsec)

#else
#define MICRO_SLEEP(microsec)   do { \
        { \
            struct timespec req; \
            struct timespec rem; \
            req.tv_sec = microsec/1000000; \
            req.tv_nsec = (microsec%1000000)*1000; \
            nanosleep(&req, &rem); \
        } \
    } while(0)
#endif

/* AU EVENT DEFINE */
enum EVENT
{
	AU_EVTOPENREQ = 200,
	AU_EVTSNDOPR, 			/* send operation */
	AU_EVTCLSDLG,   		/* close dialog */
};

#define cmCpy(s, d, c) cmMemcpy((U8 *)d, (CONSTANT U8 *)s, c)

#ifndef AUACC_PRINT
extern int auAccTraceFlag;
#define AUACC_PRINT if(auAccTraceFlag) printf
#endif
/*****************************************************/

/* global variables declaration */


#endif /* AU_H */

⌨️ 快捷键说明

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