diff options
| -rw-r--r-- | exports/exports.go | 8 | ||||
| -rw-r--r-- | wrappers/python/src/__init__.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/exports/exports.go b/exports/exports.go index 2f5c357..ed47d91 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -143,8 +143,8 @@ func GetConfigCustomServer(name *C.char, url *C.char, forceTCP C.int) (*C.char, return C.CString(config), C.CString(configType), C.CString(ErrorToString(configErr)) } -//export GetOrganizationsList -func GetOrganizationsList(name *C.char) (*C.char, *C.char) { +//export GetDiscoOrganizations +func GetDiscoOrganizations(name *C.char) (*C.char, *C.char) { nameStr := C.GoString(name) state, stateErr := GetVPNState(nameStr) if stateErr != nil { @@ -154,8 +154,8 @@ func GetOrganizationsList(name *C.char) (*C.char, *C.char) { return C.CString(organizations), C.CString(ErrorToString(organizationsErr)) } -//export GetServersList -func GetServersList(name *C.char) (*C.char, *C.char) { +//export GetDiscoServers +func GetDiscoServers(name *C.char) (*C.char, *C.char) { nameStr := C.GoString(name) state, stateErr := GetVPNState(nameStr) if stateErr != nil { diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index aea311d..f361ad1 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -69,10 +69,10 @@ lib.Register.argtypes, lib.Register.restype = [ VPNStateChange, c_int, ], c_void_p -lib.GetOrganizationsList.argtypes, lib.GetOrganizationsList.restype = [ +lib.GetDiscoOrganizations.argtypes, lib.GetDiscoOrganizations.restype = [ c_char_p ], DataError -lib.GetServersList.argtypes, lib.GetServersList.restype = [c_char_p], DataError +lib.GetDiscoServers.argtypes, lib.GetDiscoServers.restype = [c_char_p], DataError lib.CancelOAuth.argtypes, lib.CancelOAuth.restype = [c_char_p], c_void_p lib.SetProfileID.argtypes, lib.SetProfileID.restype = [c_char_p, c_char_p], c_void_p lib.SetSecureLocation.argtypes, lib.SetSecureLocation.restype = [ |
