mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
update docs
This commit is contained in:
@@ -4132,14 +4132,12 @@ void dc_event_unref(dc_event_t* event);
|
|||||||
* Network errors should be reported to users in a non-disturbing way,
|
* Network errors should be reported to users in a non-disturbing way,
|
||||||
* however, as network errors may come in a sequence,
|
* however, as network errors may come in a sequence,
|
||||||
* it is not useful to raise each an every error to the user.
|
* it is not useful to raise each an every error to the user.
|
||||||
* For this purpose, data1 is set to 1 if the error is probably worth reporting.
|
|
||||||
*
|
*
|
||||||
* Moreover, if the UI detects that the device is offline,
|
* Moreover, if the UI detects that the device is offline,
|
||||||
* it is probably more useful to report this to the user
|
* it is probably more useful to report this to the user
|
||||||
* instead of the string from data2.
|
* instead of the string from data2.
|
||||||
*
|
*
|
||||||
* @param data1 (int) 1=first/new network error, should be reported the user;
|
* @param data1 0
|
||||||
* 0=subsequent network error, should be logged only
|
|
||||||
* @param data2 (char*) Error string, always set, never NULL.
|
* @param data2 (char*) Error string, always set, never NULL.
|
||||||
*/
|
*/
|
||||||
#define DC_EVENT_ERROR_NETWORK 401
|
#define DC_EVENT_ERROR_NETWORK 401
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ pub enum Event {
|
|||||||
/// Network errors should be reported to users in a non-disturbing way,
|
/// Network errors should be reported to users in a non-disturbing way,
|
||||||
/// however, as network errors may come in a sequence,
|
/// however, as network errors may come in a sequence,
|
||||||
/// it is not useful to raise each an every error to the user.
|
/// it is not useful to raise each an every error to the user.
|
||||||
/// For this purpose, data1 is set to 1 if the error is probably worth reporting.
|
|
||||||
///
|
///
|
||||||
/// Moreover, if the UI detects that the device is offline,
|
/// Moreover, if the UI detects that the device is offline,
|
||||||
/// it is probably more useful to report this to the user
|
/// it is probably more useful to report this to the user
|
||||||
|
|||||||
Reference in New Issue
Block a user