Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/epsilon
Dir : e17/libs/epsilon/src/lib Modified Files: epsilon_thumb.c Log Message: Add function to cancel thumbnailing. =================================================================== RCS file: /cvs/e/e17/libs/epsilon/src/lib/epsilon_thumb.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- epsilon_thumb.c 28 Mar 2006 10:27:12 -0000 1.3 +++ epsilon_thumb.c 31 Mar 2006 19:26:40 -0000 1.4 @@ -336,3 +336,27 @@ return thumb; } + +/** + * @param thumb Thumbnail request to delete. + * @brief Request a thumbnail request to be cancelled. + */ +void +epsilon_del(Epsilon_Request *thumb) +{ + Epsilon_Request *temp; + + /* + * Find the thumbnail request matching this message response and + * remove it, at this point we don't bother cancelling the outstanding + * request to the daemon. + */ + ecore_dlist_goto_first(epsilon_request_queue); + while ((temp = ecore_dlist_current(epsilon_request_queue))) { + if (temp->id == thumb->id) { + ecore_dlist_remove(epsilon_request_queue); + break; + } + ecore_dlist_next(epsilon_request_queue); + } +} ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs