c/libuv: Add multiple struct size

This commit is contained in:
赵英杰
2024-08-15 10:57:29 +08:00
parent 9f1100b967
commit 8fcac42f34
2 changed files with 15 additions and 9 deletions

View File

@@ -12,12 +12,12 @@ import (
// TODO(spongehah): Timer
type Timer struct {
Unused [0]byte
Unused [152]byte
}
// ----------------------------------------------
// llgo:type Cgit
// llgo:type C
type TimerCb func(timer *Timer)
// ----------------------------------------------
@@ -28,7 +28,7 @@ type TimerCb func(timer *Timer)
func InitTimer(loop *Loop, timer *Timer) c.Int
// llgo:link (*Timer).Start C.uv_timer_start
func (timer *Timer) Start(cb TimerCb, timeout uint64, repeat uint64) c.Int {
func (timer *Timer) Start(cb TimerCb, timeoutMs uint64, repeat uint64) c.Int {
return 0
}