mirror of
https://github.com/chatmail/core.git
synced 2026-05-25 01:36:31 +03:00
add dc_accounts_maybe_network_lost() (#2550)
This commit is contained in:
@@ -2650,6 +2650,21 @@ void dc_accounts_stop_io (dc_accounts_t* accounts);
|
||||
void dc_accounts_maybe_network (dc_accounts_t* accounts);
|
||||
|
||||
|
||||
/**
|
||||
* This function can be called when there is a hint that the network is lost.
|
||||
* This is similar to dc_accounts_maybe_network(), however,
|
||||
* it does not retry job processing.
|
||||
*
|
||||
* dc_accounts_maybe_network_lost() is needed only on systems
|
||||
* where the core cannot find out the connectivity loss on its own, eg. iOS.
|
||||
* The function is not needed on Android, MacOS, Windows or Linux.
|
||||
*
|
||||
* @memberof dc_accounts_t
|
||||
* @param accounts Account manager as created by dc_accounts_new().
|
||||
*/
|
||||
void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
|
||||
|
||||
|
||||
/**
|
||||
* Create the event emitter that is used to receive events.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user