style(c/libuv): Use go type funcs & update demo(syanc_fs, echo_server)
This commit is contained in:
@@ -26,11 +26,17 @@ type SignalCb func(handle *Signal, sigNum c.Int)
|
||||
//go:linkname SignalInit C.uv_signal_init
|
||||
func SignalInit(loop *Loop, handle *Signal) c.Int
|
||||
|
||||
//go:linkname SignalStart C.uv_signal_start
|
||||
func SignalStart(handle *Signal, cb SignalCb, signum c.Int) c.Int
|
||||
// llgo:link (*Signal).Start C.uv_signal_start
|
||||
func (handle *Signal) Start(cb SignalCb, signum c.Int) c.Int {
|
||||
return 0
|
||||
}
|
||||
|
||||
//go:linkname SignalStartOneshot C.uv_signal_start_oneshot
|
||||
func SignalStartOneshot(handle *Signal, cb SignalCb, signum c.Int) c.Int
|
||||
// llgo:link (*Signal).StartOneshot C.uv_signal_start_oneshot
|
||||
func (handle *Signal) StartOneshot(cb SignalCb, signum c.Int) c.Int {
|
||||
return 0
|
||||
}
|
||||
|
||||
//go:linkname SignalStop C.uv_signal_stop
|
||||
func SignalStop(handle *Signal) c.Int
|
||||
// llgo:link (*Signal).Stop C.uv_signal_stop
|
||||
func (handle *Signal) Stop() c.Int {
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user