Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/bin


Modified Files:
        evfs_server_handle.c 


Log Message:
* EvfsStat on dir list option

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -3 -r1.82 -r1.83
--- evfs_server_handle.c        19 Aug 2007 01:30:07 -0000      1.82
+++ evfs_server_handle.c        20 Aug 2007 11:14:40 -0000      1.83
@@ -327,20 +327,20 @@
         Ecore_List *directory_list = NULL;
         (*EVFS_PLUGIN_FILE(plugin)->functions->evfs_dir_list) (client, 
command, &directory_list);
         if (directory_list) {
+            printf("Options: %d\n", command->options);
             if (command->options & EVFS_COMMAND_OPTION_STAT) {
                     struct stat file_stat;
                     EvfsFilereference* ref;
                     evfs_command* command;
-                    
+                   
+                    printf("Adding stat to dir listing..\n");
                     ecore_list_first_goto(directory_list);                  
                     while ( (ref = ecore_list_next(directory_list))) {
                                command = evfs_file_command_single_build(ref);
                                
(*(EVFS_PLUGIN_FILE(plugin)->functions->evfs_file_stat)) 
                                        (command, &file_stat, 0);
                                evfs_cleanup_file_command_only(command);
-
-                               if (ref->stat) free(ref->stat);
-                               memcpy(ref->stat, &file_stat, sizeof(struct 
stat));
+                               evfs_stat_system_to_evfs_filereference(ref, 
&file_stat);
                     }
             }
              evfs_list_dir_event_create(client, command, directory_list);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to