annotate libpurple/mediamanager.h @ 26168:af42303654a5

propagate from branch 'im.pidgin.pidgin' (head 0bb02399ead9501a3e7951cfba2e8e8350fe917c) to branch 'im.pidgin.pidgin.vv' (head a940363ef1efa4bf53c71cbb8201f36ed5795583)
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 05 Feb 2009 00:31:35 +0000
parents 0e8814c437b2
children 730e760ca39f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1 /**
25552
f0e32b734ef7 Cosmetics.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 25548
diff changeset
2 * @file mediamanager.h Media Manager API
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 * @ingroup core
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
4 */
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
5
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
6 /* purple
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 *
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
8 * Purple is the legal property of its developers, whose names are too numerous
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 * source distribution.
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 *
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 * (at your option) any later version.
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 *
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 * GNU General Public License for more details.
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 *
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
25 */
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
26
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 #ifndef __MEDIA_MANAGER_H_
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28 #define __MEDIA_MANAGER_H_
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
29
25654
cbe97caec684 Use USE_VV instead of USE_FARSIGHT.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25647
diff changeset
30 #ifdef USE_VV
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
31
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
32 #include <glib.h>
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 #include <glib-object.h>
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35 #include "connection.h"
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 #include "media.h"
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38 G_BEGIN_DECLS
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
39
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40 #define PURPLE_TYPE_MEDIA_MANAGER (purple_media_manager_get_type())
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
41 #define PURPLE_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManager))
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
42 #define PURPLE_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass))
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
43 #define PURPLE_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_MANAGER))
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
44 #define PURPLE_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_MANAGER))
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
45 #define PURPLE_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass))
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
46
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
47 /** @copydoc _PurpleMediaManager */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
48 typedef struct _PurpleMediaManager PurpleMediaManager;
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
49 /** @copydoc _PurpleMediaManagerClass */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
50 typedef struct _PurpleMediaManagerClass PurpleMediaManagerClass;
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
51 /** @copydoc _PurpleMediaManagerPrivate */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
52 typedef struct _PurpleMediaManagerPrivate PurpleMediaManagerPrivate;
26163
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
53 /** @copydoc _PurpleMediaElementInfo */
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
54 typedef struct _PurpleMediaElementInfo PurpleMediaElementInfo;
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
55
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
56 /** The media manager class. */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
57 struct _PurpleMediaManagerClass
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
58 {
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
59 GObjectClass parent_class; /**< The parent class. */
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
60 };
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
61
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
62 /** The media manager's data. */
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
63 struct _PurpleMediaManager
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
64 {
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
65 GObject parent; /**< The parent of this manager. */
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
66 PurpleMediaManagerPrivate *priv; /**< Private data for the manager. */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
67 };
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68
26164
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
69 typedef enum {
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
70 PURPLE_MEDIA_ELEMENT_AUDIO = 1, /** supports audio */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
71 PURPLE_MEDIA_ELEMENT_VIDEO = 1 << 1, /** supports video */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
72 PURPLE_MEDIA_ELEMENT_AUDIO_VIDEO = PURPLE_MEDIA_ELEMENT_AUDIO
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
73 | PURPLE_MEDIA_ELEMENT_VIDEO, /** supports audio and video */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
74
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
75 PURPLE_MEDIA_ELEMENT_NO_SRCS = 0, /** has no src pads */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
76 PURPLE_MEDIA_ELEMENT_ONE_SRC = 1 << 2, /** has one src pad */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
77 PURPLE_MEDIA_ELEMENT_MULTI_SRC = 1 << 3, /** has multiple src pads */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
78 PURPLE_MEDIA_ELEMENT_REQUEST_SRC = 1 << 4, /** src pads must be requested */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
79
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
80 PURPLE_MEDIA_ELEMENT_NO_SINKS = 0, /** has no sink pads */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
81 PURPLE_MEDIA_ELEMENT_ONE_SINK = 1 << 5, /** has one sink pad */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
82 PURPLE_MEDIA_ELEMENT_MULTI_SINK = 1 << 6, /** has multiple sink pads */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
83 PURPLE_MEDIA_ELEMENT_REQUEST_SINK = 1 << 7, /** sink pads must be requested */
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
84
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
85 PURPLE_MEDIA_ELEMENT_UNIQUE = 1 << 8, /** This element is unique and
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
86 only one instance of it should
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
87 be created at a time */
26165
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
88
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
89 PURPLE_MEDIA_ELEMENT_SRC = 1 << 9, /** can be set as an active src */
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
90 PURPLE_MEDIA_ELEMENT_SINK = 1 << 10, /** can be set as an active sink */
26164
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
91 } PurpleMediaElementType;
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
92
26163
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
93 struct _PurpleMediaElementInfo
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
94 {
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
95 const gchar *id;
26164
fc100e71de5d Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26163
diff changeset
96 PurpleMediaElementType type;
26165
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
97 GstElement *(*create)(void);
26163
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
98 };
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
99
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
100 #ifdef __cplusplus
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
101 extern "C" {
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
102 #endif
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
103
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
104 /**************************************************************************/
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
105 /** @cname Media Manager API */
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
106 /**************************************************************************/
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
107 /*@{*/
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
108
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
109 /**
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
110 * Gets the media manager's GType.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
111 *
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
112 * @return The media manager's GType.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
113 */
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
114 GType purple_media_manager_get_type(void);
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
115
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
116 /**
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
117 * Gets the "global" media manager object. It's created if it doesn't already exist.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
118 *
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
119 * @return The "global" instance of the media manager object.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
120 */
25552
f0e32b734ef7 Cosmetics.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 25548
diff changeset
121 PurpleMediaManager *purple_media_manager_get(void);
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
122
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
123 /**
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
124 * Creates a media session.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
125 *
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
126 * @param manager The media manager to create the session under.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
127 * @param gc The connection to create the session on.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
128 * @param conference_type The conference type to feed into Farsight2.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
129 * @param remote_user The remote user to initiate the session with.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
130 *
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
131 * @return A newly created media session.
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
132 */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
133 PurpleMedia *purple_media_manager_create_media(PurpleMediaManager *manager,
25647
e1c8ec1259de Updates voice and video to use Farsight 2, gets XMPP voice conferences
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25563
diff changeset
134 PurpleConnection *gc,
e1c8ec1259de Updates voice and video to use Farsight 2, gets XMPP voice conferences
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25563
diff changeset
135 const char *conference_type,
26063
c7d4b67b3332 Add initiator property to PurpleMedia.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26026
diff changeset
136 const char *remote_user,
c7d4b67b3332 Add initiator property to PurpleMedia.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26026
diff changeset
137 gboolean initiator);
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
138
25727
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
139 /**
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
140 * Gets all of the media sessions.
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
141 *
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
142 * @param manager The media manager to get all of the sessions from.
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
143 *
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
144 * @return A list of all the media sessions.
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
145 */
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
146 GList *purple_media_manager_get_media(PurpleMediaManager *manager);
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
147
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
148 /**
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
149 * Removes a media session from the media manager.
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
150 *
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
151 * @param manager The media manager to remove the media session from.
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
152 * @param media The media session to remove.
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
153 */
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
154 void
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
155 purple_media_manager_remove_media(PurpleMediaManager *manager,
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
156 PurpleMedia *media);
f10e0ac24595 * Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25715
diff changeset
157
26026
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
158 /**
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
159 * Returns a GStreamer source or sink for audio or video.
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
160 *
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
161 * @param manager The media manager to use to obtain the source/sink.
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
162 * @param type The type of source/sink to get.
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
163 */
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
164 GstElement *purple_media_manager_get_element(PurpleMediaManager *manager,
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
165 PurpleMediaSessionType type);
431c59a6959d Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26014
diff changeset
166
26163
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
167 PurpleMediaElementInfo *purple_media_manager_get_element_info(
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
168 PurpleMediaManager *manager, const gchar *name);
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
169 gboolean purple_media_manager_register_element(PurpleMediaManager *manager,
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
170 PurpleMediaElementInfo *info);
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
171 gboolean purple_media_manager_unregister_element(PurpleMediaManager *manager,
521366dfd8db Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26079
diff changeset
172 const gchar *name);
26165
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
173 gboolean purple_media_manager_set_active_element(PurpleMediaManager *manager,
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
174 PurpleMediaElementInfo *info);
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
175 PurpleMediaElementInfo *purple_media_manager_get_active_element(
0e8814c437b2 Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 26164
diff changeset
176 PurpleMediaManager *manager, PurpleMediaElementType type);
25715
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
177 /*}@*/
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
178
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
179 #ifdef __cplusplus
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
180 }
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
181 #endif
b8a73b6dc0a4 * Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25654
diff changeset
182
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
183 G_END_DECLS
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
184
25654
cbe97caec684 Use USE_VV instead of USE_FARSIGHT.
Mike Ruprecht <maiku@soc.pidgin.im>
parents: 25647
diff changeset
185 #endif /* USE_VV */
25546
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
186
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
187
5150d8b576be Missed files
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
188 #endif /* __MEDIA_MANAGER_H_ */