nwaku/examples/cbindings
Ivan FB 1e8f577104
chore(cbindings): avoid using global var in libwaku.nim (#2118)
* libwaku: Avoid global variable and changing callback signature

* Better signature for the callback. Two new parameters have been added:
  one aimed to allow passing the caller result code; the other
  param is to pass an optional userData pointer that might need
  to be linked locally with the Context object. For example, this is needed
  in Rust to make the passed closures live as
  long as the Context.

* waku_example.c: adaptation to the latest changes

* libwaku.h: removing 'waku_set_user_data' function

* libwaku.nim: renaming parameter in WakuCallBack (isOk -> callerRet)
2023-10-23 08:37:28 +02:00
..
base64.c refactor(cbindings): libwaku - run waku node in a secondary working thread (#1865) 2023-07-31 09:52:04 +02:00
base64.h refactor(cbindings): libwaku - run waku node in a secondary working thread (#1865) 2023-07-31 09:52:04 +02:00
waku_example.c chore(cbindings): avoid using global var in libwaku.nim (#2118) 2023-10-23 08:37:28 +02:00