Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/include Modified Files: evfs.h evfs_cleanup.h Log Message: * Create the concept of an 'evfs_stat', because 'struct stat' cannot be portably transmitted between processes (because of byte-alignment) * Checkin latest version of John Kha's FTP plugin. Note that there are still some issues with directory listing here. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- evfs.h 8 Nov 2005 11:24:49 -0000 1.23 +++ evfs.h 9 Nov 2005 23:51:05 -0000 1.24 @@ -141,6 +141,16 @@ /*-----------------------------------------------------------------*/ +typedef struct evfs_stat { + int st_uid; + int st_gid; + int st_size; + int ist_atime; + int ist_mtime; + int ist_ctime; + +} evfs_stat; + typedef struct evfs_event_id_notify evfs_event_id_notify; struct evfs_event_id_notify { @@ -158,10 +168,7 @@ typedef struct evfs_event_stat evfs_event_stat; struct evfs_event_stat { - - - struct stat stat_obj; - + evfs_stat stat_obj; }; typedef struct evfs_event_file_list evfs_event_file_list; @@ -174,14 +181,11 @@ typedef struct evfs_event { evfs_eventtype type; evfs_command resp_command; - + evfs_event_file_list file_list; evfs_event_id_notify id_notify; evfs_event_file_monitor file_monitor; - evfs_event_stat stat; - - - + evfs_event_stat stat; } evfs_event; /*---------------------------------------------------------------------*/ @@ -197,7 +201,7 @@ void evfs_cleanup_client(evfs_client* client); void evfs_disconnect(evfs_connection* connection); -evfs_connection* evfs_connect(void (*callback_func)(void*)); +evfs_connection* evfs_connect(void (*callback_func)(evfs_event*)); evfs_file_uri_path* evfs_parse_uri(char* uri); void evfs_handle_command(evfs_client* client, evfs_command* command); void evfs_handle_monitor_start_command(evfs_client* client, evfs_command* command); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_cleanup.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- evfs_cleanup.h 22 Oct 2005 04:51:42 -0000 1.4 +++ evfs_cleanup.h 9 Nov 2005 23:51:05 -0000 1.5 @@ -9,5 +9,6 @@ void evfs_cleanup_command(evfs_command* command, int free_command); void evfs_cleanup_file_command(evfs_command* command); void evfs_cleanup_file_monitor(evfs_file_monitor* mon); +void evfs_cleanup_event(evfs_event*); #endif ------------------------------------------------------- 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