summaryrefslogtreecommitdiff
path: root/exports/disco.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-18 18:29:10 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-18 18:29:10 +0200
commit6aced56a28fa52e4796aa1aa139e4323b4154aca (patch)
tree56bf7af557317b553c6c30db2ec8d20090b6336d /exports/disco.go
parentcc057e07579f290eb1db8bdf348cb2e5ba760ab3 (diff)
Client: Move to its own package
Diffstat (limited to 'exports/disco.go')
-rw-r--r--exports/disco.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/exports/disco.go b/exports/disco.go
index 3058334..6db0e86 100644
--- a/exports/disco.go
+++ b/exports/disco.go
@@ -42,12 +42,12 @@ import "C"
import (
"unsafe"
- eduvpn "github.com/eduvpn/eduvpn-common"
+ "github.com/eduvpn/eduvpn-common/client"
"github.com/eduvpn/eduvpn-common/types"
)
func getCPtrDiscoOrganization(
- state *eduvpn.Client,
+ state *client.Client,
organization *types.DiscoveryOrganization,
) *C.discoveryOrganization {
returnedStruct := (*C.discoveryOrganization)(
@@ -61,7 +61,7 @@ func getCPtrDiscoOrganization(
}
func getCPtrDiscoOrganizations(
- state *eduvpn.Client,
+ state *client.Client,
organizations *types.DiscoveryOrganizations,
) (C.size_t, **C.discoveryOrganization) {
totalOrganizations := C.size_t(len(organizations.List))
@@ -82,7 +82,7 @@ func getCPtrDiscoOrganizations(
}
func getCPtrDiscoServer(
- state *eduvpn.Client,
+ state *client.Client,
server *types.DiscoveryServer,
) *C.discoveryServer {
returnedStruct := (*C.discoveryServer)(
@@ -104,7 +104,7 @@ func getCPtrDiscoServer(
}
func getCPtrDiscoServers(
- state *eduvpn.Client,
+ state *client.Client,
servers *types.DiscoveryServers,
) (C.size_t, **C.discoveryServer) {
totalServers := C.size_t(len(servers.List))