Mercurial > pidgin
annotate libpurple/protocols/jabber/google/google_session.h @ 32705:ef4ffed09e49
Replace Facebook's UI hack for default connection security.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 29 Dec 2011 01:58:43 +0000 |
parents | 1d55c7e1006e |
children |
rev | line source |
---|---|
30473
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
1 /** |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
2 * Purple is the legal property of its developers, whose names are too numerous |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
3 * to list here. Please refer to the COPYRIGHT file distributed with this |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
4 * source distribution. |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
5 * |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
6 * This program is free software; you can redistribute it and/or modify |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
7 * it under the terms of the GNU General Public License as published by |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
8 * the Free Software Foundation; either version 2 of the License, or |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
9 * (at your option) any later version. |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
10 * |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
11 * This program is distributed in the hope that it will be useful, |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
14 * GNU General Public License for more details. |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
15 * |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
16 * You should have received a copy of the GNU General Public License |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
17 * along with this program; if not, write to the Free Software |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
19 */ |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
20 |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
21 #ifndef PURPLE_JABBER_GOOGLE_SESSION_H_ |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
22 #define PURPLE_JABBER_GOOGLE_SESSION_H_ |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
23 |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
24 #include "jabber.h" |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
25 |
30474
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
26 typedef struct { |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
27 char *id; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
28 char *initiator; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
29 } GoogleSessionId; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
30 |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
31 typedef enum { |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
32 UNINIT, |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
33 SENT_INITIATE, |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
34 RECEIVED_INITIATE, |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
35 IN_PRORESS, |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
36 TERMINATED |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
37 } GoogleSessionState; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
38 |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
39 typedef struct { |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
40 GoogleSessionId id; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
41 GoogleSessionState state; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
42 JabberStream *js; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
43 char *remote_jid; |
30530
2e26b90a28dd
Now it compiles again...
Marcus Lundblad <ml@update.uu.se>
parents:
30474
diff
changeset
|
44 char *iq_id; |
30546
1d55c7e1006e
jabber: actually look at the correct description on an incoming Google session
Marcus Lundblad <ml@update.uu.se>
parents:
30530
diff
changeset
|
45 xmlnode *description; /* store incoming description through |
1d55c7e1006e
jabber: actually look at the correct description on an incoming Google session
Marcus Lundblad <ml@update.uu.se>
parents:
30530
diff
changeset
|
46 relay credential fetching */ |
30474
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
47 gpointer session_data; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
48 } GoogleSession; |
721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <ml@update.uu.se>
parents:
30473
diff
changeset
|
49 |
30473
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
50 gboolean jabber_google_session_initiate(JabberStream *js, const gchar *who, |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
51 PurpleMediaSessionType type); |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
52 |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
53 void jabber_google_session_parse(JabberStream *js, const char *from, |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
54 JabberIqType type, const char *iq, xmlnode *session); |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
55 |
34f586bffe4e
Added new files in sub directory google
Marcus Lundblad <ml@update.uu.se>
parents:
diff
changeset
|
56 #endif /* PURPLE_JABBER_GOOGLE_SESSION_H_ */ |