Commit 26262bb7 authored by Youness Alaoui's avatar Youness Alaoui

Callback now takes a GSocket * as argument

parent bf30b2e9
......@@ -2586,13 +2586,10 @@ io_ctx_free (IOCtx *ctx)
static gboolean
nice_agent_g_source_cb (
GIOChannel *io,
G_GNUC_UNUSED
GSocket *gsocket,
GIOCondition condition,
gpointer data)
{
/* return value is whether to keep the source */
IOCtx *ctx = data;
NiceAgent *agent = ctx->agent;
Stream *stream = ctx->stream;
......@@ -2607,9 +2604,6 @@ nice_agent_g_source_cb (
return FALSE;
}
/* note: dear compiler, these are for you: */
(void)io;
len = _nice_agent_recv (agent, stream, component, ctx->socket,
MAX_BUFFER_SIZE, buf);
......
......@@ -80,7 +80,7 @@ static gboolean socket_is_reliable (NiceSocket *sock);
static void add_to_be_sent (NiceSocket *sock, const gchar *buf, guint len,
gboolean head);
static void free_to_be_sent (struct to_be_sent *tbs);
static gboolean socket_send_more (GIOChannel *source, GIOCondition condition,
static gboolean socket_send_more (GSocket *gsocket, GIOCondition condition,
gpointer data);
NiceSocket *
......@@ -313,7 +313,7 @@ socket_is_reliable (NiceSocket *sock)
static gboolean
socket_send_more (
GIOChannel *source,
GSocket *gsocket,
GIOCondition condition,
gpointer data)
{
......
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