Enlightenment CVS committal
Author : chaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/bin
Modified Files:
evfs_main.c evfs_server_handle.c
Log Message:
* API changes, allow stat on dir listing for each file
* Actually kill child worker properly after our daemon client exits
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -3 -r1.65 -r1.66
--- evfs_main.c 16 Aug 2007 12:29:00 -0000 1.65
+++ evfs_main.c 19 Aug 2007 01:30:07 -0000 1.66
@@ -192,7 +192,7 @@
}
/*Kill the child pid*/
- if (client->pid) {
+ if (client->worker_client) {
printf("Sending client %p the kill signal\n", client->worker_client);
ecore_ipc_client_send(client->worker_client,
EVFS_MESSAGE_KILL,0,0,0,0,NULL,0);
}
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -3 -r1.81 -r1.82
--- evfs_server_handle.c 18 Aug 2007 01:52:09 -0000 1.81
+++ evfs_server_handle.c 19 Aug 2007 01:30:07 -0000 1.82
@@ -327,6 +327,22 @@
Ecore_List *directory_list = NULL;
(*EVFS_PLUGIN_FILE(plugin)->functions->evfs_dir_list) (client,
command, &directory_list);
if (directory_list) {
+ if (command->options & EVFS_COMMAND_OPTION_STAT) {
+ struct stat file_stat;
+ EvfsFilereference* ref;
+ evfs_command* command;
+
+ 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_list_dir_event_create(client, command, directory_list);
} else {
printf
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs