cpw.malu.xmpp.google_ft: b8c38bf0: Added stub for handling file transfers

malu at pidgin.im malu at pidgin.im
Wed Sep 8 14:41:26 EDT 2010


----------------------------------------------------------------------
Revision: b8c38bf0f8b93e182c6d4bf424f7deb8629b2e4c
Parent:   5a67fdbaafa3eb83312d95c12bf67c74d5d13cf3
Author:   malu at pidgin.im
Date:     09/08/10 14:35:26
Branch:   im.pidgin.cpw.malu.xmpp.google_ft
URL: http://d.pidgin.im/viewmtn/revision/info/b8c38bf0f8b93e182c6d4bf424f7deb8629b2e4c

Changelog: 

Added stub for handling file transfers

Changes against parent 5a67fdbaafa3eb83312d95c12bf67c74d5d13cf3

  added    libpurple/protocols/jabber/google/google_share.c
  added    libpurple/protocols/jabber/google/google_share.h
  patched  libpurple/protocols/jabber/google/google_session.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google/google_session.c	7dba70740f0ddc6877e9a050530cdde7efc7e177
+++ libpurple/protocols/jabber/google/google_session.c	214564f36d3f1cd5efde44fb1e4109ea9665eb76
@@ -65,7 +65,7 @@ google_session_handle_initiate(JabberStr
 	} else if (purple_strequal(xmlns, NS_GOOGLE_SESSION_VIDEO)) {
 		google_av_handle_initiate(js, session, TRUE);
 	} else if (purple_strequal(xmlns, NS_GOOGLE_SESSION_SHARE)) {
-		/* TODO: handle file transfer... */
+		google_share_handle_inititate(js, session);
 	} else {
 		purple_debug_error("jabber", "Received initiate with "
 				"invalid namespace %s.\n", xmlns);
============================================================
--- /dev/null	
+++ libpurple/protocols/jabber/google/google_share.c	f299bfb0c77e438a1c2344cf14b3667b5ee3a56a
@@ -0,0 +1,35 @@
+/**
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here.  Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
+ */
+
+#include "internal.h"
+#include "debug.h"
+#include "google_share.h"
+#include "relay.h"
+
+typedef struct {
+	PurpleXfer *xfer;
+	GList *remote_candidates; /* list of PurpleMediaCandidate */
+	gboolean got_relay;		/* this indicates if gotten relay credentials */
+} GoogleAVSessionData;
+
+void google_share_handle_initiate(JabberStream *js, GoogleSession *session)
+{
+	purple_debug_info("google", "got file transfer offer\n");
+}
============================================================
--- /dev/null	
+++ libpurple/protocols/jabber/google/google_share.h	63d30b408970f3f6879e9d6f90bb0d2261310513
@@ -0,0 +1,28 @@
+/**
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here.  Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
+ */
+
+#ifndef PURPLE_JABBER_GOOGLE_SHARE_H_
+#define PURPLE_JABBER_GOOGLE_SHARE_H_
+
+#include "google_session.h"
+
+void google_share_handle_initiate(JabberStream *js, GoogleSession *session);
+
+#endif /* PURPLE_JABBER_GOOGLE_SHARE_H_ */
\ No newline at end of file


More information about the Commits mailing list