Skip to content

Commit 8b186f7

Browse files
committed
use upstream get_host_function_details
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 7a54f3b commit 8b186f7

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

src/wasm_runtime/src/hostfuncs.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,13 @@ use wasmtime::{Caller, Engine, FuncType, Val, ValType};
2727

2828
use crate::marshal;
2929

30-
#[derive(Clone)]
31-
pub(crate) struct HostFunctionDefinition {
32-
pub function_name: String,
33-
pub parameter_types: Option<Vec<ParameterType>>,
34-
pub return_type: ReturnType,
35-
}
36-
37-
pub(crate) struct HostFunctionDetails {
38-
/// The host functions.
39-
pub host_functions: Option<Vec<HostFunctionDefinition>>,
40-
}
30+
pub(crate) type HostFunctionDefinition =
31+
hyperlight_common::flatbuffer_wrappers::host_function_definition::HostFunctionDefinition;
32+
pub(crate) type HostFunctionDetails =
33+
hyperlight_common::flatbuffer_wrappers::host_function_details::HostFunctionDetails;
4134

4235
pub(crate) fn get_host_function_details() -> HostFunctionDetails {
43-
todo!("replace the missing hyperlight_guest_bin::host_functions::get_host_function_details");
36+
hyperlight_guest_bin::host_comm::get_host_function_details()
4437
}
4538

4639
pub(crate) fn hostfunc_type(d: &HostFunctionDefinition, e: &Engine) -> Result<FuncType> {

0 commit comments

Comments
 (0)