fix(c/libuv): Add libuv fs struct new func

Signed-off-by: hackerchai <i@hackerchai.com>
This commit is contained in:
hackerchai
2024-07-30 15:18:54 +08:00
parent d2975479f2
commit ceac95c81a
3 changed files with 10 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ type FsPollCb func(handle *FsPoll, status c.Int, events c.Int)
/* Fs related function and method */
//go:linkname FsNew C.uv_fs_new
func FsNew() Fs
//go:linkname FsGetType C.uv_fs_get_type
func FsGetType(req *Fs) FsType