From 5dad968aa90ded83d57211426bc186f6d609ef06 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 4 Oct 2022 15:29:11 +0200 Subject: State: Rename to client to avoid confusion with the FSM --- exports/disco.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'exports/disco.go') diff --git a/exports/disco.go b/exports/disco.go index ac7ac7d..3058334 100644 --- a/exports/disco.go +++ b/exports/disco.go @@ -47,7 +47,7 @@ import ( ) func getCPtrDiscoOrganization( - state *eduvpn.VPNState, + state *eduvpn.Client, organization *types.DiscoveryOrganization, ) *C.discoveryOrganization { returnedStruct := (*C.discoveryOrganization)( @@ -61,7 +61,7 @@ func getCPtrDiscoOrganization( } func getCPtrDiscoOrganizations( - state *eduvpn.VPNState, + state *eduvpn.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.VPNState, + state *eduvpn.Client, server *types.DiscoveryServer, ) *C.discoveryServer { returnedStruct := (*C.discoveryServer)( @@ -104,7 +104,7 @@ func getCPtrDiscoServer( } func getCPtrDiscoServers( - state *eduvpn.VPNState, + state *eduvpn.Client, servers *types.DiscoveryServers, ) (C.size_t, **C.discoveryServer) { totalServers := C.size_t(len(servers.List)) -- cgit v1.2.3