Sat, 04 Apr 2009 11:18:39 +0000
propagate from branch 'im.pidgin.pidgin' (head c0ec4f7d8515d6623abc695eab4936e9777fcb87)
to branch 'im.pidgin.cpw.malu.client_type' (head 889b6d39bed72113b42e249a4043984fa42fce9e)
| 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 | ||
| 15884 | 21 | #ifndef _PURPLE_GOOGLE_H_ |
| 22 | #define _PURPLE_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" | |
|
26205
f20bb7e9e311
Support initiating voice calls to GTalk and Gmail.
Michael Ruprecht <maiku@pidgin.im>
parents:
22069
diff
changeset
|
28 | #include "media.h" |
| 15225 | 29 | |
|
26455
65d138da0c83
Move and rename GTALK_CAP to GOOGLE_VOICE_CAP.
Michael Ruprecht <maiku@pidgin.im>
parents:
26286
diff
changeset
|
30 | #define GOOGLE_VOICE_CAP "http://www.google.com/xmpp/protocol/voice/v1" |
|
26286
443041606e32
Add automatic discovery of GTalk STUN servers when using a Gtalk account
Marcus Lundblad <malu@pidgin.im>
parents:
26205
diff
changeset
|
31 | #define GOOGLE_JINGLE_INFO_NAMESPACE "google:jingleinfo" |
|
443041606e32
Add automatic discovery of GTalk STUN servers when using a Gtalk account
Marcus Lundblad <malu@pidgin.im>
parents:
26205
diff
changeset
|
32 | |
| 15225 | 33 | void jabber_gmail_init(JabberStream *js); |
| 34 | void jabber_gmail_poke(JabberStream *js, xmlnode *node); | |
| 35 | ||
| 15265 | 36 | void jabber_google_roster_init(JabberStream *js); |
| 37 | 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
|
38 | |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
39 | /* 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
|
40 | * 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
|
41 | */ |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
42 | 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
|
43 | |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
44 | 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
|
45 | char *jabber_google_presence_outgoing(PurpleStatus *tune); |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
46 | |
| 15884 | 47 | void jabber_google_roster_add_deny(PurpleConnection *gc, const char *who); |
| 48 | void jabber_google_roster_rem_deny(PurpleConnection *gc, const char *who); | |
| 15265 | 49 | |
|
15587
cbedd543bfae
Google Talk uses structured text formatting where *this* is bold
Sean Egan <seanegan@pidgin.im>
parents:
15530
diff
changeset
|
50 | 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
|
51 | |
|
26495
52846ebe1c7d
Don't assume a PurpleMedia instance will be created immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26455
diff
changeset
|
52 | gboolean jabber_google_session_initiate(JabberStream *js, const gchar *who, PurpleMediaSessionType type); |
|
19882
d8c2a2fc1fbf
Basic Google Talk voice call support. No UI; receiving a call auto-accepts it.
Sean Egan <seanegan@pidgin.im>
parents:
15884
diff
changeset
|
53 | void jabber_google_session_parse(JabberStream *js, xmlnode *node); |
| 15265 | 54 | |
|
26286
443041606e32
Add automatic discovery of GTalk STUN servers when using a Gtalk account
Marcus Lundblad <malu@pidgin.im>
parents:
26205
diff
changeset
|
55 | void jabber_google_handle_jingle_info(JabberStream *js, xmlnode *packet); |
|
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 | |
| 15884 | 58 | #endif /* _PURPLE_GOOGLE_H_ */ |