Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/common Modified Files: evfs_common.c evfs_event_helper.c Log Message: * EVFS now has a workflow and eventing engine! This makes for a much cleaner, ecore_main_loop_iterate()-less system for the scheduling and processing of events in several chunks. At the moment, copy is the only major function to use this system, but recursive remove, and mkdir, are coming soon. The operation_response system is currently slightly broken as a result of this, but will be fixed soon. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_common.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evfs_common.c 3 Feb 2006 23:12:13 -0000 1.2 +++ evfs_common.c 12 Mar 2006 05:27:33 -0000 1.3 @@ -5,3 +5,27 @@ { return ecore_hash_get(server->plugin_uri_hash, uri_base); } + +evfs_filereference* evfs_filereference_clone(evfs_filereference* source) +{ + evfs_filereference* dest = calloc(1,sizeof(evfs_filereference)); + + dest->plugin_uri = strdup(source->plugin_uri); + dest->plugin = source->plugin; + + /*TODO - handle nested files*/ + + dest->file_type = source->file_type; + dest->path = strdup(source->path); + + if (source->username) dest->username = strdup(source->username); + if (source->password) dest->password = strdup(source->password); + + /*FIXME - do we assume this file is closed or open?*/ + dest->fd = 0; + dest->fd_p = NULL; + + return dest; + +} + =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_event_helper.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- evfs_event_helper.c 11 Mar 2006 09:18:37 -0000 1.23 +++ evfs_event_helper.c 12 Mar 2006 05:27:33 -0000 1.24 @@ -74,7 +74,8 @@ void evfs_file_progress_event_create(evfs_client * client, - evfs_command * event_command, + evfs_filereference* file_from, + evfs_filereference* file_to, evfs_command * root_command, double progress, evfs_progress_type type) { @@ -89,9 +90,9 @@ event->file_list.list = ecore_list_new(); ecore_list_append(event->file_list.list, - event_command->file_command.files[0]); + file_from); ecore_list_append(event->file_list.list, - event_command->file_command.files[1]); + file_to); evfs_write_event(client, root_command, event); ------------------------------------------------------- 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