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:
Directory listing for SAMBA plugin


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- evfs.h      8 Oct 2005 04:23:07 -0000       1.14
+++ evfs.h      9 Oct 2005 07:42:17 -0000       1.15
@@ -57,9 +57,17 @@
        int num_clients;
 };
 
+typedef enum evfs_file_type evfs_file_type;
+enum evfs_file_type {
+       FILE_NORMAL = 1,
+       FILE_DIRECTORY = 2
+};
+
+
 typedef struct evfs_filereference evfs_filereference;
 struct evfs_filereference {
        char* plugin_uri;
+       evfs_file_type file_type;
        char* path;
 };
 
@@ -122,7 +130,8 @@
        EVFS_EV_REPLY = 0,
        EVFS_EV_FILE_MONITOR = 1,       
        EVFS_EV_NOTIFY_ID = 2,
-       EVFS_EV_STAT = 3
+       EVFS_EV_STAT = 3,
+       EVFS_EV_DIR_LIST = 4,
 } evfs_eventtype;
 
 typedef enum evfs_eventtype_sub {
@@ -136,10 +145,11 @@
        EVFS_EV_PART_FILE_MONITOR_FILENAME = 4,
        EVFS_EV_PART_DATA = 5,
        EVFS_EV_PART_STAT_SIZE = 6,
+       EVFS_EV_PART_FILE_REFERENCE = 7,
 
-        EVFS_COMMAND_TYPE = 7,
-        EVFS_FILE_REFERENCE = 8,
-        EVFS_COMMAND_END = 9,
+        EVFS_COMMAND_TYPE = 8,
+        EVFS_FILE_REFERENCE = 9,
+        EVFS_COMMAND_END = 10,
 
        
        EVFS_EV_PART_END = 1000
@@ -181,6 +191,14 @@
        
 };
 
+typedef struct evfs_event_file_list evfs_event_file_list;
+struct evfs_event_file_list {
+       evfs_eventtype type;
+       evfs_command resp_command;
+
+       Ecore_List* list; /*A list of evfs_filereference*/      
+};
+
 //Would be good if this could be a union -> but evfs_command changes size :( */
 typedef struct evfs_event {
        evfs_eventtype type;
@@ -190,6 +208,7 @@
        evfs_event_id_notify id_notify;
        evfs_event_file_monitor file_monitor;
        evfs_event_stat stat;
+       evfs_event_file_list file_list;
 
        
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_commands.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- evfs_commands.h     5 Oct 2005 03:50:33 -0000       1.5
+++ evfs_commands.h     9 Oct 2005 07:42:17 -0000       1.6
@@ -6,6 +6,7 @@
 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);
+void evfs_client_dir_list(evfs_connection* conn, evfs_filereference* file);
 
 #endif
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_event_helper.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evfs_event_helper.h 8 Oct 2005 01:53:25 -0000       1.4
+++ evfs_event_helper.h 9 Oct 2005 07:42:17 -0000       1.5
@@ -4,3 +4,4 @@
 
 void evfs_file_monitor_event_create(evfs_client* client, int type, const char* 
path);
 void evfs_stat_event_create(evfs_client* client, evfs_command* command, struct 
stat* stat_obj);
+void evfs_list_dir_event_create(evfs_client* client, evfs_command* command, 
Ecore_List* files);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_plugin.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evfs_plugin.h       5 Oct 2005 03:50:33 -0000       1.4
+++ evfs_plugin.h       9 Oct 2005 07:42:17 -0000       1.5
@@ -8,6 +8,7 @@
        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);
+       int (*evfs_dir_list)(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.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evfs_server_handle.h        5 Oct 2005 03:50:33 -0000       1.4
+++ evfs_server_handle.h        9 Oct 2005 07:42:17 -0000       1.5
@@ -3,3 +3,4 @@
 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);
+void evfs_handle_dir_list_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

Reply via email to