Mercurial > pidgin.yaz
annotate libpurple/mediamanager.h @ 26553:91583903b478
Migrate googleinfo:jabber handlers and add some safety checks.
Do not parse STUN servers from anyone, enforce that they must come from our
bare JID (i.e. our server on behalf of us).
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 03 Apr 2009 17:15:40 +0000 |
parents | 84d09c6499f1 |
children | 9eb8c8ec0a75 |
rev | line source |
---|---|
25546 | 1 /** |
25552 | 2 * @file mediamanager.h Media Manager API |
25546 | 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 | 7 * |
8 * Purple is the legal property of its developers, whose names are too numerous | |
9 * to list here. Please refer to the COPYRIGHT file distributed with this | |
10 * source distribution. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (at your option) any later version. | |
16 * | |
17 * This program is distributed in the hope that it will be useful, | |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
25 */ | |
26 | |
27 #ifndef __MEDIA_MANAGER_H_ | |
28 #define __MEDIA_MANAGER_H_ | |
29 | |
30 #include <glib.h> | |
31 #include <glib-object.h> | |
32 | |
33 #include "connection.h" | |
34 #include "media.h" | |
35 | |
36 G_BEGIN_DECLS | |
37 | |
38 #define PURPLE_TYPE_MEDIA_MANAGER (purple_media_manager_get_type()) | |
39 #define PURPLE_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManager)) | |
40 #define PURPLE_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass)) | |
41 #define PURPLE_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_MANAGER)) | |
42 #define PURPLE_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_MANAGER)) | |
43 #define PURPLE_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass)) | |
44 | |
25715
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
45 /** @copydoc _PurpleMediaManager */ |
25546 | 46 typedef struct _PurpleMediaManager PurpleMediaManager; |
25715
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
47 /** @copydoc _PurpleMediaManagerClass */ |
25546 | 48 typedef struct _PurpleMediaManagerClass PurpleMediaManagerClass; |
49 | |
25715
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
50 #ifdef __cplusplus |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
51 extern "C" { |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
52 #endif |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
53 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
54 /**************************************************************************/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
55 /** @cname Media Manager API */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
56 /**************************************************************************/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
57 /*@{*/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
58 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
59 /** |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
60 * 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
|
61 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
62 * @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
|
63 */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
64 GType purple_media_manager_get_type(void); |
25546 | 65 |
25715
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
66 /** |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
67 * 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
|
68 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
69 * @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
|
70 */ |
25552 | 71 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
|
72 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
73 /** |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
74 * Creates a media session. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
75 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
76 * @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
|
77 * @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
|
78 * @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
|
79 * @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
|
80 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
81 * @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
|
82 */ |
25546 | 83 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
|
84 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
|
85 const char *conference_type, |
26063
c7d4b67b3332
Add initiator property to PurpleMedia.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26026
diff
changeset
|
86 const char *remote_user, |
c7d4b67b3332
Add initiator property to PurpleMedia.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26026
diff
changeset
|
87 gboolean initiator); |
25546 | 88 |
25727
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
89 /** |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
90 * 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
|
91 * |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
92 * @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
|
93 * |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
94 * @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
|
95 */ |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
96 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
|
97 |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
98 /** |
26205
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
99 * Gets all of the media sessions for a given connection. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
100 * |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
101 * @param manager The media manager to get the sessions from. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
102 * @param pc The connection the sessions are on. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
103 * |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
104 * @return A list of the media sessions on the given connection. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
105 */ |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
106 GList *purple_media_manager_get_media_by_connection( |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
107 PurpleMediaManager *manager, PurpleConnection *pc); |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
108 |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26199
diff
changeset
|
109 /** |
25727
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
110 * 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
|
111 * |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
112 * @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
|
113 * @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
|
114 */ |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
115 void |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
116 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
|
117 PurpleMedia *media); |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25715
diff
changeset
|
118 |
26026
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26014
diff
changeset
|
119 /** |
26443
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
120 * Signals that output windows should be created for the chosen stream. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
121 * |
26199
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
122 * This shouldn't be called outside of mediamanager.c and media.c |
26443
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
123 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
124 * @param manager Manager the output windows are registered with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
125 * @param media Media session the output windows are registered for. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
126 * @param session_id The session the output windows are registered with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
127 * @param participant The participant the output windows are registered with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
128 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
129 * @return TRUE if it succeeded, FALSE if it failed. |
26199
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
130 */ |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
131 gboolean purple_media_manager_create_output_window( |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
132 PurpleMediaManager *manager, PurpleMedia *media, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
133 const gchar *session_id, const gchar *participant); |
26443
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
134 |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
135 /** |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
136 * Registers a video output window to be created for a given stream. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
137 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
138 * @param manager The manager to register the output window with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
139 * @param media The media instance to find the stream in. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
140 * @param session_id The session the stream is associated with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
141 * @param participant The participant the stream is associated with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
142 * @param window_id The window ID to embed the video in. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
143 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
144 * @return A unique ID to the registered output window, 0 if it failed. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
145 */ |
26199
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
146 gulong purple_media_manager_set_output_window(PurpleMediaManager *manager, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
147 PurpleMedia *media, const gchar *session_id, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
148 const gchar *participant, gulong window_id); |
26443
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
149 |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
150 /** |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
151 * Remove a previously registerd output window. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
152 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
153 * @param manager The manager the output window was registered with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
154 * @param output_window_id The ID of the output window. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
155 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
156 * @return TRUE if it found the output window and was successful, else FALSE. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
157 */ |
26199
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
158 gboolean purple_media_manager_remove_output_window( |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
159 PurpleMediaManager *manager, gulong output_window_id); |
26443
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
160 |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
161 /** |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
162 * Remove all output windows for a given conference/session/participant/stream. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
163 * |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
164 * @param manager The manager the output windows were registered with. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
165 * @param media The media instance the output windows were registered for. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
166 * @param session_id The session the output windows were registered for. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
167 * @param participant The participant the output windows were registered for. |
e9b5d68887ff
Add some documentation to mediamanager.h.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26432
diff
changeset
|
168 */ |
26199
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
169 void purple_media_manager_remove_output_windows( |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
170 PurpleMediaManager *manager, PurpleMedia *media, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26196
diff
changeset
|
171 const gchar *session_id, const gchar *participant); |
26472
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
172 |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
173 /** |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
174 * Sets which media caps the UI supports. |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
175 * |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
176 * @param manager The manager to set the caps on. |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
177 * @param caps The caps to set. |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
178 */ |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
179 void purple_media_manager_set_ui_caps(PurpleMediaManager *manager, |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
180 PurpleMediaCaps caps); |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
181 |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
182 /** |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
183 * Gets which media caps the UI supports. |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
184 * |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
185 * @param manager The manager to get caps from. |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
186 * |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
187 * @return caps The caps retrieved. |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
188 */ |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
189 PurpleMediaCaps purple_media_manager_get_ui_caps(PurpleMediaManager *manager); |
507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26443
diff
changeset
|
190 |
25715
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
191 /*}@*/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
192 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
193 #ifdef __cplusplus |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
194 } |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
195 #endif |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25654
diff
changeset
|
196 |
25546 | 197 G_END_DECLS |
198 | |
199 #endif /* __MEDIA_MANAGER_H_ */ |