From 0f66c1dd620e4f3a500a781372029504514b1835 Mon Sep 17 00:00:00 2001 From: vms Date: Wed, 16 Sep 2020 01:53:08 +0300 Subject: [PATCH] update wit file according to the record refactoring --- .gitignore | 3 +++ redis.wit | 11 +++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7164c083..85c1aa45 100644 --- a/.gitignore +++ b/.gitignore @@ -87,3 +87,6 @@ fabric.properties # Wasm files *.wasm *.wat + +# REPL history files +.repl_history diff --git a/redis.wit b/redis.wit index 95315be9..a2d37e13 100644 --- a/redis.wit +++ b/redis.wit @@ -1,20 +1,19 @@ ;; Fluence Redis fork Wasm Interface Types ;; allocate -(@interface type (func (param i32) (result i32))) ;; 0 +(@interface type (func (param $size: i32) (result i32))) ;; 0 ;; deallocate -(@interface type (func (param i32 i32))) ;; 1 +(@interface type (func (param $pointer: i32 $size: i32))) ;; 1 ;; invoke -(@interface type (func (param string) (result string))) ;; 2 +(@interface type (func (param $request: string) (result string))) ;; 2 ;; get_result_ptr/get_result_size -(@interface type (func (result i32))) ;; 3 +(@interface type (func (result i32))) ;; 3 ;; set_result_ptr/set_result_size -(@interface type (func (param i32))) ;; 4 - +(@interface type (func (param $result: i32))) ;; 4 (@interface export "allocate" (func 0)) ;; 0 (@interface export "deallocate" (func 1)) ;; 1