On Thu, 27 Jan 2011 20:14:04 +0100 (CET) Vincent Torri <[email protected]>
said:

well first.. discomiftors patch/change did kill progress callbacks. i made them
work again now. and to add to that your example below is wrong. progress cb
should return 0 if it wants to keep going - return != 0 to abort the download :)

> 
> 
> On Thu, 27 Jan 2011, Dave Andreoli wrote:
> 
> > Hi guys!
> >
> > Bad problem just before the release... :(
> >
> > On my Fedora14 ecore_file_download() is broken,
> > the completion/progress callbacks are never called. I can see
> > this in my applications, in the "elementary map test" and in the
> > python-ecore example: examples/file/01_ecore_file_download.py
> >
> > Download seem to start (no error on start), the "http://"; protocol is
> > available, but no callbacks are called  :/
> >
> > To be sure it's not a problem of mine I'm setting up 3 virtual machine
> > with clean os, Debian5, Ubuntu10.10 and Fedora14. They will be ready
> > this evening.
> >
> > No one spot the same problem? Can someone give it a try?
> 
> I checked (I have curl) with the program below. It starts, and the 
> completion callback is called (status value: 0). The file is downloaded. 
> But indeed, the progress callback is never called.
> 
> It's maybe a problem in ecore_con.
> 
> Vincent
> 
> /* gcc -g -Wall -o ecore_file_download ecore_file_download.c `pkg-config
> --cflags --libs ecore-file ecore` */
> 
> #include <stdio.h>
> 
> #include <Ecore.h>
> #include <Ecore_File.h>
> 
> void comp(void *data, const char *file, int status)
> {
>    printf("comp %s: %d\n", file, status);
> }
> 
> int prog(void *data,
>           const char *file,
>           long int dltotal,
>           long int dlnow,
>           long int ultotal,
>           long int ulnow)
> {
>    printf("prog %s: %ld %ld %ld %ld\n", file, dltotal, dlnow, ultotal, ulnow);
> 
>    return 1;
> }
> 
> int main()
> {
>    Ecore_File_Download_Job *job;
>    const char *url =
> "http://www.maths.univ-evry.fr/pages_perso/vtorri/files/salon3.jpg";; const
> char *dst = "salon.jpg";
> 
>    ecore_init();
>    ecore_file_init();
> 
>    if (ecore_file_download(url, dst, comp, prog, NULL, &job))
>      {
>        printf("starting\n");
>      }
>    else
>      printf("error\n");
> 
>    ecore_main_loop_begin();
> 
>    ecore_file_shutdown();
>    ecore_shutdown();
> 
>    return 0;
> }
> 
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
> February 28th, so secure your free ArcSight Logger TODAY! 
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to