Enlightenment CVS committal
Author : chaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/common
Modified Files:
evfs_io.c
Log Message:
* Attach a generated identifer to each command, for tracking purposes
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/common/evfs_io.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- evfs_io.c 31 Mar 2006 13:47:41 -0000 1.51
+++ evfs_io.c 5 Apr 2006 05:39:04 -0000 1.52
@@ -457,6 +457,7 @@
case EVFS_COMMAND_TYPE:
case EVFS_COMMAND_EXTRA:
case EVFS_FILE_REFERENCE:
+ case EVFS_COMMAND_CLIENTID:
case EVFS_COMMAND_END:
evfs_process_incoming_command(NULL, &event->resp_command, msg);
break;
@@ -537,6 +538,13 @@
file_command.extra,
sizeof(int)));
+ evfs_write_ecore_ipc_server_message(conn->server,
+ ecore_ipc_message_new(EVFS_COMMAND,
+
EVFS_COMMAND_CLIENTID,
+ 0, 0, 0,
+
&command->client_identifier,
+ sizeof(long)));
+
switch (command->type)
{
case EVFS_CMD_STOPMON_FILE:
@@ -569,6 +577,8 @@
void
evfs_write_command_client(evfs_client * client, evfs_command * command)
{
+
+
switch (command->type)
{
case EVFS_CMD_STOPMON_FILE:
@@ -644,9 +654,6 @@
{
int i;
char uri[1024];
- char *part;
- int it;
- Ecore_List *uri_part;
bzero(uri, 1024);
@@ -667,6 +674,13 @@
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++)
{
char* data;
@@ -708,6 +722,10 @@
case EVFS_COMMAND_EXTRA:
memcpy(&command->file_command.extra, message->data, sizeof(int));
break;
+
+ case EVFS_COMMAND_CLIENTID:
+ memcpy(&command->client_identifier, message->data, sizeof(long));
+ break;
case EVFS_FILE_REFERENCE:
{
//printf("Parsing URI: '%s'\n", message->data);
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs