libpurple/protocols/jabber/google.c

branch
soc.2008.vv
changeset 23700
e47be56bdd2b
parent 23697
299bafcd8eb8
child 23704
9b88c9b23aed
equal deleted inserted replaced
23699:f21b7382aecb 23700:e47be56bdd2b
16 * You should have received a copy of the GNU General Public License 16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software 17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
19 */ 19 */
20 20
21 #include <gst/farsight/fs-conference-iface.h>
22
23 #include "internal.h" 21 #include "internal.h"
24 #include "debug.h" 22 #include "debug.h"
25 #include "mediamanager.h" 23 #include "mediamanager.h"
26 #include "util.h" 24 #include "util.h"
27 #include "privacy.h" 25 #include "privacy.h"
29 #include "buddy.h" 27 #include "buddy.h"
30 #include "google.h" 28 #include "google.h"
31 #include "jabber.h" 29 #include "jabber.h"
32 #include "presence.h" 30 #include "presence.h"
33 #include "iq.h" 31 #include "iq.h"
32
33 #ifdef USE_FARSIGHT
34 #include <gst/farsight/fs-conference-iface.h>
34 35
35 typedef struct { 36 typedef struct {
36 char *id; 37 char *id;
37 char *initiator; 38 char *initiator;
38 } GoogleSessionId; 39 } GoogleSessionId;
321 google_session_handle_terminate(js, session, packet, sess); 322 google_session_handle_terminate(js, session, packet, sess);
322 } else if (!strcmp(type, "candidates")) { 323 } else if (!strcmp(type, "candidates")) {
323 google_session_handle_candidates(js, session, packet, sess); 324 google_session_handle_candidates(js, session, packet, sess);
324 } 325 }
325 } 326 }
327 #endif /* USE_FARSIGHT */
326 328
327 void 329 void
328 jabber_google_session_parse(JabberStream *js, xmlnode *packet) 330 jabber_google_session_parse(JabberStream *js, xmlnode *packet)
329 { 331 {
332 #ifdef USE_FARSIGHT
330 GoogleSession *session; 333 GoogleSession *session;
331 GoogleSessionId id; 334 GoogleSessionId id;
332 335
333 xmlnode *session_node; 336 xmlnode *session_node;
334 xmlnode *desc_node; 337 xmlnode *desc_node;
370 session->js = js; 373 session->js = js;
371 session->remote_jid = g_strdup(session->id.initiator); 374 session->remote_jid = g_strdup(session->id.initiator);
372 g_hash_table_insert(sessions, &(session->id), session); 375 g_hash_table_insert(sessions, &(session->id), session);
373 376
374 google_session_parse_iq(js, session, packet); 377 google_session_parse_iq(js, session, packet);
378 #else
379 /* TODO: send proper error response */
380 #endif /* USE_FARSIGHT */
375 } 381 }
376 382
377 static void 383 static void
378 jabber_gmail_parse(JabberStream *js, xmlnode *packet, gpointer nul) 384 jabber_gmail_parse(JabberStream *js, xmlnode *packet, gpointer nul)
379 { 385 {

mercurial