Mercurial > pidgin
changeset 26390:507d2366d329
Add purple_media_manager_{get,set}_ui_caps.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Tue, 31 Mar 2009 06:42:24 +0000 |
parents | 5a7fa2093d1e |
children | 24feaf9cfbf1 |
files | libpurple/mediamanager.c libpurple/mediamanager.h |
diffstat | 2 files changed, 42 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/mediamanager.c Tue Mar 31 06:23:27 2009 +0000 +++ b/libpurple/mediamanager.c Tue Mar 31 06:42:24 2009 +0000 @@ -54,6 +54,7 @@ struct _PurpleMediaManagerPrivate { GstElement *pipeline; + PurpleMediaCaps ui_caps; GList *medias; GList *elements; GList *output_windows; @@ -761,3 +762,25 @@ #endif } +void +purple_media_manager_set_ui_caps(PurpleMediaManager *manager, + PurpleMediaCaps caps) +{ +#ifdef USE_VV + g_return_if_fail(PURPLE_IS_MEDIA_MANAGER(manager)); + manager->priv->ui_caps = caps; +#endif +} + +PurpleMediaCaps +purple_media_manager_get_ui_caps(PurpleMediaManager *manager) +{ +#ifdef USE_VV + g_return_val_if_fail(PURPLE_IS_MEDIA_MANAGER(manager), + PURPLE_MEDIA_CAPS_NONE); + return manager->priv->ui_caps; +#else + return PURPLE_CAPS_NONE; +#endif +} +
--- a/libpurple/mediamanager.h Tue Mar 31 06:23:27 2009 +0000 +++ b/libpurple/mediamanager.h Tue Mar 31 06:42:24 2009 +0000 @@ -184,6 +184,25 @@ void purple_media_manager_remove_output_windows( PurpleMediaManager *manager, PurpleMedia *media, const gchar *session_id, const gchar *participant); + +/** + * Sets which media caps the UI supports. + * + * @param manager The manager to set the caps on. + * @param caps The caps to set. + */ +void purple_media_manager_set_ui_caps(PurpleMediaManager *manager, + PurpleMediaCaps caps); + +/** + * Gets which media caps the UI supports. + * + * @param manager The manager to get caps from. + * + * @return caps The caps retrieved. + */ +PurpleMediaCaps purple_media_manager_get_ui_caps(PurpleMediaManager *manager); + /*}@*/ #ifdef __cplusplus