Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/bin
Modified Files:
evfs_main.c evfs_server_handle.c
Log Message:
File renaming support
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- evfs_main.c 8 Sep 2005 21:04:21 -0000 1.11
+++ evfs_main.c 26 Sep 2005 11:39:47 -0000 1.12
@@ -147,6 +147,10 @@
evfs_handle_monitor_stop_command(client,command);
break;
+ case EVFS_CMD_RENAME_FILE:
+ evfs_handle_file_rename_command(client,command);
+ break;
+
case EVFS_CMD_COPY_FILE:
printf("Copy file stub\n");
break;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evfs_server_handle.c 19 Aug 2005 12:15:10 -0000 1.3
+++ evfs_server_handle.c 26 Sep 2005 11:39:47 -0000 1.4
@@ -54,3 +54,14 @@
(*plugin->functions->evfs_file_remove)(command->file_command.files[0]->path);
}
}
+
+
+void evfs_handle_file_rename_command(evfs_client* client, evfs_command*
command) {
+ printf("At rename handle\n");
+
+ evfs_plugin* plugin =
evfs_get_plugin_for_uri(command->file_command.files[0]->plugin_uri);
+ if (plugin) {
+ printf("Pointer here: %p\n",
plugin->functions->evfs_file_rename);
+ (*plugin->functions->evfs_file_rename)(client,command);
+ }
+}
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs