11 lines
412 B
TypeScript
11 lines
412 B
TypeScript
import { SysCallMapping } from "@plugos/plugos/system";
|
|
import { proxySyscalls } from "@plugos/plugos/syscalls/transport";
|
|
import { Space } from "@silverbulletmd/common/spaces/space";
|
|
|
|
export function fulltextSyscalls(space: Space): SysCallMapping {
|
|
return proxySyscalls(
|
|
["fulltext.search", "fulltext.delete", "fulltext.index"],
|
|
(ctx, name, ...args) => space.proxySyscall(ctx.plug, name, args)
|
|
);
|
|
}
|