@@ -291,7 +291,7 @@ typedef struct InstantiationArgs {
291291
292292struct InstantiationArgs2 ;
293293struct WASINNGlobalContext ;
294- typedef struct WASINNGlobalContext * wasi_nn_global_context ;
294+ typedef struct WASINNGlobalContext WASINNGlobalContext ;
295295
296296#ifndef WASM_VALKIND_T_DEFINED
297297#define WASM_VALKIND_T_DEFINED
@@ -798,46 +798,32 @@ wasm_runtime_instantiation_args_set_wasi_ns_lookup_pool(
798798 struct InstantiationArgs2 * p , const char * ns_lookup_pool [],
799799 uint32_t ns_lookup_pool_size );
800800
801- WASM_RUNTIME_API_EXTERN bool
802- wasm_runtime_init_wasi_nn_global_ctx (wasm_module_inst_t module_inst ,
803- const char * encoding , const char * target ,
804- const uint32_t n_graphs ,
805- char * graph_paths [], char * error_buf ,
806- uint32_t error_buf_size );
807-
808- WASM_RUNTIME_API_EXTERN void
809- wasm_runtime_destroy_wasi_nn_global_ctx (wasm_module_inst_t module_inst );
810-
811- WASM_RUNTIME_API_EXTERN void
812- wasm_runtime_set_wasi_nn_global_ctx (wasm_module_inst_t module_inst ,
813- wasi_nn_global_context wasi_ctx );
814-
815- WASM_RUNTIME_API_EXTERN wasi_nn_global_context
801+ WASM_RUNTIME_API_EXTERN WASINNGlobalContext *
816802wasm_runtime_get_wasi_nn_global_ctx (const wasm_module_inst_t module_inst );
817803
818804WASM_RUNTIME_API_EXTERN uint32_t
819805wasm_runtime_get_wasi_nn_global_ctx_ngraphs (
820- wasi_nn_global_context wasi_nn_global_ctx );
806+ WASINNGlobalContext * wasi_nn_global_ctx );
821807
822808WASM_RUNTIME_API_EXTERN char *
823809wasm_runtime_get_wasi_nn_global_ctx_graph_paths_i (
824- wasi_nn_global_context wasi_nn_global_ctx , uint32_t idx );
810+ WASINNGlobalContext * wasi_nn_global_ctx , uint32_t idx );
825811
826812WASM_RUNTIME_API_EXTERN uint32_t
827813wasm_runtime_get_wasi_nn_global_ctx_loaded_i (
828- wasi_nn_global_context wasi_nn_global_ctx , uint32_t idx );
814+ WASINNGlobalContext * wasi_nn_global_ctx , uint32_t idx );
829815
830816WASM_RUNTIME_API_EXTERN uint32_t
831817wasm_runtime_set_wasi_nn_global_ctx_loaded_i (
832- wasi_nn_global_context wasi_nn_global_ctx , uint32_t idx , uint32_t value );
818+ WASINNGlobalContext * wasi_nn_global_ctx , uint32_t idx , uint32_t value );
833819
834820WASM_RUNTIME_API_EXTERN char *
835821wasm_runtime_get_wasi_nn_global_ctx_encoding (
836- wasi_nn_global_context wasi_nn_global_ctx );
822+ WASINNGlobalContext * wasi_nn_global_ctx );
837823
838824WASM_RUNTIME_API_EXTERN char *
839825wasm_runtime_get_wasi_nn_global_ctx_target (
840- wasi_nn_global_context wasi_nn_global_ctx );
826+ WASINNGlobalContext * wasi_nn_global_ctx );
841827
842828/**
843829 * Instantiate a WASM module, with specified instantiation arguments
0 commit comments