Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c plugin_helper.c 


Log Message:
* New function to get the cached file reference to the parent folder of a file
* Only display the file in the list view on a 'file monitor create' event, if 
we are currently displaying its parent folder
* Return value fix in plugin_helper

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -3 -r1.50 -r1.51
--- entropy_core.c      26 Feb 2006 02:33:25 -0000      1.50
+++ entropy_core.c      4 Mar 2006 06:09:08 -0000       1.51
@@ -1411,6 +1411,32 @@
 }
 
 
+entropy_generic_file* 
entropy_core_parent_folder_file_get(entropy_generic_file* file) 
+{
+       char* md5;
+       char* tmp;
+       char* pos;
+       entropy_file_listener* listen;
+       entropy_generic_file* return_file = NULL;
+
+       /*First get the md5sum of the file that will be this file's parent 
folder...*/
+       tmp = strdup(file->path);
+       pos = strrchr(tmp, '/');
+       *pos = '\0';
+               
+       md5 = md5_entropy_path_file(file->uri_base, tmp, pos+1);
+       listen = entropy_core_file_cache_retrieve(md5);
+               
+       if (listen) {
+               return_file = listen->file;
+       }
+       free(tmp);
+       free(md5);
+
+       return return_file;
+
+}
+
 char* entropy_core_generic_file_uri_create (entropy_generic_file* file, int 
drill_down) {
        entropy_generic_file* source_file;
        char* uri = malloc(PATH_MAX);
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugin_helper.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- plugin_helper.c     1 Mar 2006 23:50:02 -0000       1.7
+++ plugin_helper.c     4 Mar 2006 06:09:08 -0000       1.8
@@ -142,4 +142,6 @@
 
   (*copy_func) (source, dest,
                  instance);
+
+  return 1;
 }




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

Reply via email to