mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
add support for custom 9p request handler
This commit is contained in:
parent
137ab1f9ad
commit
f020b016f5
4 changed files with 59 additions and 8 deletions
7
v86.d.ts
vendored
7
v86.d.ts
vendored
|
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue