cpw.malu.xmpp.google_ft: 3aff2bb4: save component state in session data

malu at pidgin.im malu at pidgin.im
Sat Sep 25 07:09:42 EDT 2010


----------------------------------------------------------------------
Revision: 3aff2bb4e95e9df2c2bf81d1764bf3885ab959f5
Parent:   22d8cb7715bd21fbe53bd8c2dccdecce37002579
Author:   malu at pidgin.im
Date:     09/25/10 06:59:42
Branch:   im.pidgin.cpw.malu.xmpp.google_ft
URL: http://d.pidgin.im/viewmtn/revision/info/3aff2bb4e95e9df2c2bf81d1764bf3885ab959f5

Changelog: 

save component state in session data

Changes against parent 22d8cb7715bd21fbe53bd8c2dccdecce37002579

  patched  libpurple/protocols/jabber/google/google_share.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google/google_share.c	44f7e797fafab6bfab9e2efbb9658d2aed01906a
+++ libpurple/protocols/jabber/google/google_share.c	f01447547c645e3359167c193e33fb5510e27318
@@ -37,6 +37,7 @@ typedef struct {
 	gboolean got_relay;		/* this indicates if gotten relay credentials */
 	gboolean old_protocol;
 	gboolean candidate_gathering_done;
+	NiceComponentState *state;
 } GoogleShareSessionData;
 
 static void
@@ -49,7 +50,12 @@ google_share_component_state_changed_cb(
 google_share_component_state_changed_cb(NiceAgent *agent, guint stream_id,
     guint compont_id, guint state, gpointer user_data)
 {
+	GoogleSession *session = (GoogleSession *) user_data;
+	GoogleShareSessionData *session_data =
+		(GoogleShareSessionData *) session->session_data;
+
 	purple_debug_info("google-share", "component state changed: state: %d\n", state);
+	session_data->state = state;
 }
 
 static void


More information about the Commits mailing list