Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins


Modified Files:
        Makefile.am evfs_fs_posix.c 


Log Message:
* Stage one of the event engine.  Demo app now receives and displays events 

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 15 Aug 2005 08:52:31 -0000      1.1
+++ Makefile.am 16 Aug 2005 07:31:40 -0000      1.2
@@ -11,7 +11,8 @@
 pkg_LTLIBRARIES         = $(POSIX_L)
 
 posix_la_SOURCES = evfs_fs_posix.c \
-                       ../common/evfs_debug.c
+                       ../common/evfs_debug.c \
+                       ../common/evfs_event_helper.c
 posix_la_CFLAGS =  @ecore_cflags@
 posix_la_LDFLAGS = -no-undefined -module -avoid-version
 posix_la_LIBADD =  @ecore_libs@
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_posix.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evfs_fs_posix.c     16 Aug 2005 05:44:22 -0000      1.2
+++ evfs_fs_posix.c     16 Aug 2005 07:31:40 -0000      1.3
@@ -57,14 +57,14 @@
 {
        Ecore_List* mon_list;
        
-       printf("Got an event for %s..", path);
+       /*printf("Got an event for %s..", path);*/
 
        switch (event) {
                case ECORE_FILE_EVENT_MODIFIED:
-                       printf("A modified event..\n");
+                       /*printf("A modified event..\n");*/
                        break;
                case ECORE_FILE_EVENT_CREATED_FILE:
-                       printf("File created - '%s'\n", path);
+                       /*printf("File created - '%s'\n", path);*/
                        break;
        }
 
@@ -72,7 +72,13 @@
        mon_list = ecore_hash_get(posix_monitor_hash, (char*)data);
 
        if (mon_list) {
-               printf("Notifying watchers..\n");
+               evfs_file_monitor* mon;
+               
+               ecore_list_goto_first(mon_list);
+               while ((mon = ecore_list_next(mon_list))) {
+                       /*printf ("  Notifying client at id %ld\n", 
mon->client->id);*/
+                       evfs_file_monitor_event_create(mon->client, path);
+               }
        }
                
                
@@ -90,7 +96,7 @@
 
        /*Check if we are already monitoring, if not, make a new list of 
monitors..*/
        if (!mon_list) {
-               printf("No previous instance, making a new list, 
monitoring..\n");
+               /*printf("No previous instance, making a new list, 
monitoring..\n");*/
 
                mon_list = ecore_list_new();
                ecore_hash_set(posix_monitor_hash, mon->monitor_path, mon_list);
@@ -107,7 +113,7 @@
 void evfs_monitor_start(evfs_client* client, evfs_command* command) {
        
        
-       printf("Received monitor request at plugin for 
%s..\n",command->file_command.files[0]->path );
+       /*printf("Received monitor request at plugin for 
%s..\n",command->file_command.files[0]->path );*/
        posix_monitor_add(client, command);
         
 }




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to