0365673c41
Initial checkin of mobile "native" app
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
import type { SysCallMapping } from "../../plugos/system.ts";
|
|
import { proxySyscalls } from "../../plugos/syscalls/transport.ts";
|
|
import type { Space } from "../../common/spaces/space.ts";
|
|
|
|
export function sandboxFetchSyscalls(space: Space): SysCallMapping {
|
|
return proxySyscalls(
|
|
[
|
|
"sandboxFetch.fetch",
|
|
],
|
|
(ctx, name, ...args) => space.proxySyscall(ctx.plug, name, args),
|
|
);
|
|
}
|