Enlightenment CVS committal
Author : chaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/lib
Modified Files:
evfs_commands.c
Log Message:
* Add 'move' operation
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/lib/evfs_commands.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- evfs_commands.c 21 Apr 2006 15:10:16 -0000 1.27
+++ evfs_commands.c 10 Jun 2006 02:35:59 -0000 1.28
@@ -142,6 +142,29 @@
}
long
+evfs_client_file_move(evfs_connection * conn, evfs_filereference * from,
+ evfs_filereference * to)
+{
+
+ evfs_command *command = evfs_client_command_new();
+ long id = command->client_identifier;
+
+ command->type = EVFS_CMD_FILE_MOVE;
+ command->file_command.num_files = 2;
+ command->file_command.files = malloc(sizeof(evfs_filereference *) * 2);
+ command->file_command.files[0] = from;
+ command->file_command.files[1] = to;
+
+ evfs_write_command(conn, command);
+
+ free(command->file_command.files);
+ free(command);
+
+ return id;
+}
+
+
+long
evfs_client_file_open(evfs_connection * conn, evfs_filereference * file)
{
evfs_command *command = evfs_client_command_new();
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs