mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
update DC_EVENT_DATA1_IS_STRING to recognize DC_EVENT_IMEX_FILE_WRITTEN
This commit is contained in:
parent
82fbcce892
commit
b5c6f6c508
2 changed files with 2 additions and 1 deletions
|
@ -497,6 +497,7 @@ void stress_functions(dc_context_t* context)
|
|||
free(buf2);
|
||||
|
||||
assert( DC_EVENT_DATA1_IS_STRING(2100) );
|
||||
assert( DC_EVENT_DATA1_IS_STRING(2052) );
|
||||
assert( !DC_EVENT_DATA1_IS_STRING(100) );
|
||||
assert( !DC_EVENT_DATA1_IS_STRING(300) );
|
||||
assert( !DC_EVENT_DATA1_IS_STRING(400) );
|
||||
|
|
|
@ -880,7 +880,7 @@ time_t dc_lot_get_timestamp (const dc_lot_t*);
|
|||
*/
|
||||
|
||||
|
||||
#define DC_EVENT_DATA1_IS_STRING(e) ((e)==DC_EVENT_HTTP_GET)
|
||||
#define DC_EVENT_DATA1_IS_STRING(e) ((e)==DC_EVENT_HTTP_GET || (e)==DC_EVENT_IMEX_FILE_WRITTEN)
|
||||
#define DC_EVENT_DATA2_IS_STRING(e) ((e)==DC_EVENT_INFO || (e)==DC_EVENT_WARNING || (e)==DC_EVENT_ERROR)
|
||||
#define DC_EVENT_RETURNS_INT ((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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue