Add callinfo trampoline into the C API.

This commit is contained in:
losfair
2019-06-05 01:25:37 +08:00
parent b2869e181c
commit 669f76025c
5 changed files with 164 additions and 10 deletions

View File

@ -596,9 +596,14 @@ uint32_t wasmer_table_length(wasmer_table_t *table);
*/
wasmer_result_t wasmer_table_new(wasmer_table_t **table, wasmer_limits_t limits);
uintptr_t wasmer_trampoline_buffer_builder_add_function(wasmer_trampoline_buffer_builder_t *b,
const wasmer_trampoline_callable_t *f,
const void *ctx);
uintptr_t wasmer_trampoline_buffer_builder_add_callinfo_trampoline(wasmer_trampoline_buffer_builder_t *b,
const wasmer_trampoline_callable_t *f,
const void *ctx,
uint32_t num_params);
uintptr_t wasmer_trampoline_buffer_builder_add_context_trampoline(wasmer_trampoline_buffer_builder_t *b,
const wasmer_trampoline_callable_t *f,
const void *ctx);
wasmer_trampoline_buffer_t *wasmer_trampoline_buffer_builder_build(wasmer_trampoline_buffer_builder_t *b);