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
/
util
/
ser.rs
diff --git
a/lightning-c-bindings/src/lightning/util/ser.rs
b/lightning-c-bindings/src/lightning/util/ser.rs
index 9cfaca43c0b7ee080f6c9cf7f975cba33f2a9051..1235f5cd08206750603fbcb608cc3348c00a0731 100644
(file)
--- a/
lightning-c-bindings/src/lightning/util/ser.rs
+++ b/
lightning-c-bindings/src/lightning/util/ser.rs
@@
-262,6
+262,11
@@
pub extern "C" fn Hostname_len(this_arg: &crate::lightning::util::ser::Hostname)
ret
}
ret
}
+#[no_mangle]
+/// Get the string representation of a Hostname object
+pub extern "C" fn Hostname_to_str(o: &crate::lightning::util::ser::Hostname) -> Str {
+ alloc::format!("{}", o.get_native_ref()).into()
+}
#[no_mangle]
/// Serialize the Hostname object into a byte array which can be read by Hostname_read
pub extern "C" fn Hostname_write(obj: &crate::lightning::util::ser::Hostname) -> crate::c_types::derived::CVec_u8Z {
#[no_mangle]
/// Serialize the Hostname object into a byte array which can be read by Hostname_read
pub extern "C" fn Hostname_write(obj: &crate::lightning::util::ser::Hostname) -> crate::c_types::derived::CVec_u8Z {