Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/include Modified Files: evfs.h evfs_event_helper.h Log Message: Made the event structure and subsystem more logical. Event types can now be transmittd =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- evfs.h 19 Aug 2005 12:15:12 -0000 1.8 +++ evfs.h 17 Sep 2005 06:54:20 -0000 1.9 @@ -10,6 +10,9 @@ #include <Ecore_File.h> #include <pthread.h> +#include <stdlib.h> +#include <string.h> + #define EVFS_IPC_TITLE "evfs_fs" #define MAXPATHLEN 512 @@ -108,7 +111,8 @@ /*Event structures*/ typedef enum evfs_eventtype { - EVFS_EV_REPLY = 1, + EVFS_EV_REPLY = 0, + EVFS_EV_FILE_MONITOR = 1, EVFS_EV_NOTIFY_ID = 2 } evfs_eventtype; @@ -119,18 +123,48 @@ typedef enum evfs_eventpart { EVFS_EV_PART_TYPE = 1, EVFS_EV_PART_SUB_TYPE = 2, - EVFS_EV_PART_DATA = 3, + + EVFS_EV_PART_FILE_MONITOR_TYPE = 3, + EVFS_EV_PART_FILE_MONITOR_FILENAME = 4, + + + EVFS_EV_PART_DATA = 5, EVFS_EV_PART_END = 1000 } evfs_eventpart; -typedef struct evfs_event evfs_event; -struct evfs_event { +typedef enum evfs_file_monitor_type { + EVFS_FILE_EV_CREATE, + EVFS_FILE_EV_CHANGE, + EVFS_FILE_EV_REMOVE +} evfs_file_monitor_type; + +typedef struct evfs_event_id_notify evfs_event_id_notify; +struct evfs_event_id_notify { evfs_eventtype type; - evfs_eventtype_sub sub_type; - void* data; - int data_len; + + int id; +}; + +typedef struct evfs_event_file_monitor evfs_event_file_monitor; +struct evfs_event_file_monitor { + evfs_eventtype type; + evfs_file_monitor_type fileev_type; + + char* filename; + int filename_len; }; + + + +typedef union evfs_event { + evfs_eventtype type; + + evfs_event_id_notify id_notify; + evfs_event_file_monitor file_monitor; +} +evfs_event; + typedef struct evfs_connection evfs_connection; struct evfs_connection { Ecore_Ipc_Server* server; =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_event_helper.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- evfs_event_helper.h 16 Aug 2005 07:31:40 -0000 1.1 +++ evfs_event_helper.h 17 Sep 2005 06:54:20 -0000 1.2 @@ -1 +1 @@ -void evfs_file_monitor_event_create(evfs_client* client, const char* path); +void evfs_file_monitor_event_create(evfs_client* client, int type, const char* path); ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs