nwaku/library/waku_thread
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
..
inter_thread_communication fix: libwaku.nim: unsubscribe -> unsubscribeAll to make it build properly (#2082) 2023-09-26 16:32:51 +02:00
config.nim chore: remove references to v2 (#1898) 2023-08-09 18:11:50 +01:00
waku_thread.nim chore(cbindings): avoid using global var in libwaku.nim (#2118) 2023-10-23 08:37:28 +02:00