Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/plugins
Modified Files:
evfs_fs_posix.c evfs_fs_samba.c
Log Message:
Let plugins know that client has left
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_posix.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- evfs_fs_posix.c 18 Oct 2005 08:47:38 -0000 1.15
+++ evfs_fs_posix.c 22 Oct 2005 09:09:55 -0000 1.16
@@ -44,6 +44,7 @@
int evfs_file_remove(char* src);
int evfs_file_rename(char* src, char* dst);
+int evfs_client_disconnect(evfs_client* client);
int evfs_monitor_start(evfs_client* client, evfs_command* command);
int evfs_monitor_stop(evfs_client* client, evfs_command* command);
int evfs_file_open(evfs_filereference* file);
@@ -80,6 +81,8 @@
posix_monitor_hash = ecore_hash_new(ecore_str_hash, ecore_str_compare);
+ functions->evfs_client_disconnect = &evfs_client_disconnect;
+
functions->evfs_file_remove= &evfs_file_remove;
functions->evfs_monitor_start = &evfs_monitor_start;
functions->evfs_monitor_stop = &evfs_monitor_stop;
@@ -87,6 +90,7 @@
functions->evfs_file_open = &evfs_file_open;
functions->evfs_file_close = &evfs_file_close;
+
functions->evfs_file_seek = &evfs_file_seek;
functions->evfs_file_read = &evfs_file_read;
functions->evfs_file_write = &evfs_file_write;
@@ -100,6 +104,12 @@
return "posix";
}
+
+int
+evfs_client_disconnect(evfs_client* client) {
+ printf ("Received disconnect for client at evfs_fs_posix.c for client
%d\n", client->id);
+}
+
void
evfs_file_monitor_fam_handler (void *data, Ecore_File_Monitor *em,
Ecore_File_Event event,
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_samba.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- evfs_fs_samba.c 18 Oct 2005 04:55:08 -0000 1.12
+++ evfs_fs_samba.c 22 Oct 2005 09:09:55 -0000 1.13
@@ -58,6 +58,15 @@
int evfs_file_create(evfs_filereference* file);
+
+
+int
+evfs_client_disconnect(evfs_client* client) {
+ printf ("Received disconnect for client at evfs_fs_samba.c for client
%d\n", client->id);
+}
+
+
+
void evfs_auth_structure_add(Ecore_List* cache, char* username, char*
password, char* path) {
evfs_auth_cache* obj = NEW(evfs_auth_cache);
obj->username = strdup(username);
@@ -142,6 +151,7 @@
printf("Initialising the samba plugin..\n");
evfs_plugin_functions* functions =
malloc(sizeof(evfs_plugin_functions));
functions->evfs_dir_list = &smb_evfs_dir_list;
+ functions->evfs_client_disconnect = &evfs_client_disconnect;
functions->evfs_file_open = &evfs_file_open;
functions->evfs_file_close = &evfs_file_close;
functions->evfs_file_seek = &evfs_file_seek;
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs