diff --git a/lib/vsock/vsock_unsupported.go b/lib/vsock/vsock_unsupported.go index 12e77b76..614183a8 100644 --- a/lib/vsock/vsock_unsupported.go +++ b/lib/vsock/vsock_unsupported.go @@ -5,8 +5,16 @@ package vsock import ( "fmt" "net" + "sync" ) +type VsockCidAllocator interface { + sync.Locker + GetCid() (uint32, error) + MarkCidInuse(uint32) bool + ReleaseCid(uint32) +} + func Dial(cid uint32, port uint32) (net.Conn, error) { return nil, fmt.Errorf("vsock is not supported") }