Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/common


Modified Files:
        evfs_event_helper.c evfs_io.c 


Log Message:
Oops - send plugin type along with file monitor notify events


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_event_helper.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- evfs_event_helper.c 9 Oct 2005 07:42:17 -0000       1.6
+++ evfs_event_helper.c 18 Oct 2005 08:47:38 -0000      1.7
@@ -5,13 +5,14 @@
        #include <unistd.h>
 
 
-void evfs_file_monitor_event_create(evfs_client* client, int type, const char* 
path) {
+void evfs_file_monitor_event_create(evfs_client* client, int type, const char* 
path, const char* plugin) {
        /*Create a reply event for a file mon event, send it , destroy event*/
 
        evfs_event* event = NEW(evfs_event);
        event->type = EVFS_EV_FILE_MONITOR;
        event->file_monitor.filename = (char*)path;
        event->file_monitor.fileev_type = type;
+       event->file_monitor.plugin = plugin;
        event->file_monitor.filename_len = strlen(path)+1;
 
        evfs_write_event(client, NULL, event);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_io.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- evfs_io.c   18 Oct 2005 04:55:06 -0000      1.18
+++ evfs_io.c   18 Oct 2005 08:47:38 -0000      1.19
@@ -30,8 +30,15 @@
 }
 
 void evfs_write_event_file_monitor (evfs_client* client, evfs_event* event) {
+
+       /*Write the type*/
        evfs_write_ecore_ipc_client_message(client->client, 
ecore_ipc_message_new(EVFS_EV_REPLY,EVFS_EV_PART_FILE_MONITOR_TYPE,client->id,0,0,&event->file_monitor.fileev_type,
 sizeof(evfs_file_monitor_type)));
+
+       /*Write the filename this is an event for*/
        evfs_write_ecore_ipc_client_message(client->client, 
ecore_ipc_message_new(EVFS_EV_REPLY,EVFS_EV_PART_FILE_MONITOR_FILENAME,client->id,0,0,event->file_monitor.filename,event->file_monitor.filename_len));
+
+       /*Write the plugin*/
+       evfs_write_ecore_ipc_client_message(client->client, 
ecore_ipc_message_new(EVFS_EV_REPLY,EVFS_EV_PART_FILE_MONITOR_PLUGIN,client->id,0,0,event->file_monitor.plugin,strlen(event->file_monitor.plugin)+1
 ));
        
        
 }
@@ -100,6 +107,10 @@
                        event->file_monitor.filename = strdup(msg->data);
                        event->file_monitor.filename_len = strlen(msg->data);
                        break;
+               case EVFS_EV_PART_FILE_MONITOR_PLUGIN:
+                       event->file_monitor.plugin = strdup(msg->data);
+                       break;          
+                       
                case EVFS_EV_PART_STAT_SIZE:
                        memcpy(&event->stat.stat_obj, msg->data, sizeof(struct 
stat));
                        break;




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to