projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings
[rust-lightning]
/
lightning-c-bindings
/
src
/
routing
/
network_graph.rs
diff --git
a/lightning-c-bindings/src/routing/network_graph.rs
b/lightning-c-bindings/src/routing/network_graph.rs
index c2930f0f335a12ff575b854e1fd104c5e59df6aa..11eb92a363a1dca996418ee29399361feb3ab7a0 100644
(file)
--- a/
lightning-c-bindings/src/routing/network_graph.rs
+++ b/
lightning-c-bindings/src/routing/network_graph.rs
@@
-517,6
+517,10
@@
impl Clone for RoutingFees {
pub(crate) extern "C" fn RoutingFees_clone_void(this_ptr: *const c_void) -> *mut c_void {
Box::into_raw(Box::new(unsafe { (*(this_ptr as *mut nativeRoutingFees)).clone() })) as *mut c_void
}
pub(crate) extern "C" fn RoutingFees_clone_void(this_ptr: *const c_void) -> *mut c_void {
Box::into_raw(Box::new(unsafe { (*(this_ptr as *mut nativeRoutingFees)).clone() })) as *mut c_void
}
+#[no_mangle]
+pub extern "C" fn RoutingFees_clone(orig: &RoutingFees) -> RoutingFees {
+ RoutingFees { inner: Box::into_raw(Box::new(unsafe { &*orig.inner }.clone())), is_owned: true }
+}
/// Flat routing fee in satoshis
#[no_mangle]
pub extern "C" fn RoutingFees_get_base_msat(this_ptr: &RoutingFees) -> u32 {
/// Flat routing fee in satoshis
#[no_mangle]
pub extern "C" fn RoutingFees_get_base_msat(this_ptr: &RoutingFees) -> u32 {