diff --git a/service/usbip/client.go b/service/usbip/client.go index ab715492b..1366f8574 100644 --- a/service/usbip/client.go +++ b/service/usbip/client.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/client_assignment.go b/service/usbip/client_assignment.go index d8836e20d..42906ddcd 100644 --- a/service/usbip/client_assignment.go +++ b/service/usbip/client_assignment.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/client_control.go b/service/usbip/client_control.go index 944596237..e7549cf60 100644 --- a/service/usbip/client_control.go +++ b/service/usbip/client_control.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/client_shared.go b/service/usbip/client_shared.go index 0191f6a13..9aba6bd61 100644 --- a/service/usbip/client_shared.go +++ b/service/usbip/client_shared.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/control_protocol.go b/service/usbip/control_protocol.go index 9a161e62c..e0da681bd 100644 --- a/service/usbip/control_protocol.go +++ b/service/usbip/control_protocol.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip @@ -42,8 +42,9 @@ const ( deviceStateBusy = "busy" deviceStateUnavailable = "unavailable" - backendIDLinuxSysfs = "linux-sysfs" - backendIDDarwinIOKit = "darwin-iokit" + backendIDLinuxSysfs = "linux-sysfs" + backendIDDarwinIOKit = "darwin-iokit" + backendIDWindowsVBoxUSB = "windows-vboxusb" leaseErrorBadRequest = "bad_request" leaseErrorUnavailable = "unavailable" diff --git a/service/usbip/data_protocol.go b/service/usbip/data_protocol.go index d5828d4b3..c9903b6f8 100644 --- a/service/usbip/data_protocol.go +++ b/service/usbip/data_protocol.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/export_ledger.go b/service/usbip/export_ledger.go index 548a3e23c..fec10bb41 100644 --- a/service/usbip/export_ledger.go +++ b/service/usbip/export_ledger.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/export_ledger_test.go b/service/usbip/export_ledger_test.go index 8c4f3c1bf..75208b988 100644 --- a/service/usbip/export_ledger_test.go +++ b/service/usbip/export_ledger_test.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/host.go b/service/usbip/host.go index 6e55798ce..40df0eb76 100644 --- a/service/usbip/host.go +++ b/service/usbip/host.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/iso_scheduler.go b/service/usbip/iso_scheduler.go index e5ad0204c..c52e3c2b3 100644 --- a/service/usbip/iso_scheduler.go +++ b/service/usbip/iso_scheduler.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/match.go b/service/usbip/match.go index bd1cfa5c6..32897cd67 100644 --- a/service/usbip/match.go +++ b/service/usbip/match.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/protocol.go b/service/usbip/protocol.go index 375021dd0..62fa6f895 100644 --- a/service/usbip/protocol.go +++ b/service/usbip/protocol.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/register.go b/service/usbip/register.go index 2270e69c4..75d4b1040 100644 --- a/service/usbip/register.go +++ b/service/usbip/register.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/register_stub.go b/service/usbip/register_stub.go index 63071c54b..4e9abce3b 100644 --- a/service/usbip/register_stub.go +++ b/service/usbip/register_stub.go @@ -1,4 +1,4 @@ -//go:build !linux && !(darwin && cgo) +//go:build !linux && !(darwin && cgo) && !windows package usbip diff --git a/service/usbip/server.go b/service/usbip/server.go index c6e0f8641..aa45954e4 100644 --- a/service/usbip/server.go +++ b/service/usbip/server.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/server_shared.go b/service/usbip/server_shared.go index 899defc1c..99bd2aaaf 100644 --- a/service/usbip/server_shared.go +++ b/service/usbip/server_shared.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/session_userspace.go b/service/usbip/session_userspace.go index 8fab029ef..d74a13bd2 100644 --- a/service/usbip/session_userspace.go +++ b/service/usbip/session_userspace.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/shared.go b/service/usbip/shared.go index a8600fe34..9f353875b 100644 --- a/service/usbip/shared.go +++ b/service/usbip/shared.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/urb_engine.go b/service/usbip/urb_engine.go index a64576c51..da4ad2fc0 100644 --- a/service/usbip/urb_engine.go +++ b/service/usbip/urb_engine.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/urb_transaction.go b/service/usbip/urb_transaction.go index 48f008433..c937b0bed 100644 --- a/service/usbip/urb_transaction.go +++ b/service/usbip/urb_transaction.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/urb_transaction_test.go b/service/usbip/urb_transaction_test.go index 1efd0d1fc..02811e59a 100644 --- a/service/usbip/urb_transaction_test.go +++ b/service/usbip/urb_transaction_test.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/usbip_peer.go b/service/usbip/usbip_peer.go index d48746580..2fabf5e2c 100644 --- a/service/usbip/usbip_peer.go +++ b/service/usbip/usbip_peer.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip diff --git a/service/usbip/usbip_peer_test.go b/service/usbip/usbip_peer_test.go index 2a2a0f0d7..e0cbeb3e2 100644 --- a/service/usbip/usbip_peer_test.go +++ b/service/usbip/usbip_peer_test.go @@ -1,4 +1,4 @@ -//go:build linux || (darwin && cgo) +//go:build linux || (darwin && cgo) || windows package usbip