From 55c5424e0eefdc7bf4fcea0c1e415397de87c06c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 14 Jan 2021 08:57:15 -0800 Subject: [PATCH] Adjust `wasmtime_func_callback_*` type signature This aligns the C header with what we have in the crate itself, in addition to matching what's in `wasm.h`. --- crates/c-api/include/wasmtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/c-api/include/wasmtime.h b/crates/c-api/include/wasmtime.h index b2efa3e81c..6752459a4d 100644 --- a/crates/c-api/include/wasmtime.h +++ b/crates/c-api/include/wasmtime.h @@ -527,7 +527,7 @@ typedef struct wasmtime_caller_t wasmtime_caller_t; * argument is a #wasmtime_caller_t which allows learning information about the * caller. */ -typedef own wasm_trap_t* (*wasmtime_func_callback_t)(const wasmtime_caller_t* caller, const wasm_val_t args[], wasm_val_t results[]); +typedef own wasm_trap_t* (*wasmtime_func_callback_t)(const wasmtime_caller_t* caller, const wasm_val_vec_t *args, wasm_val_vec_t *results); /** * \brief Callback signature for #wasmtime_func_new_with_env. @@ -536,7 +536,7 @@ typedef own wasm_trap_t* (*wasmtime_func_callback_t)(const wasmtime_caller_t* ca * first argument is a #wasmtime_caller_t which allows learning information * about the caller. */ -typedef own wasm_trap_t* (*wasmtime_func_callback_with_env_t)(const wasmtime_caller_t* caller, void* env, const wasm_val_t args[], wasm_val_t results[]); +typedef own wasm_trap_t* (*wasmtime_func_callback_with_env_t)(const wasmtime_caller_t* caller, void* env, const wasm_val_vec_t *args, wasm_val_vec_t *results); /** * \brief Creates a new host-defined function.