rename cffi function

This commit is contained in:
Simon Laux
2023-12-12 18:00:26 +01:00
committed by bjoern
parent 5cdd5e0564
commit 5cbc87369e
2 changed files with 4 additions and 4 deletions

View File

@@ -3155,7 +3155,7 @@ void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
* Perform a background fetch for all accounts in parallel with a timeout. * Perform a background fetch for all accounts in parallel with a timeout.
* Pauses the scheduler, fetches messages from imap and then resumes the scheduler. * Pauses the scheduler, fetches messages from imap and then resumes the scheduler.
* *
* dc_accounts_background_fetch_with_timeout() was created for the iOS Background fetch. * dc_accounts_background_fetch() was created for the iOS Background fetch.
* *
* @memberof dc_accounts_t * @memberof dc_accounts_t
* @param timeout The timeout in seconds * @param timeout The timeout in seconds
@@ -3163,7 +3163,7 @@ void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
* But note that this only indicates that the fetch of all accounts was done before the timeout. * But note that this only indicates that the fetch of all accounts was done before the timeout.
* To know whether it worked you need to look for the events. * To know whether it worked you need to look for the events.
*/ */
int dc_accounts_background_fetch_with_timeout (dc_accounts_t* accounts, uint64_t timeout); int dc_accounts_background_fetch (dc_accounts_t* accounts, uint64_t timeout);
/** /**
* Create the event emitter that is used to receive events. * Create the event emitter that is used to receive events.

View File

@@ -4899,12 +4899,12 @@ pub unsafe extern "C" fn dc_accounts_maybe_network_lost(accounts: *mut dc_accoun
} }
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn dc_accounts_background_fetch_with_timeout( pub unsafe extern "C" fn dc_accounts_background_fetch(
accounts: *mut dc_accounts_t, accounts: *mut dc_accounts_t,
timeout_in_seconds: u64, timeout_in_seconds: u64,
) -> libc::c_int { ) -> libc::c_int {
if accounts.is_null() || timeout_in_seconds <= 2 { if accounts.is_null() || timeout_in_seconds <= 2 {
eprintln!("ignoring careless call to dc_accounts_background_fetch_with_timeout()"); eprintln!("ignoring careless call to dc_accounts_background_fetch()");
return 0; return 0;
} }