/soc/2013/ashmew2/filetransferX: 3a26d92cb4df: JingleSessionInit
Ashish Gupta
ashmew2 at gmail.com
Sun Jul 28 23:33:57 EDT 2013
Changeset: 3a26d92cb4df60299948aa9abda2eb3226354fe6
Author: Ashish Gupta <ashmew2 at gmail.com>
Date: 2013-07-29 09:03 +0530
Branch: filetransferX
URL: https://hg.pidgin.im/soc/2013/ashmew2/filetransferX/rev/3a26d92cb4df
Description:
JingleSessionInit
diffstat:
libpurple/protocols/jabber/google/google_session.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diffs (26 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
@@ -686,7 +686,22 @@ google_session_handle_initiate(JabberStr
else
purple_debug_info("google_session", "\nTransport is NULL");
}
+ /************Call to AcceptGoogleXfer() or something.***************
+ if( 1 ) {
+ char *own_jid = g_strdup_printf("%s@%s/%s", js->user->node, js->user->domain, js->user->resource);
+ char *sid = jabber_get_next_id(js);
+ JingleSession *XferSession = jingle_session_create(js,sid, own_jid, session->remote_jid, FALSE);
+
+ PurpleXfer *xfer;
+ gchar *buffer;
+
+ purple_debug_info("google_session", "Created Jingle Session.\n");
+ jingle_session_init(XferSession);
+
+ purple_debug_info("google_session", "init() done on XferSession.\n");
+ }
+ /****************************************************/
purple_debug_info("Jabber", "We have received a file request.");
return TRUE;
}
More information about the Commits
mailing list