Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/common


Modified Files:
        evfs_io.c 


Log Message:
File renaming support

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_io.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evfs_io.c   17 Sep 2005 06:54:20 -0000      1.8
+++ evfs_io.c   26 Sep 2005 11:39:47 -0000      1.9
@@ -103,6 +103,7 @@
                case EVFS_CMD_STOPMON_FILE:
                case EVFS_CMD_STARTMON_FILE:
                case EVFS_CMD_REMOVE_FILE:
+               case EVFS_CMD_RENAME_FILE:
                        evfs_write_file_command(conn, command);
                        break;
        }
@@ -156,8 +157,14 @@
 
                                free(path);
                        } else {
-                               printf("we already have %d files\n", 
command->file_command.num_files);
+                               //printf("we already have %d files\n", 
command->file_command.num_files);
                                /*TODO Handle multiple files*/
+
+                       
+                               command->file_command.files = 
realloc(command->file_command.files, 
sizeof(evfs_filereference*)*(command->file_command.num_files+1));
+                               
command->file_command.files[command->file_command.num_files] = path->files[0];
+                               
+                               command->file_command.num_files++;
                        }
                                                  
                        




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to