fix(c/libuv): Add missing essential funcs for uv_loop_t & uv_req_t

Signed-off-by: hackerchai <i@hackerchai.com>
This commit is contained in:
hackerchai
2024-09-19 18:42:31 +08:00
parent 4bf5dd15e9
commit 847a76b3a2
2 changed files with 15 additions and 0 deletions

View File

@@ -213,6 +213,16 @@ func LoopNew() *Loop {
return nil
}
// llgo:link (*Loop).SetData C.uv_loop_set_data
func (loop *Loop) SetData(data c.Pointer) {
return
}
// llgo:link (*Loop).GetData C.uv_loop_get_data
func (loop *Loop) GetData() c.Pointer {
return nil
}
// llgo:link (*Loop).Now C.uv_now
func (loop *Loop) Now() c.UlongLong {
return 0

View File

@@ -265,6 +265,11 @@ func (req *Req) GetType() ReqType {
return 0
}
// llgo:link (*Req).Cancel C.uv_cancel
func (req *Req) Cancel() c.Int {
return 0
}
// ----------------------------------------------
/* Stream related function and method */