Commit d24855d7 authored by Olivier Crête's avatar Olivier Crête

candidate: Add Boxed type

parent 7a39f60f
......@@ -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
......
......@@ -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 */
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment