summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-15 16:12:48 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 12:26:14 +0200
commit5887d925486e7ce650c3440de6cd29dd2240e929 (patch)
tree6bfce1ddb6a1de5647f23fe7131098ebb421034e /src
parenta019e95fdbaea3d7af2d8ad10903fd656bfc4466 (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.go3
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
}