projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
da34358
)
Expose consistent free+clone methods for `Bech32Error`
author
Matt Corallo
<git@bluematt.me>
Wed, 13 Apr 2022 17:30:40 +0000
(17:30 +0000)
committer
Matt Corallo
<git@bluematt.me>
Wed, 13 Apr 2022 17:30:40 +0000
(17:30 +0000)
lightning-c-bindings/src/c_types/mod.rs
patch
|
blob
|
history
diff --git
a/lightning-c-bindings/src/c_types/mod.rs
b/lightning-c-bindings/src/c_types/mod.rs
index 80f04c523f421d9fd2cd64fcbb9ae0c767781999..1e88f0521e53c8ce56372278b3dcb17d3e4db3e5 100644
(file)
--- a/
lightning-c-bindings/src/c_types/mod.rs
+++ b/
lightning-c-bindings/src/c_types/mod.rs
@@
-227,6
+227,12
@@
impl Bech32Error {
}
}
}
}
}
}
+#[no_mangle]
+/// Creates a new Bech32Error which has the same data as `orig`
+pub extern "C" fn Bech32Error_clone(orig: &Bech32Error) -> Bech32Error { orig.clone() }
+#[no_mangle]
+/// Releases any memory held by the given `Bech32Error` (which is currently none)
+pub extern "C" fn Bech32Error_free(o: Bech32Error) { }
#[repr(C)]
#[derive(Clone, Copy, PartialEq)]
#[repr(C)]
#[derive(Clone, Copy, PartialEq)]