Merge pull request #799 from hackerchai/fix/c-libuv-loop

fix(c/libuv): Add missing essential funcs for uv_loop_t & uv_req_t
This commit is contained in:
xushiwei
2024-09-19 18:50:12 +08:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -213,6 +213,16 @@ func LoopNew() *Loop {
return nil 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 // llgo:link (*Loop).Now C.uv_now
func (loop *Loop) Now() c.UlongLong { func (loop *Loop) Now() c.UlongLong {
return 0 return 0

View File

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