libpurple/protocols/jabber/google/google_session.h

Thu, 29 Aug 2013 22:59:30 -0700

author
Mark Doliner <mark@kingant.net>
date
Thu, 29 Aug 2013 22:59:30 -0700
changeset 34319
c0d0b7137c8a
parent 30786
41cca597c5e5
child 34935
686fa55b0deb
permissions
-rw-r--r--

Fix the FARSIGHT libs and cflags for the jabber prpl.

We never define FARSIGHT_LIBS or FARSIGHT_CFLAGS. We only ever define
FARSTREAM_LIBS and FARSTREAM_CFLAGS, even if they point to farsight.

I'm assuming this hasn't been a problem because:
1. The variables are allowed to be empty (it's not treated as an error)
2. libpurple and/or Pidgin link against farsight/farstream, so it's
apparently not necessary for the plugin to do it itself? Who knew.

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;
30771
66a23a6494bf Now it compiles again...
Marcus Lundblad <malu@pidgin.im>
parents: 29915
diff changeset
44 char *iq_id;
30786
41cca597c5e5 jabber: actually look at the correct description on an incoming Google session
Marcus Lundblad <malu@pidgin.im>
parents: 30771
diff changeset
45 xmlnode *description; /* store incoming description through
41cca597c5e5 jabber: actually look at the correct description on an incoming Google session
Marcus Lundblad <malu@pidgin.im>
parents: 30771
diff changeset
46 relay credential fetching */
29915
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
47 gpointer session_data;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
48 } GoogleSession;
2ca9f271ed5a Remove direct use of PurpleMedia in the GoogleSession struct
Marcus Lundblad <malu@pidgin.im>
parents: 29914
diff changeset
49
29914
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
50 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
51 PurpleMediaSessionType type);
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 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
54 JabberIqType type, const char *iq, xmlnode *session);
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
55
a4ed5999f6d0 Added new files in sub directory google
Marcus Lundblad <malu@pidgin.im>
parents:
diff changeset
56 #endif /* PURPLE_JABBER_GOOGLE_SESSION_H_ */

mercurial