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