Commit 6fc76a70 authored by Dafydd Harries's avatar Dafydd Harries

nice_address_set_ipv6 ()

darcs-hash:20070210180122-c9803-a47bf1a09c269ebe3927144db35c8ae8f4347f8d.gz
parent 4232ece0
#include <string.h>
#include <arpa/inet.h>
#include <glib.h>
......@@ -21,6 +23,14 @@ nice_address_set_ipv4 (NiceAddress *addr, guint32 addr_ipv4)
}
void
nice_address_set_ipv6 (NiceAddress *addr, const gchar *addr_ipv6)
{
addr->type = NICE_ADDRESS_TYPE_IPV6;
memcpy (addr->addr_ipv6, addr_ipv6, sizeof (addr->addr_ipv6));
}
/**
* address_set_ipv4_from_string ()
*
......
......@@ -40,6 +40,9 @@ nice_address_dup (NiceAddress *a);
void
nice_address_set_ipv4 (NiceAddress *addr, guint32 addr_ipv4);
void
nice_address_set_ipv6 (NiceAddress *addr, const gchar *addr_ipv6);
G_GNUC_WARN_UNUSED_RESULT
gboolean
nice_address_set_ipv4_from_string (NiceAddress *addr, const gchar *str);
......
......@@ -5,6 +5,7 @@ T nice_address_is_private
T nice_address_new
T nice_address_set_ipv4
T nice_address_set_ipv4_from_string
T nice_address_set_ipv6
T nice_address_to_string
T nice_agent_add_local_address
......
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