@@ -2035,12 +2035,6 @@ def wasmtime_config_wasm_multi_value_set(arg0: Any, arg1: Any) -> None:
20352035def wasmtime_config_wasm_multi_memory_set (arg0 : Any , arg1 : Any ) -> None :
20362036 return _wasmtime_config_wasm_multi_memory_set (arg0 , arg1 ) # type: ignore
20372037
2038- _wasmtime_config_wasm_module_linking_set = dll .wasmtime_config_wasm_module_linking_set
2039- _wasmtime_config_wasm_module_linking_set .restype = None
2040- _wasmtime_config_wasm_module_linking_set .argtypes = [POINTER (wasm_config_t ), c_bool ]
2041- def wasmtime_config_wasm_module_linking_set (arg0 : Any , arg1 : Any ) -> None :
2042- return _wasmtime_config_wasm_module_linking_set (arg0 , arg1 ) # type: ignore
2043-
20442038_wasmtime_config_wasm_memory64_set = dll .wasmtime_config_wasm_memory64_set
20452039_wasmtime_config_wasm_memory64_set .restype = None
20462040_wasmtime_config_wasm_memory64_set .argtypes = [POINTER (wasm_config_t ), c_bool ]
@@ -2101,41 +2095,6 @@ def wasmtime_config_cache_config_load(arg0: Any, arg1: Any) -> pointer:
21012095def wasmtime_engine_increment_epoch (engine : Any ) -> None :
21022096 return _wasmtime_engine_increment_epoch (engine ) # type: ignore
21032097
2104- class wasmtime_moduletype (Structure ):
2105- pass
2106-
2107- wasmtime_moduletype_t = wasmtime_moduletype
2108-
2109- _wasmtime_moduletype_delete = dll .wasmtime_moduletype_delete
2110- _wasmtime_moduletype_delete .restype = None
2111- _wasmtime_moduletype_delete .argtypes = [POINTER (wasmtime_moduletype_t )]
2112- def wasmtime_moduletype_delete (ty : Any ) -> None :
2113- return _wasmtime_moduletype_delete (ty ) # type: ignore
2114-
2115- _wasmtime_moduletype_imports = dll .wasmtime_moduletype_imports
2116- _wasmtime_moduletype_imports .restype = None
2117- _wasmtime_moduletype_imports .argtypes = [POINTER (wasmtime_moduletype_t ), POINTER (wasm_importtype_vec_t )]
2118- def wasmtime_moduletype_imports (arg0 : Any , out : Any ) -> None :
2119- return _wasmtime_moduletype_imports (arg0 , out ) # type: ignore
2120-
2121- _wasmtime_moduletype_exports = dll .wasmtime_moduletype_exports
2122- _wasmtime_moduletype_exports .restype = None
2123- _wasmtime_moduletype_exports .argtypes = [POINTER (wasmtime_moduletype_t ), POINTER (wasm_exporttype_vec_t )]
2124- def wasmtime_moduletype_exports (arg0 : Any , out : Any ) -> None :
2125- return _wasmtime_moduletype_exports (arg0 , out ) # type: ignore
2126-
2127- _wasmtime_moduletype_as_externtype = dll .wasmtime_moduletype_as_externtype
2128- _wasmtime_moduletype_as_externtype .restype = POINTER (wasm_externtype_t )
2129- _wasmtime_moduletype_as_externtype .argtypes = [POINTER (wasmtime_moduletype_t )]
2130- def wasmtime_moduletype_as_externtype (arg0 : Any ) -> pointer :
2131- return _wasmtime_moduletype_as_externtype (arg0 ) # type: ignore
2132-
2133- _wasmtime_externtype_as_moduletype = dll .wasmtime_externtype_as_moduletype
2134- _wasmtime_externtype_as_moduletype .restype = POINTER (wasmtime_moduletype_t )
2135- _wasmtime_externtype_as_moduletype .argtypes = [POINTER (wasm_externtype_t )]
2136- def wasmtime_externtype_as_moduletype (arg0 : Any ) -> pointer :
2137- return _wasmtime_externtype_as_moduletype (arg0 ) # type: ignore
2138-
21392098class wasmtime_module (Structure ):
21402099 pass
21412100
@@ -2159,18 +2118,24 @@ def wasmtime_module_delete(m: Any) -> None:
21592118def wasmtime_module_clone (m : Any ) -> pointer :
21602119 return _wasmtime_module_clone (m ) # type: ignore
21612120
2121+ _wasmtime_module_imports = dll .wasmtime_module_imports
2122+ _wasmtime_module_imports .restype = None
2123+ _wasmtime_module_imports .argtypes = [POINTER (wasmtime_module_t ), POINTER (wasm_importtype_vec_t )]
2124+ def wasmtime_module_imports (module : Any , out : Any ) -> None :
2125+ return _wasmtime_module_imports (module , out ) # type: ignore
2126+
2127+ _wasmtime_module_exports = dll .wasmtime_module_exports
2128+ _wasmtime_module_exports .restype = None
2129+ _wasmtime_module_exports .argtypes = [POINTER (wasmtime_module_t ), POINTER (wasm_exporttype_vec_t )]
2130+ def wasmtime_module_exports (module : Any , out : Any ) -> None :
2131+ return _wasmtime_module_exports (module , out ) # type: ignore
2132+
21622133_wasmtime_module_validate = dll .wasmtime_module_validate
21632134_wasmtime_module_validate .restype = POINTER (wasmtime_error_t )
21642135_wasmtime_module_validate .argtypes = [POINTER (wasm_engine_t ), POINTER (c_uint8 ), c_size_t ]
21652136def wasmtime_module_validate (engine : Any , wasm : Any , wasm_len : Any ) -> pointer :
21662137 return _wasmtime_module_validate (engine , wasm , wasm_len ) # type: ignore
21672138
2168- _wasmtime_module_type = dll .wasmtime_module_type
2169- _wasmtime_module_type .restype = POINTER (wasmtime_moduletype_t )
2170- _wasmtime_module_type .argtypes = [POINTER (wasmtime_module_t )]
2171- def wasmtime_module_type (arg0 : Any ) -> pointer :
2172- return _wasmtime_module_type (arg0 ) # type: ignore
2173-
21742139_wasmtime_module_serialize = dll .wasmtime_module_serialize
21752140_wasmtime_module_serialize .restype = POINTER (wasmtime_error_t )
21762141_wasmtime_module_serialize .argtypes = [POINTER (wasmtime_module_t ), POINTER (wasm_byte_vec_t )]
@@ -2295,16 +2260,6 @@ class wasmtime_memory(Structure):
22952260
22962261wasmtime_memory_t = wasmtime_memory
22972262
2298- class wasmtime_instance (Structure ):
2299- _fields_ = [
2300- ("store_id" , c_uint64 ),
2301- ("index" , c_size_t ),
2302- ]
2303- store_id : int
2304- index : int
2305-
2306- wasmtime_instance_t = wasmtime_instance
2307-
23082263class wasmtime_global (Structure ):
23092264 _fields_ = [
23102265 ("store_id" , c_uint64 ),
@@ -2323,15 +2278,11 @@ class wasmtime_extern_union(Union):
23232278 ("global_" , wasmtime_global_t ),
23242279 ("table" , wasmtime_table_t ),
23252280 ("memory" , wasmtime_memory_t ),
2326- ("instance" , wasmtime_instance_t ),
2327- ("module" , POINTER (wasmtime_module_t )),
23282281 ]
23292282 func : wasmtime_func_t
23302283 global_ : wasmtime_global_t
23312284 table : wasmtime_table_t
23322285 memory : wasmtime_memory_t
2333- instance : wasmtime_instance_t
2334- module : pointer
23352286
23362287wasmtime_extern_union_t = wasmtime_extern_union
23372288
@@ -2551,47 +2502,22 @@ def wasmtime_global_get(store: Any, arg1: Any, out: Any) -> None:
25512502def wasmtime_global_set (store : Any , arg1 : Any , val : Any ) -> pointer :
25522503 return _wasmtime_global_set (store , arg1 , val ) # type: ignore
25532504
2554- class wasmtime_instancetype (Structure ):
2555- pass
2556-
2557- wasmtime_instancetype_t = wasmtime_instancetype
2558-
2559- _wasmtime_instancetype_delete = dll .wasmtime_instancetype_delete
2560- _wasmtime_instancetype_delete .restype = None
2561- _wasmtime_instancetype_delete .argtypes = [POINTER (wasmtime_instancetype_t )]
2562- def wasmtime_instancetype_delete (ty : Any ) -> None :
2563- return _wasmtime_instancetype_delete (ty ) # type: ignore
2564-
2565- _wasmtime_instancetype_exports = dll .wasmtime_instancetype_exports
2566- _wasmtime_instancetype_exports .restype = None
2567- _wasmtime_instancetype_exports .argtypes = [POINTER (wasmtime_instancetype_t ), POINTER (wasm_exporttype_vec_t )]
2568- def wasmtime_instancetype_exports (arg0 : Any , out : Any ) -> None :
2569- return _wasmtime_instancetype_exports (arg0 , out ) # type: ignore
2570-
2571- _wasmtime_instancetype_as_externtype = dll .wasmtime_instancetype_as_externtype
2572- _wasmtime_instancetype_as_externtype .restype = POINTER (wasm_externtype_t )
2573- _wasmtime_instancetype_as_externtype .argtypes = [POINTER (wasmtime_instancetype_t )]
2574- def wasmtime_instancetype_as_externtype (arg0 : Any ) -> pointer :
2575- return _wasmtime_instancetype_as_externtype (arg0 ) # type: ignore
2505+ class wasmtime_instance (Structure ):
2506+ _fields_ = [
2507+ ("store_id" , c_uint64 ),
2508+ ("index" , c_size_t ),
2509+ ]
2510+ store_id : int
2511+ index : int
25762512
2577- _wasmtime_externtype_as_instancetype = dll .wasmtime_externtype_as_instancetype
2578- _wasmtime_externtype_as_instancetype .restype = POINTER (wasmtime_instancetype_t )
2579- _wasmtime_externtype_as_instancetype .argtypes = [POINTER (wasm_externtype_t )]
2580- def wasmtime_externtype_as_instancetype (arg0 : Any ) -> pointer :
2581- return _wasmtime_externtype_as_instancetype (arg0 ) # type: ignore
2513+ wasmtime_instance_t = wasmtime_instance
25822514
25832515_wasmtime_instance_new = dll .wasmtime_instance_new
25842516_wasmtime_instance_new .restype = POINTER (wasmtime_error_t )
25852517_wasmtime_instance_new .argtypes = [POINTER (wasmtime_context_t ), POINTER (wasmtime_module_t ), POINTER (wasmtime_extern_t ), c_size_t , POINTER (wasmtime_instance_t ), POINTER (POINTER (wasm_trap_t ))]
25862518def wasmtime_instance_new (store : Any , module : Any , imports : Any , nimports : Any , instance : Any , trap : Any ) -> pointer :
25872519 return _wasmtime_instance_new (store , module , imports , nimports , instance , trap ) # type: ignore
25882520
2589- _wasmtime_instance_type = dll .wasmtime_instance_type
2590- _wasmtime_instance_type .restype = POINTER (wasmtime_instancetype_t )
2591- _wasmtime_instance_type .argtypes = [POINTER (wasmtime_context_t ), POINTER (wasmtime_instance_t )]
2592- def wasmtime_instance_type (store : Any , instance : Any ) -> pointer :
2593- return _wasmtime_instance_type (store , instance ) # type: ignore
2594-
25952521_wasmtime_instance_export_get = dll .wasmtime_instance_export_get
25962522_wasmtime_instance_export_get .restype = c_bool
25972523_wasmtime_instance_export_get .argtypes = [POINTER (wasmtime_context_t ), POINTER (wasmtime_instance_t ), POINTER (c_char ), c_size_t , POINTER (wasmtime_extern_t )]
0 commit comments