waku-org / waku-rust-bindings

Rust wrapper over go-waku ffi
14 stars 6 forks source link

Use shared state to store callback closures for waku callbacks #6

Closed danielSanchezQ closed 1 year ago

danielSanchezQ commented 1 year ago

Passing closure pointers to C functions is wrong. Instead, use an extern "C" function that call the closure stored in a shared state.