Revert "refactor(c/libuv): Use cgo alias replace struct assertion in fs"
This reverts commit 45ba5b8dc50a13223e05ad673f4e57d7277d3f24. # Conflicts: # c/libuv/net.go
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
package libuv
|
package libuv
|
||||||
|
|
||||||
//#cgo pkg-config: libuv
|
|
||||||
//#include <uv.h>
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "unsafe"
|
_ "unsafe"
|
||||||
|
|
||||||
@@ -72,7 +68,9 @@ type File c.Int
|
|||||||
|
|
||||||
/* Handle types. */
|
/* Handle types. */
|
||||||
|
|
||||||
type Fs C.uv_fs_t
|
type Fs struct {
|
||||||
|
Unused [440]byte
|
||||||
|
}
|
||||||
|
|
||||||
type FsEvent struct {
|
type FsEvent struct {
|
||||||
Unused [0]byte
|
Unused [0]byte
|
||||||
|
|||||||
@@ -117,6 +117,10 @@ type GetNameInfo struct {
|
|||||||
Unused [0]byte
|
Unused [0]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Shutdown struct {
|
||||||
|
Unused [0]byte
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------
|
// ----------------------------------------------
|
||||||
|
|
||||||
/* Function type */
|
/* Function type */
|
||||||
@@ -144,6 +148,7 @@ type ConnectionCb func(server *Stream, status c.Int)
|
|||||||
|
|
||||||
// llgo:type C
|
// llgo:type C
|
||||||
type ShutdownCb func(req *Shutdown, status c.Int)
|
type ShutdownCb func(req *Shutdown, status c.Int)
|
||||||
|
|
||||||
// ----------------------------------------------
|
// ----------------------------------------------
|
||||||
|
|
||||||
/* Handle related function and method */
|
/* Handle related function and method */
|
||||||
|
|||||||
Reference in New Issue
Block a user