mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 12:29:03 +00:00
internal/{cm,wasi}: regenerate WASI 0.2 bindings with wasm-tools-go v0.3.0
This commit is contained in:
@@ -8,6 +8,11 @@ import (
|
||||
"internal/wasi/filesystem/v0.2.0/types"
|
||||
)
|
||||
|
||||
// Descriptor represents the imported type alias "wasi:filesystem/preopens@0.2.0#descriptor".
|
||||
//
|
||||
// See [types.Descriptor] for more information.
|
||||
type Descriptor = types.Descriptor
|
||||
|
||||
// GetDirectories represents the imported function "get-directories".
|
||||
//
|
||||
// Return the set of preopened directories, and their path.
|
||||
@@ -15,11 +20,7 @@ import (
|
||||
// get-directories: func() -> list<tuple<descriptor, string>>
|
||||
//
|
||||
//go:nosplit
|
||||
func GetDirectories() (result cm.List[cm.Tuple[types.Descriptor, string]]) {
|
||||
func GetDirectories() (result cm.List[cm.Tuple[Descriptor, string]]) {
|
||||
wasmimport_GetDirectories(&result)
|
||||
return
|
||||
}
|
||||
|
||||
//go:wasmimport wasi:filesystem/preopens@0.2.0 get-directories
|
||||
//go:noescape
|
||||
func wasmimport_GetDirectories(result *cm.List[cm.Tuple[types.Descriptor, string]])
|
||||
|
||||
Reference in New Issue
Block a user