rendered paste body#include <stdio.h>#include <Ecore.h>#include <Ecore_File.h>void completion_cb(void *data, const char *file, int status){ printf("work complete!\n"); ecore_main_loop_quit();}int progress_cb(void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow){ printf("progress: %s %d %d %d %d\n", file, dltotal, dlnow, ultotal, ulnow); return 0;}int main(int argc, char **argv){ ecore_init(); ecore_file_init(); ecore_file_download("http://sepheroth/~hisham/cruft/portage-20060423.tar.bz2", "/tmp/portage-20060423.tar.bz2", completion_cb, progress_cb, NULL); ecore_main_loop_begin(); ecore_file_shutdown(); ecore_shutdown(); return 0;}