Revert "fix(c/libuv): Add libuv fs struct new func"
This reverts commit 5fdb0a9634b5ecc29ddd50b6e5cce9938bcb7934. # Conflicts: # c/libuv/_wrap/fs.c # c/libuv/fs.go
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
#include <stdlib.h>
|
|
||||||
#include <uv.h>
|
|
||||||
|
|
||||||
uv_fs_t* uv_fs_new() {
|
|
||||||
uv_fs_t* req = malloc(sizeof(uv_fs_t));
|
|
||||||
return req;
|
|
||||||
}
|
|
||||||
@@ -6,10 +6,6 @@ import (
|
|||||||
"github.com/goplus/llgo/c"
|
"github.com/goplus/llgo/c"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
LLGoFiles = "$(pkg-config --cflags libuv): _wrap/fs.c"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FS_UNKNOWN FsType = -1
|
FS_UNKNOWN FsType = -1
|
||||||
FS_CUSTOM FsType = 0
|
FS_CUSTOM FsType = 0
|
||||||
@@ -110,9 +106,6 @@ type FsPollCb func(handle *FsPoll, status c.Int, events c.Int)
|
|||||||
|
|
||||||
/* Fs related function and method */
|
/* Fs related function and method */
|
||||||
|
|
||||||
//go:linkname FsNew C.uv_fs_new
|
|
||||||
func FsNew() *Fs
|
|
||||||
|
|
||||||
//go:linkname FsGetType C.uv_fs_get_type
|
//go:linkname FsGetType C.uv_fs_get_type
|
||||||
func FsGetType(req *Fs) FsType
|
func FsGetType(req *Fs) FsType
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user