feat(c/libuv/demo): Add libuv demo echo_server

refactor(c/libuv): Adjust comments and file names to accommodate merge
This commit is contained in:
赵英杰
2024-07-22 18:02:09 +08:00
committed by hackerchai
parent e9d4328fad
commit c63580ee38
6 changed files with 252 additions and 128 deletions

View File

@@ -5,10 +5,22 @@ import (
_ "unsafe"
)
// ----------------------------------------------
/* Handle types. */
type Timer struct {
Unused [0]byte
}
// ----------------------------------------------
// llgo:type C
type TimerCb func(timer *Timer)
/* TimerT related function and method */
// ----------------------------------------------
/* Timer related function and method */
//go:linkname InitTimer C.uv_timer_init
func InitTimer(loop *Loop, timer *Timer) c.Int