comparison libpurple/prpl.h @ 25720:551a462b346a

Changed PurpleMediaStreamType to PurpleMediaSessionType.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sat, 09 Aug 2008 03:51:42 +0000
parents 1aa383ee5fc8
children 25e2ab1fff1d
comparison
equal deleted inserted replaced
25719:1aa383ee5fc8 25720:551a462b346a
448 * @param who The remote user to initiate the session with. 448 * @param who The remote user to initiate the session with.
449 * @param type The type of media session to initiate. 449 * @param type The type of media session to initiate.
450 * @return The newly created media object. 450 * @return The newly created media object.
451 */ 451 */
452 PurpleMedia *(*initiate_media)(PurpleConnection *gc, const char *who, 452 PurpleMedia *(*initiate_media)(PurpleConnection *gc, const char *who,
453 PurpleMediaStreamType type); 453 PurpleMediaSessionType type);
454 454
455 /** 455 /**
456 * Checks to see if the given contact supports the given type of media session. 456 * Checks to see if the given contact supports the given type of media session.
457 * 457 *
458 * @param conn The connection the contact is on. 458 * @param conn The connection the contact is on.
459 * @param who The remote user to check for media capability with. 459 * @param who The remote user to check for media capability with.
460 * @param type The type of media session to check for. 460 * @param type The type of media session to check for.
461 * @return @c TRUE The contact supports the given media type, or @c FALSE otherwise. 461 * @return @c TRUE The contact supports the given media type, or @c FALSE otherwise.
462 */ 462 */
463 gboolean (*can_do_media)(PurpleConnection *gc, const char *who, 463 gboolean (*can_do_media)(PurpleConnection *gc, const char *who,
464 PurpleMediaStreamType type); 464 PurpleMediaSessionType type);
465 }; 465 };
466 466
467 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \ 467 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \
468 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \ 468 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \
469 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \ 469 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \
759 * 759 *
760 * @return @c TRUE if the contact supports the session type, else @c FALSE. 760 * @return @c TRUE if the contact supports the session type, else @c FALSE.
761 */ 761 */
762 gboolean purple_prpl_can_do_media(PurpleAccount *account, 762 gboolean purple_prpl_can_do_media(PurpleAccount *account,
763 const char *who, 763 const char *who,
764 PurpleMediaStreamType type); 764 PurpleMediaSessionType type);
765 765
766 /** 766 /**
767 * Initiates a media session with the given contact. 767 * Initiates a media session with the given contact.
768 * 768 *
769 * @param account The account the user is on. 769 * @param account The account the user is on.
772 * 772 *
773 * @return The newly created session object. 773 * @return The newly created session object.
774 */ 774 */
775 PurpleMedia *purple_prpl_initiate_media(PurpleAccount *account, 775 PurpleMedia *purple_prpl_initiate_media(PurpleAccount *account,
776 const char *who, 776 const char *who,
777 PurpleMediaStreamType type); 777 PurpleMediaSessionType type);
778 778
779 /*@}*/ 779 /*@}*/
780 780
781 /**************************************************************************/ 781 /**************************************************************************/
782 /** @name Protocol Plugin Subsystem API */ 782 /** @name Protocol Plugin Subsystem API */