diff --git a/status_go.nim b/status_go.nim index 4c88ea1..9b178be 100644 --- a/status_go.nim +++ b/status_go.nim @@ -324,3 +324,8 @@ proc switchFleet*(newFleet: string, configJSON: string): string = var funcOut = go_shim.switchFleet(newFleet.cstring, configJSON.cstring) defer: go_shim.free(funcOut) return $funcOut + +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 \ No newline at end of file diff --git a/status_go/impl.nim b/status_go/impl.nim index 4223226..2f1a781 100644 --- a/status_go/impl.nim +++ b/status_go/impl.nim @@ -132,3 +132,5 @@ proc getPasswordStrength*(paramsJSON: cstring): cstring {.importc: "GetPasswordS proc getPasswordStrengthScore*(paramsJSON: cstring): cstring {.importc: "GetPasswordStrengthScore".} proc switchFleet*(newFleet: cstring, configJSON: cstring): cstring{.importc: "SwitchFleet".} + +proc generateImages*(imagePath: cstring, aX: cint, aY: cint, bX: cint, bY: cint): cstring {.importc: "GenerateImages".} \ No newline at end of file