summaryrefslogtreecommitdiff
path: root/src/modules/mega/mega_event.c
blob: e87b816d985057cfedaa625992b7784a64b21816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "mega.h"

Eina_Bool
mega_event_data(void *data, int type, void *event_info)
{
   Ecore_Con_Event_Url_Data *url_data = event_info;
   unsigned int i;

   printf("Received %i bytes\n", url_data->size);
   for (i = 0; i < url_data->size; i++)
     printf("%c", url_data->data[i]);
   printf("\n");

   return EINA_TRUE;
}

Eina_Bool
mega_event_complete(void *data, int type, void *event_info)
{
   Ecore_Con_Event_Url_Complete *url_complete = event_info;

   printf("download completed with status code: %d\n", url_complete->status);

   return EINA_TRUE;
}