Prepare cancelling transfers from the stack side. The actual handling will happen in the HCD modules where transfer management has to be done anyway.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21043 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2007-05-06 15:22:12 +00:00
parent a49633c222
commit 3dc77d1dc9
3 changed files with 10 additions and 2 deletions
@@ -268,6 +268,14 @@ BusManager::SubmitTransfer(Transfer *transfer)
}
status_t
BusManager::CancelQueuedTransfers(Pipe *pipe)
{
// virtual function to be overridden
return B_ERROR;
}
status_t
BusManager::NotifyPipeChange(Pipe *pipe, usb_change change)
{
+1 -2
View File
@@ -41,8 +41,7 @@ Pipe::SubmitTransfer(Transfer *transfer)
status_t
Pipe::CancelQueuedTransfers()
{
TRACE_ERROR(("USB Pipe: cancelling transfers is not implemented!\n"));
return B_ERROR;
return GetBusManager()->CancelQueuedTransfers(this);
}
@@ -171,6 +171,7 @@ virtual status_t Start();
virtual status_t Stop();
virtual status_t SubmitTransfer(Transfer *transfer);
virtual status_t CancelQueuedTransfers(Pipe *pipe);
virtual status_t NotifyPipeChange(Pipe *pipe,
usb_change change);