summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 10:05:32 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 10:05:32 +0200
commitc83d10b6813d171bf349da71256d719b9148bde4 (patch)
tree96ee789f2d434818dcc0408374eb830e26bd48e8 /exports
parent93bb4bccdf2b1b201451e0130fbfa90f310dba7b (diff)
Add debug variable to save a live fsm graph
Diffstat (limited to 'exports')
-rw-r--r--exports/exports.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 5a4d7b9..e34721e 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -32,10 +32,10 @@ func StateCallback(old_state string, new_state string, data string) {
}
//export Register
-func Register(name *C.char, config_directory *C.char, stateCallback C.PythonCB) *C.char {
+func Register(name *C.char, config_directory *C.char, stateCallback C.PythonCB, debug C.int) *C.char {
P_StateCallback = stateCallback
state := eduvpn.GetVPNState()
- registerErr := state.Register(C.GoString(name), C.GoString(config_directory), StateCallback)
+ registerErr := state.Register(C.GoString(name), C.GoString(config_directory), StateCallback, debug != 0)
return C.CString(ErrorToString(registerErr))
}