comparison libpurple/media.h @ 31848:0d4702446530

propagate from branch 'im.pidgin.pidgin' (head d6053150b258c5c8b2ac60e091a7d0d1b2d9be1d) to branch 'im.pidgin.pidgin.next.major' (head 5a8d4b649d9f0206f65aff9c3c657bf0271cb36c)
author Mark Doliner <mark@kingant.net>
date Mon, 09 May 2011 04:26:46 +0000
parents a4ba3b194ce3
children 02a2e8183b1d
comparison
equal deleted inserted replaced
31847:ea4bb5fe1fdc 31848:0d4702446530
140 * @since 2.6.0 140 * @since 2.6.0
141 */ 141 */
142 void purple_media_stream_info(PurpleMedia *media, PurpleMediaInfoType type, 142 void purple_media_stream_info(PurpleMedia *media, PurpleMediaInfoType type,
143 const gchar *session_id, const gchar *participant, 143 const gchar *session_id, const gchar *participant,
144 gboolean local); 144 gboolean local);
145
146 /**
147 * Sets various optional parameters of the media call.
148 *
149 * Currently supported are:
150 * - "sdes-cname" : The CNAME for the RTP sessions
151 * - "sdes-name" : Real name used to describe the source in SDES messages
152 * - "sdes-tool" : The TOOL to put in SDES messages
153 * - "sdes-email" : Email address to put in SDES messages
154 * - "sdes-location" : The LOCATION to put in SDES messages
155 * - "sdes-note" : The NOTE to put in SDES messages
156 * - "sdes-phone" : The PHONE to put in SDES messages
157 *
158 * @param media The media object to set the parameters on.
159 * @param num_params The number of parameters to pass
160 * @param params Array of @c GParameter to pass
161 *
162 * @since 2.8.0
163 */
164 void purple_media_set_params(PurpleMedia *media,
165 guint num_params, GParameter *params);
166
167 /**
168 * Gets the list of optional parameters supported by the media backend.
169 *
170 * The list is owned by the @c PurpleMedia internals and should NOT be freed.
171 *
172 * @param media The media object
173 *
174 * @return NULL-terminated array of names of supported parameters.
175 *
176 * @since 2.8.0
177 */
178 const gchar **purple_media_get_available_params(PurpleMedia *media);
179
180 /**
181 * Checks if given optional parameter is supported by the media backend.
182 *
183 * @param media The media object
184 * @param param name of parameter
185 *
186 * @return @c TRUE if backend recognizes the parameter, @c FALSE otherwise.
187 *
188 * @since 2.8.0
189 */
190 gboolean purple_media_param_is_supported(PurpleMedia *media, const gchar *param);
145 191
146 /** 192 /**
147 * Adds a stream to a session. 193 * Adds a stream to a session.
148 * 194 *
149 * It only adds a stream to one audio session or video session as 195 * It only adds a stream to one audio session or video session as