summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-17 00:02:33 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-17 00:26:14 -0400
commitd24855d7832fb0ca26cf1bb46e987d05edf60128 (patch)
tree81a266298e01b5764e1ce8e08c6df01f83865133
parent7a39f60f5afa360f07305da8507c1eff102ee284 (diff)
downloadlibnice-d24855d7832fb0ca26cf1bb46e987d05edf60128.tar.gz
candidate: Add Boxed type
-rw-r--r--agent/candidate.c3
-rw-r--r--agent/candidate.h9
-rw-r--r--docs/reference/libnice/libnice-sections.txt9
3 files changed, 21 insertions, 0 deletions
diff --git a/agent/candidate.c b/agent/candidate.c
index ad3fe8c..3cead37 100644
--- a/agent/candidate.c
+++ b/agent/candidate.c
@@ -53,6 +53,9 @@
#include "agent.h"
#include "component.h"
+G_DEFINE_BOXED_TYPE (NiceCandidate, nice_candidate, nice_candidate_copy,
+ nice_candidate_free);
+
/* (ICE 4.1.1 "Gathering Candidates") ""Every candidate is a transport
* address. It also has a type and a base. Three types are defined and
* gathered by this specification - host candidates, server reflexive
diff --git a/agent/candidate.h b/agent/candidate.h
index b63f7b3..0934afe 100644
--- a/agent/candidate.h
+++ b/agent/candidate.h
@@ -226,6 +226,15 @@ nice_candidate_free (NiceCandidate *candidate);
NiceCandidate *
nice_candidate_copy (const NiceCandidate *candidate);
+GType nice_candidate_get_type (void);
+
+/**
+ * NICE_TYPE_CANDIDATE:
+ *
+ * A boxed type for a #NiceCandidate.
+ */
+#define NICE_TYPE_CANDIDATE nice_candidate_get_type ()
+
G_END_DECLS
#endif /* _CANDIDATE_H */
diff --git a/docs/reference/libnice/libnice-sections.txt b/docs/reference/libnice/libnice-sections.txt
index 856dc6b..2a49bf6 100644
--- a/docs/reference/libnice/libnice-sections.txt
+++ b/docs/reference/libnice/libnice-sections.txt
@@ -74,11 +74,20 @@ NICE_CANDIDATE_MAX_FOUNDATION
nice_candidate_new
nice_candidate_free
nice_candidate_copy
+<SUBSECTION Standard>
+NICE_TYPE_CANDIDATE
+nice_candidate_get_type
<SUBSECTION Private>
NICE_CANDIDATE_TYPE_PREF_HOST
NICE_CANDIDATE_TYPE_PREF_PEER_REFLEXIVE
NICE_CANDIDATE_TYPE_PREF_SERVER_REFLEXIVE
NICE_CANDIDATE_TYPE_PREF_RELAYED
+NICE_CANDIDATE_TYPE_PREF_NAT_ASSISTED
+NICE_CANDIDATE_TYPE_PREF_UDP_TUNNELED
+NICE_CANDIDATE_DIRECTION_MS_PREF_ACTIVE
+NICE_CANDIDATE_DIRECTION_MS_PREF_PASSIVE
+NICE_CANDIDATE_TRANSPORT_MS_PREF_TCP
+NICE_CANDIDATE_TRANSPORT_MS_PREF_UDP
nice_candidate_jingle_priority
nice_candidate_msn_priority
nice_candidate_ice_priority_full