Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : enotes

Dir     : misc/enotes/src


Modified Files:
        ipc.c 


Log Message:
Fix the happy co-existance of enotes ipc and ecore_config ipc :)
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/ipc.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ipc.c       27 Nov 2004 22:48:01 -0000      1.10
+++ ipc.c       12 Mar 2005 23:32:01 -0000      1.11
@@ -45,7 +45,7 @@
                        if(mysvr != NULL){
                                listenev = ecore_event_handler_add
                                        (ECORE_IPC_EVENT_CLIENT_DATA,
-                                        ipc_svr_data_recv, NULL);}}}
+                                        ipc_svr_data_recv, mysvr);}}}
 
 /**
  * @param msg: The message to be sent.
@@ -72,17 +72,26 @@
  */
 int ipc_svr_data_recv(void *data, int type, void *event){
        Ecore_Ipc_Event_Client_Data *e;
-       if((e=(Ecore_Ipc_Event_Client_Data*)event))
+  Ecore_Ipc_Server *server;
+
+  e = (Ecore_Ipc_Event_Client_Data *) event;
+  server = (Ecore_Ipc_Server *) data;
+  if (server != ecore_ipc_client_server_get(e->client))
+    return(1);
+       if(e)
                handle_ipc_message((void*)e->data);
        return(1);}
 
 void handle_ipc_message(void *data){
-       RecvMsg        *p=parse_message((char*)data);
+       RecvMsg        *p;
        NoteStor       *note;
        Ecore_Timer    *close;
        char           *msg;
        char           *content;
 
+  p = NULL;
+  if (data)
+    p = parse_message((char *)data);
        if (p) {
                if (p->cmd == NOTE) {
                        if (p->data) {




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to