Sat, 04 Apr 2009 08:02:52 +0000
And google session handling
(it turns out this workingdir was --disable-vv. whoops...)
| 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); |
|
25817
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
25566
diff
changeset
|
34 | 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
|
35 | const char *id, xmlnode *new_mail); |
| 15225 | 36 | |
| 15265 | 37 | void jabber_google_roster_init(JabberStream *js); |
| 38 | 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
|
39 | |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
40 | /* 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
|
41 | * 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
|
42 | */ |
|
9355a1be068e
Make deleting Google Talk buddies work
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
43 | 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
|
44 | |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
45 | 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
|
46 | char *jabber_google_presence_outgoing(PurpleStatus *tune); |
|
fd63ef5027d7
Music support for Google Talk
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
47 | |
| 15884 | 48 | void jabber_google_roster_add_deny(PurpleConnection *gc, const char *who); |
| 49 | void jabber_google_roster_rem_deny(PurpleConnection *gc, const char *who); | |
| 15265 | 50 | |
|
15587
cbedd543bfae
Google Talk uses structured text formatting where *this* is bold
Sean Egan <seanegan@pidgin.im>
parents:
15530
diff
changeset
|
51 | 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
|
52 | |
|
26495
52846ebe1c7d
Don't assume a PurpleMedia instance will be created immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26455
diff
changeset
|
53 | 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
|
54 | void jabber_google_session_parse(JabberStream *js, const char *from, JabberIqType type, const char *iq, xmlnode *session); |
| 15265 | 55 | |
|
26693
0365dcbeaff6
Migrate googleinfo:jabber handlers and add some safety checks.
Paul Aurich <darkrain42@pidgin.im>
parents:
26692
diff
changeset
|
56 | 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
|
57 | JabberIqType type, const char *id, |
|
0365dcbeaff6
Migrate googleinfo:jabber handlers and add some safety checks.
Paul Aurich <darkrain42@pidgin.im>
parents:
26692
diff
changeset
|
58 | 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
|
59 | void jabber_google_send_jingle_info(JabberStream *js); |
| 15265 | 60 | |
| 15884 | 61 | #endif /* _PURPLE_GOOGLE_H_ */ |