summaryrefslogtreecommitdiff
path: root/gui/backend.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-08-20 14:54:31 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:49 +0200
commit339a30fd1917011d8ad8a3900509f3a8880d569d (patch)
treea6e519b135c43e09cdbbefc5103783c56a3c3cf0 /gui/backend.go
parent30587fb27b73fdb3f0aab1a78844edcaaae1c3bb (diff)
[feat] reset error
Diffstat (limited to 'gui/backend.go')
-rw-r--r--gui/backend.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/backend.go b/gui/backend.go
index a5cb3ab..c953d18 100644
--- a/gui/backend.go
+++ b/gui/backend.go
@@ -23,8 +23,8 @@ func GetAppName() *C.char {
}
//export Login
-func Login(username, password *C.char) {
- backend.Login(C.GoString(username), C.GoString(password))
+func Login(username, password string) {
+ backend.Login(username, password)
}
//export SwitchOn
@@ -76,6 +76,11 @@ func RefreshContext() *C.char {
return (*C.char)(backend.RefreshContext())
}
+//export ResetError
+func ResetError(errname string) {
+ backend.ResetError(errname)
+}
+
//export InstallHelpers
func InstallHelpers() {
backend.InstallHelpers()