Renamed isConnectionString to validateConnectionString (#22)
This commit is contained in:
parent
4d2d359aec
commit
73fe79616c
|
@ -364,3 +364,23 @@ proc generateImages*(imagePath: string, aX: int, aY: int, bX: int, bY: int): str
|
|||
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
|
|
@ -148,3 +148,11 @@ 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 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".}
|
Loading…
Reference in New Issue