Author: ArcRiley
Date: 2009-03-03 23:35:06 -0500 (Tue, 03 Mar 2009)
New Revision: 1546

Modified:
   trunk/concordance/src/sockets/Client.c
Log:
namespace passing now matches cElementTree's internal format

Modified: trunk/concordance/src/sockets/Client.c
===================================================================
--- trunk/concordance/src/sockets/Client.c      2009-03-04 04:35:03 UTC (rev 
1545)
+++ trunk/concordance/src/sockets/Client.c      2009-03-04 04:35:06 UTC (rev 
1546)
@@ -427,10 +427,14 @@
     /* generate random session key */
     concordRandKey(session->skey);
 
-    /* lookup domain mapping */
+    /* lookup domain mapping
+
+       gpointer         g_hash_table_lookup      (GHashTable *hash_table,
+                                                  gconstpointer key);
+    */
     if (to) {
       session->srvc = (servicesService_Object*)
-                g_hash_table_lookup(self->domains, (gconstpointer) to);
+                      g_hash_table_lookup(self->domains, to);
       if (session->srvc) {
         from = ((servicesService_Object*) session->srvc)->domain;
       }
@@ -703,7 +707,7 @@
                       g_malloc(sizeof(concordMsg_xmlStart));
               pmsg->type = CONCORD_MT_XMLSTART;
               pmsg->tree = &session->tree;
-              pmsg->name = g_strdup(name);
+              pmsg->name = g_strjoin(NULL, "{", name, NULL);
               pmsg->atts = g_strdupv((gchar**) atts);
               g_async_queue_push(self->queueCall, pmsg);
             //}
@@ -772,7 +776,7 @@
                     g_malloc(sizeof(concordMsg_xmlStart));
             pmsg->type = CONCORD_MT_XMLSTART;
             pmsg->tree = &session->tree;
-            pmsg->name = g_strdup(name);
+            pmsg->name = g_strjoin(NULL, "{", name, NULL);
             pmsg->atts = g_strdupv((gchar**) atts);
             g_async_queue_push(self->queueCall, pmsg);
           // }
@@ -839,7 +843,7 @@
             pmsge = (concordMsg_xmlEnd*) g_malloc(sizeof(concordMsg_xmlEnd));
             pmsge->type = CONCORD_MT_XMLEND;
             pmsge->tree = &session->tree;
-            pmsge->name = g_strdup(name);
+            pmsge->name = g_strjoin(NULL, "{", name, NULL);
 
             /* create _xmlClose message */
             pmsgc = (concordMsg_xmlClose*) 
g_malloc(sizeof(concordMsg_xmlClose));
@@ -876,7 +880,7 @@
           pmsge = (concordMsg_xmlEnd*) g_malloc(sizeof(concordMsg_xmlEnd));
           pmsge->type = CONCORD_MT_XMLEND;
           pmsge->tree = &session->tree;
-          pmsge->name = g_strdup(name);
+          pmsge->name = g_strjoin(NULL, "{", name, NULL);
           
           /* push message onto queue */
           g_async_queue_push(self->queueCall, pmsge);       

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to