/soc/2013/ashmew2/filetransferX: 4e78a0afec32: syntax errors fix

Ashish Gupta ashmew2 at gmail.com
Wed Aug 7 11:52:30 EDT 2013


Changeset: 4e78a0afec3223e80ee90b689d62b43ba66d44a1
Author:	 Ashish Gupta <ashmew2 at gmail.com>
Date:	 2013-08-07 18:55 +0530
Branch:	 filetransferX
URL: https://hg.pidgin.im/soc/2013/ashmew2/filetransferX/rev/4e78a0afec32

Description:

syntax errors fix

diffstat:

 libpurple/protocols/jabber/google/google_session.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/libpurple/protocols/jabber/google/google_session.c b/libpurple/protocols/jabber/google/google_session.c
--- a/libpurple/protocols/jabber/google/google_session.c
+++ b/libpurple/protocols/jabber/google/google_session.c
@@ -1234,8 +1234,10 @@ gtalk_xfer_init(PurpleXfer *xfer)
 }
 void gtalk_xfer_send_info(JabberStream *js, GoogleSession *session, xmlnode *sess)
 {
+
+/*REMOVE ME : TODO : 
 <iq to="doondoon1234 at gmail.com/0E981CDD" type="set" id="163" from="ashmew2 at gmail.com/Talk.v104168E5E46"><session type="info" id="purple92bdb9d8" initiator="doondoon1234 at gmail.com/0E981CDD" xmlns="http://www.google.com/session"><channel name="private-1" xmlns="http://www.google.com/session/share"/></session></iq>
-
+*/
 	JabberIq *iq;
 	xmlnode *session_node, *channel_node;
 
@@ -1278,7 +1280,7 @@ TODO: CLEAN UP
 	xmlnode_set_attrib(iq->node, "to", session->remote_jid);
 	
 	session_node = xmlnode_new_child(iq->node, "session");
-	description_node = xmlnode_new_child(session_node, "transport");
+	description_node = xmlnode_new_child(session_node, "description");
 	
 	xmlnode_set_attrib(session_node, "type", "accept");
 	xmlnode_set_attrib(session_node, "id", xmlnode_get_attrib(sess, "id"));
@@ -1289,7 +1291,7 @@ TODO: CLEAN UP
 	protocol_node = xmlnode_new_child(description_node, "protocol");
 	xmlnode_new_child(protocol_node, "http");
 
-	xmlnode_set_namespace(transport_node, NS_GOOGLE_SESSION_SHARE);
+	xmlnode_set_namespace(description_node, NS_GOOGLE_SESSION_SHARE);
 
 	jabber_iq_send(iq);
 }



More information about the Commits mailing list