1
0
silverbullet/web/syscalls/fulltext.ts

11 lines
408 B
TypeScript
Raw Normal View History

import { SysCallMapping } from "../../plugos/system.ts";
import { proxySyscalls } from "../../plugos/syscalls/transport.ts";
import { Space } from "../../common/spaces/space.ts";
2022-09-14 07:40:11 +00:00
export function fulltextSyscalls(space: Space): SysCallMapping {
return proxySyscalls(
["fulltext.search", "fulltext.delete", "fulltext.index"],
(ctx, name, ...args) => space.proxySyscall(ctx.plug, name, args),
2022-09-14 07:40:11 +00:00
);
}