summaryrefslogtreecommitdiffhomepage
path: root/ipc/uapi_js.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/uapi_js.go')
-rw-r--r--ipc/uapi_js.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipc/uapi_js.go b/ipc/uapi_js.go
new file mode 100644
index 0000000..be36b5d
--- /dev/null
+++ b/ipc/uapi_js.go
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2021 WireGuard LLC. All Rights Reserved.
+ */
+
+package ipc
+
+// Made up sentinel error codes for the js/wasm platform.
+const (
+ IpcErrorIO = 1
+ IpcErrorInvalid = 2
+ IpcErrorPortInUse = 3
+ IpcErrorUnknown = 4
+ IpcErrorProtocol = 5
+)