aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/services
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 14:18:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 14:18:01 +0200
commite493f911269a2dabab7b05ec28726cdaeffb660e (patch)
treedb88ec568dfc508da863e67164de909448c66742 /services
parentservice: move route monitor and account for changing index (diff)
downloadwireguard-windows-e493f911269a2dabab7b05ec28726cdaeffb660e.tar.xz
wireguard-windows-e493f911269a2dabab7b05ec28726cdaeffb660e.zip
service: split into tunnel and manager
Diffstat (limited to '')
-rw-r--r--services/errors.go (renamed from service/errors.go)6
-rw-r--r--services/tokens.go (renamed from service/tokens.go)2
2 files changed, 4 insertions, 4 deletions
diff --git a/service/errors.go b/services/errors.go
index a2cb7bc5..c9b2c049 100644
--- a/service/errors.go
+++ b/services/errors.go
@@ -3,7 +3,7 @@
* Copyright (C) 2017-2019 WireGuard LLC. All Rights Reserved.
*/
-package service
+package services
import (
"fmt"
@@ -75,7 +75,7 @@ func (e Error) Error() string {
}
}
-func determineErrorCode(err error, serviceError Error) (bool, uint32) {
+func DetermineErrorCode(err error, serviceError Error) (bool, uint32) {
if syserr, ok := err.(syscall.Errno); ok {
return false, uint32(syserr)
} else if serviceError != ErrorSuccess {
@@ -85,7 +85,7 @@ func determineErrorCode(err error, serviceError Error) (bool, uint32) {
}
}
-func combineErrors(err error, serviceError Error) error {
+func CombineErrors(err error, serviceError Error) error {
if serviceError != ErrorSuccess {
if err != nil {
return fmt.Errorf("%v: %v", serviceError, err)
diff --git a/service/tokens.go b/services/tokens.go
index aade8734..aa6f2c4a 100644
--- a/service/tokens.go
+++ b/services/tokens.go
@@ -3,7 +3,7 @@
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
*/
-package service
+package services
import (
"errors"