Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_image.c 


Log Message:
Epsilon major overhaul, breaks API.

I fixed many issues with epsilon, mainly the Epsilon_Requests, since
it broke the ABI, I also changed the API and now it looks a bit
better.

Changes overview:
 - epsilon_thumb_{init,shutdown} -> epsilon_request_{init,shutdown}
 - epsilon_del -> epsilon_request_del()
 - epsilon_add(file, dest, size, data) -> epsilon_request_add(file, size, data)
   reason: nobody was using "dest", and if one tried to, it was not
   implemented. Instead of implementing this, leave to users that
   could call ecore_file_cp() on the handler.
 - epsilon_request_add() has a fast path check for already existent
   thumbnails, instead of going to the server, just
   ecore_event_add(). To handle epsilon_request_del() fine, we now
   have to keep the Ecore_Event for further deletion.
 - epsilon_exists() now just checks the mtime of source and thumbnail,
   if source is newer, then return EPSILON_FAIL so users regenerate
   it. There is a possible optimization to be done (it's marked on
   code in the right place) that can read original file tags to avoid
   regenerating for copies, but it's not reliable and should be
   checked after the current ones.
 - reoder CFLAGS path order to first use local headers instead of the
   system.
 - check for errors when loading plugins.
 - updated every use of these API in e17 CVS.

If you find a problem with these, let me know and I'll fix.


===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -3 -r1.68 -r1.69
--- ewl_image.c 17 Oct 2007 22:06:03 -0000      1.68
+++ ewl_image.c 2 Nov 2007 08:03:46 -0000       1.69
@@ -688,7 +688,7 @@
 
 #ifdef BUILD_EPSILON_SUPPORT
        if (!ewl_image_epsilon_handler) {
-               epsilon_thumb_init();
+               epsilon_request_init();
                ewl_image_epsilon_handler =
                        ecore_event_handler_add(EPSILON_EVENT_DONE,
                                        ewl_image_thumbnail_cb_complete,
@@ -754,7 +754,7 @@
                size = EPSILON_THUMB_NORMAL;
        else size = EPSILON_THUMB_LARGE;
 
-       thumb->thumb = epsilon_add((char *)path, NULL, size, thumb);
+       thumb->thumb = epsilon_request_add(path, size, thumb);
 #else
        thumb->thumb = NULL;
 #endif
@@ -775,7 +775,7 @@
        thumb = EWL_IMAGE_THUMBNAIL(w);
        if (thumb->thumb) {
 #ifdef BUILD_EPSILON_SUPPORT
-               epsilon_del(thumb->thumb);
+               epsilon_request_del(thumb->thumb);
 #endif
                thumb->thumb = NULL;
        }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to