pidgin.vv: bd37a383: Add purple_media_manager_{get,set}_ui_ca...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Tue Mar 31 03:51:02 EDT 2009
-----------------------------------------------------------------
Revision: bd37a3831b8fc4e1bcfefd0b85499ee2b6cd98b9
Ancestor: ebbb3b3e9f4157b0c5c71662547a4aa6ba4c5fec
Author: maiku at soc.pidgin.im
Date: 2009-03-31T06:42:24
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/bd37a3831b8fc4e1bcfefd0b85499ee2b6cd98b9
Modified files:
libpurple/mediamanager.c libpurple/mediamanager.h
ChangeLog:
Add purple_media_manager_{get,set}_ui_caps.
-------------- next part --------------
============================================================
--- libpurple/mediamanager.c d41dccf3403ce64d5b40dc0263e83be2e605ef2f
+++ libpurple/mediamanager.c ea9f32cb5b71d55d3edc3b031dcd88a8009e2daa
@@ -54,6 +54,7 @@ struct _PurpleMediaManagerPrivate
struct _PurpleMediaManagerPrivate
{
GstElement *pipeline;
+ PurpleMediaCaps ui_caps;
GList *medias;
GList *elements;
GList *output_windows;
@@ -761,3 +762,25 @@ purple_media_manager_remove_output_windo
#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
+}
+
============================================================
--- libpurple/mediamanager.h 66b50f263bb35d3583c16265d6d1a3ede27a28a5
+++ libpurple/mediamanager.h 06898beea1060245f14bb967e865cdeaa814ddee
@@ -184,6 +184,25 @@ void purple_media_manager_remove_output_
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
More information about the Commits
mailing list