Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/bin Modified Files: evfs_server_handle.c Log Message: * Correctly handle evfs_operations on copy. Warning - does not support 'Abort' yet. Yes/No work fine =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -3 -r1.38 -r1.39 --- evfs_server_handle.c 2 Feb 2006 21:56:29 -0000 1.38 +++ evfs_server_handle.c 3 Feb 2006 09:26:33 -0000 1.39 @@ -407,6 +407,13 @@ ecore_main_loop_iterate (); usleep (10); } + + if (op->response == EVFS_OPERATION_RESPONSE_NEGATE) { + printf("User opted not to overwrite file!\n"); + goto CLEANUP; + } else { + printf("User opted to overwrite file!\n"); + } } if (!S_ISDIR (file_stat.st_mode)) { @@ -539,6 +546,7 @@ command->file_command.files[1]->plugin_uri); } + CLEANUP: evfs_operation_destroy (op); } @@ -551,5 +559,12 @@ void evfs_handle_operation_command(evfs_client* client, evfs_command* command) { - printf("*** Received operation response for op %ld -> %d\n", command->op->id, command->op->response); + evfs_operation* op_get = NULL; + + op_get = evfs_operation_get_by_id(command->op->id); + if (op_get) { + op_get->status = EVFS_OPERATION_STATUS_NORMAL; + op_get->response = command->op->response; + printf("*** Received operation response for op %ld -> %d\n", command->op->id, command->op->response); + } } ------------------------------------------------------- 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs