kb_dc_pool.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- #define STATIC_POOL_ALLOC
- #define DEFAULT_POOL_NUM 5
- #define MIN_POOL_NUM 10
- #define MAX_POOL_NUM 100
- #define SECTION_LEN 4096
- #ifdef STATIC_POOL_ALLOC
- #define SECTION_POOL_NUM 30
- #endif
- typedef struct _SECTION_POOL_DC
- {
- unsigned char used;
- unsigned char data_ok;
- } SECTION_POOL_DC;
- extern void Section_Pool_Reset(void);
- extern void Section_Pool_Init(void);
- #ifndef STATIC_POOL_ALLOC
- extern void Section_Pool_Rebuild(void);
- #endif
- extern void FreeSectionBuffer(void);
- extern void Section_Pool_Free(void);
- extern void DCGetSectionCallback(unsigned long nChannelID, unsigned char *pData, unsigned long nDataLength);
- extern unsigned char* Filter_GetSection(int *section_size);
- extern int DCSectionValid(void);
- extern int KB_DC_GetSection( unsigned char* pbBuf, unsigned short* pwLen );