Bridge returned registration values to Swift

This commit is contained in:
Alex Bakon
2025-05-12 17:06:31 -04:00
committed by GitHub
parent 9f589e77a5
commit 3bd9629692
17 changed files with 688 additions and 86 deletions

View File

@@ -51,6 +51,21 @@ pub unsafe extern "C" fn signal_free_list_of_strings(buffer: OwnedBufferOf<CStri
drop(strings);
}
#[no_mangle]
pub unsafe extern "C" fn signal_free_list_of_register_response_badges(
buffer: OwnedBufferOf<FfiRegisterResponseBadge>,
) {
for badge in buffer.into_box() {
let FfiRegisterResponseBadge {
id,
visible,
expiration_secs,
} = badge;
signal_free_string(id);
let _: (bool, f64) = (visible, expiration_secs);
}
}
#[no_mangle]
pub unsafe extern "C" fn signal_free_lookup_response_entry_list(
buffer: OwnedBufferOf<crate::FfiCdsiLookupResponseEntry>,