summaryrefslogtreecommitdiffstats
path: root/fastboot/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'fastboot/usb.h')
-rw-r--r--fastboot/usb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/fastboot/usb.h b/fastboot/usb.h
index 4acf12d57..0fda41aae 100644
--- a/fastboot/usb.h
+++ b/fastboot/usb.h
@@ -29,7 +29,7 @@
#ifndef _USB_H_
#define _USB_H_
-#include "transport.h"
+struct usb_handle;
struct usb_ifc_info {
/* from device descriptor */
@@ -55,6 +55,10 @@ struct usb_ifc_info {
typedef int (*ifc_match_func)(usb_ifc_info *ifc);
-Transport* usb_open(ifc_match_func callback);
+usb_handle *usb_open(ifc_match_func callback);
+int usb_close(usb_handle *h);
+int usb_read(usb_handle *h, void *_data, int len);
+int usb_write(usb_handle *h, const void *_data, int len);
+int usb_wait_for_disconnect(usb_handle *h);
#endif