Add HCI command for retieving Local Device Class
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28808 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
||||||
* Copyright 2008 Mika Lindqvist
|
* Copyright 2008 Mika Lindqvist
|
||||||
*
|
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _COMMAND_MANAGER_H
|
#ifndef _COMMAND_MANAGER_H
|
||||||
#define _COMMAND_MANAGER_H
|
#define _COMMAND_MANAGER_H
|
||||||
|
|
||||||
@@ -16,6 +13,7 @@ void* buildReset(size_t* outsize);
|
|||||||
void* buildReadLocalName(size_t* outsize);
|
void* buildReadLocalName(size_t* outsize);
|
||||||
void* buildWriteScan(uint8 scanmode, size_t* outsize);
|
void* buildWriteScan(uint8 scanmode, size_t* outsize);
|
||||||
void* buildAuthEnable(uint8 auth, size_t* outsize);
|
void* buildAuthEnable(uint8 auth, size_t* outsize);
|
||||||
|
void* buildReadClassOfDevice(size_t* outsize);
|
||||||
|
|
||||||
/* LINK CONTROL */
|
/* LINK CONTROL */
|
||||||
void* buildRemoteNameRequest(bdaddr_t bdaddr,uint8 pscan_rep_mode, uint16 clock_offset, size_t* outsize);
|
void* buildRemoteNameRequest(bdaddr_t bdaddr,uint8 pscan_rep_mode, uint16 clock_offset, size_t* outsize);
|
||||||
|
|||||||
@@ -66,6 +66,12 @@ void* buildReadLocalName(size_t* outsize)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void* buildReadClassOfDevice(size_t* outsize)
|
||||||
|
{
|
||||||
|
return buildCommand(OGF_CONTROL_BASEBAND, OCF_READ_CLASS_OF_DEV, NULL, 0, outsize);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void* buildWriteScan(uint8 scanmode, size_t* outsize)
|
void* buildWriteScan(uint8 scanmode, size_t* outsize)
|
||||||
{
|
{
|
||||||
struct hci_write_scan_enable* param;
|
struct hci_write_scan_enable* param;
|
||||||
|
|||||||
Reference in New Issue
Block a user