diff options
Diffstat (limited to 'agent/address.c')
-rw-r--r-- | agent/address.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/agent/address.c b/agent/address.c index e1cc442..81795ae 100644 --- a/agent/address.c +++ b/agent/address.c @@ -261,6 +261,16 @@ nice_address_to_string (const NiceAddress *addr, gchar *dst) } } +NICEAPI_EXPORT gchar * +nice_address_dup_string (const NiceAddress *addr) +{ + char dst[MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)] = ""; + + nice_address_to_string (addr, dst); + + return g_strdup (dst); +} + NICEAPI_EXPORT gboolean nice_address_equal (const NiceAddress *a, const NiceAddress *b) |