Make the backends propagate errors
[fw/stlink] / src / stlink-usb.h
index 58b60e430694e146ae7827c70e01bfe31aeb38a3..938c07bcbf985a78e747fc98fb3c0c299368fcda 100644 (file)
@@ -21,8 +21,6 @@ extern "C" {
     struct stlink_libusb {
         libusb_context* libusb_ctx;
         libusb_device_handle* usb_handle;
-        struct libusb_transfer* req_trans;
-        struct libusb_transfer* rep_trans;
         unsigned int ep_req;
         unsigned int ep_rep;
         int protocoll;
@@ -30,7 +28,7 @@ extern "C" {
         unsigned int cmd_len;
     };
 
-    stlink_t* stlink_open_usb(const int verbose, int reset);
+    stlink_t* stlink_open_usb(const int verbose, int reset, char *p_usb_iserial);
 
 
 #ifdef __cplusplus