summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-06-27 15:55:16 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2013-06-28 07:57:17 +0100
commita5640cc61631977b718d52d61f870b07860a3c2e (patch)
tree5f721c73306d5514c4ab3f0e0a0056dbaac9b745
parentc0e8186ae66964bf16ff6bc3c8b6d08f26077adb (diff)
Add wocky_jingle_candidate_copy
https://bugs.freedesktop.org/show_bug.cgi?id=66262
-rw-r--r--wocky/wocky-jingle-transport-iface.c8
-rw-r--r--wocky/wocky-jingle-transport-iface.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/wocky/wocky-jingle-transport-iface.c b/wocky/wocky-jingle-transport-iface.c
index 63a9339..b09a522 100644
--- a/wocky/wocky-jingle-transport-iface.c
+++ b/wocky/wocky-jingle-transport-iface.c
@@ -258,6 +258,14 @@ wocky_jingle_candidate_new (WockyJingleTransportProtocol protocol,
return c;
}
+WockyJingleCandidate *
+wocky_jingle_candidate_copy (WockyJingleCandidate *c)
+{
+ return wocky_jingle_candidate_new (c->protocol, c->type, c->id,
+ c->component, c->address, c->port, c->generation, c->preference,
+ c->username, c->password, c->network);
+}
+
void
wocky_jingle_candidate_free (WockyJingleCandidate *c)
{
diff --git a/wocky/wocky-jingle-transport-iface.h b/wocky/wocky-jingle-transport-iface.h
index 2b47d01..c78fc9d 100644
--- a/wocky/wocky-jingle-transport-iface.h
+++ b/wocky/wocky-jingle-transport-iface.h
@@ -102,6 +102,7 @@ WockyJingleCandidate *wocky_jingle_candidate_new (WockyJingleTransportProtocol p
const gchar *address, int port, int generation, int preference,
const gchar *username, const gchar *password, int network);
+WockyJingleCandidate *wocky_jingle_candidate_copy (WockyJingleCandidate *c);
void wocky_jingle_candidate_free (WockyJingleCandidate *c);
void jingle_transport_free_candidates (GList *candidates);