Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins/file


Modified Files:
        evfs_fs_samba.c 


Log Message:
* Samba - rename support

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_samba.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evfs_fs_samba.c     5 Jun 2006 12:14:10 -0000       1.3
+++ evfs_fs_samba.c     20 Jun 2006 15:30:32 -0000      1.4
@@ -61,6 +61,7 @@
                    char *bytes, long size);
 int evfs_file_write(evfs_filereference * file, char *bytes, long size);
 int evfs_file_create(evfs_filereference * file);
+int smb_evfs_file_rename(evfs_client* client, evfs_command* command);
 int smb_evfs_file_mkdir(evfs_filereference * file);
 int evfs_file_remove(char *file);
 
@@ -206,6 +207,7 @@
    functions->evfs_file_stat = &smb_evfs_file_stat;
    functions->evfs_file_lstat = &smb_evfs_file_stat;    /*Windows file systems 
have no concept
                                                          * of 'lstat' */
+   functions->evfs_file_rename = &smb_evfs_file_rename;
 
    functions->evfs_file_mkdir = &smb_evfs_file_mkdir;
    functions->evfs_file_remove = &evfs_file_remove;
@@ -237,6 +239,18 @@
 evfs_plugin_uri_get()
 {
    return "smb";
+}
+
+int 
+smb_evfs_file_rename(evfs_client* client, evfs_command* command)
+{
+       int err;
+
+       /*TODO: Check that these files are on same filesystem.
+        * This should really be a per-plugin function called from the top 
level*/
+       err = smb_context->rename(smb_context, 
command->file_command.files[0]->path, 
+                       smb_context,
+                       command->file_command.files[1]->path);
 }
 
 int




_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to