git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26230 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2008-07-02 21:09:04 +00:00
parent 848c65ab3e
commit 5d7bf42195
+35 -35
View File
@@ -1,35 +1,35 @@
/* /*
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
* *
* All rights reserved. Distributed under the terms of the MIT License. * All rights reserved. Distributed under the terms of the MIT License.
* *
*/ */
#include <String.h> #include <String.h>
#include "BluetoothServer.h" #include "BluetoothServer.h"
#include "HCITransportAccessor.h" #include "HCITransportAccessor.h"
#include "Output.h" #include "Output.h"
HCITransportAccessor::HCITransportAccessor(BPath* path) : HCIDelegate(path) HCITransportAccessor::HCITransportAccessor(BPath* path) : HCIDelegate(path)
{ {
} }
status_t status_t
HCITransportAccessor::IssueCommand(raw_command rc, size_t size) HCITransportAccessor::IssueCommand(raw_command rc, size_t size)
{ {
if (GetID() < 0 || fFD < 0) if (GetID() < 0 || fFD < 0)
return B_ERROR; return B_ERROR;
printf("### Command going: len = %ld\n", size); printf("### Command going: len = %ld\n", size);
for (uint16 index = 0 ; index < size; index++ ) { for (uint16 index = 0 ; index < size; index++ ) {
printf("%x:",((uint8*)rc)[index]); printf("%x:",((uint8*)rc)[index]);
} }
printf("### \n"); printf("### \n");
return ioctl(fFD, ISSUE_BT_COMMAND, rc, size); return ioctl(fFD, ISSUE_BT_COMMAND, rc, size);
} }