forked from cgutman/USBIPServerForAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite handling of interfaces to be configuration-specific
We now wait for the (mandatory) SET_CONFIGURATION request to claim interfaces.
- Loading branch information
Showing
3 changed files
with
101 additions
and
49 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
app/src/main/java/org/cgutman/usbip/service/AttachedDeviceContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.cgutman.usbip.service; | ||
|
||
import android.hardware.usb.UsbConfiguration; | ||
import android.hardware.usb.UsbDevice; | ||
import android.hardware.usb.UsbDeviceConnection; | ||
|
||
import org.cgutman.usbip.server.protocol.dev.UsbIpSubmitUrb; | ||
|
||
import java.util.HashSet; | ||
import java.util.concurrent.ThreadPoolExecutor; | ||
|
||
public class AttachedDeviceContext { | ||
public UsbDevice device; | ||
public UsbDeviceConnection devConn; | ||
public UsbConfiguration activeConfiguration; | ||
public ThreadPoolExecutor requestPool; | ||
public HashSet<UsbIpSubmitUrb> activeMessages; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters