mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-13 00:05:10 +00:00
fd83b42faa
* adding query_metrics module * update fleet-dashboard with new store panels for better timing insight
14 lines
346 B
Nim
14 lines
346 B
Nim
import ./waku_thread/waku_thread
|
|
|
|
type WakuCallBack* = proc(
|
|
callerRet: cint, msg: ptr cchar, len: csize_t, userData: pointer
|
|
) {.cdecl, gcsafe, raises: [].}
|
|
|
|
template checkLibwakuParams*(
|
|
ctx: ptr WakuContext, callback: WakuCallBack, userData: pointer
|
|
) =
|
|
ctx[].userData = userData
|
|
|
|
if isNil(callback):
|
|
return RET_MISSING_CALLBACK
|