Mercurial > pidgin.yaz
annotate libpurple/protocols/jabber/google/relay.h @ 30968:c954ee775713
added new files for Google relay-related functions
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Sun, 05 Sep 2010 08:54:43 +0000 |
parents | |
children |
rev | line source |
---|---|
30968
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
1 /** |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
2 * Purple is the legal property of its developers, whose names are too numerous |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
3 * to list here. Please refer to the COPYRIGHT file distributed with this |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
4 * source distribution. |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
5 * |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
6 * This program is free software; you can redistribute it and/or modify |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
7 * it under the terms of the GNU General Public License as published by |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
8 * the Free Software Foundation; either version 2 of the License, or |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
9 * (at your option) any later version. |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
10 * |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
11 * This program is distributed in the hope that it will be useful, |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
14 * GNU General Public License for more details. |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
15 * |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
16 * You should have received a copy of the GNU General Public License |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
17 * along with this program; if not, write to the Free Software |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
19 */ |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
20 |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
21 #ifndef JABBER_GOOGLE_RELAY |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
22 #define JABBER_GOOGLE_RELAY |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
23 |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
24 #include "google_session.h" |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
25 |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
26 typedef void (JabberGoogleRelayCallback)(GoogleSession *session, const gchar *ip, |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
27 guint udp_port, guint tcp_port, guint tls_port, |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
28 const gchar *username, const gchar *password); |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
29 |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
30 void jabber_google_do_relay_request(JabberStream *js, GoogleSession *session, |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
31 JabberGoogleRelayCallback cb); |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
32 |
c954ee775713
added new files for Google relay-related functions
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
33 #endif /* JABBER_GOOGLE_RELAY */ |