Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/bin Modified Files: evfs_main.c evfs_server_handle.c Log Message: * eVfs vFolder stub =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_main.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- evfs_main.c 29 Dec 2005 12:43:40 -0000 1.29 +++ evfs_main.c 15 Jan 2006 09:21:58 -0000 1.30 @@ -189,6 +189,9 @@ printf("File copy handler\n"); evfs_handle_file_copy(client,command,command); break; + case EVFS_CMD_PING: + evfs_handle_ping_command(client,command); + break; default: printf("Warning - unhandled command %d\n", command->type); break; } =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- evfs_server_handle.c 10 Jan 2006 07:54:23 -0000 1.33 +++ evfs_server_handle.c 15 Jan 2006 09:21:59 -0000 1.34 @@ -295,10 +295,13 @@ while (count < file_stat.st_size) { //(*plugin->functions->evfs_file_seek)(command->file_command.files[0], count, SEEK_SET); - read_write_bytes = (file_stat.st_size > count + COPY_BLOCKSIZE) ? COPY_BLOCKSIZE : (file_stat.st_size - count); + read_write_bytes = + (file_stat.st_size > count + COPY_BLOCKSIZE) ? COPY_BLOCKSIZE : (file_stat.st_size - count); + //printf("Reading/writing %d bytes\n", read_write_bytes); - b_read = (*plugin->functions->evfs_file_read)(client,command->file_command.files[0], bytes, read_write_bytes ); + b_read = + (*plugin->functions->evfs_file_read)(client,command->file_command.files[0], bytes, read_write_bytes ); if (b_read > 0) { b_write = (*dst_plugin->functions->evfs_file_write)(command->file_command.files[1], bytes, b_read ); //printf("%d -> %d\n", b_read, b_write); @@ -309,7 +312,8 @@ progress = (double)((double)count / (double)file_stat.st_size * 100); if (progress % 1 == 0 && last_notify_progress < progress) { /*printf ("Percent complete: %d\n", progress);*/ - evfs_file_progress_event_create(client,command, root_command,progress, EVFS_PROGRESS_TYPE_CONTINUE); + evfs_file_progress_event_create(client,command, + root_command,progress, EVFS_PROGRESS_TYPE_CONTINUE); last_notify_progress = progress; } @@ -385,7 +389,12 @@ } else { - printf("Could not get plugins for both source and dest: (%s:%s)\n",command->file_command.files[0]->plugin_uri, command->file_command.files[1]->plugin_uri ); + printf("Could not get plugins for both source and dest: (%s:%s)\n", + command->file_command.files[0]->plugin_uri, command->file_command.files[1]->plugin_uri ); } } + +void evfs_handle_ping_command(evfs_client* client, evfs_command* command) { + printf("Ping!\n"); +} ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs