コード例 #1
0
ファイル: bt_handles.c プロジェクト: BitThunder/bitthunder
BT_HANDLE BT_CreateHandle(const BT_IF_HANDLE *pIf, BT_u32 ulHandleMemory, BT_ERROR *pError) {
	BT_HANDLE hHandle = BT_Calloc(ulHandleMemory);
	BT_AttachHandle(NULL, pIf, hHandle);
	return hHandle;
}
コード例 #2
0
ファイル: bt_handles.c プロジェクト: Merdosh/bitthunder
BT_HANDLE BT_CreateHandle(const BT_IF_HANDLE *pIf, BT_u32 ulHandleMemory, BT_ERROR *pError) {
	BT_HANDLE hHandle = BT_Calloc(ulHandleMemory);
	hHandle->h.pIf = pIf;
	hHandle->h.ulClaimedMemory = ulHandleMemory;
	return hHandle;
}