diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-08-29 14:36:00 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-08-29 14:40:25 +0200 |
| commit | 132782f44603dfdc3b1d875d632f786109ee09a2 (patch) | |
| tree | 71cd1cefee78636167c560c80c8bc79c8982fe26 /exports/exports.go | |
| parent | 4a23134e1e5d70a9c8c5857790dbf27585ca3b1f (diff) | |
Discovery: Remove manager and DiscoveryStartup
Diffstat (limited to 'exports/exports.go')
| -rw-r--r-- | exports/exports.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/exports/exports.go b/exports/exports.go index 931bed5..0eae802 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -946,28 +946,6 @@ func getCookie(c C.uintptr_t) (*cookie.Cookie, error) { return v, nil } -// DiscoveryStartup does a discovery request in the background. -// -// - The `refresh` argument is a callback that is called when the refreshing is done. -// -// When this callback is thus called, the app SHOULD refresh the server list of the already configured servers. -// This DiscoveryStartup function MUST be called after calling `Register`. -// -//export DiscoveryStartup -func DiscoveryStartup(refresh C.RefreshList) *C.char { - state, stateErr := getVPNState() - if stateErr != nil { - return getCError(stateErr) - } - startupErr := state.DiscoveryStartup(func() { - if refresh == nil { - return - } - C.call_refresh_list(refresh) - }) - return getCError(startupErr) -} - // SetTokenHandler sets the token getters and token setters for OAuth. // // Because the data that is saved does not contain OAuth tokens for server, the common lib asks and sets the tokens using these callback functions. |
