Bridge unauthenticated connection to Swift

- Remove From<http::header::ToStrError> for ChatServiceError
- bridge: Response -> ChatResponse, DebugInfo -> ChatServiceDebugInfo
This commit is contained in:
Jordan Rose
2024-04-01 09:24:46 -07:00
committed by GitHub
parent 2ef315ab2d
commit 96fce497db
22 changed files with 823 additions and 91 deletions

View File

@@ -42,6 +42,15 @@ pub unsafe extern "C" fn signal_free_buffer(buf: *const c_uchar, buf_len: usize)
)));
}
#[no_mangle]
pub unsafe extern "C" fn signal_free_list_of_strings(buffer: OwnedBufferOf<CStringPtr>) {
let strings = buffer.into_box();
for &s in &*strings {
signal_free_string(s);
}
drop(strings);
}
#[no_mangle]
pub unsafe extern "C" fn signal_free_lookup_response_entry_list(
buffer: OwnedBufferOf<crate::FfiCdsiLookupResponseEntry>,