#include <deltachat.h>
Opaque object that is used to get events from a single context. You can get an event emitter from a context using dc_get_event_emitter(). If you are using the dc_accounts_t account manager, dc_accounts_event_emitter_t must be used instead.
◆ dc_event_emitter_unref()
Free a context event emitter object.
- Parameters
-
emitter | Event emitter object as returned from dc_get_event_emitter(). If NULL is given, nothing is done and an error is logged. |
◆ dc_get_next_event()
Get the next event from a context event emitter object.
- Parameters
-
- Returns
- An event as an dc_event_t object. You can query the event for information using dc_event_get_id(), dc_event_get_data1_int() and so on; if you are done with the event, you have to free the event using dc_event_unref(). If NULL is returned, the context belonging to the event emitter is unref'd and no more events will come; in this case, free the event emitter using dc_event_emitter_unref().
The documentation for this class was generated from the following file: