summaryrefslogtreecommitdiff
path: root/exports/exports.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-04-28 13:25:40 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit8da2ae2e6d8f6ef4971a823e25568117767103c4 (patch)
treee3d614b57cc016cc6a1f2ea1e7ed24cf598f031e /exports/exports.go
parent142fc8743fc8f1961da188486b401218e80d3e7e (diff)
Exports: Document getconfig prefer TCP and return type
Diffstat (limited to 'exports/exports.go')
-rw-r--r--exports/exports.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/exports/exports.go b/exports/exports.go
index e400189..f1bed6e 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -281,6 +281,7 @@ func ServerList() (*C.char, *C.char) {
// - In case of secure internet: The organization ID
// - In case of custom server: The base URL
// - In case of institute access: The base URL
+// pTCP is if we prefer TCP or not to get the configuration, non-zero means yes
// If the server cannot be added it returns the error as a string
// Note that the server is removed when an error has occured
// The current state callbacks MUST be handled
@@ -311,6 +312,8 @@ func ServerList() (*C.char, *C.char) {
// The client should open the webbrowser with this URL and continue the authorization process.
// This is only called if authorization needs to be retriggered
// After getting a configuration, the FSM moves to the GOT_CONFIG state
+// The return data is the configuration, marshalled as JSON and defined in types/server/server.go Configuration
+// This is nil if an error is returned as a string
//export GetConfig
func GetConfig(c C.uintptr_t, _type C.int, id *C.char, pTCP C.int) (*C.char, *C.char) {
state, stateErr := getVPNState()