From: <enl...@li...> - 2005-08-19 12:15:18
|
Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs Dir : e17/apps/evfs/src/lib Modified Files: evfs_commands.c Log Message: Added file remove, implemented function pointers for callbacks on plugin init. TODO: Doc this before it gets too complicated =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/evfs_commands.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- evfs_commands.c 16 Aug 2005 09:00:21 -0000 1.6 +++ evfs_commands.c 19 Aug 2005 12:15:12 -0000 1.7 @@ -33,3 +33,19 @@ free(command); } + +void evfs_client_file_remove(evfs_connection* conn, evfs_filereference* ref) { + evfs_command* command = NEW(evfs_command); + + printf("Removing a file..\n"); + + command->type = EVFS_CMD_REMOVE_FILE; + command->file_command.num_files = 1; + command->file_command.files = malloc(sizeof(evfs_filereference*)); + command->file_command.files[0] = ref; + + evfs_write_command(conn, command); + + free(command); + +} |