fixed windows build and build windows version
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
//go:build windows
|
||||
|
||||
package usbip
|
||||
|
||||
import "fmt"
|
||||
|
||||
func IsVHCIAvailable() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func FindFreePort(speed uint32) (int, error) {
|
||||
return -1, fmt.Errorf("VHCI not supported on Windows")
|
||||
}
|
||||
|
||||
func AttachDevice(port int, sockfd int, devID uint32, speed uint32) error {
|
||||
return fmt.Errorf("VHCI not supported on Windows")
|
||||
}
|
||||
|
||||
func DetachDevice(port int) error {
|
||||
return fmt.Errorf("VHCI not supported on Windows")
|
||||
}
|
||||
Reference in New Issue
Block a user