comparison libpurple/media.h @ 25737:4b8c64deac5e

Simplify device API. Use gchar* instead of GValue.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Wed, 27 Aug 2008 05:52:14 +0000
parents e4261bc6788d
children 943a09762d95
comparison
equal deleted inserted replaced
25736:9ff63ec7d869 25737:4b8c64deac5e
291 * @param device The device data to retreive the name from. 291 * @param device The device data to retreive the name from.
292 * 292 *
293 * @return The name of the device. 293 * @return The name of the device.
294 */ 294 */
295 gchar *purple_media_get_device_name(GstElement *element, 295 gchar *purple_media_get_device_name(GstElement *element,
296 GValue *device); 296 const gchar *device);
297 297
298 /** 298 /**
299 * Enumerates a list of devices. 299 * Enumerates a list of devices.
300 * 300 *
301 * @param element The plugin from which to enumerate devices. 301 * @param element The plugin from which to enumerate devices.
308 * Sets the device to be used with the particular plugin. 308 * Sets the device to be used with the particular plugin.
309 * 309 *
310 * @param element The plugin to set the device on. 310 * @param element The plugin to set the device on.
311 * @param device The device to set the plugin to. 311 * @param device The device to set the plugin to.
312 */ 312 */
313 void purple_media_element_set_device(GstElement *element, GValue *device); 313 void purple_media_element_set_device(GstElement *element, const gchar *device);
314 314
315 /** 315 /**
316 * Sets the device from the given name. 316 * Sets the device from the given name.
317 * 317 *
318 * @param element The plugin to set the device on. 318 * @param element The plugin to set the device on.
326 * 326 *
327 * @param element The plugin to retrieve the device from. 327 * @param element The plugin to retrieve the device from.
328 * 328 *
329 * @return The device retrieved. 329 * @return The device retrieved.
330 */ 330 */
331 GValue *purple_media_element_get_device(GstElement *element); 331 gchar *purple_media_element_get_device(GstElement *element);
332 332
333 /** 333 /**
334 * Creates an element from a factory name. 334 * Creates an element from a factory name.
335 * 335 *
336 * @param factory_name Name of the factory to create an element from. 336 * @param factory_name Name of the factory to create an element from.