comparison libpurple/protocols/jabber/jingle/rtp.h @ 26023:7252e3d0c627

Add files I missed committing before and remove a few unnecessary functions.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 20 Oct 2008 00:11:33 +0000
parents
children b1c4fcc5b814
comparison
equal deleted inserted replaced
26022:46387cbfaf85 26023:7252e3d0c627
1 /**
2 * @file rtp.h
3 *
4 * purple
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
19 */
20
21 #ifndef JINGLE_RTP_H
22 #define JINGLE_RTP_H
23
24 #include "config.h"
25
26 #ifdef USE_VV
27
28 #include <glib.h>
29 #include <glib-object.h>
30
31 #include "content.h"
32 #include "media.h"
33 #include "xmlnode.h"
34
35 G_BEGIN_DECLS
36
37 #define JINGLE_TYPE_RTP (jingle_rtp_get_type())
38 #define JINGLE_RTP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), JINGLE_TYPE_RTP, JingleRtp))
39 #define JINGLE_RTP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), JINGLE_TYPE_RTP, JingleRtpClass))
40 #define JINGLE_IS_RTP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), JINGLE_TYPE_RTP))
41 #define JINGLE_IS_RTP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), JINGLE_TYPE_RTP))
42 #define JINGLE_RTP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), JINGLE_TYPE_RTP, JingleRtpClass))
43
44 /** @copydoc _JingleRtp */
45 typedef struct _JingleRtp JingleRtp;
46 /** @copydoc _JingleRtpClass */
47 typedef struct _JingleRtpClass JingleRtpClass;
48 /** @copydoc _JingleRtpPrivate */
49 typedef struct _JingleRtpPrivate JingleRtpPrivate;
50
51 /** The rtp class */
52 struct _JingleRtpClass
53 {
54 JingleContentClass parent_class; /**< The parent class. */
55 };
56
57 /** The rtp class's private data */
58 struct _JingleRtp
59 {
60 JingleContent parent; /**< The parent of this object. */
61 JingleRtpPrivate *priv; /**< The private data of this object. */
62 };
63
64 #ifdef __cplusplus
65 extern "C" {
66 #endif
67
68 /**
69 * Gets the rtp class's GType
70 *
71 * @return The rtp class's GType.
72 */
73 GType jingle_rtp_get_type(void);
74
75 gchar *jingle_rtp_get_media_type(JingleContent *content);
76
77 PurpleMedia *jingle_rtp_initiate_media(JabberStream *js,
78 const gchar *who,
79 PurpleMediaSessionType type);
80 void jingle_rtp_terminate_session(JabberStream *js, const gchar *who);
81
82 #ifdef __cplusplus
83 }
84 #endif
85
86 G_END_DECLS
87
88 #endif /* USE_VV */
89
90 #endif /* JINGLE_RTP_H */
91