add support for custom 9p request handler

This commit is contained in:
Jeff Lindsay 2025-08-17 13:44:23 -07:00 committed by Fabian
parent 137ab1f9ad
commit f020b016f5
4 changed files with 59 additions and 8 deletions

7
v86.d.ts vendored
View file

@ -234,6 +234,13 @@ export interface V86Options {
* For more details, see docs/filesystem.md
*/
basefs?: string;
/**
* A function that will be called for each 9p request.
* If specified, this will back Virtio9p instead of a filesystem.
* Use this to connect Virtio9p to a custom 9p server.
*/
handle9p?: (reqbuf: Uint8Array, reply: (replybuf: Uint8Array) => void) => void;
};
/**