diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index bcce88776..6f94fc5fd 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -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. * 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 * @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. * 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. diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 3cb1a7fb1..2ffe634ae 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -4899,12 +4899,12 @@ pub unsafe extern "C" fn dc_accounts_maybe_network_lost(accounts: *mut dc_accoun } #[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, timeout_in_seconds: u64, ) -> libc::c_int { 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; }