first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//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") }
|
||||
Reference in New Issue
Block a user