Skip to content

Commit

Permalink
Update to latest wasmtime dev (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
jder authored and atilag committed Nov 19, 2024
1 parent 7f62f8f commit 098ec79
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions wasmtime/_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ class wasi_file_perms_flags(Enum):

_wasi_config_preopen_dir = dll.wasi_config_preopen_dir
_wasi_config_preopen_dir.restype = c_bool
_wasi_config_preopen_dir.argtypes = [POINTER(wasi_config_t), POINTER(c_char), POINTER(c_char), c_size_t, c_size_t]
_wasi_config_preopen_dir.argtypes = [POINTER(wasi_config_t), POINTER(c_char), POINTER(c_char), wasi_dir_perms, wasi_file_perms]
def wasi_config_preopen_dir(config: Any, host_path: Any, guest_path: Any, dir_perms: Any, file_perms: Any) -> bool:
return _wasi_config_preopen_dir(config, host_path, guest_path, dir_perms, file_perms) # type: ignore

Expand Down Expand Up @@ -2213,11 +2213,11 @@ def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None:
def wasmtime_config_memory_guard_size_set(arg0: Any, arg1: Any) -> None:
return _wasmtime_config_memory_guard_size_set(arg0, arg1) # type: ignore

_wasmtime_config_memory_reservation_reserved_for_growth_set = dll.wasmtime_config_memory_reservation_reserved_for_growth_set
_wasmtime_config_memory_reservation_reserved_for_growth_set.restype = None
_wasmtime_config_memory_reservation_reserved_for_growth_set.argtypes = [POINTER(wasm_config_t), c_uint64]
def wasmtime_config_memory_reservation_reserved_for_growth_set(arg0: Any, arg1: Any) -> None:
return _wasmtime_config_memory_reservation_reserved_for_growth_set(arg0, arg1) # type: ignore
_wasmtime_config_memory_reservation_for_growth_set = dll.wasmtime_config_memory_reservation_for_growth_set
_wasmtime_config_memory_reservation_for_growth_set.restype = None
_wasmtime_config_memory_reservation_for_growth_set.argtypes = [POINTER(wasm_config_t), c_uint64]
def wasmtime_config_memory_reservation_for_growth_set(arg0: Any, arg1: Any) -> None:
return _wasmtime_config_memory_reservation_for_growth_set(arg0, arg1) # type: ignore

_wasmtime_config_native_unwind_info_set = dll.wasmtime_config_native_unwind_info_set
_wasmtime_config_native_unwind_info_set.restype = None
Expand Down Expand Up @@ -2995,6 +2995,9 @@ def wasmtime_linker_instantiate_pre(linker: Any, module: Any, instance_pre: Any)
_wasmtime_memorytype_new = dll.wasmtime_memorytype_new
_wasmtime_memorytype_new.restype = POINTER(wasm_memorytype_t)
_wasmtime_memorytype_new.argtypes = [c_uint64, c_bool, c_uint64, c_bool, c_bool]
def wasmtime_memorytype_new(min: Any, max_present: Any, max: Any, is_64: Any, shared: Any) -> ctypes._Pointer:
return _wasmtime_memorytype_new(min, max_present, max, is_64, shared) # type: ignore
_wasmtime_memorytype_new.argtypes = [c_uint64, c_bool, c_uint64, c_bool, c_bool]
def wasmtime_memorytype_new(min: Any, max_present: Any, max: Any, is_64: Any, shared: Any) -> ctypes._Pointer:
return _wasmtime_memorytype_new(min, max_present, max, is_64, shared) # type: ignore

Expand Down

0 comments on commit 098ec79

Please sign in to comment.