Renamed isConnectionString to validateConnectionString (#22)

This commit is contained in:
Igor Sirotin 2023-02-20 11:09:23 +11:00 committed by GitHub
parent 4d2d359aec
commit 73fe79616c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View File

@ -363,4 +363,24 @@ proc switchFleet*(newFleet: string, configJSON: string): string =
proc generateImages*(imagePath: string, aX: int, aY: int, bX: int, bY: int): string =
var funcOut = go_shim.generateImages(imagePath.cstring, aX.cint, aY.cint, bX.cint, bY.cint)
defer: go_shim.free(funcOut)
return $funcOut
proc getConnectionStringForBeingBootstrapped*(configJSON: string): string =
var funcOut = go_shim.getConnectionStringForBeingBootstrapped(configJSON.cstring)
defer: go_shim.free(funcOut)
return $funcOut
proc getConnectionStringForBootstrappingAnotherDevice*(configJSON: string): string =
var funcOut = go_shim.getConnectionStringForBootstrappingAnotherDevice(configJSON.cstring)
defer: go_shim.free(funcOut)
return $funcOut
proc inputConnectionStringForBootstrapping*(connectionString: string, configJSON: string): string =
var funcOut = go_shim.inputConnectionStringForBootstrapping(connectionString.cstring, configJSON.cstring)
defer: go_shim.free(funcOut)
return $funcOut
proc validateConnectionString*(connectionString: string): string =
var funcOut = go_shim.validateConnectionString(connectionString.cstring)
defer: go_shim.free(funcOut)
return $funcOut

View File

@ -147,4 +147,12 @@ proc getPasswordStrengthScore*(paramsJSON: cstring): cstring {.importc: "GetPass
proc switchFleet*(newFleet: cstring, configJSON: cstring): cstring{.importc: "SwitchFleet".}
proc generateImages*(imagePath: cstring, aX: cint, aY: cint, bX: cint, bY: cint): cstring {.importc: "GenerateImages".}
proc generateImages*(imagePath: cstring, aX: cint, aY: cint, bX: cint, bY: cint): cstring {.importc: "GenerateImages".}
proc getConnectionStringForBeingBootstrapped*(configJSON: cstring) : cstring {.importc: "GetConnectionStringForBeingBootstrapped".}
proc getConnectionStringForBootstrappingAnotherDevice*(configJSON: cstring) : cstring {.importc: "GetConnectionStringForBootstrappingAnotherDevice".}
proc inputConnectionStringForBootstrapping*(connectionString: cstring, configJSON: cstring) : cstring {.importc: "InputConnectionStringForBootstrapping".}
proc validateConnectionString*(connectionString: cstring) : cstring {.importc: "ValidateConnectionString".}