Skip to content

Commit d416909

Browse files
committed
rename cffi function
1 parent ee3d623 commit d416909

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
@@ -4883,12 +4883,12 @@ pub unsafe extern "C" fn dc_accounts_maybe_network_lost(accounts: *mut dc_accoun
48834883
}
48844884

48854885
#[no_mangle]
4886-
pub unsafe extern "C" fn dc_accounts_background_fetch_with_timeout(
4886+
pub unsafe extern "C" fn dc_accounts_background_fetch(
48874887
accounts: *mut dc_accounts_t,
48884888
timeout_in_seconds: u64,
48894889
) -> libc::c_int {
48904890
if accounts.is_null() || timeout_in_seconds <= 2 {
4891-
eprintln!("ignoring careless call to dc_accounts_background_fetch_with_timeout()");
4891+
eprintln!("ignoring careless call to dc_accounts_background_fetch()");
48924892
return 0;
48934893
}
48944894

0 commit comments

Comments
 (0)