//go:build darwin

package client

import (
	"context"
	"fmt"
	"net"
	"os"

	"github.com/duffy/usb-server/internal/protocol"
)

// Attaching a remote device needs a virtual USB host controller, which macOS
// does not provide — see internal/usbip/vhci_darwin.go.

func createVHCIAttachment(_ context.Context, _ *protocol.DeviceGranted, _ *RemoteDevice) (net.Conn, int, error) {
	return nil, -1, fmt.Errorf("receiving USB devices is not supported on macOS")
}

func createSocketPair() ([2]int, error) {
	return [2]int{}, fmt.Errorf("not used on macOS")
}

func closeFDs(fds [2]int) {}

func fdToFile(fd int, name string) *os.File { return nil }

func logVHCIDeviceStatus(port int) {}

func fixVHCIDevicePermissions(port int) {}
