//go:build !linux package bridge import "fmt" // Handing over an open USB file descriptor relies on Unix domain sockets and // SCM_RIGHTS, plus usbdevfs on the receiving end. Neither exists elsewhere. // Server is a stub on platforms without the bridge. type Server struct { OnChange func() } // Listen reports that the bridge is unavailable on this platform. func Listen(path string) (*Server, error) { return nil, fmt.Errorf("the device bridge is only supported on Linux") } // Close does nothing. func (s *Server) Close() error { return nil }