changeset 29558:ec069900bf96

Add purple_media_candidate_copy to the public API.
author maiku@pidgin.im
date Mon, 26 Oct 2009 18:23:32 +0000
parents 1fdc75c94c22
children cb843608e183
files ChangeLog.API libpurple/media/candidate.c libpurple/media/candidate.h
diffstat 3 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog.API	Mon Oct 26 18:02:06 2009 +0000
+++ b/ChangeLog.API	Mon Oct 26 18:23:32 2009 +0000
@@ -4,6 +4,7 @@
 	libpurple:
 		Added:
 		* purple_account_get_name_for_display
+		* purple_media_candidate_copy
 		* purple_media_codec_copy
 		* purple_network_get_all_local_system_ips
 		* purple_prpl_got_media_caps
--- a/libpurple/media/candidate.c	Mon Oct 26 18:02:06 2009 +0000
+++ b/libpurple/media/candidate.c	Mon Oct 26 18:23:32 2009 +0000
@@ -336,7 +336,7 @@
 			"port", port, NULL);
 }
 
-static PurpleMediaCandidate *
+PurpleMediaCandidate *
 purple_media_candidate_copy(PurpleMediaCandidate *candidate)
 {
 	PurpleMediaCandidatePrivate *priv;
--- a/libpurple/media/candidate.h	Mon Oct 26 18:02:06 2009 +0000
+++ b/libpurple/media/candidate.h	Mon Oct 26 18:23:32 2009 +0000
@@ -73,6 +73,18 @@
 		const gchar *ip, guint port);
 
 /**
+ * Copies a PurpleMediaCandidate.
+ *
+ * @param candidate The candidate to copy.
+ *
+ * @return The copy of the PurpleMediaCandidate.
+ *
+ * @since 2.7.0
+ */
+PurpleMediaCandidate *purple_media_candidate_copy(
+		PurpleMediaCandidate *candidate);
+
+/**
  * Copies a GList of PurpleMediaCandidate and its contents.
  *
  * @param candidates The list of candidates to be copied.