diff options
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 536ade3..a5cb3ab 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -22,6 +22,11 @@ func GetAppName() *C.char { return (*C.char)(backend.GetAppName()) } +//export Login +func Login(username, password *C.char) { + backend.Login(C.GoString(username), C.GoString(password)) +} + //export SwitchOn func SwitchOn() { backend.SwitchOn() |