comparison libpurple/media.h @ 32578:978dd52814c7

propagate from branch 'im.pidgin.pidgin' (head b64b40b3762950d0b8b4bff4f4bb8bddeefc24ac) to branch 'im.pidgin.cpw.qulogic.gtk3' (head 907442ea1932404e6753dbf649de9a5ea2406766)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 09 May 2009 20:10:22 +0000
parents 8b7d1aed6d59
children c1687897825f
comparison
equal deleted inserted replaced
32577:a70f05468fb4 32578:978dd52814c7
349 * @since 2.6.0 349 * @since 2.6.0
350 */ 350 */
351 void purple_media_codec_list_free(GList *codecs); 351 void purple_media_codec_list_free(GList *codecs);
352 352
353 /** 353 /**
354 * Gets a list of session names. 354 * Gets a list of session IDs.
355 * 355 *
356 * @param media The media session to retrieve session names from. 356 * @param media The media session from which to retrieve session IDs.
357 * 357 *
358 * @return GList of session names. 358 * @return GList of session IDs. The caller must free the list.
359 * 359 *
360 * @since 2.6.0 360 * @since 2.6.0
361 */ 361 */
362 GList *purple_media_get_session_names(PurpleMedia *media); 362 GList *purple_media_get_session_ids(PurpleMedia *media);
363 363
364 /** 364 /**
365 * Gets the PurpleAccount this media session is on. 365 * Gets the PurpleAccount this media session is on.
366 * 366 *
367 * @param media The media session to retrieve the account from. 367 * @param media The media session to retrieve the account from.
493 /** 493 /**
494 * Adds remote candidates to the stream. 494 * Adds remote candidates to the stream.
495 * 495 *
496 * @param media The media object to find the session in. 496 * @param media The media object to find the session in.
497 * @param sess_id The session id of the session find the stream in. 497 * @param sess_id The session id of the session find the stream in.
498 * @param name The name of the remote user to add the candidates for. 498 * @param participant The name of the remote user to add the candidates for.
499 * @param remote_candidates The remote candidates to add. 499 * @param remote_candidates The remote candidates to add.
500 * 500 *
501 * @since 2.6.0 501 * @since 2.6.0
502 */ 502 */
503 void purple_media_add_remote_candidates(PurpleMedia *media, 503 void purple_media_add_remote_candidates(PurpleMedia *media,
504 const gchar *sess_id, 504 const gchar *sess_id,
505 const gchar *name, 505 const gchar *participant,
506 GList *remote_candidates); 506 GList *remote_candidates);
507 507
508 /** 508 /**
509 * Gets the local candidates from a stream. 509 * Gets the local candidates from a stream.
510 * 510 *
511 * @param media The media object to find the session in. 511 * @param media The media object to find the session in.
512 * @param sess_id The session id of the session to find the stream in. 512 * @param sess_id The session id of the session to find the stream in.
513 * @param name The name of the remote user to get the candidates from. 513 * @param participant The name of the remote user to get the candidates from.
514 * 514 *
515 * @since 2.6.0 515 * @since 2.6.0
516 */ 516 */
517 GList *purple_media_get_local_candidates(PurpleMedia *media, 517 GList *purple_media_get_local_candidates(PurpleMedia *media,
518 const gchar *sess_id, 518 const gchar *sess_id,
519 const gchar *name); 519 const gchar *participant);
520 520
521 #if 0 521 #if 0
522 /* 522 /*
523 * These two functions aren't being used and I'd rather not lock in the API 523 * These two functions aren't being used and I'd rather not lock in the API
524 * until they are needed. If they ever are. 524 * until they are needed. If they ever are.
527 /** 527 /**
528 * Gets the active local candidates for the stream. 528 * Gets the active local candidates for the stream.
529 * 529 *
530 * @param media The media object to find the session in. 530 * @param media The media object to find the session in.
531 * @param sess_id The session id of the session to find the stream in. 531 * @param sess_id The session id of the session to find the stream in.
532 * @param name The name of the remote user to get the active candidate from. 532 * @param participant The name of the remote user to get the active candidate
533 * from.
533 * 534 *
534 * @return The active candidates retrieved. 535 * @return The active candidates retrieved.
535 */ 536 */
536 GList *purple_media_get_active_local_candidates(PurpleMedia *media, 537 GList *purple_media_get_active_local_candidates(PurpleMedia *media,
537 const gchar *sess_id, const gchar *name); 538 const gchar *sess_id, const gchar *participant);
538 539
539 /** 540 /**
540 * Gets the active remote candidates for the stream. 541 * Gets the active remote candidates for the stream.
541 * 542 *
542 * @param media The media object to find the session in. 543 * @param media The media object to find the session in.
543 * @param sess_id The session id of the session to find the stream in. 544 * @param sess_id The session id of the session to find the stream in.
544 * @param name The name of the remote user to get the remote candidate from. 545 * @param participant The name of the remote user to get the remote candidate
546 * from.
545 * 547 *
546 * @return The remote candidates retrieved. 548 * @return The remote candidates retrieved.
547 */ 549 */
548 GList *purple_media_get_active_remote_candidates(PurpleMedia *media, 550 GList *purple_media_get_active_remote_candidates(PurpleMedia *media,
549 const gchar *sess_id, const gchar *name); 551 const gchar *sess_id, const gchar *participant);
550 #endif 552 #endif
551 553
552 /** 554 /**
553 * Sets remote candidates from the stream. 555 * Sets remote candidates from the stream.
554 * 556 *
555 * @param media The media object to find the session in. 557 * @param media The media object to find the session in.
556 * @param sess_id The session id of the session find the stream in. 558 * @param sess_id The session id of the session find the stream in.
557 * @param name The name of the remote user to get the candidates from. 559 * @param participant The name of the remote user to set the candidates from.
558 * 560 *
559 * @return @c TRUE The codecs were set successfully, or @c FALSE otherwise. 561 * @return @c TRUE The codecs were set successfully, or @c FALSE otherwise.
560 * 562 *
561 * @since 2.6.0 563 * @since 2.6.0
562 */ 564 */
563 gboolean purple_media_set_remote_codecs(PurpleMedia *media, const gchar *sess_id, 565 gboolean purple_media_set_remote_codecs(PurpleMedia *media, const gchar *sess_id,
564 const gchar *name, GList *codecs); 566 const gchar *participant, GList *codecs);
565 567
566 /** 568 /**
567 * Returns whether or not the candidates for set of streams are prepared 569 * Returns whether or not the candidates for set of streams are prepared
568 * 570 *
569 * @param media The media object to find the remote user in. 571 * @param media The media object to find the remote user in.