summaryrefslogtreecommitdiffstats
path: root/kcontrol/usbview/usbdevices.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-12 02:55:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-12 03:00:26 +0200
commit32eee8cad4fd7bf38b98e5c8db0455bed75e03bc (patch)
tree7e87005cd086363688f1d24f9ea3d7dedf752e72 /kcontrol/usbview/usbdevices.h
parent5c031202ddedf63416cf20cb4ad4618a00fe5a25 (diff)
downloadtdebase-32eee8cad4fd7bf38b98e5c8db0455bed75e03bc.tar.gz
tdebase-32eee8cad4fd7bf38b98e5c8db0455bed75e03bc.zip
Fix build with libusb 2.0 on freebsd
[taken from FreeBSD kdebase3 patches] Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e1d8ccc637042d5ab84b0d532590f4cf8ef8e567)
Diffstat (limited to 'kcontrol/usbview/usbdevices.h')
-rw-r--r--kcontrol/usbview/usbdevices.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kcontrol/usbview/usbdevices.h b/kcontrol/usbview/usbdevices.h
index 23717ee65..d7a62fbfa 100644
--- a/kcontrol/usbview/usbdevices.h
+++ b/kcontrol/usbview/usbdevices.h
@@ -17,7 +17,8 @@
#include <tqptrlist.h>
#ifdef Q_OS_FREEBSD
-#include <dev/usb/usb.h>
+#include <libusb20.h>
+#include <dev/usb/usb_ioctl.h>
#endif
class USBDB;
@@ -26,7 +27,7 @@ class USBDB;
class USBDevice
{
public:
-
+
USBDevice();
void parseLine(TQString line);
@@ -66,7 +67,7 @@ private:
unsigned int _vendorID, _prodID, _revMajor, _revMinor;
#ifdef Q_OS_FREEBSD
- void collectData( int fd, int level, usb_device_info &di, int parent );
+ void collectData(struct libusb20_backend *, struct libusb20_device *);
TQStringList _devnodes;
#endif
};