Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/include Modified Files: evfs.h evfs_commands.h evfs_event_helper.h evfs_plugin.h evfs_server_handle.h Log Message: Start of stat communication =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- evfs.h 26 Sep 2005 11:39:47 -0000 1.10 +++ evfs.h 5 Oct 2005 03:50:33 -0000 1.11 @@ -27,6 +27,7 @@ #define EVFS_FUNCTION_DIRECTORY_LIST "evfs_directory_list" #define EVFS_FUNCTION_FILE_COPY "evfs_file_copy" #define EVFS_FUNCTION_FILE_MOVE "evfs_file_move" +#define EVFS_FUNCTION_FILE_STAT_GET "evfs_file_stat_get" @@ -72,7 +73,8 @@ EVFS_CMD_MOVE_FILE = 4, EVFS_CMD_RENAME_FILE = 5, EVFS_CMD_REMOVE_FILE=6, - EVFS_CMD_LIST_DIR = 7 + EVFS_CMD_LIST_DIR = 7, + EVFS_CMD_FILE_STAT = 8 } evfs_command_type; @@ -114,7 +116,8 @@ typedef enum evfs_eventtype { EVFS_EV_REPLY = 0, EVFS_EV_FILE_MONITOR = 1, - EVFS_EV_NOTIFY_ID = 2 + EVFS_EV_NOTIFY_ID = 2, + EVFS_EV_STAT = 3 } evfs_eventtype; typedef enum evfs_eventtype_sub { @@ -128,8 +131,10 @@ EVFS_EV_PART_FILE_MONITOR_TYPE = 3, EVFS_EV_PART_FILE_MONITOR_FILENAME = 4, - EVFS_EV_PART_DATA = 5, + + EVFS_EV_PART_STAT_SIZE = 6, + EVFS_EV_PART_END = 1000 } evfs_eventpart; @@ -156,6 +161,11 @@ }; +typedef struct evfs_event_stat evfs_event_stat; +struct evfs_event_stat { + evfs_eventtype type; + unsigned long size; +}; typedef union evfs_event { @@ -163,6 +173,7 @@ evfs_event_id_notify id_notify; evfs_event_file_monitor file_monitor; + evfs_event_stat stat; } evfs_event; =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_commands.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- evfs_commands.h 26 Sep 2005 11:39:47 -0000 1.4 +++ evfs_commands.h 5 Oct 2005 03:50:33 -0000 1.5 @@ -5,6 +5,7 @@ void evfs_monitor_remove(evfs_connection* conn, evfs_filereference* ref); void evfs_client_file_remove(evfs_connection* conn, evfs_filereference* ref); void evfs_client_file_rename(evfs_connection* conn, evfs_filereference* from, evfs_filereference* to); +void evfs_client_file_stat(evfs_connection* conn, evfs_filereference* file); #endif =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_event_helper.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evfs_event_helper.h 17 Sep 2005 06:54:20 -0000 1.2 +++ evfs_event_helper.h 5 Oct 2005 03:50:33 -0000 1.3 @@ -1 +1,6 @@ +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> + void evfs_file_monitor_event_create(evfs_client* client, int type, const char* path); +void evfs_stat_event_create(evfs_client* client, struct stat* stat_obj); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_plugin.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- evfs_plugin.h 26 Sep 2005 11:39:47 -0000 1.3 +++ evfs_plugin.h 5 Oct 2005 03:50:33 -0000 1.4 @@ -7,6 +7,7 @@ int (*evfs_monitor_start)(evfs_client* client, evfs_command* command); int (*evfs_monitor_stop)(evfs_client* client, evfs_command* command); int (*evfs_file_rename)(evfs_client* client, evfs_command* command); + int (*evfs_file_stat)(evfs_client* client, evfs_command* command); }; typedef struct evfs_plugin evfs_plugin; =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_server_handle.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- evfs_server_handle.h 26 Sep 2005 11:39:47 -0000 1.3 +++ evfs_server_handle.h 5 Oct 2005 03:50:33 -0000 1.4 @@ -2,3 +2,4 @@ void evfs_handle_monitor_stop_command(evfs_client* client, evfs_command* command); void evfs_handle_file_remove_command(evfs_client* client, evfs_command* command); void evfs_handle_file_rename_command(evfs_client* client, evfs_command* command); +void evfs_handle_file_stat_command(evfs_client* client, evfs_command* command); ------------------------------------------------------- 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