fixed windows build and build windows version

This commit is contained in:
2026-02-19 07:13:05 +01:00
parent cfc8a42417
commit 1c4ebddd05
5 changed files with 68 additions and 0 deletions
+21
View File
@@ -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")
}