fix(c/libuv): Add libuv fs struct new func
Signed-off-by: hackerchai <i@hackerchai.com>
This commit is contained in:
6
c/libuv/_wrap/fs.c
Normal file
6
c/libuv/_wrap/fs.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <uv.h>
|
||||
|
||||
uv_fs_t uv_fs_new() {
|
||||
uv_fs_t req;
|
||||
return req;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
const (
|
||||
LLGoPackage = "link: $(pkg-config --libs libuv); -luv"
|
||||
LLGoFiles = "$(pkg-config --cflags libuv): _wrap/fs.c"
|
||||
)
|
||||
|
||||
// ----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user