Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c plugin_helper.c 


Log Message:
* ETK directory add dialog

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- entropy_core.c      6 Mar 2006 10:41:39 -0000       1.55
+++ entropy_core.c      11 Mar 2006 07:11:34 -0000      1.56
@@ -779,7 +779,7 @@
        entropy_generic_file* clone = 
entropy_malloc(sizeof(entropy_generic_file));
 
        strncpy(clone->filename, file->filename, FILENAME_LENGTH);
-       strncpy(clone->path, file->path, 255);
+       strncpy(clone->path, file->path, PATH_MAX);
        strncpy(clone->mime_type, file->mime_type, MIME_LENGTH);
        strncpy(clone->uri_base, file->uri_base, 15);
 
@@ -793,6 +793,13 @@
        else
                clone->password = NULL;
 
+       if (file->uri)
+               clone->uri = strdup(file->uri);
+       else
+               clone->uri = NULL;
+
+       clone->parent = file->parent;
+
        clone->thumbnail = file->thumbnail;
        clone->md5 = strdup(file->md5);
        
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugin_helper.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- plugin_helper.c     4 Mar 2006 06:09:08 -0000       1.8
+++ plugin_helper.c     11 Mar 2006 07:11:34 -0000      1.9
@@ -126,6 +126,18 @@
        (*del_func)(file);
 }
 
+void entropy_plugin_filesystem_directory_create(entropy_generic_file* file, 
char* dir) {
+        entropy_plugin *plugin =
+              entropy_plugins_type_get_first (
+        ENTROPY_PLUGIN_BACKEND_FILE, ENTROPY_PLUGIN_SUB_TYPE_ALL);
+
+        void (*dir_func)(entropy_generic_file*, char*);
+        dir_func = dlsym(plugin->dl_ref, 
"entropy_filesystem_directory_create");
+
+        (*dir_func)(file, dir);
+}
+
+
 
 int entropy_plugin_filesystem_file_copy(entropy_generic_file* source, char* 
dest, entropy_gui_component_instance* requester) {
   entropy_gui_component_instance *instance = requester;




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