mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-25 17:25:18 +02:00
Bridge returned registration values to Swift
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user