nwaku/library/callback.nim
richΛrd 707f3e8bf0
feat: eventCallback per wakunode and userData (#2418)
* feat: store event callback in `Context`
* feat: add userData to callbacks
2024-02-13 10:22:22 -04:00

7 lines
194 B
Nim

type
WakuCallBack* = proc(callerRet: cint,
msg: ptr cchar,
len: csize_t,
userData: pointer) {.cdecl, gcsafe, raises: [].}