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

📄 hdlmgnt.h

📁 BlueTooth SDK Source Code! I hope that everybody like it.
💻 H
字号:
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Module Name:
    buff.h
Abstract:
	This file includes the definition of handle management functions.
Author:
    Gang He
Revision History:
	2000.2
---------------------------------------------------------------------------*/
#ifndef HDLMGNT_H
#define HDLMGNT_H

struct HandleStruct {
	HANDLE		handle_id;		/* Handle ID of the handle */
	UCHAR *		field_id;		/* field attached to the handle */
	UCHAR *		param;			/* Parameter attached to the handle */
	WORD		class_id;		/* Class of the handle */
	UCHAR		field_len;		/* Length of field_id */
	char		active;			/* status of the handle */
} ;

#define HDL_TIMEOUT	2

void InitHandle(void);
void DoneHandle(void);

#ifdef CONFIG_MEMORY_LEAK_DETECT
struct HandleStruct * DBG_CreateHandle(WORD class_id, UCHAR field_len, UCHAR* field_id, UCHAR* param, char* filename, int line);
#define CreateHandle(A,B,C,D) DBG_CreateHandle(A,B,C,D, __FILE__, __LINE__)
#else
struct HandleStruct * CreateHandle(WORD class_id, UCHAR field_len, UCHAR* field_id, UCHAR* param);
#endif

struct HandleStruct * FindHandle(WORD class_id, UCHAR field_len, unsigned char * field_id);
UCHAR FindHdl(struct HandleStruct * hdl);
char ActivateHandle(WORD class_id, UCHAR field_len, UCHAR* field_id, UCHAR par_len, UCHAR* param);
char ActHandle3(struct HandleStruct * hdl, UCHAR f);
UCHAR WaitHandle(struct HandleStruct * hdl);
UCHAR  DeleteHandle(struct HandleStruct * hdl);
UCHAR WaitHandle2(struct HandleStruct * hdl, DWORD msecond);
void ToExpire(DWORD arg);

#define ActHandle2(h)  ActHandle3(h, 0);

extern struct BtList * handle_list;

#endif

⌨️ 快捷键说明

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