Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : proto/python-efl

Dir     : e17/proto/python-efl/python-epsilon/include/epsilon


Modified Files:
        request.pxd 


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/proto/python-efl/python-epsilon/include/epsilon/request.pxd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- request.pxd 31 Oct 2007 15:25:33 -0000      1.2
+++ request.pxd 2 Nov 2007 08:03:46 -0000       1.3
@@ -13,10 +13,10 @@
 
     int EPSILON_EVENT_DONE
 
-    int epsilon_thumb_init()
-    int epsilon_shutdown()
-    Epsilon_Request *epsilon_add(char *path, char *dst, int size, void *data)
-    void epsilon_del(Epsilon_Request *thumb)
+    int epsilon_request_init()
+    int epsilon_request_shutdown()
+    Epsilon_Request *epsilon_request_add(char *path, int size, void *data)
+    void epsilon_request_del(Epsilon_Request *thumb)
 
 
 cdef extern from "Ecore.h":



-------------------------------------------------------------------------
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