mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
show more events in cli program
This commit is contained in:
parent
1cf667b99e
commit
a2ffdfe004
1 changed files with 10 additions and 1 deletions
|
@ -53,7 +53,8 @@ static char* read_cmd(void)
|
||||||
|
|
||||||
static uintptr_t receive_event(mrmailbox_t* mailbox, int event, uintptr_t data1, uintptr_t data2)
|
static uintptr_t receive_event(mrmailbox_t* mailbox, int event, uintptr_t data1, uintptr_t data2)
|
||||||
{
|
{
|
||||||
switch( event ) {
|
switch( event )
|
||||||
|
{
|
||||||
case MR_EVENT_GET_STRING:
|
case MR_EVENT_GET_STRING:
|
||||||
case MR_EVENT_GET_QUANTITY_STRING:
|
case MR_EVENT_GET_QUANTITY_STRING:
|
||||||
case MR_EVENT_WAKE_LOCK:
|
case MR_EVENT_WAKE_LOCK:
|
||||||
|
@ -86,10 +87,18 @@ static uintptr_t receive_event(mrmailbox_t* mailbox, int event, uintptr_t data1,
|
||||||
return (uintptr_t)ret;
|
return (uintptr_t)ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case MR_EVENT_IS_OFFLINE:
|
||||||
|
printf("{{Received MR_EVENT_IS_OFFLINE()}}\n");
|
||||||
|
break;
|
||||||
|
|
||||||
case MR_EVENT_MSGS_CHANGED:
|
case MR_EVENT_MSGS_CHANGED:
|
||||||
printf("{{Received MR_EVENT_MSGS_CHANGED(%i, %i)}}\n", (int)data1, (int)data2);
|
printf("{{Received MR_EVENT_MSGS_CHANGED(%i, %i)}}\n", (int)data1, (int)data2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MR_EVENT_CONFIGURE_PROGRESS:
|
||||||
|
printf("{{Received MR_EVENT_CONFIGURE_PROGRESS(%i ‰)}}\n", (int)data1);
|
||||||
|
break;
|
||||||
|
|
||||||
case MR_EVENT_IMEX_PROGRESS:
|
case MR_EVENT_IMEX_PROGRESS:
|
||||||
printf("{{Received MR_EVENT_IMEX_PROGRESS(%i ‰)}}\n", (int)data1);
|
printf("{{Received MR_EVENT_IMEX_PROGRESS(%i ‰)}}\n", (int)data1);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue