projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings to LDK 0.0.118
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning_background_processor.rs
diff --git
a/lightning-c-bindings/src/lightning_background_processor.rs
b/lightning-c-bindings/src/lightning_background_processor.rs
index 9d0dfe04a44f62224af3b37f67b0cdd941459d97..eb8c0f1dc144439121c16b930f22dc86512122a4 100644
(file)
--- a/
lightning-c-bindings/src/lightning_background_processor.rs
+++ b/
lightning-c-bindings/src/lightning_background_processor.rs
@@
-151,6
+151,11
@@
impl GossipSync {
/// Frees any resources used by the GossipSync
#[no_mangle]
pub extern "C" fn GossipSync_free(this_ptr: GossipSync) { }
/// Frees any resources used by the GossipSync
#[no_mangle]
pub extern "C" fn GossipSync_free(this_ptr: GossipSync) { }
+#[allow(unused)]
+/// Used only if an object of this type is returned as a trait impl by a method
+pub(crate) extern "C" fn GossipSync_free_void(this_ptr: *mut c_void) {
+ let _ = unsafe { Box::from_raw(this_ptr as *mut GossipSync) };
+}
#[no_mangle]
/// Utility method to constructs a new P2P-variant GossipSync
pub extern "C" fn GossipSync_p2_p(a: &crate::lightning::routing::gossip::P2PGossipSync) -> GossipSync {
#[no_mangle]
/// Utility method to constructs a new P2P-variant GossipSync
pub extern "C" fn GossipSync_p2_p(a: &crate::lightning::routing::gossip::P2PGossipSync) -> GossipSync {