fix: add multi-transport information to Context.get_info (own key for

each transport, alternative to #7583)
This commit is contained in:
Simon Laux
2025-12-09 10:32:49 +01:00
parent f0e6942438
commit 6df71e9e9f
3 changed files with 13 additions and 16 deletions

View File

@@ -356,9 +356,7 @@ pub unsafe extern "C" fn dc_get_info(context: *const dc_context_t) -> *mut libc:
}
}
fn render_info(
info: BTreeMap<&'static str, String>,
) -> std::result::Result<String, std::fmt::Error> {
fn render_info(info: BTreeMap<String, String>) -> std::result::Result<String, std::fmt::Error> {
let mut res = String::new();
for (key, value) in &info {
writeln!(&mut res, "{key}={value}")?;