mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 19:42:04 +02:00
add functions for simple checking the online state
This commit is contained in:
parent
c13366b234
commit
f096e37d61
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,9 @@ extern int mr_shall_stop_ongoing;
|
|||
int mrmailbox_alloc_ongoing (mrmailbox_t*);
|
||||
void mrmailbox_free_ongoing (mrmailbox_t*);
|
||||
|
||||
#define dc_is_online(m) ((m)->m_cb((m), MR_EVENT_IS_OFFLINE, 0, 0)==0)
|
||||
#define dc_is_offline(m) ((m)->m_cb((m), MR_EVENT_IS_OFFLINE, 0, 0)!=0)
|
||||
|
||||
|
||||
/* library private: secure-join */
|
||||
#define MR_IS_HANDSHAKE_CONTINUE_NORMAL_PROCESSING 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue