projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update autogenerated bindings to latest LDK 0.0.123-bindings
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning
/
offers
/
offer.rs
diff --git
a/lightning-c-bindings/src/lightning/offers/offer.rs
b/lightning-c-bindings/src/lightning/offers/offer.rs
index 9ff5def63afea4c1cf9a539774ae0ceca625c2d2..3fd90e29d52888adf5ecb4ef6ae7950499309156 100644
(file)
--- a/
lightning-c-bindings/src/lightning/offers/offer.rs
+++ b/
lightning-c-bindings/src/lightning/offers/offer.rs
@@
-1138,3
+1138,8
@@
pub extern "C" fn Offer_from_str(s: crate::c_types::Str) -> crate::c_types::deri
},
}.into()
}
+#[no_mangle]
+/// Get the string representation of a Offer object
+pub extern "C" fn Offer_to_str(o: &crate::lightning::offers::offer::Offer) -> Str {
+ alloc::format!("{}", o.get_native_ref()).into()
+}