2024-08-29 20:57:23 +00:00
|
|
|
import ./waku_thread/waku_thread
|
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
type WakuCallBack* = proc(
|
|
|
|
callerRet: cint, msg: ptr cchar, len: csize_t, userData: pointer
|
|
|
|
) {.cdecl, gcsafe, raises: [].}
|
2024-08-29 20:57:23 +00:00
|
|
|
|
2024-09-20 11:23:53 +00:00
|
|
|
template checkLibwakuParams*(
|
|
|
|
ctx: ptr WakuContext, callback: WakuCallBack, userData: pointer
|
|
|
|
) =
|
2024-08-29 20:57:23 +00:00
|
|
|
ctx[].userData = userData
|
|
|
|
|
|
|
|
if isNil(callback):
|
|
|
|
return RET_MISSING_CALLBACK
|