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 02:55:15 +0200
commite1d8ccc637042d5ab84b0d532590f4cf8ef8e567 (patch)
treeb4a8621fec839887c5fc841e2e43bb63947d97c7 /kcontrol/usbview/usbdevices.h
parentda25462d268fc49751fc3617b49fa8b4742dad15 (diff)
downloadtdebase-e1d8ccc637042d5ab84b0d532590f4cf8ef8e567.tar.gz
tdebase-e1d8ccc637042d5ab84b0d532590f4cf8ef8e567.zip
Fix build with libusb 2.0 on freebsd
[taken from FreeBSD kdebase3 patches] Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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
};