Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/plugins Modified Files: evfs_fs_posix.c Log Message: * Make rename work =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_posix.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- evfs_fs_posix.c 2 Jan 2006 23:40:05 -0000 1.28 +++ evfs_fs_posix.c 18 Jan 2006 10:31:22 -0000 1.29 @@ -43,7 +43,7 @@ /*Main file wrappers*/ int evfs_file_remove(char* src); - int evfs_file_rename(char* src, char* dst); + int evfs_file_rename(evfs_client* client, evfs_command* command); int evfs_client_disconnect(evfs_client* client); int evfs_monitor_start(evfs_client* client, evfs_command* command); @@ -106,6 +106,7 @@ functions->evfs_file_write = &evfs_file_write; functions->evfs_file_create = &evfs_file_create; functions->evfs_file_mkdir = &evfs_file_mkdir; + functions->evfs_file_rename = &evfs_file_rename; return functions; @@ -335,9 +336,12 @@ } -int evfs_file_rename(char* src, char* dst) { - printf("Renaming %s to %s\n", src,dst); - return evfs_misc_rename(src,dst); +int evfs_file_rename(evfs_client* client, evfs_command* command) { + evfs_filereference* from = command->file_command.files[0]; + evfs_filereference* to = command->file_command.files[1]; + + printf("Renaming %s to %s\n", from->path,to->path); + return evfs_misc_rename(from->path,to->path); } ------------------------------------------------------- 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