diff options
author | Philippe Normand <philn@igalia.com> | 2022-04-16 12:03:46 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2022-05-03 20:14:59 +0000 |
commit | bf978f303869851a6f767dbbfb73c05c16f699bb (patch) | |
tree | 6e6f286303e5084d487ac0478acc7910bcd7d411 /agent/candidate.h | |
parent | 41ac7386b2d8fc2215f244e899e70e536decc83e (diff) | |
download | libnice-bf978f303869851a6f767dbbfb73c05c16f699bb.tar.gz |
candidate: Add utility function to get TURN relay address
Can be useful to know which TURN server is being used as relay server for a given candidate.
Diffstat (limited to 'agent/candidate.h')
-rw-r--r-- | agent/candidate.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/agent/candidate.h b/agent/candidate.h index 76a6b0d..419a52e 100644 --- a/agent/candidate.h +++ b/agent/candidate.h @@ -40,6 +40,7 @@ #ifndef __LIBNICE_CANDIDATE_H__ #define __LIBNICE_CANDIDATE_H__ +#include "address.h" #include <glib.h> #include <glib-object.h> @@ -254,6 +255,18 @@ nice_candidate_type_to_string (NiceCandidateType type); const gchar * nice_candidate_transport_to_string (NiceCandidateTransport transport); +/** + * nice_candidate_relay_address: + * @candidate: A relay candidate + * @addr: The #NiceAddress to fill + * + * In case the given candidate is relayed through a TURN server, use this utility function to get + * its address. + * + * Since: 0.1.19 + */ +void +nice_candidate_relay_address (const NiceCandidate *candidate, NiceAddress *addr); /** * NICE_TYPE_CANDIDATE: |