libpurple/protocols/jabber/google/google_session.h

Sat, 04 Sep 2010 15:47:59 +0000

author
Marcus Lundblad <malu@pidgin.im>
date
Sat, 04 Sep 2010 15:47:59 +0000
changeset 30756
4f357819d93b
parent 29915
2ca9f271ed5a
child 30771
66a23a6494bf
permissions
-rw-r--r--

jabber: set priority on remote candidates for Google-style vv

29914
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
1 /**
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
2 * Purple is the legal property of its developers, whose names are too numerous
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
3 * to list here. Please refer to the COPYRIGHT file distributed with this
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
4 * source distribution.
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
5 *
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or modify
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
9 * (at your option) any later version.
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
10 *
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
11 * This program is distributed in the hope that it will be useful,
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
14 * GNU General Public License for more details.
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
15 *
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
19 */
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
20
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
21 #ifndef PURPLE_JABBER_GOOGLE_SESSION_H_
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
22 #define PURPLE_JABBER_GOOGLE_SESSION_H_
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
23
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
24 #include "jabber.h"
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
25
29915
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
26 typedef struct {
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
27 char *id;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
28 char *initiator;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
29 } GoogleSessionId;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
30
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
31 typedef enum {
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
32 UNINIT,
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
33 SENT_INITIATE,
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
34 RECEIVED_INITIATE,
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
35 IN_PRORESS,
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
36 TERMINATED
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
37 } GoogleSessionState;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
38
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
39 typedef struct {
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
40 GoogleSessionId id;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
41 GoogleSessionState state;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
42 JabberStream *js;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
43 char *remote_jid;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
44 gpointer session_data;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
45 } GoogleSession;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
46
29914
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
47 gboolean jabber_google_session_initiate(JabberStream *js, const gchar *who,
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
48 PurpleMediaSessionType type);
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
49
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
50 void jabber_google_session_parse(JabberStream *js, const char *from,
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
51 JabberIqType type, const char *iq, xmlnode *session);
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
52
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
53 #endif /* PURPLE_JABBER_GOOGLE_SESSION_H_ */

mercurial