Enlightenment CVS committal Author : chaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/lib Modified Files: evfs_commands.c Log Message: * And pass the id back to the client =================================================================== RCS file: /cvs/e/e17/apps/evfs/src/lib/evfs_commands.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- evfs_commands.c 5 Apr 2006 05:39:05 -0000 1.25 +++ evfs_commands.c 5 Apr 2006 05:43:04 -0000 1.26 @@ -1,9 +1,10 @@ #include "evfs.h" -void +long evfs_monitor_add(evfs_connection * conn, evfs_filereference * ref) { evfs_command *command = evfs_client_command_new(); + long id = command->client_identifier; /*printf("Adding a monitor on: '%s' using '%s'\n", ref->path, ref->plugin_uri); */ @@ -16,13 +17,16 @@ free(command->file_command.files); free(command); + + return id; } -void +long evfs_monitor_remove(evfs_connection * conn, evfs_filereference * ref) { evfs_command *command = evfs_client_command_new(); + long id = command->client_identifier; command->type = EVFS_CMD_STOPMON_FILE; command->file_command.num_files = 1; @@ -33,12 +37,15 @@ free(command->file_command.files); free(command); + + return id; } -void +long evfs_client_file_remove(evfs_connection * conn, evfs_filereference * ref) { evfs_command *command = evfs_client_command_new(); + long id = command->client_identifier; command->type = EVFS_CMD_REMOVE_FILE; command->file_command.num_files = 1; @@ -50,15 +57,15 @@ free(command->file_command.files); free(command); + return id; } -void +long evfs_client_file_rename(evfs_connection * conn, evfs_filereference * from, evfs_filereference * to) { evfs_command *command = evfs_client_command_new(); - - printf("Renaming a file..\n"); + long id = command->client_identifier; command->type = EVFS_CMD_RENAME_FILE; command->file_command.num_files = 2; @@ -71,12 +78,14 @@ free(command); + return id; } -void +long evfs_client_file_stat(evfs_connection * conn, evfs_filereference * file) { evfs_command *command = evfs_client_command_new(); + long id = command->client_identifier; command->type = EVFS_CMD_FILE_STAT; command->file_command.num_files = 1; @@ -88,14 +97,14 @@ free(command->file_command.files); free(command); + return id; } -void +long evfs_client_dir_list(evfs_connection * conn, evfs_filereference * file) { evfs_command *command = evfs_client_command_new(); - - printf("Listing a directory..\n"); + long id = command->client_identifier; command->type = EVFS_CMD_LIST_DIR; command->file_command.num_files = 1; @@ -107,16 +116,16 @@ free(command->file_command.files); free(command); + return id; } -void +long evfs_client_file_copy(evfs_connection * conn, evfs_filereference * from, evfs_filereference * to) { evfs_command *command = evfs_client_command_new(); - - /*printf("Copying a file..\n"); */ + long id = command->client_identifier; command->type = EVFS_CMD_FILE_COPY; command->file_command.num_files = 2; @@ -128,14 +137,15 @@ free(command->file_command.files); free(command); + + return id; } -void +long evfs_client_file_open(evfs_connection * conn, evfs_filereference * file) { evfs_command *command = evfs_client_command_new(); - - fprintf(stderr, "Opening a file..\n"); + long id = command->client_identifier; command->type = EVFS_CMD_FILE_OPEN; command->file_command.num_files = 1; @@ -146,13 +156,16 @@ free(command->file_command.files); free(command); + + return id; } -void +long evfs_client_file_read(evfs_connection * conn, evfs_filereference * file, int read_size) { evfs_command *command = evfs_client_command_new(); + long id = command->client_identifier; //printf("Reading a file..\n"); @@ -166,13 +179,17 @@ free(command->file_command.files); free(command); + + + return id; } -void +long evfs_client_directory_create(evfs_connection * conn, evfs_filereference * file) { evfs_command *command = evfs_client_command_new(); + long id = command->client_identifier; //printf("Reading a file..\n"); @@ -185,27 +202,32 @@ free(command->file_command.files); free(command); + + + return id; } -void +long evfs_client_operation_respond(evfs_connection * conn, long opid, evfs_operation_response response) { evfs_command *command = evfs_client_command_new(); - + long id = command->client_identifier; + //printf("Reading a file..\n"); command->type = EVFS_CMD_OPERATION_RESPONSE; - printf("Command type for op response: %d\n", command->type); command->op = NEW(evfs_operation); command->op->id = opid; command->op->response = response; - printf("Command type for op response: %d\n", command->type); evfs_write_command(conn, command); free(command->op); free(command); + + + return id; } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs