Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        ewl_icon_local_viewer.c structure_viewer.c 


Log Message:
* Generic copy function

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -3 -r1.57 -r1.58
--- ewl_icon_local_viewer.c     20 Feb 2006 06:48:36 -0000      1.57
+++ ewl_icon_local_viewer.c     21 Feb 2006 00:15:20 -0000      1.58
@@ -213,24 +213,12 @@
   entropy_generic_file *file;
   entropy_gui_component_instance *instance =
     ((entropy_gui_component_instance *) user_data);
-  entropy_plugin *plugin =
-    entropy_plugins_type_get_first (ENTROPY_PLUGIN_BACKEND_FILE,
-                                   ENTROPY_PLUGIN_SUB_TYPE_ALL);
-
-  void (*copy_func) (entropy_generic_file * source, char *dest_uri,
-                    entropy_gui_component_instance * requester);
-
-
-  /*Get the func ref */
-  copy_func = dlsym (plugin->dl_ref, "entropy_filesystem_file_copy");
-
-  //printf("Paste the following files:\n");
 
   selected = entropy_core_selected_files_get (instance->core);
   ecore_list_goto_first (selected);
 
   while ((file = ecore_list_next (selected))) {
-    (*copy_func) (file, ((entropy_icon_viewer *) instance->data)->current_dir,
+    entropy_plugin_filesystem_file_copy(file, ((entropy_icon_viewer *) 
instance->data)->current_dir,
                  instance);
   }
 }
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/structure_viewer.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- structure_viewer.c  20 Feb 2006 23:14:08 -0000      1.35
+++ structure_viewer.c  21 Feb 2006 00:15:20 -0000      1.36
@@ -192,13 +192,6 @@
       entropy_generic_file *file;
       char dest_dir[PATH_MAX];
 
-      entropy_plugin *plugin =
-       entropy_plugins_type_get_first (ENTROPY_PLUGIN_BACKEND_FILE,
-                                       ENTROPY_PLUGIN_SUB_TYPE_ALL);
-      void (*copy_func) (entropy_generic_file * source, char *dest_uri,
-                        entropy_gui_component_instance * requester);
-      copy_func = dlsym (plugin->dl_ref, "entropy_filesystem_file_copy");
-
       snprintf (dest_dir, PATH_MAX, "%s://%s/%s", event->file->uri_base,
                event->file->path, event->file->filename);
 
@@ -208,7 +201,7 @@
        if ((file = entropy_core_object_file_association_get (icon))) {
          printf ("Filename: '%s' - '%s/%s'\n", file->uri_base, file->path,
                  file->filename);
-         (*copy_func) (file, dest_dir, event->instance);
+             entropy_plugin_filesystem_file_copy(file, dest_dir, 
event->instance);
        }
       }
 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to