Files
usb-server/internal/usbip/vhci_windows.go
T

27 lines
676 B
Go

//go:build windows
package usbip
import "fmt"
func IsVHCIAvailable() bool {
return false
}
// VHCIUnavailableError returns an error describing why VHCI is not available.
func VHCIUnavailableError() error {
return fmt.Errorf("VHCI wird unter Windows nicht unterstuetzt. Der Use-Modus (USB-Geraete empfangen) ist nur unter Linux verfuegbar")
}
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")
}