Enlightenment CVS committal Author : chaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/common Modified Files: evfs_io.c Log Message: * Code for the comms layer of metadata set/get =================================================================== RCS file: /cvs/e/e17/apps/evfs/src/common/evfs_io.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -3 -r1.58 -r1.59 --- evfs_io.c 10 Jun 2006 02:35:59 -0000 1.58 +++ evfs_io.c 24 Jun 2006 15:01:50 -0000 1.59 @@ -673,6 +673,7 @@ case EVFS_CMD_FILE_READ: case EVFS_CMD_DIRECTORY_CREATE: case EVFS_CMD_METADATA_RETRIEVE: + case EVFS_CMD_METADATA_FILE_GET: case EVFS_CMD_PING: evfs_write_file_command(conn, command); break; @@ -693,6 +694,30 @@ evfs_write_command_client(evfs_client * client, evfs_command * command) { + /*Write the command type structure */ + evfs_write_ecore_ipc_client_message(client->client, + ecore_ipc_message_new(EVFS_COMMAND, + EVFS_COMMAND_TYPE, + client->id, 0, 0, + &command->type, + sizeof + (evfs_command_type))); + + evfs_write_ecore_ipc_client_message(client->client, + ecore_ipc_message_new(EVFS_COMMAND, + EVFS_COMMAND_EXTRA, + client->id, 0, 0, + &command-> + file_command.extra, + sizeof(int))); + + evfs_write_ecore_ipc_client_message(client->client, + ecore_ipc_message_new(EVFS_COMMAND, + EVFS_COMMAND_CLIENTID, + client->id, 0, 0, + &command->client_identifier, + sizeof(long))); + switch (command->type) { @@ -709,6 +734,7 @@ case EVFS_CMD_FILE_READ: case EVFS_CMD_DIRECTORY_CREATE: case EVFS_CMD_METADATA_RETRIEVE: + case EVFS_CMD_METADATA_FILE_GET: case EVFS_CMD_PING: evfs_write_file_command_client(client, command); break; @@ -717,6 +743,9 @@ break; } + + /*Send a final */ + evfs_write_command_end_client(client); } void @@ -763,6 +792,15 @@ } + /*If there's a string ref, write it*/ + if (command->file_command.ref) { + evfs_write_ecore_ipc_server_message(conn->server, + ecore_ipc_message_new(EVFS_COMMAND, + EVFS_COMMAND_PART_FILECOMMAND_REF, + 0,0,0,command->file_command.ref, + strlen(command->file_command.ref)+1)); + } + } void @@ -773,29 +811,7 @@ bzero(uri, 1024); - /*Write the command type structure */ - evfs_write_ecore_ipc_client_message(client->client, - ecore_ipc_message_new(EVFS_COMMAND, - EVFS_COMMAND_TYPE, - client->id, 0, 0, - &command->type, - sizeof - (evfs_command_type))); - evfs_write_ecore_ipc_client_message(client->client, - ecore_ipc_message_new(EVFS_COMMAND, - EVFS_COMMAND_EXTRA, - client->id, 0, 0, - &command-> - file_command.extra, - sizeof(int))); - - evfs_write_ecore_ipc_client_message(client->client, - ecore_ipc_message_new(EVFS_COMMAND, - EVFS_COMMAND_CLIENTID, - client->id, 0, 0, - &command->client_identifier, - sizeof(long))); for (i = 0; i < command->file_command.num_files; i++) { @@ -815,8 +831,14 @@ } - /*Send a final */ - evfs_write_command_end_client(client); + /*If there's a string ref, write it*/ + if (command->file_command.ref) { + evfs_write_ecore_ipc_client_message(client->client, + ecore_ipc_message_new(EVFS_COMMAND, + EVFS_COMMAND_PART_FILECOMMAND_REF, + client->id,0,0,command->file_command.ref, + strlen(command->file_command.ref)+1)); + } } Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs