Update auto-generated bindings to include ln-transaction-sync
[ldk-c-bindings] / lightning-c-bindings / src / lightning / util / logger.rs
index ad32191186b91e31c34a1b312e3b0374ebd60612..af9ceefcd03a5d6dad799d52ce0d806a77e8090c 100644 (file)
@@ -147,6 +147,11 @@ pub extern "C" fn Level_hash(o: &Level) -> u64 {
        core::hash::Hash::hash(&o.to_native(), &mut hasher);
        core::hash::Hasher::finish(&hasher)
 }
+#[no_mangle]
+/// Get the string representation of a Level object
+pub extern "C" fn Level_to_str(o: &crate::lightning::util::logger::Level) -> Str {
+       alloc::format!("{}", &o.to_native()).into()
+}
 /// Returns the most verbose logging level.
 #[must_use]
 #[no_mangle]