mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 20:39:06 +00:00
wasi preview 2 support (#4027)
* all: wasip2 support Co-authored-by: Randy Reddig <randy.reddig@fastly.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
||||
|
||||
//go:build !wasip1
|
||||
|
||||
// Package terminalinput represents the imported interface "wasi:cli/terminal-input@0.2.0".
|
||||
//
|
||||
// Terminal input.
|
||||
//
|
||||
// In the future, this may include functions for disabling echoing,
|
||||
// disabling input buffering so that keyboard events are sent through
|
||||
// immediately, querying supported features, and so on.
|
||||
package terminalinput
|
||||
|
||||
import (
|
||||
"github.com/ydnar/wasm-tools-go/cm"
|
||||
)
|
||||
|
||||
// TerminalInput represents the imported resource "wasi:cli/terminal-input@0.2.0#terminal-input".
|
||||
//
|
||||
// The input side of a terminal.
|
||||
//
|
||||
// resource terminal-input
|
||||
type TerminalInput cm.Resource
|
||||
|
||||
// ResourceDrop represents the imported resource-drop for resource "terminal-input".
|
||||
//
|
||||
// Drops a resource handle.
|
||||
//
|
||||
//go:nosplit
|
||||
func (self TerminalInput) ResourceDrop() {
|
||||
self0 := cm.Reinterpret[uint32](self)
|
||||
wasmimport_TerminalInputResourceDrop((uint32)(self0))
|
||||
return
|
||||
}
|
||||
|
||||
//go:wasmimport wasi:cli/terminal-input@0.2.0 [resource-drop]terminal-input
|
||||
//go:noescape
|
||||
func wasmimport_TerminalInputResourceDrop(self0 uint32)
|
||||
Reference in New Issue
Block a user