summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-06-27 16:06:24 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2013-06-28 07:57:20 +0100
commit2348188a751fad97b356728479a01a9981a6438b (patch)
treeb8cc398bfdd93c4a6c358b52bcce501325ccf87c
parenta5640cc61631977b718d52d61f870b07860a3c2e (diff)
Add a boxed type for WockyJingleCandidate
https://bugs.freedesktop.org/show_bug.cgi?id=66262
-rw-r--r--wocky/wocky-jingle-transport-iface.c4
-rw-r--r--wocky/wocky-jingle-transport-iface.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/wocky/wocky-jingle-transport-iface.c b/wocky/wocky-jingle-transport-iface.c
index b09a522..06e3815 100644
--- a/wocky/wocky-jingle-transport-iface.c
+++ b/wocky/wocky-jingle-transport-iface.c
@@ -235,6 +235,10 @@ wocky_jingle_transport_iface_get_type (void)
return type;
}
+G_DEFINE_BOXED_TYPE (WockyJingleCandidate, wocky_jingle_candidate,
+ wocky_jingle_candidate_copy,
+ wocky_jingle_candidate_free)
+
WockyJingleCandidate *
wocky_jingle_candidate_new (WockyJingleTransportProtocol protocol,
WockyJingleCandidateType type, const gchar *id, int component,
diff --git a/wocky/wocky-jingle-transport-iface.h b/wocky/wocky-jingle-transport-iface.h
index c78fc9d..99e1a1a 100644
--- a/wocky/wocky-jingle-transport-iface.h
+++ b/wocky/wocky-jingle-transport-iface.h
@@ -97,6 +97,10 @@ gboolean jingle_transport_get_credentials (WockyJingleTransportIface *,
WockyJingleTransportIface *wocky_jingle_transport_iface_new (
GType type, WockyJingleContent *content, const gchar *transport_ns);
+#define WOCKY_TYPE_JINGLE_CANDIDATE \
+ (wocky_jingle_candidate_get_type ())
+GType wocky_jingle_candidate_get_type (void);
+
WockyJingleCandidate *wocky_jingle_candidate_new (WockyJingleTransportProtocol protocol,
WockyJingleCandidateType type, const gchar *id, int component,
const gchar *address, int port, int generation, int preference,