1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 02:29:28 +02:00

add DC_EVENT_SMTP_CONNECTED to macro

This commit is contained in:
holger krekel 2018-09-09 13:14:29 +02:00
parent 0aed6355c3
commit 75153289ef
2 changed files with 10 additions and 1 deletions

View file

@ -10,3 +10,12 @@ def test_empty_context():
def test_event_defines():
assert capi.lib.DC_EVENT_INFO == 100
assert capi.lib.DC_CONTACT_ID_SELF
def test_sig():
sig = capi.lib.dc_get_event_signature_types
assert sig(capi.lib.DC_EVENT_INFO) == 2
assert sig(capi.lib.DC_EVENT_WARNING) == 2
assert sig(capi.lib.DC_EVENT_ERROR) == 2
assert sig(capi.lib.DC_EVENT_SMTP_CONNECTED) == 2
assert sig(capi.lib.DC_EVENT_IMAP_CONNECTED) == 2
assert sig(capi.lib.DC_EVENT_SMTP_MESSAGE_SENT) == 2

View file

@ -1063,7 +1063,7 @@ time_t dc_lot_get_timestamp (const dc_lot_t*);
*/
#define DC_EVENT_DATA1_IS_STRING(e) ((e)==DC_EVENT_HTTP_GET || (e)==DC_EVENT_IMEX_FILE_WRITTEN || (e)==DC_EVENT_FILE_COPIED)
#define DC_EVENT_DATA2_IS_STRING(e) ((e)==DC_EVENT_INFO || (e) == DC_EVENT_WARNING || (e) == DC_EVENT_ERROR || (e) == DC_EVENT_SMTP_CONNECTED || (e) == DC_EVENT_IMAP_CONNECTED)
#define DC_EVENT_DATA2_IS_STRING(e) ((e)==DC_EVENT_INFO || (e) == DC_EVENT_WARNING || (e) == DC_EVENT_ERROR || (e) == DC_EVENT_SMTP_CONNECTED || (e) == DC_EVENT_SMTP_MESSAGE_SENT || (e) == DC_EVENT_IMAP_CONNECTED)
#define DC_EVENT_RETURNS_INT(e) ((e)==DC_EVENT_IS_OFFLINE)
#define DC_EVENT_RETURNS_STRING(e) ((e)==DC_EVENT_GET_QUANTITY_STRING || (e)==DC_EVENT_GET_STRING || (e)==DC_EVENT_HTTP_GET)