Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/plugins Modified Files: evfs_fs_posix.c Log Message: Start of stat communication =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_posix.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- evfs_fs_posix.c 5 Oct 2005 01:21:05 -0000 1.10 +++ evfs_fs_posix.c 5 Oct 2005 03:50:33 -0000 1.11 @@ -43,9 +43,12 @@ /*Main file wrappers*/ int evfs_file_remove(char* src); int evfs_file_rename(char* src, char* dst); + int evfs_monitor_start(evfs_client* client, evfs_command* command); int evfs_monitor_stop(evfs_client* client, evfs_command* command); +int evfs_file_stat(evfs_client* client, evfs_command* command); + /*Internal functions*/ /* Real data-copying routine, handling holes etc. Returns outcome @@ -75,6 +78,7 @@ functions->evfs_file_remove= &evfs_file_remove; functions->evfs_monitor_start = &evfs_monitor_start; functions->evfs_monitor_stop = &evfs_monitor_stop; + functions->evfs_file_stat = &evfs_file_stat; return functions; @@ -254,6 +258,19 @@ } +int evfs_file_stat(evfs_client* client, evfs_command* command) { + struct stat file_stat; + + printf("Getting file stat...\n"); + + stat(command->file_command.files[0]->path, &file_stat); + + printf("File size: %d\n", file_stat.st_size); + + evfs_stat_event_create(client, &file_stat); +} + + ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs