Refresh FFI definitions using latest script
Rename variable r -> result