diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-05-28 12:26:11 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-06-01 12:31:48 +0200 |
commit | 1bd2637e3133d895d1e73931f8b3466a5761d9ef (patch) | |
tree | 1bd75f2a91f30d996030a8531fefbb29f7c41831 /gui/backend.go | |
parent | c6c0209ad45fb7d2e45370ee3a39f2dd437603b0 (diff) |
[feat] expose set transport
webapi mainly for tests, but it's usable too
Diffstat (limited to 'gui/backend.go')
-rw-r--r-- | gui/backend.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/backend.go b/gui/backend.go index d4f5738..38f40a8 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -48,6 +48,11 @@ func UseTransport(transport string) { backend.UseTransport(transport) } +//export GetTransport +func GetTransport() *C.char { + return (*C.char)(backend.GetTransport()) +} + //export Quit func Quit() { backend.Quit() |