Commit 02fd911e authored by Youness Alaoui's avatar Youness Alaoui

Rename component_find_udp_socket_by_fd into component_find_socket_by_fd

parent 01e72828
......@@ -1423,7 +1423,7 @@ nice_agent_recv (
{
NiceSocket *socket;
socket = component_find_udp_socket_by_fd (component, j);
socket = component_find_socket_by_fd (component, j);
g_assert (socket);
len = _nice_agent_recv (agent, stream, component, socket,
......@@ -1464,7 +1464,7 @@ nice_agent_recv_sock (
goto done;
}
socket = component_find_udp_socket_by_fd (component, sock);
socket = component_find_socket_by_fd (component, sock);
g_assert (socket);
ret = _nice_agent_recv (agent, stream, component,
......@@ -1565,7 +1565,7 @@ nice_agent_poll_read (
Stream *s = i->data;
Component *c = stream_find_component_by_fd (s, j);
socket = component_find_udp_socket_by_fd (c, j);
socket = component_find_socket_by_fd (c, j);
if (socket != NULL) {
stream = s;
......
......@@ -119,8 +119,8 @@ component_free (Component *cmp)
* Note: there might be multiple sockets using the same
* handle.
*/
NiceUDPSocket *
component_find_udp_socket_by_fd (Component *component, guint fd)
NiceSocket *
component_find_socket_by_fd (Component *component, guint fd)
{
GSList *i;
......
......@@ -104,8 +104,8 @@ component_new (
void
component_free (Component *cmp);
NiceUDPSocket *
component_find_udp_socket_by_fd (Component *component, guint fd);
NiceSocket *
component_find_socket_by_fd (Component *component, guint fd);
gboolean
component_find_pair (Component *cmp, NiceAgent *agent, const gchar *lfoundation, const gchar *rfoundation, CandidatePair *pair);
......
......@@ -130,10 +130,10 @@ stream_all_components_ready (const Stream *stream)
/**
* Returns the component that owns a UDP socket using
* Returns the component that owns a socket using
* handle 'fd'.
*
* See also component_find_udp_socket_by_fd()
* See also component_find_socket_by_fd()
*/
Component *
stream_find_component_by_fd (const Stream *stream, guint fd)
......@@ -142,8 +142,8 @@ stream_find_component_by_fd (const Stream *stream, guint fd)
for (i = stream->components; i; i = i->next) {
Component *component = i->data;
NiceUDPSocket *socket =
component_find_udp_socket_by_fd (component, fd);
NiceSocket *socket =
component_find_socket_by_fd (component, fd);
if (socket)
return component;
}
......
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