Wed, 21 Apr 2010 19:07:19 +0000
jabber: Send whitespace keepalives every two minutes of (outgoing) silence.
This works around stupid behavior of Openfire hopefully (otherwise we
may need to send a full IQ ping instead of a whitespace tab). Closes #10767
| 15225 | 1 | /** |
| 15884 | 2 | * Purple is the legal property of its developers, whose names are too numerous |
| 15225 | 3 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 4 | * source distribution. | |
| 5 | * | |
| 6 | * This program is free software; you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU General Public License as published by | |
| 8 | * the Free Software Foundation; either version 2 of the License, or | |
| 9 | * (at your option) any later version. | |
| 10 | * | |
| 11 | * This program is distributed in the hope that it will be useful, | |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | * GNU General Public License for more details. | |
| 15 | * | |
| 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 15225 | 19 | */ |
| 20 | ||
|
26703
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
26702
diff
changeset
|
21 | #ifndef PURPLE_JABBER_GOOGLE_H_ |
|
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
26702
diff
changeset
|
22 | #define PURPLE_JABBER_GOOGLE_H_ |
| 15225 | 23 | |
| 24 | /* This is a place for Google Talk-specific XMPP extensions to live | |
| 25 | * such that they don't intermingle with code for the XMPP RFCs and XEPs :) */ | |
| 26 | ||
| 27 | #include "jabber.h" | |
|
26286
443041606e32
Add automatic discovery of GTalk STUN servers when using a Gtalk account
Marcus Lundblad <malu@pidgin.im>
parents:
26205
diff
changeset
|
28 | |
|
28667
7bab19738f5e
jabber: Add an "Initiate Chat" blist context menu option for GTalk accounts.
Eion Robb <eion@robbmob.com>
parents:
27202
diff
changeset
|
29 | #define GOOGLE_GROUPCHAT_SERVER "groupchat.google.com" |
|
7bab19738f5e
jabber: Add an "Initiate Chat" blist context menu option for GTalk accounts.
Eion Robb <eion@robbmob.com>
parents:
27202
diff
changeset
|
30 | |
| 15225 | 31 | void jabber_gmail_init(JabberStream *js); |
|
25817
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
25566
diff
changeset
|
32 | void jabber_gmail_poke(JabberStream *js, const char *from, JabberIqType type, |
|
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
25566
diff
changeset
|
33 | const char *id, xmlnode *new_mail); |
| 15225 | 34 | |
| 15265 | 35 | void jabber_google_roster_outgoing(JabberStream *js, xmlnode *query, xmlnode *item); |
|
15530
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
36 | |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
37 | /* Returns FALSE if this should short-circuit processing of this roster item, or TRUE |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
38 | * if this roster item should continue to be processed |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
39 | */ |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
40 | gboolean jabber_google_roster_incoming(JabberStream *js, xmlnode *item); |
|
21195
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
41 | |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
42 | void jabber_google_presence_incoming(JabberStream *js, const char *who, JabberBuddyResource *jbr); |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
43 | char *jabber_google_presence_outgoing(PurpleStatus *tune); |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
44 | |
|
29094
1d72af8f11dd
jabber: Clean up this code a little.
Paul Aurich <darkrain42@pidgin.im>
parents:
28979
diff
changeset
|
45 | void jabber_google_roster_add_deny(JabberStream *js, const char *who); |
|
1d72af8f11dd
jabber: Clean up this code a little.
Paul Aurich <darkrain42@pidgin.im>
parents:
28979
diff
changeset
|
46 | void jabber_google_roster_rem_deny(JabberStream *js, const char *who); |
| 15265 | 47 | |
|
15587
cbedd543bfae
Google Talk uses structured text formatting where *this* is bold
Sean Egan <seanegan@pidgin.im>
parents:
15530
diff
changeset
|
48 | char *jabber_google_format_to_html(const char *text); |
|
cbedd543bfae
Google Talk uses structured text formatting where *this* is bold
Sean Egan <seanegan@pidgin.im>
parents:
15530
diff
changeset
|
49 | |
|
26495
52846ebe1c7d
Don't assume a PurpleMedia instance will be created immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26455
diff
changeset
|
50 | gboolean jabber_google_session_initiate(JabberStream *js, const gchar *who, PurpleMediaSessionType type); |
|
26698
417e1c82963b
And google session handling
Paul Aurich <darkrain42@pidgin.im>
parents:
26693
diff
changeset
|
51 | void jabber_google_session_parse(JabberStream *js, const char *from, JabberIqType type, const char *iq, xmlnode *session); |
| 15265 | 52 | |
|
26693
0365dcbeaff6
Migrate googleinfo:jabber handlers and add some safety checks.
Paul Aurich <darkrain42@pidgin.im>
parents:
26692
diff
changeset
|
53 | void jabber_google_handle_jingle_info(JabberStream *js, const char *from, |
|
0365dcbeaff6
Migrate googleinfo:jabber handlers and add some safety checks.
Paul Aurich <darkrain42@pidgin.im>
parents:
26692
diff
changeset
|
54 | JabberIqType type, const char *id, |
|
0365dcbeaff6
Migrate googleinfo:jabber handlers and add some safety checks.
Paul Aurich <darkrain42@pidgin.im>
parents:
26692
diff
changeset
|
55 | xmlnode *child); |
|
26286
443041606e32
Add automatic discovery of GTalk STUN servers when using a Gtalk account
Marcus Lundblad <malu@pidgin.im>
parents:
26205
diff
changeset
|
56 | void jabber_google_send_jingle_info(JabberStream *js); |
| 15265 | 57 | |
|
28667
7bab19738f5e
jabber: Add an "Initiate Chat" blist context menu option for GTalk accounts.
Eion Robb <eion@robbmob.com>
parents:
27202
diff
changeset
|
58 | void google_buddy_node_chat(PurpleBlistNode *node, gpointer data); |
|
7bab19738f5e
jabber: Add an "Initiate Chat" blist context menu option for GTalk accounts.
Eion Robb <eion@robbmob.com>
parents:
27202
diff
changeset
|
59 | |
|
26703
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
26702
diff
changeset
|
60 | #endif /* PURPLE_JABBER_GOOGLE_H_ */ |