#ifndef _HCIDELEGATE_H_
#define _HCIDELEGATE_H_
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <Path.h>
#include <bluetooth/HCI/btHCI_transport.h>
typedef void* raw_command;
class HCIDelegate {
public:
HCIDelegate(BPath* path)
{
fIdentifier = -1;
}
hci_id Id(void) const
{
return fIdentifier;
}
virtual ~HCIDelegate()
{
}
virtual status_t IssueCommand(raw_command rc, size_t size)=0;
virtual status_t Launch()=0;
void FreeWindow(uint8 slots)
{
}
status_t QueueCommand(raw_command rc, size_t size)
{
return IssueCommand(rc, size);
}
protected:
hci_id fIdentifier;
private:
};
#endif