Commit df2aa978 authored by Kai Vehmanen's avatar Kai Vehmanen
Browse files

Update rest of the libnice modules to match the new address API.

darcs-hash:20070830072636-77cd4-8dea06bd2f0f952f7229eacd7c81d49208f1468f.gz
parent 8ac1bec3
......@@ -77,7 +77,7 @@ handle_signal (
return 3;
}
if (!nice_address_set_ipv4_from_string (&addr, bits[3]))
if (!nice_address_set_from_string (&addr, bits[3]))
g_assert_not_reached ();
addr.port = atoi (bits[4]);
......@@ -103,7 +103,7 @@ main (gint argc, gchar *argv[])
gst_init (&argc, &argv);
if (!nice_address_set_ipv4_from_string (&addr, "127.0.0.1"))
if (!nice_address_set_from_string (&addr, "127.0.0.1"))
return 1;
addr.port = 1234;
......
......@@ -77,7 +77,7 @@ make_agent (
agent = nice_agent_new (factory);
if (!nice_address_set_ipv4_from_string (&addr_local, ip))
if (!nice_address_set_from_string (&addr_local, ip))
g_assert_not_reached ();
nice_agent_add_local_address (agent, &addr_local);
......
......@@ -69,7 +69,7 @@ make_agent (NiceUDPSocketFactory *factory)
agent = nice_agent_new (factory);
if (!nice_address_set_ipv4_from_string (&addr, "127.0.0.1"))
if (!nice_address_set_from_string (&addr, "127.0.0.1"))
g_assert_not_reached ();
nice_agent_add_local_address (agent, &addr);
......@@ -164,7 +164,7 @@ accept_connection (
return 3;
}
if (!nice_address_set_ipv4_from_string (&addr, bits[3]))
if (!nice_address_set_from_string (&addr, bits[3]))
g_assert_not_reached ();
addr.port = atoi (bits[4]);
......
......@@ -5,8 +5,8 @@ nice_address_free
nice_address_is_private
nice_address_new
nice_address_set_from_sockaddr
nice_address_set_from_string
nice_address_set_ipv4
nice_address_set_ipv4_from_string
nice_address_set_ipv6
nice_address_to_string
nice_agent_add_local_address
......
......@@ -54,7 +54,7 @@ main (void)
candidate = nice_candidate_from_string ("x");
g_assert (candidate == NULL);
g_assert (nice_address_set_ipv4_from_string (&addr, "192.168.0.1"));
g_assert (nice_address_set_from_string (&addr, "192.168.0.1"));
addr.port = 1234;
candidate = nice_candidate_from_string ("H/192.168.0.1/1234/foo/bar");
g_assert (candidate != NULL);
......
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