Scoop API

scoop:scoop.asyncio:0.1.0

src/native_pty.scoop

Selected production source · src/native_pty.scoop

1package scoop.asyncio
3@CLayout
4internal struct NativePtyWait(val status: Long, val error: Int)
6@Extern(name = "scoop_io_pty_associate")
7internal fun nativePtyAssociate(loop: Ptr<Unit>, pty: Ptr<Unit>): NativeIoStatus
9@Extern(name = "scoop_io_pty_transfer")
10internal fun nativePtyTransfer(
11 loop: Ptr<Unit>,
12 pty: Ptr<Unit>,
13 id: Long,
14 bytes: Ptr<Byte>?,
15 count: Long,
16 writing: Boolean
17): Int
19@Extern(name = "scoop_io_pty_watch")
20internal fun nativePtyWatch(loop: Ptr<Unit>, pty: Ptr<Unit>, id: Long): NativeIoStatus
22@Extern(name = "scoop_io_pty_cancel")
23internal fun nativePtyCancel(loop: Ptr<Unit>, id: Long)
25@Extern(name = "scoop_platform_pty_try_wait")
26internal fun nativePtyTryWait(pty: Ptr<Unit>): NativePtyWait
28@Extern(name = "scoop_io_pty_resize")
29internal fun nativePtyResize(
30 loop: Ptr<Unit>,
31 pty: Ptr<Unit>,
32 id: Long,
33 columns: Int,
34 rows: Int
35): Int
37@Extern(name = "scoop_io_pty_end_console")
38internal fun nativePtyEndConsole(loop: Ptr<Unit>, pty: Ptr<Unit>, id: Long): Int
40@Extern(name = "scoop_io_pty_close_output")
41internal fun nativePtyCloseOutput(pty: Ptr<Unit>): NativeIoStatus
43@Extern(name = "scoop_io_pty_close")
44internal fun nativePtyClose(loop: Ptr<Unit>, pty: Ptr<Unit>, id: Long): Int