Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/common


Modified Files:
        evfs_event_helper.c evfs_cleanup.c 


Log Message:
* EvfsStat on dir list option

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/common/evfs_event_helper.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- evfs_event_helper.c 20 Aug 2007 00:07:01 -0000      1.34
+++ evfs_event_helper.c 20 Aug 2007 11:14:40 -0000      1.35
@@ -32,15 +32,15 @@
    EvfsEventStat *event = NEW(EvfsEventStat);
    EVFS_EVENT(event)->type = EVFS_EV_STAT;
 
-   //memcpy(&event->stat.stat_obj, stat_obj, sizeof(struct stat));
-   event->st_mode = stat_obj->st_mode;
-   event->st_uid = stat_obj->st_uid;
-   event->st_gid = stat_obj->st_gid;
-   event->st_uid = stat_obj->st_uid;
-   event->st_size = stat_obj->st_size;
-   event->ist_atime = stat_obj->st_atime;
-   event->ist_mtime = stat_obj->st_mtime;
-   event->ist_ctime = stat_obj->st_ctime;
+   event->stat = NEW(EvfsStat);
+   event->stat->st_mode = stat_obj->st_mode;
+   event->stat->st_uid = stat_obj->st_uid;
+   event->stat->st_gid = stat_obj->st_gid;
+   event->stat->st_uid = stat_obj->st_uid;
+   event->stat->st_size = stat_obj->st_size;
+   event->stat->ist_atime = stat_obj->st_atime;
+   event->stat->ist_mtime = stat_obj->st_mtime;
+   event->stat->ist_ctime = stat_obj->st_ctime;
 
    evfs_write_event(client, command, EVFS_EVENT(event));
 
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/common/evfs_cleanup.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- evfs_cleanup.c      19 Aug 2007 01:30:08 -0000      1.32
+++ evfs_cleanup.c      20 Aug 2007 11:14:40 -0000      1.33
@@ -72,6 +72,14 @@
 }
 
 void
+evfs_cleanup_stat_event(EvfsEventStat* event)
+{
+       if (event->stat) {
+               free(event->stat);
+       }
+}
+
+void
 evfs_cleanup_monitor_event(EvfsEventFileMonitor *event)
 {
    if (event->file)
@@ -196,6 +204,11 @@
      case EVFS_EV_METADATA_GROUPS:
        evfs_cleanup_metadata_groups_event(event);
        break;
+
+     case EVFS_EV_STAT:
+       evfs_cleanup_stat_event(event);
+       break;
+
      default:
        break;
      }



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to