mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-06-30 04:31:50 +00:00
15 lines
377 B
Go
15 lines
377 B
Go
//go:build with_usbip && (linux || (darwin && cgo) || windows)
|
|
|
|
package adapter
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/sagernet/sing-usbip"
|
|
)
|
|
|
|
type USBIPDynamicServer interface {
|
|
AddDevice(info usbip.ProvidedDeviceInfo, transport usbip.DeviceTransport) (string, error)
|
|
RemoveDevice(busID string)
|
|
SubscribeDevices(ctx context.Context, listener func([]usbip.ControlDeviceInfo))
|
|
}
|