changeset 26414:89002b47a0df

Remove purple_media_set_src/sink from the public API.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sat, 21 Mar 2009 07:34:13 +0000
parents 6cafb8e35032
children 4143990b5c09
files libpurple/media.c libpurple/media.h
diffstat 2 files changed, 4 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Sat Mar 21 06:25:07 2009 +0000
+++ b/libpurple/media.c	Sat Mar 21 07:34:13 2009 +0000
@@ -1114,7 +1114,7 @@
 			g_hash_table_get_keys(media->priv->sessions) : NULL;
 }
 
-void 
+static void 
 purple_media_set_src(PurpleMedia *media, const gchar *sess_id, GstElement *src)
 {
 	PurpleMediaSession *session;
@@ -1151,7 +1151,8 @@
 	gst_element_set_locked_state(session->src, FALSE);
 }
 
-void 
+#if 0
+static void 
 purple_media_set_sink(PurpleMedia *media, const gchar *sess_id,
 		const gchar *participant, GstElement *sink)
 {
@@ -1173,6 +1174,7 @@
 	gst_bin_add(GST_BIN(stream->session->media->priv->confbin),
 		    stream->sink);
 }
+#endif
 
 GstElement *
 purple_media_get_src(PurpleMedia *media, const gchar *sess_id)
--- a/libpurple/media.h	Sat Mar 21 06:25:07 2009 +0000
+++ b/libpurple/media.h	Sat Mar 21 07:34:13 2009 +0000
@@ -351,26 +351,6 @@
 GList *purple_media_get_session_names(PurpleMedia *media);
 
 /**
- * Sets the source on a session.
- *
- * @param media The media object the session is in.
- * @param sess_id The session id of the session to set the source on.
- * @param src The source to set the session source to.
- */
-void purple_media_set_src(PurpleMedia *media, const gchar *sess_id, GstElement *src);
-
-/**
- * Sets the sink on a stream.
- *
- * @param media The media object the session is in.
- * @param sess_id The session id the stream belongs to.
- * @param sess_id The participant the stream is associated with.
- * @param sink The source to set the session sink to.
- */
-void purple_media_set_sink(PurpleMedia *media, const gchar *sess_id,
-		const gchar *participant, GstElement *sink);
-
-/**
  * Gets the source from a session
  *
  * @param media The media object the session is in.