Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/google.c @ 26416:6f0200f1e497
Clean up usage of USE_VV in the XMPP protocol.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Sat, 21 Mar 2009 09:07:06 +0000 |
parents | 86bc2d34f689 |
children | d8d6fb37c789 |
comparison
equal
deleted
inserted
replaced
26415:4143990b5c09 | 26416:6f0200f1e497 |
---|---|
508 google_session_handle_terminate(js, session, packet, sess); | 508 google_session_handle_terminate(js, session, packet, sess); |
509 } else if (!strcmp(type, "candidates")) { | 509 } else if (!strcmp(type, "candidates")) { |
510 google_session_handle_candidates(js, session, packet, sess); | 510 google_session_handle_candidates(js, session, packet, sess); |
511 } | 511 } |
512 } | 512 } |
513 #endif /* USE_VV */ | |
514 | 513 |
515 void | 514 void |
516 jabber_google_session_parse(JabberStream *js, xmlnode *packet) | 515 jabber_google_session_parse(JabberStream *js, xmlnode *packet) |
517 { | 516 { |
518 #ifdef USE_VV | |
519 GoogleSession *session = NULL; | 517 GoogleSession *session = NULL; |
520 GoogleSessionId id; | 518 GoogleSessionId id; |
521 | 519 |
522 xmlnode *session_node; | 520 xmlnode *session_node; |
523 xmlnode *desc_node; | 521 xmlnode *desc_node; |
570 session->state = UNINIT; | 568 session->state = UNINIT; |
571 session->js = js; | 569 session->js = js; |
572 session->remote_jid = g_strdup(session->id.initiator); | 570 session->remote_jid = g_strdup(session->id.initiator); |
573 | 571 |
574 google_session_parse_iq(js, session, packet); | 572 google_session_parse_iq(js, session, packet); |
575 #else | 573 } |
576 /* TODO: send proper error response */ | |
577 #endif /* USE_VV */ | 574 #endif /* USE_VV */ |
578 } | |
579 | 575 |
580 static void | 576 static void |
581 jabber_gmail_parse(JabberStream *js, xmlnode *packet, gpointer nul) | 577 jabber_gmail_parse(JabberStream *js, xmlnode *packet, gpointer nul) |
582 { | 578 { |
583 const char *type = xmlnode_get_attrib(packet, "type"); | 579 const char *type = xmlnode_get_attrib(packet, "type"); |