summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
Diffstat (limited to 'exports')
-rw-r--r--exports/exports.go8
-rw-r--r--exports/exports_test_wrapper.go2
2 files changed, 1 insertions, 9 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 0eae802..774875f 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -127,12 +127,6 @@ func getVPNState() (*client.Client, error) {
//
// - This callback returns non-zero if the state transition is handled. This is used to check if the client handles the needed transitions
//
-// `debug`, if non-zero, enables debugging mode for the library, this means:
-//
-// - Log everything in debug mode, so you can get more detail of what is going on
-//
-// - Write the state graph to a file in the configDirectory. This can be used to create a FSM png file with mermaid https://mermaid.js.org/
-//
// After registering, the FSM is initialized and the state transition `MAIN` should have been completed
// If some error occurs during registering, it is returned as a `types/error/error.go Error`
//
@@ -154,7 +148,6 @@ func Register(
version *C.char,
configDirectory *C.char,
cb C.StateCB,
- debug C.int,
) *C.char {
_, stateErr := getVPNState()
if stateErr == nil {
@@ -167,7 +160,6 @@ func Register(
func(oldState client.FSMStateID, newState client.FSMStateID, data interface{}) bool {
return stateCallback(cb, oldState, newState, data)
},
- debug != 0,
)
// Only update the state if we get no error
if err == nil {
diff --git a/exports/exports_test_wrapper.go b/exports/exports_test_wrapper.go
index 96abb74..013a7a3 100644
--- a/exports/exports_test_wrapper.go
+++ b/exports/exports_test_wrapper.go
@@ -99,7 +99,7 @@ func testDoRegister(t *testing.T) string {
dirS := C.CString(dir)
defer FreeString(dirS)
- return getError(t, Register(nameS, versionS, dirS, C.StateCB(C.test_state_callback), 0))
+ return getError(t, Register(nameS, versionS, dirS, C.StateCB(C.test_state_callback)))
}
func mustRegister(t *testing.T) {