nwaku/library
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
..
events chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
waku_thread chore(cbindings): avoid using global var in libwaku.nim (#2118) 2023-10-23 08:37:28 +02:00
alloc.nim refactor(cbindings): Thread-safe communication between the main thread and the Waku Thread (#1978) 2023-09-18 09:21:50 +02:00
libwaku.h chore(cbindings): avoid using global var in libwaku.nim (#2118) 2023-10-23 08:37:28 +02:00
libwaku.nim chore(cbindings): avoid using global var in libwaku.nim (#2118) 2023-10-23 08:37:28 +02:00