cpw.maiku.media_refactor: e2d829e3: Add purple_media_candidate_copy to the p...

maiku at pidgin.im maiku at pidgin.im
Mon Oct 26 22:46:23 EDT 2009


-----------------------------------------------------------------
Revision: e2d829e3481a8f6356b24ff8d36c23fbe01190a1
Ancestor: 7a6e120231085c2fe7aaea3cb60f9587618b138c
Author: maiku at pidgin.im
Date: 2009-10-26T18:23:32
Branch: im.pidgin.cpw.maiku.media_refactor
URL: http://d.pidgin.im/viewmtn/revision/info/e2d829e3481a8f6356b24ff8d36c23fbe01190a1

Modified files:
        ChangeLog.API libpurple/media/candidate.c
        libpurple/media/candidate.h

ChangeLog: 

Add purple_media_candidate_copy to the public API.

-------------- next part --------------
============================================================
--- ChangeLog.API	a3fc5227674d42a4b45ef4084d1e61659b432e5c
+++ ChangeLog.API	ad0d00390388fc535d823716db1b03674a6b50f2
@@ -4,6 +4,7 @@ version 2.7.0 (??/??/????):
 	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
============================================================
--- libpurple/media/candidate.c	2a02e9dfcc99b875144e5ca60ff0a1b67b27e05a
+++ libpurple/media/candidate.c	31c92c04c4f22d5038dd4f67c4ffc4583b2f13e4
@@ -336,7 +336,7 @@ purple_media_candidate_new(const gchar *
 			"port", port, NULL);
 }
 
-static PurpleMediaCandidate *
+PurpleMediaCandidate *
 purple_media_candidate_copy(PurpleMediaCandidate *candidate)
 {
 	PurpleMediaCandidatePrivate *priv;
============================================================
--- libpurple/media/candidate.h	401591eef1e741a58bddb7c74d84ae48f31d12b4
+++ libpurple/media/candidate.h	c793feb44f1628225e53126adaf4799ec1fdc4e0
@@ -73,6 +73,18 @@ PurpleMediaCandidate *purple_media_candi
 		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.


More information about the Commits mailing list