20 lines
799 B
Go
20 lines
799 B
Go
//go:build windows
|
|
|
|
package usb
|
|
|
|
import "fmt"
|
|
|
|
// DeviceHandle provides USB device access (Windows stub)
|
|
type DeviceHandle struct{}
|
|
|
|
func OpenDevice(devPath string, busID string) (*DeviceHandle, error) {
|
|
return nil, fmt.Errorf("USB device access not yet implemented on Windows")
|
|
}
|
|
|
|
func (h *DeviceHandle) Close() error { return nil }
|
|
func (h *DeviceHandle) Fd() int { return -1 }
|
|
func (h *DeviceHandle) DisconnectDriver() error { return fmt.Errorf("not implemented") }
|
|
func (h *DeviceHandle) ConnectDriver() error { return fmt.Errorf("not implemented") }
|
|
func (h *DeviceHandle) ClaimInterface(uint32) error { return fmt.Errorf("not implemented") }
|
|
func (h *DeviceHandle) ReleaseInterface(uint32) error { return fmt.Errorf("not implemented") }
|