4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Library General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
23 #ifndef PURPLE_JABBER_JINGLE_H
24 #define PURPLE_JABBER_JINGLE_H
29 #include <glib-object.h>
33 #define JINGLE "urn:xmpp:jingle:1"
34 #define JINGLE_ERROR "urn:xmpp:jingle:errors:0"
35 #define JINGLE_APP_FT "urn:xmpp:jingle:apps:file-transfer:1"
36 #define JINGLE_APP_RTP "urn:xmpp:jingle:apps:rtp:1"
37 #define JINGLE_APP_RTP_ERROR "urn:xmpp:jingle:apps:rtp:errors:1"
38 #define JINGLE_APP_RTP_INFO "urn:xmpp:jingle:apps:rtp:info:1"
39 #define JINGLE_APP_RTP_SUPPORT_AUDIO "urn:xmpp:jingle:apps:rtp:audio"
40 #define JINGLE_APP_RTP_SUPPORT_VIDEO "urn:xmpp:jingle:apps:rtp:video"
41 #define JINGLE_APP_XML "urn:xmpp:tmp:jingle:apps:xmlstream"
42 #define JINGLE_DTMF "urn:xmpp:jingle:dtmf:0"
43 #define JINGLE_TRANSPORT_S5B "urn:xmpp:jingle:transports:s5b:0"
44 #define JINGLE_TRANSPORT_IBB "urn:xmpp:jingle:transports:ibb:0"
45 #define JINGLE_TRANSPORT_ICEUDP "urn:xmpp:jingle:transports:ice-udp:1"
46 #define JINGLE_TRANSPORT_RAWUDP "urn:xmpp:jingle:transports:raw-udp:1"
50 JINGLE_CONTENT_ACCEPT
,
52 JINGLE_CONTENT_MODIFY
,
53 JINGLE_CONTENT_REJECT
,
54 JINGLE_CONTENT_REMOVE
,
55 JINGLE_DESCRIPTION_INFO
,
57 JINGLE_SESSION_ACCEPT
,
59 JINGLE_SESSION_INITIATE
,
60 JINGLE_SESSION_TERMINATE
,
61 JINGLE_TRANSPORT_ACCEPT
,
62 JINGLE_TRANSPORT_INFO
,
63 JINGLE_TRANSPORT_REJECT
,
64 JINGLE_TRANSPORT_REPLACE
,
67 const gchar
*jingle_get_action_name(JingleActionType action
);
68 JingleActionType
jingle_get_action_type(const gchar
*action
);
70 GType
jingle_get_type(const gchar
*type
);
72 void jingle_parse(JabberStream
*js
, const char *from
, JabberIqType type
,
73 const char *id
, PurpleXmlNode
*child
);
75 void jingle_terminate_sessions(JabberStream
*js
);
78 /* create a GParam array given autoconfigured STUN (and later perhaps TURN).
79 if google_talk is TRUE, set compatability mode to GOOGLE_TALK */
80 GParameter
*jingle_get_params(JabberStream
*js
, const gchar
*relay_ip
,
81 guint relay_udp
, guint relay_tcp
, guint relay_ssltcp
,
82 const gchar
*relay_username
, const gchar
*relay_password
, guint
*num_params
);
87 #endif /* PURPLE_JABBER_JINGLE_H */