Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/bin


Modified Files:
        evfs_main.c evfs_operation.c 


Log Message:
* Slightly more debugging output in sftp, for now.  There are issues here
* Handle bzip2 errors more cleanly, and prevent endless loop lockup

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- evfs_main.c 14 Mar 2006 13:06:22 -0000      1.39
+++ evfs_main.c 28 Mar 2006 07:42:33 -0000      1.40
@@ -187,7 +187,7 @@
      case EVFS_CMD_FILE_STAT:
         evfs_handle_file_stat_command(client, command);
         break;
-     case EVFS_CMD_LIST_DIR:
+     case EVFS_CMD_LIST_DIR: 
         evfs_handle_dir_list_command(client, command);
         break;
      case EVFS_CMD_FILE_OPEN:
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_operation.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evfs_operation.c    14 Mar 2006 13:06:22 -0000      1.10
+++ evfs_operation.c    28 Mar 2006 07:42:33 -0000      1.11
@@ -219,7 +219,7 @@
        
        ecore_list_goto_first(evfs_operation_queue);
        op = ecore_list_current(evfs_operation_queue);
-       
+
        if (op) {
                switch (op->type) {
                        case EVFS_OPERATION_TYPE_FILES:
@@ -277,12 +277,12 @@
 
 void evfs_operation_run_tasks(evfs_operation* op)
 {
+       printf("Running tasks..\n");
        evfs_operation_task* task = NULL;
 
        task = ecore_list_current(op->sub_task);
        if (task) {
 
-
            if (op->status == EVFS_OPERATION_STATUS_REPLY_RECEIVED) {
                    evfs_operation_response_handle(op,task);
            }
@@ -293,7 +293,6 @@
                if (task->status == EVFS_OPERATION_TASK_STATUS_PENDING)
                        task->status = EVFS_OPERATION_TASK_STATUS_EXEC;
 
-               
                switch (task->type) {
                        case EVFS_OPERATION_TASK_TYPE_FILE_COPY: {
                                int prog = 0;
@@ -301,7 +300,7 @@
                                double calc;
 
 
-                               /*printf("...Processing file copy task 
type!\n");*/
+                               printf("...Processing file copy task type!\n");
                                prog = evfs_operation_tasks_file_copy_run(op, 
EVFS_OPERATION_TASK_FILE_COPY(task));
                                EVFS_OPERATION_FILES(op)->progress_bytes += 
prog;
 
@@ -321,7 +320,11 @@
                                }
 
                                //FIXME - ther's probably a better place to put 
this*/
-                               if (op->processed_tasks == 
ecore_list_nodes(op->sub_task) && task->status == 
EVFS_OPERATION_TASK_STATUS_COMMITTED) {
+                               if (op->processed_tasks == 
ecore_list_nodes(op->sub_task) && 
+                                   task->status == 
EVFS_OPERATION_TASK_STATUS_COMMITTED) {
+                       
+                                       printf("Sending completed progress 
event...\n");
+                                               
                                        
evfs_file_progress_event_create(op->client,  
EVFS_OPERATION_TASK_FILE_COPY(task)->file_from,
                                                
EVFS_OPERATION_TASK_FILE_COPY(task)->file_to,
                                                op->command, 100, 
@@ -384,7 +387,7 @@
                        ecore_list_next(op->sub_task);
                }
           } else {
-                  /*printf("Operation is in user wait state!\n");*/
+                  printf("Operation is in user wait state!\n");
           }
        } else {
                /*If task is null, operation is completed!*/




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to