Skip to content

Commit 5cbc873

Browse files
Simon-Lauxr10s
authored andcommitted
rename cffi function
1 parent 5cdd5e0 commit 5cbc873

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deltachat-ffi/deltachat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,15 +3155,15 @@ void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
31553155
* Perform a background fetch for all accounts in parallel with a timeout.
31563156
* Pauses the scheduler, fetches messages from imap and then resumes the scheduler.
31573157
*
3158-
* dc_accounts_background_fetch_with_timeout() was created for the iOS Background fetch.
3158+
* dc_accounts_background_fetch() was created for the iOS Background fetch.
31593159
*
31603160
* @memberof dc_accounts_t
31613161
* @param timeout The timeout in seconds
31623162
* @return Return 1 on success and 0 on failure (like timeout)
31633163
* But note that this only indicates that the fetch of all accounts was done before the timeout.
31643164
* To know whether it worked you need to look for the events.
31653165
*/
3166-
int dc_accounts_background_fetch_with_timeout (dc_accounts_t* accounts, uint64_t timeout);
3166+
int dc_accounts_background_fetch (dc_accounts_t* accounts, uint64_t timeout);
31673167

31683168
/**
31693169
* Create the event emitter that is used to receive events.

deltachat-ffi/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4899,12 +4899,12 @@ pub unsafe extern "C" fn dc_accounts_maybe_network_lost(accounts: *mut dc_accoun
48994899
}
49004900

49014901
#[no_mangle]
4902-
pub unsafe extern "C" fn dc_accounts_background_fetch_with_timeout(
4902+
pub unsafe extern "C" fn dc_accounts_background_fetch(
49034903
accounts: *mut dc_accounts_t,
49044904
timeout_in_seconds: u64,
49054905
) -> libc::c_int {
49064906
if accounts.is_null() || timeout_in_seconds <= 2 {
4907-
eprintln!("ignoring careless call to dc_accounts_background_fetch_with_timeout()");
4907+
eprintln!("ignoring careless call to dc_accounts_background_fetch()");
49084908
return 0;
49094909
}
49104910

0 commit comments

Comments
 (0)