commit
34acdba156
|
@ -109,6 +109,11 @@ proc colorHash*(pk: string): string =
|
|||
defer: go_shim.free(funcOut)
|
||||
return $funcOut
|
||||
|
||||
proc colorID*(pk: string): string =
|
||||
var funcOut = go_shim.colorID(pk)
|
||||
defer: go_shim.free(funcOut)
|
||||
return $funcOut
|
||||
|
||||
proc login*(accountData: string, password: string): string =
|
||||
var funcOut = go_shim.login(accountData.cstring, password.cstring)
|
||||
defer: go_shim.free(funcOut)
|
||||
|
|
|
@ -43,6 +43,8 @@ proc emojiHash*(pk: cstring): cstring {.importc: "EmojiHash".}
|
|||
|
||||
proc colorHash*(pk: cstring): cstring {.importc: "ColorHash".}
|
||||
|
||||
proc colorID*(pk: cstring): cstring {.importc: "ColorID".}
|
||||
|
||||
proc login*(accountData: cstring, password: cstring): cstring {.importc: "Login".}
|
||||
|
||||
proc loginWithConfig*(accountData: cstring, password: cstring, configJSON: cstring): cstring {.importc: "LoginWithConfig".}
|
||||
|
|
Loading…
Reference in New Issue