From 2f77657ae97f84edcd665c4cfe00ef91b9cde1bc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Jul 2021 20:22:39 +0200 Subject: vm: extend API to allow returning result value from VM execution Signed-off-by: Jo-Philipp Wich --- vm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm.h') diff --git a/vm.h b/vm.h index cd0a886..520cf62 100644 --- a/vm.h +++ b/vm.h @@ -124,7 +124,7 @@ uc_exception_type_t uc_vm_call(uc_vm *vm, bool mcall, size_t nargs); void __attribute__((format(printf, 3, 0))) uc_vm_raise_exception(uc_vm *vm, uc_exception_type_t type, const char *fmt, ...); -uc_vm_status_t uc_vm_execute(uc_vm *vm, uc_function_t *fn); +uc_vm_status_t uc_vm_execute(uc_vm *vm, uc_function_t *fn, uc_value_t **retval); uc_value_t *uc_vm_invoke(uc_vm *vm, const char *fname, size_t nargs, ...); #endif /* __VM_H_ */ -- cgit v1.2.3