Advertisement
Guest User

aur aasdk-git

a guest
Apr 7th, 2021
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.44 KB | None | 0 0
  1. diff --git a/include/f1x/aasdk/USB/IUSBWrapper.hpp b/include/f1x/aasdk/USB/IUSBWrapper.hpp
  2. index c941b0f..8c1e75a 100644
  3. --- a/include/f1x/aasdk/USB/IUSBWrapper.hpp
  4. +++ b/include/f1x/aasdk/USB/IUSBWrapper.hpp
  5. @@ -73,7 +73,7 @@ public:
  6.          uint16_t wLength) = 0;
  7.      virtual int getDeviceDescriptor(libusb_device *dev, libusb_device_descriptor &desc) = 0;
  8.      virtual void handleEvents() = 0;
  9. -    virtual HotplugCallbackHandle hotplugRegisterCallback(libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class,
  10. +    virtual HotplugCallbackHandle hotplugRegisterCallback(libusb_hotplug_event events, int flags, int vendor_id, int product_id, int dev_class,
  11.                                                            libusb_hotplug_callback_fn cb_fn, void *user_data) = 0;
  12.      virtual libusb_transfer* allocTransfer(int iso_packets) = 0;
  13.  };
  14. diff --git a/include/f1x/aasdk/USB/USBWrapper.hpp b/include/f1x/aasdk/USB/USBWrapper.hpp
  15. index 7a4074c..4801d56 100644
  16. --- a/include/f1x/aasdk/USB/USBWrapper.hpp
  17. +++ b/include/f1x/aasdk/USB/USBWrapper.hpp
  18. @@ -64,7 +64,7 @@ public:
  19.          uint16_t wLength) override;
  20.      int getDeviceDescriptor(libusb_device *dev, libusb_device_descriptor &desc) override;
  21.      void handleEvents() override;
  22. -    HotplugCallbackHandle hotplugRegisterCallback(libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class,
  23. +    HotplugCallbackHandle hotplugRegisterCallback(libusb_hotplug_event events, int flags, int vendor_id, int product_id, int dev_class,
  24.                                                    libusb_hotplug_callback_fn cb_fn, void *user_data) override;
  25.      libusb_transfer* allocTransfer(int iso_packets) override;
  26.  
  27. diff --git a/src/USB/USBWrapper.cpp b/src/USB/USBWrapper.cpp
  28. index b251ec2..baee34f 100644
  29. --- a/src/USB/USBWrapper.cpp
  30. +++ b/src/USB/USBWrapper.cpp
  31. @@ -153,7 +153,7 @@ void USBWrapper::handleEvents()
  32.      libusb_handle_events(usbContext_);
  33.  }
  34.  
  35. -HotplugCallbackHandle USBWrapper::hotplugRegisterCallback(libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class,
  36. +HotplugCallbackHandle USBWrapper::hotplugRegisterCallback(libusb_hotplug_event events, int flags, int vendor_id, int product_id, int dev_class,
  37.                                                            libusb_hotplug_callback_fn cb_fn, void *user_data)
  38.  {
  39.      libusb_hotplug_callback_handle raw_handle;
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement