Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c plugin_helper.c 


Log Message:
* dlsym--, api++

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -3 -r1.72 -r1.73
--- entropy_core.c      2 Apr 2006 12:18:21 -0000       1.72
+++ entropy_core.c      3 Apr 2006 10:11:11 -0000       1.73
@@ -1265,9 +1265,9 @@
 
 char* entropy_core_generic_file_uri_create (entropy_generic_file* file, int 
drill_down) {
        entropy_generic_file* source_file;
-       char* uri = malloc(PATH_MAX);
+       char* uri = entropy_malloc(PATH_MAX);
        char* uri_retrieve;
-       char uri_build[255];
+       char uri_build[PATH_MAX];
                
        /*If the file/location we are requesting has a 'parent' (i.e. it's 
inside another object),
         * we have to grab the parent, not the file itself, as the base*/
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugin_helper.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- plugin_helper.c     2 Apr 2006 05:55:14 -0000       1.14
+++ plugin_helper.c     3 Apr 2006 10:11:11 -0000       1.15
@@ -201,8 +201,33 @@
     ENTROPY_PLUGIN_FILE(entropy_plugins_type_get_first 
(ENTROPY_PLUGIN_BACKEND_FILE,
                                    ENTROPY_PLUGIN_SUB_TYPE_ALL));
 
-  (*plugin->file_functions.file_copy) (source, dest,
+  if (plugin) {
+         (*plugin->file_functions.file_copy) (source, dest,
                  instance);
+  }
 
   return 1;
+}
+
+void entropy_plugin_operation_respond(long operation, int response)
+{
+  Entropy_Plugin_File* plugin =
+    ENTROPY_PLUGIN_FILE(entropy_plugins_type_get_first 
(ENTROPY_PLUGIN_BACKEND_FILE,
+                                   ENTROPY_PLUGIN_SUB_TYPE_ALL));
+
+  if (plugin) {
+       (*plugin->file_functions.operation_respond) (operation, response);
+  }
+}
+
+void entropy_plugin_filesystem_file_rename(entropy_generic_file* file, 
entropy_generic_file* dest)
+{
+         Entropy_Plugin_File* plugin =
+    ENTROPY_PLUGIN_FILE(entropy_plugins_type_get_first 
(ENTROPY_PLUGIN_BACKEND_FILE,
+                                   ENTROPY_PLUGIN_SUB_TYPE_ALL));
+
+  if (plugin) {
+       (*plugin->file_functions.file_rename) (file,dest);
+  }
+
 }




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