diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-10 20:55:24 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-10 20:55:24 +0000 |
| commit | 745133014e6161c4d8c7a7eab137b7d9b1174c55 (patch) | |
| tree | 0731cf8a30b17dae164e4240e48b28782cdf5a06 /firmware/usbstack/usb_storage.h | |
| parent | 9d32b6aa1776db210d5c01589704a65238240df2 (diff) | |
| download | rockbox-745133014e6161c4d8c7a7eab137b7d9b1174c55.zip rockbox-745133014e6161c4d8c7a7eab137b7d9b1174c55.tar.gz rockbox-745133014e6161c4d8c7a7eab137b7d9b1174c55.tar.bz2 rockbox-745133014e6161c4d8c7a7eab137b7d9b1174c55.tar.xz | |
make the usb storage driver handle hotswap correctly, and exit the usb screen once all drives are "ejected" (either as a command from the OS or physically)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16617 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.h')
| -rw-r--r-- | firmware/usbstack/usb_storage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/usbstack/usb_storage.h b/firmware/usbstack/usb_storage.h index 34bc014..40f8ed9 100644 --- a/firmware/usbstack/usb_storage.h +++ b/firmware/usbstack/usb_storage.h @@ -27,6 +27,11 @@ void usb_storage_init_connection(int interface,int endpoint); void usb_storage_init(void); void usb_storage_transfer_complete(bool in,int state,int length); bool usb_storage_control_request(struct usb_ctrlrequest* req); +#ifdef HAVE_HOTSWAP +void usb_storage_notify_hotswap(int volume,bool inserted); +#endif + +void usb_storage_reconnect(void); #endif |