Dmitry Fleytman
ec04c9a874
trivial: cleanup comments
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2015-03-25 17:38:00 +02:00
Dmitry Fleytman
456334a73f
UsbDkHelper/Controller: Update persistent hide rules after modification
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2015-03-25 17:37:57 +02:00
Dmitry Fleytman
e389fb7924
UsbDkHelper: Introduce hider API
...
Signed-off-by: Kirill Moizik <kirill@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2015-02-17 09:13:05 +02:00
Pavel Gurvich
2757bfc506
UsbDkHelper: Remove unused RemoveRedirect method
...
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-08-20 17:28:52 +03:00
Pavel Gurvich
99f3c0dbef
UsbDkHelper: Open redirector handle in driver
...
This commit contains user mode adaptations for
driver interface changes introduced by previous commit.
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-06-12 01:00:08 +03:00
Pavel Gurvich
f118d34ac5
UsbDkHelper: Cosmetics: rename ReleaseDeviceList ReleaseDevicesList
...
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-20 11:56:22 +03:00
Pavel Gurvich
a77d8161e4
UsbDk: Add license-related files and headers
...
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-20 11:56:20 +03:00
Dmitry Fleytman
1d4dbc9b86
UsbDkHelper: Fix enumerate devices API
...
1. Handle properly 0 USB devices case
2. Do not leak memory on exception in IOCTL_USBDK_ENUM_DEVICES
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:15 +03:00
Dmitry Fleytman
59f80a0f90
UsbDk: Introduce API for configuration descriptors retrieval
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:14 +03:00
Dmitry Fleytman
44b596d0b7
UsbDk: Introduce generic IOCTL method for DriverFile class
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:13 +03:00
Dmitry Fleytman
dc8c3a09a4
UsbDk: Make StartRedirect operation synchronous
...
1. Wait for reset and redirector creation completion on IOCTL handler
2. Return RedirectorID from driver to user mode caller
3. Open corresponding redirector device using RedirectorID returned
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:13 +03:00
Dmitry Fleytman
bd8a0581d5
UsbDkHelper: Generalize SendIoctlWithDeviceId()
...
Extend function interface for output buffer support
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:13 +03:00
Dmitry Fleytman
8a0311f624
UsbDk: Make device enumeration return more generic structure
...
This patch makes device enumeration API return array of
device info structures instead of array of device IDs.
This change is needed to return per-device information
in addition to device ID.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:13 +03:00
Pavel Gurvich
78e7e610ef
UsbDkHelper: Refactoring of UsbDkDriverAccess
...
Make UsbDkDriverAccess inherited from UsbDkDriverFile
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:12 +03:00
Pavel Gurvich
cabdf800c4
UsbDk&UsbDkHelper&UsbDkController: Remove separate reset API
...
Reset should be part of start/stop redirection. No separate API needed
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:12 +03:00
Dmitry Fleytman
2850bedb27
UsbDkHelper: Trivial: improve printout
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Dmitry Fleytman
6ce2f2ff8a
UsbDkHelper: Fix devices number on enumeration
...
Devices number returned on enumeration was incorrect
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Dmitry Fleytman
e2275bb0f2
UsbDkHelper: Redirections collection management
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Dmitry Fleytman
3d4b8eda14
UsbDkHelper: Isolate common code for some ioctls
...
All IOCTLs that perform operation on USB device
identified by USB_DK_DEVICE_ID are pretty similar,
common code may be isolated.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Dmitry Fleytman
c4e8d29e50
UsbDkHelper: make CDriverAccess::ResetDevice return void
...
Return value is not needed, function
throws exception in case of error
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Dmitry Fleytman
653ce6b4ad
UsbDk: Drop ping IOCTL and children dump logic
...
Debugging code removed.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Pavel Gurvich
9352d2887c
UsbDkHelper: Add ResetDevice functionality to Helper
...
Add ResetDevice functionality to Helper
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:11 +03:00
Pavel Gurvich
c0bf20d715
UsbDkHelper: add EnumerateDevice functionality to UsbDkHelper
...
Add flow of device enumeration to DriverAccess
Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:10 +03:00
Dmitry Fleytman
244ade2a35
UsbDkHelper: Introduce UsbDkDriverAccess class and PING IOCTL
...
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
2014-05-11 19:26:10 +03:00