diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-15 16:12:48 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-05 12:26:14 +0200 |
| commit | 5887d925486e7ce650c3440de6cd29dd2240e929 (patch) | |
| tree | 6bfce1ddb6a1de5647f23fe7131098ebb421034e /src | |
| parent | a019e95fdbaea3d7af2d8ad10903fd656bfc4466 (diff) | |
Add callback state change and simplify wrappers
The python wrapper contained lots of code that should not be exposed.
The other wrappers I will update later
Diffstat (limited to 'src')
| -rw-r--r-- | src/state.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state.go b/src/state.go index 5d054bb..be85a45 100644 --- a/src/state.go +++ b/src/state.go @@ -13,7 +13,7 @@ type EduVPNState struct { OAuthSession *EduVPNOAuthSession } -func Register(state *EduVPNState, name string, server string) error { +func Register(state *EduVPNState, name string, server string, stateCallback func(string, string)) error { state.Name = name state.Server = server @@ -24,6 +24,7 @@ func Register(state *EduVPNState, name string, server string) error { } state.Endpoints = endpoints + stateCallback("START", "REGISTER") return nil } |
