diff options
author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-06-11 16:10:38 -0700 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-07-04 15:54:42 +0200 |
commit | 6e755e132ac18b44625baae0b7ea7ced572d7ff5 (patch) | |
tree | 8c7b9ff39ebad39f9f736ce16c91dfb7a9b071bd /ipc/uapi_wasm.go | |
parent | conn: windows: add missing return statement in DstToString AF_INET (diff) | |
download | wireguard-go-6e755e132ac18b44625baae0b7ea7ced572d7ff5.tar.xz wireguard-go-6e755e132ac18b44625baae0b7ea7ced572d7ff5.zip |
all: adjust build tags for wasip1/wasm
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ipc/uapi_wasm.go')
-rw-r--r-- | ipc/uapi_wasm.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ipc/uapi_wasm.go b/ipc/uapi_wasm.go new file mode 100644 index 0000000..fa84684 --- /dev/null +++ b/ipc/uapi_wasm.go @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved. + */ + +package ipc + +// Made up sentinel error codes for {js,wasip1}/wasm. +const ( + IpcErrorIO = 1 + IpcErrorInvalid = 2 + IpcErrorPortInUse = 3 + IpcErrorUnknown = 4 + IpcErrorProtocol = 5 +) |